-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathAlpha.H
43 lines (31 loc) · 833 Bytes
/
Alpha.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
43
#ifndef FF_ALPHA_H
#define FF_ALPHA_H
#include "CouplingDataUser.H"
#include "fvCFD.H"
#include "cellSet.H"
namespace preciceAdapter
{
namespace FF
{
//- Class that writes and reads Alpha
class Alpha : public CouplingDataUser
{
private:
//- Alpha field
Foam::volScalarField* Alpha_;
public:
//- Constructor
Alpha(
const Foam::fvMesh& mesh,
const std::string nameAlpha);
//- Write the Alpha values into the buffer
std::size_t write(double* buffer, bool meshConnectivity, const unsigned int dim);
//- Read the Alpha 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