42 mixedFvPatchScalarField(p, iF)
44 valueFraction() = 0.0;
58 mixedFvPatchScalarField(p, iF, dict)
71 mixedFvPatchScalarField(ptf, p, iF, mapper)
82 mixedFvPatchScalarField(tppsf, iF)
101 if (isA<mixedFvPatchScalarField>(Tp))
103 mixedFvPatchScalarField& Tm =
104 refCast<mixedFvPatchScalarField>(Tp);
108 valueFraction() = Tm.valueFraction();
109 refValue() = thermo.
he(Tm.refValue(),
patchi);
111 thermo.
Cpv(Tm, patchi)*Tm.refGrad()
112 + patch().deltaCoeffs()*
114 thermo.
he(Tm, patchi)
115 - thermo.
he(Tm, patch().faceCells())
118 else if (isA<mixedEnergyCalculatedTemperatureFvPatchScalarField>(Tp))
121 refCast<mixedEnergyCalculatedTemperatureFvPatchScalarField>(Tp);
132 <<
"Temperature boundary condition not recognised." 133 <<
"A " << typeName <<
" condition for energy must be used with a " 134 << mixedFvPatchScalarField::typeName <<
" or " 135 << mixedEnergyCalculatedTemperatureFvPatchScalarField::typeName
136 <<
" condition for temperature." 140 mixedFvPatchScalarField::updateCoeffs();
scalarField & heValueFraction()
Access the energy fraction.
fluidReactionThermo & thermo
Base-class for fluid and solid thermodynamic properties.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
mixedEnergyFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual tmp< volScalarField > Cpv() const =0
Heat capacity at constant pressure/volume [J/kg/K].
Macros for easy insertion into run-time selection tables.
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
scalarField & heRefValue()
Access the energy value.
Foam::fvPatchFieldMapper.
This boundary condition provides a mixed condition for energy. This is selected when the correspondin...
scalarField & heRefGrad()
Access the energy gradient.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets Updated to false.
virtual const volScalarField & T() const =0
Temperature [K].
Base class for temperature boundary conditions in which the parameters of the mixed energy condition ...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static const basicThermo & lookupThermo(const fvPatchScalarField &pf)
Lookup the thermo associated with the given patch field.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)