44 fixedValueFvPatchScalarField(
p, iF),
60 rho_(
dict.get<scalar>(
"rho")),
61 pRefValue_(
dict.get<scalar>(
"pRefValue")),
64 if (!this->readValueEntry(
dict))
74 const uniformDensityHydrostaticPressureFvPatchScalarField& ptf,
76 const DimensionedField<scalar, volMesh>& iF,
77 const fvPatchFieldMapper& mapper
80 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
82 pRefValue_(ptf.pRefValue_),
83 pRefPoint_(ptf.pRefPoint_)
93 fixedValueFvPatchScalarField(ptf),
95 pRefValue_(ptf.pRefValue_),
96 pRefPoint_(ptf.pRefPoint_)
107 fixedValueFvPatchScalarField(ptf, iF),
109 pRefValue_(ptf.pRefValue_),
110 pRefPoint_(ptf.pRefPoint_)
129 + rho_*((
g.value() & patch().Cf()) - (
g.value() & pRefPoint_))
132 fixedValueFvPatchScalarField::updateCoeffs();
142 os.writeEntry(
"rho", rho_);
143 os.writeEntry(
"pRefValue", pRefValue_);
144 os.writeEntry(
"pRefPoint", pRefPoint_);
156 uniformDensityHydrostaticPressureFvPatchScalarField
Macros for easy insertion into run-time selection tables.
const uniformDimensionedVectorField & g
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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.
static const gravity & New(const word &name, const Time &runTime)
Return named gravity field cached or construct on Time.
Lookup type of boundary radiation properties.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
UniformDimensionedField< vector > uniformDimensionedVectorField
static constexpr const zero Zero
Global zero (0).
fvPatchField< scalar > fvPatchScalarField