66 const word&
name = physicalProperties::typeName;
82 mixedFvPatchScalarField(
p, iF,
dict, false),
83 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
84 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
87 c_(
dict.lookupOrDefault<scalar>(
"c", scalar(0))),
92 : propertyNames_.
read(
dict.lookup(
"property"))
99 valueFraction() =
Zero;
112 mixedFvPatchScalarField(ptf,
p, iF, mapper),
113 phiName_(ptf.phiName_),
118 property_(ptf.property_)
129 mixedFvPatchScalarField(ptf, iF),
130 phiName_(ptf.phiName_),
132 phiYp_(ptf.size(), 0),
135 property_(ptf.property_)
147 mixedFvPatchScalarField::map(ptf, mapper);
150 refCast<const specieTransferMassFractionFvPatchScalarField>(ptf);
152 mapper(phiYp_, tiptf.phiYp_);
161 mixedFvPatchScalarField::reset(ptf);
164 refCast<const specieTransferMassFractionFvPatchScalarField>(ptf);
166 phiYp_.reset(tiptf.phiYp_);
173 if (timeIndex_ != this->db().time().
timeIndex())
175 timeIndex_ = this->db().time().timeIndex();
177 phiYp_ = calcPhiYp();
197 refCast<const specieTransferVelocityFvPatchVectorField>(Up).phip();
212 valueFraction() = phip/(phip - patch().deltaCoeffs()*AAlphaEffp);
214 refGrad() = phip*(*
this - phiYp()/uPhip)/AAlphaEffp;
216 mixedFvPatchScalarField::updateCoeffs();
226 writeEntryIfDifferent<scalar>(os,
"c", scalar(0), c_);
227 writeEntry(os,
"property", propertyNames_[property_]);
228 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
229 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Initialise the NamedEnum HashTable from the static list of names.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Specialisation of basicMixture for a mixture consisting of a number for molecular species.
virtual const volScalarField & Cp() const =0
Heat capacity at constant pressure [J/kg/K].
A list of keyword definitions, which are a keyword followed by any number of values (e....
Base-class for multi-component fluid thermodynamic properties.
Abstract base class for fluid thermophysical transport models RAS, LES and laminar.
virtual const fluidThermo & thermo() const =0
Access function to fluid thermophysical properties.
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Registry of regIOobjects.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
Abstract base class for specie-transferring mass fraction boundary conditions.
virtual const scalarField & phiYp() const
Return the flux of this species.
virtual void write(Ostream &) const
Write.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
static const basicSpecieMixture & composition(const objectRegistry &db)
Access the composition for the given database.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void map(const fvPatchScalarField &, const fvPatchFieldMapper &)
Map the given fvPatchField onto this fvPatchField.
static const NamedEnum< property, 4 > propertyNames_
Property type names.
specieTransferMassFractionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
property
Enumeration for the property driving the transfer.
virtual tmp< volScalarField > kappaEff() const =0
Effective thermal turbulent conductivity.
A class for managing temporary objects.
A class for handling words, derived from string.
bool read(const char *, int32_t &)
VolField< vector > volVectorField
word name(const bool)
Return a word representation of a bool.
SurfaceField< scalar > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)