48 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
49 UName_(
dict.lookupOrDefault<
word>(
"U",
"U"))
71 phiName_(ptf.phiName_),
84 phiName_(ptf.phiName_),
108 if (!isA<YBCType>(Yp))
111 <<
"The mass-fraction condition on patch " << patch().name()
112 <<
" is not of type " << YBCType::typeName <<
"."
116 phiHep += refCast<const YBCType>(Yp).phiYp()*
thermo.
hei(i, pp, Tp);
136 refCast<const specieTransferVelocityFvPatchVectorField>(Up).phip();
148 patch().magSf()*ttm.
alphaEff(patch().index())
155 - AAlphaEffp*hep.snGrad()
156 - patch().magSf()*ttm.
q(patch().index())
161 heValueFraction() = phip/(phip - patch().deltaCoeffs()*AAlphaEffp);
163 heRefGrad() = phip*(hep - phiHep/uPhip)/AAlphaEffp;
165 mixedEnergyCalculatedTemperatureFvPatchScalarField::updateCoeffs();
175 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
176 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual const volScalarField & he() const =0
Enthalpy/Internal energy [J/kg].
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
Base-class for multi-component fluid thermodynamic properties.
virtual const volScalarField & p() const =0
Pressure [Pa].
Abstract base class for fluid thermophysical transport models RAS, LES and laminar.
virtual tmp< scalarField > alphaEff(const label patchi) const =0
Effective thermal turbulent diffusivity.
virtual const fluidThermo & thermo() const =0
Access function to fluid thermophysical properties.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Base class for temperature boundary conditions in which the parameters of the mixed energy condition ...
virtual scalar hei(const label speciei, const scalar p, const scalar T) const =0
Enthalpy/Internal energy [J/kg].
virtual PtrList< volScalarField > & Y()=0
Access the mass-fraction fields.
Abstract base class for specie-transferring mass fraction boundary conditions.
This is a temperature boundary condition for a specie-transferring wall.
virtual void write(Ostream &) const
Write.
const tmp< scalarField > phiHep() const
Return the flux of energy.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
specieTransferTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &, const bool readValue=true)
Construct from patch, internal field and dictionary.
virtual tmp< surfaceScalarField > q() const =0
Return the heat flux [W/m^2].
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Calculate the gradient of the given field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
VolField< vector > volVectorField
SurfaceField< scalar > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
PtrList< volScalarField > & Y
fluidMulticomponentThermo & thermo