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 }
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:487
PtrList< fvMesh > solidRegions(solidNames.size())
psiReactionThermo & thermo
Definition: createFields.H:28
PtrList< solidThermo > thermos(solidRegions.size())
PtrList< rhoThermo > thermoFluid(fluidRegions.size())
const dimensionSet dimEnergy
forAll(fluidRegions, i)
autoPtr< fvMatrix< scalar > > fvMatrixAssemblyPtr
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
messageStream Info
Information stream (stdout output on master, null elsewhere)
PtrList< fvMesh > fluidRegions(fluidNames.size())
fvSolution solutionDict(runTime)