-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathFF.H
76 lines (54 loc) · 1.54 KB
/
FF.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef FF_H
#define FF_H
#include "Interface.H"
#include "FF/Velocity.H"
#include "FF/Pressure.H"
#include "FF/Temperature.H"
#include "FF/Alpha.H"
#include "FF/PressureGradient.H"
#include "FF/VelocityGradient.H"
#include "FF/TemperatureGradient.H"
#include "FF/AlphaGradient.H"
#include "FF/Phi.H"
#include "fvCFD.H"
namespace preciceAdapter
{
namespace FF
{
class FluidFluid
{
protected:
//- OpenFOAM fvMesh object
const Foam::fvMesh& mesh_;
// TODO: Create a struct for all the parameter names
//- Solver type
std::string solverType_ = "none";
//- Name of the velocity field
std::string nameU_ = "U";
//- Name of the pressure field
std::string nameP_ = "p";
//- Name of the temperature field
std::string nameT_ = "T";
//- Name of the phase variable (alpha) field
std::string nameAlpha_ = "alpha";
//- Name of the face flux field
std::string namePhi_ = "phi";
//- Flux correction of velocity
bool fluxCorrection_ = false;
//- Determine the solver type
std::string determineSolverType();
//- Read the FF-related options from the adapter's configuration file
bool readConfig(const IOdictionary& adapterConfig);
public:
//- Constructor
FluidFluid(const Foam::fvMesh& mesh);
//- Configure
bool configure(const IOdictionary& adapterConfig);
//- Add coupling data writers
bool addWriters(std::string dataName, Interface* interface);
//- Add coupling data readers
bool addReaders(std::string dataName, Interface* interface);
};
}
}
#endif