solidRegionDiffusionNo.H
Go to the documentation of this file.
1scalar DiNum = -GREAT;
2
4{
5 //- Note: do not use setRegionSolidFields.H to avoid double registering Cp
6 //#include "setRegionSolidFields.H"
7 const solidThermo& thermo = thermos[i];
8
9 tmp<volScalarField> magKappa;
10 if (thermo.isotropic())
11 {
12 magKappa = thermo.kappa();
13 }
14 else
15 {
16 magKappa = mag(thermo.Kappa());
17 }
18
19 tmp<volScalarField> tcp = thermo.Cp();
20 const volScalarField& cp = tcp();
21
22 tmp<volScalarField> trho = thermo.rho();
23 const volScalarField& rho = trho();
24
25 DiNum = max
26 (
27 solidRegionDiffNo
28 (
29 solidRegions[i],
30 runTime,
31 rho*cp,
32 magKappa()
33 ),
34 DiNum
35 );
36
37}
Y[inertIndex] max(0.0)
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
scalar DiNum
engineTime & runTime
PtrList< solidThermo > thermos(solidRegions.size())
PtrList< fvMesh > solidRegions(solidNames.size())
tmp< volScalarField > tcp
tmp< volScalarField > trho
const volScalarField & cp
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:333