44 fixedValueFvPatchScalarField(
p, iF),
59 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho")),
60 p_(
"p",
dict,
p.size())
62 if (!this->readValueEntry(
dict))
72 const prghPressureFvPatchScalarField& ptf,
74 const DimensionedField<scalar, volMesh>& iF,
75 const fvPatchFieldMapper& mapper
78 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
79 rhoName_(ptf.rhoName_),
90 fixedValueFvPatchScalarField(ptf),
91 rhoName_(ptf.rhoName_),
103 fixedValueFvPatchScalarField(ptf, iF),
104 rhoName_(ptf.rhoName_),
116 fixedValueFvPatchScalarField::autoMap(m);
127 fixedValueFvPatchScalarField::rmap(ptf, addr);
130 refCast<const prghPressureFvPatchScalarField>(ptf);
161 fixedValueFvPatchScalarField::updateCoeffs();
169 p_.writeEntry(
"p",
os);
181 prghPressureFvPatchScalarField
prghPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
const Type & value() const noexcept
Return const reference to value.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
UniformDimensionedField< vector > uniformDimensionedVectorField
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
UniformDimensionedField< scalar > uniformDimensionedScalarField
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
This boundary condition provides static pressure condition for p_rgh, calculated as: ...
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
const dimensionSet & dimensions() const noexcept
Return const reference to dimensions.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const uniformDimensionedVectorField & g
OBJstream os(runTime.globalPath()/outputName)
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
static const gravity & New(const word &name, const Time &runTime)
Return named gravity field cached or construct on Time.
scalarField p_
Static pressure.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void operator=(const UList< Type > &)
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
virtual void write(Ostream &) const
Write.
static constexpr const zero Zero
Global zero (0)