34 template<
class PressureFvPatchScalarField>
43 PressureFvPatchScalarField(
p, iF,
dict),
44 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho"))
48 template<
class PressureFvPatchScalarField>
58 PressureFvPatchScalarField(ptf,
p, iF, mapper),
59 rhoName_(ptf.rhoName_)
63 template<
class PressureFvPatchScalarField>
71 PressureFvPatchScalarField(ptf, iF),
72 rhoName_(ptf.rhoName_)
78 template<
class PressureFvPatchScalarField>
82 if (PressureFvPatchScalarField::updated())
87 PressureFvPatchScalarField::updateCoeffs();
90 lookupPatchField<volScalarField, scalar>
96 this->db().template lookupObject<uniformDimensionedVectorField>(
"g");
99 this->db().template lookupObject<uniformDimensionedScalarField>(
"hRef");
105 *
this - rhop*((g.
value() & this->patch().Cf()) - ghRef.
value())
110 template<
class PressureFvPatchScalarField>
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,...
This boundary condition provides the p_rgh equivalent of a pressure boundary condition calculated as:
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
PrghPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Type & value() const
Return const reference to value.
Abstract base class for field mapping.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for handling words, derived from string.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensioned< scalar > mag(const dimensioned< Type > &)