Go to the documentation of this file.
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();
175 writeEntry(
"value",
os);
186 semiPermeableBaffleVelocityFvPatchVectorField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
virtual void operator==(const fvPatchField< Type > &)
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
PtrList< volScalarField > & Y()
This is a mass-fraction boundary condition for a semi-permeable baffle.
A class for handling words, derived from Foam::string.
Specialization of basicMultiComponentMixture for a mixture consisting of a number for molecular speci...
static constexpr const zero Zero
static const word dictName
basicSpecieMixture & composition
Field< vector > vectorField
Specialisation of Field<T> for vector.
This is a velocity boundary condition for a semi-permeable baffle.
semiPermeableBaffleVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Generic templated field type.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
PtrList< volScalarField > & Y
errorManipArg< error, int > exit(error &err, const int errNo=1)
fvPatchField< vector > fvPatchVectorField
#define FatalErrorInFunction
virtual void write(Ostream &) const
virtual void updateCoeffs()
word name(const expressions::valueTypeCode typeCode)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...