81 mixedFvPatchScalarField(p, iF),
87 property_(massFraction)
91 valueFraction() =
Zero;
103 mixedFvPatchScalarField(p, iF),
113 : propertyNames_.read(dict.
lookup(
"property"))
120 valueFraction() =
Zero;
133 mixedFvPatchScalarField(ptf, p, iF, mapper),
134 phiName_(ptf.phiName_),
150 mixedFvPatchScalarField(ptf, iF),
151 phiName_(ptf.phiName_),
153 phiYp_(ptf.size(), 0),
167 mixedFvPatchScalarField::autoMap(m);
179 mixedFvPatchScalarField::rmap(ptf, addr);
182 refCast<const specieTransferMassFractionFvPatchScalarField>(ptf);
184 phiYp_.
rmap(tiptf.phiYp_, addr);
191 if (timeIndex_ != this->db().time().
timeIndex())
195 phiYp_ = calcPhiYp();
215 refCast<const specieTransferVelocityFvPatchVectorField>(Up).phip();
224 *db().lookupObject<thermophysicalTransportModel>
226 thermophysicalTransportModel::typeName
228 .alphaEff(patch().index())
233 valueFraction() = phip/(phip - patch().deltaCoeffs()*AAlphaEffp);
235 refGrad() = phip*(*
this - phiYp()/uPhip)/AAlphaEffp;
237 mixedFvPatchScalarField::updateCoeffs();
247 writeEntryIfDifferent<scalar>(os,
"c", scalar(0), c_);
248 writeEntry(os,
"property", propertyNames_[property_]);
249 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
250 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
const scalar c_
Transfer coefficient.
A list of keyword definitions, which are a keyword followed by any number of values (e...
basicSpecieMixture & composition
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
Base-class for multi-component fluid thermodynamic 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.
Specialisation of basicMixture for a mixture consisting of a number for molecular species...
static const basicSpecieMixture & composition(const objectRegistry &db)
Access the composition for the given database.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Initialise the NamedEnum HashTable from the static list of names.
specieTransferMassFractionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static const word dictName
Name of the thermophysical properties dictionary.
virtual const scalarField & phiYp() const
Return the flux of this species.
const Time & time() const
Return time.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
label timeIndex() const
Return current time index.
Abstract base class for specie-transferring mass fraction boundary conditions.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const property property_
Property driving the transfer.
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Registry of regIOobjects.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
property
Enumeration for the property driving the transfer.
static const NamedEnum< property, 4 > propertyNames_
Property type names.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.