createCoupledRegions.H
Go to the documentation of this file.
1 bool coupled = false;
2 {
3  fvSolution solutionDict(runTime);
4  solutionDict.readIfPresent("coupledEnergyField", coupled);
5 }
6 
7 autoPtr<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(),
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(),
67  )
68  );
69  break;
70  }
71 }
fvSolution solutionDict(runTime)
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
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())
bool coupled