80 <<
"Could not find a multi-component thermodynamic model." 83 return NullObjectRef<basicSpecieMixture>();
97 mixedFvPatchScalarField(p, iF),
103 property_(massFraction)
107 valueFraction() =
Zero;
119 mixedFvPatchScalarField(p, iF),
129 : propertyNames_.read(dict.
lookup(
"property"))
136 valueFraction() =
Zero;
149 mixedFvPatchScalarField(ptf, p, iF, mapper),
150 phiName_(ptf.phiName_),
165 mixedFvPatchScalarField(ptf),
166 phiName_(ptf.phiName_),
168 phiYp_(ptf.size(), 0),
182 mixedFvPatchScalarField(ptf, iF),
183 phiName_(ptf.phiName_),
185 phiYp_(ptf.size(), 0),
199 mixedFvPatchScalarField::autoMap(m);
211 mixedFvPatchScalarField::rmap(ptf, addr);
214 refCast<const specieTransferMassFractionFvPatchScalarField>(ptf);
216 phiYp_.
rmap(tiptf.phiYp_, addr);
223 if (timeIndex_ != this->db().time().
timeIndex())
227 phiYp_ = calcPhiYp();
247 refCast<const specieTransferVelocityFvPatchVectorField>(Up).phip();
256 *db().lookupObject<thermophysicalTransportModel>
258 thermophysicalTransportModel::typeName
260 .alphaEff(patch().index())
265 valueFraction() = phip/(phip - patch().deltaCoeffs()*AAlphaEffp);
267 refGrad() = phip*(*
this - phiYp()/uPhip)/AAlphaEffp;
269 mixedFvPatchScalarField::updateCoeffs();
279 writeEntryIfDifferent<scalar>(os,
"c", scalar(0), c_);
280 writeEntry(os,
"property", propertyNames_[property_]);
281 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
282 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
const scalar c_
Transfer coefficient.
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.
basicSpecieMixture & composition
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
bool foundObject(const word &name) const
Is the named Type found?
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
Specialization 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.
const word dictName() const
Return the local dictionary name (final part of scoped name)
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...
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.