34 template<
class PressureFvPatchScalarField>
42 PressureFvPatchScalarField(p, iF),
47 template<
class PressureFvPatchScalarField>
56 PressureFvPatchScalarField(p, iF, dict),
61 template<
class PressureFvPatchScalarField>
71 PressureFvPatchScalarField(ptf, p, iF, mapper),
72 rhoName_(ptf.rhoName_)
76 template<
class PressureFvPatchScalarField>
84 PressureFvPatchScalarField(ptf, iF),
85 rhoName_(ptf.rhoName_)
91 template<
class PressureFvPatchScalarField>
95 if (PressureFvPatchScalarField::updated())
100 PressureFvPatchScalarField::updateCoeffs();
103 lookupPatchField<volScalarField, scalar>
109 this->db().template lookupObject<uniformDimensionedVectorField>(
"g");
112 this->db().template lookupObject<uniformDimensionedScalarField>(
"hRef");
118 *
this - rhop*((g.value() & this->patch().Cf()) - ghRef.value())
123 template<
class PressureFvPatchScalarField>
PrghPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from string.
This boundary condition provides the p_rgh equivalent of a pressure boundary condition calculated as:...
Foam::fvPatchFieldMapper.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensioned< scalar > mag(const dimensioned< Type > &)
const dimensionedVector & g