42 mixedFvPatchScalarField(p, iF)
44 valueFraction() = 0.0;
59 mixedFvPatchScalarField(ptf, p, iF, mapper)
71 mixedFvPatchScalarField(p, iF, dict)
81 mixedFvPatchScalarField(tppsf)
92 mixedFvPatchScalarField(tppsf, iF)
111 if (isA<mixedFvPatchScalarField>(Tp))
113 mixedFvPatchScalarField& Tm =
114 refCast<mixedFvPatchScalarField>(Tp);
118 valueFraction() = Tm.valueFraction();
119 refValue() = thermo.
he(Tm.refValue(),
patchi);
121 thermo.
Cpv(Tm, patchi)*Tm.refGrad()
122 + patch().deltaCoeffs()*
124 thermo.
he(Tm, patchi)
125 - thermo.
he(Tm, patch().faceCells())
128 else if (isA<mixedEnergyCalculatedTemperatureFvPatchScalarField>(Tp))
131 refCast<mixedEnergyCalculatedTemperatureFvPatchScalarField>(Tp);
142 <<
"Temperature boundary condition not recognised." 143 <<
"A " << typeName <<
" condition for energy must be used with a " 144 << mixedFvPatchScalarField::typeName <<
" or " 145 << mixedEnergyCalculatedTemperatureFvPatchScalarField::typeName
146 <<
" condition for temperature." 150 mixedFvPatchScalarField::updateCoeffs();
scalarField & heValueFraction()
Access the energy fraction.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Abstract 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 const volScalarField & T() const
Temperature [K].
rhoReactionThermo & thermo
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.
static Table::iterator lookupThermo(const dictionary &thermoTypeDict, Table *tablePtr, const int nCmpt, const char *cmptNames[], const word &thermoTypeName)
Generic lookup for thermodynamics package thermoTypeName.
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.
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...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)