createCoupledRegions.H
Go to the documentation of this file.
1 fvSolution solutionDict(runTime);
2 
3 bool coupled(solutionDict.getOrDefault("coupledEnergyField", false));
4 
5 autoPtr<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(),
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(),
65  )
66  );
67  break;
68  }
69 }
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::dimEnergy
const dimensionSet dimEnergy
forAll
forAll(fluidRegions, i)
Definition: createCoupledRegions.H:7
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
Foam::dimTime
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:53
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
fluidRegions
PtrList< fvMesh > fluidRegions(fluidNames.size())
solidRegions
PtrList< fvMesh > solidRegions(solidNames.size())
coupled
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
thermoFluid
PtrList< rhoThermo > thermoFluid(fluidRegions.size())
solutionDict
fvSolution solutionDict(runTime)
thermos
PtrList< solidThermo > thermos(solidRegions.size())
fvMatrixAssemblyPtr
autoPtr< fvMatrix< scalar > > fvMatrixAssemblyPtr
Definition: createCoupledRegions.H:5