-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathPhi.H
42 lines (30 loc) · 805 Bytes
/
Phi.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef FF_PHI_H
#define FF_PHI_H
#include "CouplingDataUser.H"
#include "fvCFD.H"
namespace preciceAdapter
{
namespace FF
{
//- Class that writes and reads the flux phi
class Phi : public CouplingDataUser
{
private:
//- Phi field
Foam::surfaceScalarField* phi_;
public:
//- Constructor
Phi(
const Foam::fvMesh& mesh,
const std::string namePhi);
//- Write the Phi values into the buffer
std::size_t write(double* buffer, bool meshConnectivity, const unsigned int dim);
//- Read the Phi values from the buffer
void read(double* buffer, const unsigned int dim);
bool isLocationTypeSupported(const bool meshConnectivity) const override;
//- Get the name of the current data field
std::string getDataName() const override;
};
}
}
#endif