createCoupledRegions.H
Go to the documentation of this file.
1fvSolution solutionDict(runTime);
2
3bool coupled(solutionDict.getOrDefault("coupledEnergyField", false));
4
5autoPtr<fvMatrix<scalar>> fvMatrixAssemblyPtr;
6
8{
9 const rhoThermo& thermo = refCast<const rhoThermo>(thermoFluid[i]);
10 const auto& bpsi = thermo.T().boundaryField();
11
12 forAll(bpsi, patchI)
13 {
14 if (bpsi[patchI].useImplicit())
15 {
16 coupled = true;
17 }
18 }
19}
20
22{
23 solidThermo& thermo = thermos[i];
24 const auto& bpsi = thermo.T().boundaryField();
25
26 forAll(bpsi, patchI)
27 {
28 if (bpsi[patchI].useImplicit())
29 {
30 coupled = true;
31 }
32 }
33}
34
36{
37 const rhoThermo& thermo = refCast<const rhoThermo>(thermoFluid[i]);
38 if (coupled)
39 {
40 Info<< "Create fvMatrixAssembly." << endl;
42 (
43 new fvMatrix<scalar>
44 (
45 thermo.he(),
46 dimEnergy/dimTime
47 )
48 );
49 break;
50 }
51}
52
54{
56 {
57 solidThermo& thermo = thermos[i];
58 Info<< "Create fvMatrixAssembly." << endl;
60 (
61 new fvMatrix<scalar>
62 (
63 thermo.he(),
64 dimEnergy/dimTime
65 )
66 );
67 break;
68 }
69}
PtrList< rhoThermo > thermoFluid(fluidRegions.size())
PtrList< fvMesh > fluidRegions(fluidNames.size())
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
fvSolution solutionDict(runTime)
autoPtr< fvMatrix< scalar > > fvMatrixAssemblyPtr
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
engineTime & runTime
PtrList< solidThermo > thermos(solidRegions.size())
PtrList< fvMesh > solidRegions(solidNames.size())
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:333