41 Foam::semiPermeableBaffleVelocityFvPatchVectorField::composition()
const 45 if (db().foundObject<psiReactionThermo>(
name))
47 return db().lookupObject<psiReactionThermo>(
name).composition();
49 else if (db().foundObject<rhoReactionThermo>(
name))
51 return db().lookupObject<rhoReactionThermo>(
name).composition();
56 <<
"Could not find a multi-component thermodynamic model." 59 return NullObjectRef<basicSpecieMixture>();
73 fixedValueFvPatchVectorField(
p, iF),
86 fixedValueFvPatchVectorField(
p, iF),
87 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho"))
102 fixedValueFvPatchVectorField(ptf,
p, iF, mapper),
103 rhoName_(ptf.rhoName_)
113 fixedValueFvPatchVectorField(ptf),
114 rhoName_(ptf.rhoName_)
125 fixedValueFvPatchVectorField(ptf, iF),
126 rhoName_(ptf.rhoName_)
139 typedef semiPermeableBaffleMassFractionFvPatchScalarField YBCType;
151 if (!isA<YBCType>(Yp))
154 <<
"The mass-fraction condition on patch " <<
patch().name()
155 <<
" is not of type " << YBCType::typeName <<
"." 159 phip += refCast<const YBCType>(Yp).phiY();
164 fixedValueFvPatchVectorField::updateCoeffs();
186 semiPermeableBaffleVelocityFvPatchVectorField
word dictName() const
The local dictionary name (final part of scoped name)
fvPatchField< vector > fvPatchVectorField
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void write(Ostream &) const
Write.
basicSpecieMixture & composition
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
PtrList< volScalarField > & Y()
Return the mass-fraction fields.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
semiPermeableBaffleVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
This is a velocity boundary condition for a semi-permeable baffle.
PtrList< volScalarField > & Y
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)