58 if (isA<fixedValueFvPatchScalarField>(tbf[patchi]))
60 hbt[patchi] = fixedUnburntEnthalpyFvPatchScalarField::typeName;
64 isA<zeroGradientFvPatchScalarField>(tbf[patchi])
65 || isA<fixedGradientFvPatchScalarField>(tbf[patchi])
68 hbt[patchi] = gradientUnburntEnthalpyFvPatchScalarField::typeName;
70 else if (isA<mixedFvPatchScalarField>(tbf[patchi]))
72 hbt[patchi] = mixedUnburntEnthalpyFvPatchScalarField::typeName;
87 isA<gradientUnburntEnthalpyFvPatchScalarField>(hbf[patchi])
90 refCast<gradientUnburntEnthalpyFvPatchScalarField>(hbf[patchi])
91 .gradient() = hbf[patchi].fvPatchField::snGrad();
95 isA<mixedUnburntEnthalpyFvPatchScalarField>(hbf[patchi])
98 refCast<mixedUnburntEnthalpyFvPatchScalarField>(hbf[patchi])
99 .refGrad() = hbf[patchi].fvPatchField::snGrad();
110 const word& phaseName
120 const word& phaseName,
133 const word& phaseName
136 return basicThermo::New<psiuReactionThermo>(
mesh, phaseName);
143 const word& phaseName,
147 return basicThermo::New<psiuReactionThermo>(
mesh, phaseName,
dictName);
wordList heuBoundaryTypes()
wordList types() const
Return a list of the patch types.
const word dictName("faMeshDefinition")
virtual ~psiuReactionThermo()
Destructor.
virtual const volScalarField & Tu() const =0
Unburnt gas temperature [K].
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
Type of boundary fields.
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
psiuReactionThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
A class for handling words, derived from Foam::string.
Foam::psiuReactionThermo.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
virtual volScalarField & heu()=0
Unburnt gas enthalpy [J/kg].
void heuBoundaryCorrection(volScalarField &heu)
Mesh data needed to do the Finite Volume discretisation.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
static autoPtr< psiuReactionThermo > New(const fvMesh &, const word &phaseName=word::null)
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.