66 const word&
name = physicalProperties::typeName;
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);
193 mixedFvPatchScalarField::reset(ptf);
196 refCast<const specieTransferMassFractionFvPatchScalarField>(ptf);
198 phiYp_.
reset(tiptf.phiYp_);
205 if (timeIndex_ != this->db().time().
timeIndex())
209 phiYp_ = calcPhiYp();
229 refCast<const specieTransferVelocityFvPatchVectorField>(Up).phip();
238 *db().lookupObject<thermophysicalTransportModel>
240 thermophysicalTransportModel::typeName
242 .alphaEff(patch().index())
247 valueFraction() = phip/(phip - patch().deltaCoeffs()*AAlphaEffp);
249 refGrad() = phip*(*
this - phiYp()/uPhip)/AAlphaEffp;
251 mixedFvPatchScalarField::updateCoeffs();
261 writeEntryIfDifferent<scalar>(os,
"c", scalar(0), c_);
262 writeEntry(os,
"property", propertyNames_[property_]);
263 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
264 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.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
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...
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.