-
-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathCHT.H
72 lines (50 loc) · 1.59 KB
/
CHT.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
#ifndef CHT_H
#define CHT_H
#include "Interface.H"
#include "CHT/Temperature.H"
#include "CHT/HeatFlux.H"
#include "CHT/SinkTemperature.H"
#include "CHT/HeatTransferCoefficient.H"
#include "fvCFD.H"
namespace preciceAdapter
{
namespace CHT
{
class ConjugateHeatTransfer
{
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 temperature field
std::string nameT_ = "T";
//- Name of the thermal conductivity for a basic solver
std::string nameKappa_ = "k";
//- Name of the density for an incompressible solver
std::string nameRho_ = "rho";
//- Name of the heat capacity for an incompressible solver
std::string nameCp_ = "Cp";
//- Name of the Prandtl number for an incompressible solver
std::string namePr_ = "Pr";
//- Name of the turbulent thermal diffusivity field for an incompressible solver
std::string nameAlphat_ = "alphat";
protected:
//- Determine the solver type
std::string determineSolverType();
//- Read the CHT-related options from the adapter's configuration file
bool readConfig(const IOdictionary& adapterConfig);
public:
//- Constructor
ConjugateHeatTransfer(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