41Foam::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>();
66Foam::semiPermeableBaffleVelocityFvPatchVectorField::
67semiPermeableBaffleVelocityFvPatchVectorField
73 fixedValueFvPatchVectorField(
p, iF),
78Foam::semiPermeableBaffleVelocityFvPatchVectorField::
79semiPermeableBaffleVelocityFvPatchVectorField
86 fixedValueFvPatchVectorField(
p, iF),
87 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho"))
93Foam::semiPermeableBaffleVelocityFvPatchVectorField::
94semiPermeableBaffleVelocityFvPatchVectorField
102 fixedValueFvPatchVectorField(ptf,
p, iF, mapper),
103 rhoName_(ptf.rhoName_)
107Foam::semiPermeableBaffleVelocityFvPatchVectorField::
108semiPermeableBaffleVelocityFvPatchVectorField
113 fixedValueFvPatchVectorField(ptf),
114 rhoName_(ptf.rhoName_)
118Foam::semiPermeableBaffleVelocityFvPatchVectorField::
119semiPermeableBaffleVelocityFvPatchVectorField
125 fixedValueFvPatchVectorField(ptf, iF),
126 rhoName_(ptf.rhoName_)
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();
162 this->
operator==(patch().nf()*phip/(rhop*patch().magSf()));
164 fixedValueFvPatchVectorField::updateCoeffs();
175 writeEntry(
"value",
os);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
void size(const label n)
Older name for setAddressableSize.
PtrList< volScalarField > & Y()
Return the mass-fraction fields.
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
static const word dictName
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
friend bool operator==(const refineCell &rc1, const refineCell &rc2)
This is a mass-fraction boundary condition for a semi-permeable baffle.
This is a velocity boundary condition for a semi-permeable baffle.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from Foam::string.
basicSpecieMixture & composition
PtrList< volScalarField > & Y
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.