Loading...
Searching...
No Matches
createCoupledRegions.H
Go to the documentation of this file.
1bool coupled = false;
2{
3 fvSolution solutionDict(runTime);
4 solutionDict.readIfPresent("coupledEnergyField", coupled);
5}
6
7autoPtr<fvMatrix<scalar>> fvMatrixAssemblyPtr;
8
10{
11 const rhoThermo& thermo = refCast<const rhoThermo>(thermoFluid[i]);
12 const auto& bpsi = thermo.T().boundaryField();
13
14 forAll(bpsi, patchI)
15 {
16 if (bpsi[patchI].useImplicit())
17 {
18 coupled = true;
19 }
20 }
21}
22
24{
25 solidThermo& thermo = thermos[i];
26 const auto& bpsi = thermo.T().boundaryField();
27
28 forAll(bpsi, patchI)
29 {
30 if (bpsi[patchI].useImplicit())
31 {
32 coupled = true;
33 }
34 }
35}
36
38{
39 const rhoThermo& thermo = refCast<const rhoThermo>(thermoFluid[i]);
40 if (coupled)
41 {
42 Info<< "Create fvMatrixAssembly." << endl;
44 (
45 new fvMatrix<scalar>
46 (
47 thermo.he(),
48 dimEnergy/dimTime
49 )
50 );
51 break;
52 }
53}
54
56{
58 {
59 solidThermo& thermo = thermos[i];
60 Info<< "Create fvMatrixAssembly." << endl;
62 (
63 new fvMatrix<scalar>
64 (
65 thermo.he(),
66 dimEnergy/dimTime
67 )
68 );
69 break;
70 }
71}
fvSolution solutionDict(runTime)
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...
autoPtr< fvMatrix< scalar > > fvMatrixAssemblyPtr
bool coupled
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:519
#define forAll(list, i)
Loop across all elements in list.
Definition stdFoam.H:299