41Foam::semiPermeableBaffleVelocityFvPatchVectorField::composition()
const
45 if (db().foundObject<psiReactionThermo>(
name))
49 else if (db().foundObject<rhoReactionThermo>(
name))
56 <<
"Could not find a multi-component thermodynamic model."
70 const DimensionedField<vector, volMesh>& iF
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;
154 <<
"The mass-fraction condition on patch " << patch().name()
155 <<
" is not of type " << YBCType::typeName <<
"."
162 this->
operator==(patch().nf()*phip/(rhop*patch().magSf()));
164 fixedValueFvPatchVectorField::updateCoeffs();
174 os.writeEntryIfDifferent<
word>(
"rho",
"rho", rhoName_);
186 semiPermeableBaffleVelocityFvPatchVectorField
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...
@ MUST_READ
Reading required.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
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
The dictionary name ("thermophysicalProperties").
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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 write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
semiPermeableBaffleVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal 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)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
const T & NullObjectRef() noexcept
Const reference (of type T) to the nullObject.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
fvPatchField< vector > fvPatchVectorField
fvPatchField< scalar > fvPatchScalarField
#define forAll(list, i)
Loop across all elements in list.