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),
90 fixedValueFvPatchScalarField(ptf),
103 fixedValueFvPatchScalarField(ptf, iF),
116 fixedValueFvPatchScalarField::autoMap(m);
127 fixedValueFvPatchScalarField::rmap(ptf, addr);
132 p_.rmap(tiptf.
p_, addr);
154 mag(
g.value()) > SMALL
159 operator==(
p_ - rhop*((
g.value() & patch().Cf()) - ghRef.value()));
161 fixedValueFvPatchScalarField::updateCoeffs();
168 os.writeEntryIfDifferent<
word>(
"rho",
"rho", rhoName_);
169 p_.writeEntry(
"p",
os);
181 prghPressureFvPatchScalarField
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.
virtual void operator=(const UList< Type > &)
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.
This boundary condition provides static pressure condition for p_rgh, calculated as:
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.
const scalarField & p() const
Return the static pressure.
scalarField p_
Static pressure.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
word rhoName_
Name of phase-fraction field.
prghPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
List< label > labelList
A List of labels.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
UniformDimensionedField< scalar > uniformDimensionedScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
UniformDimensionedField< vector > uniformDimensionedVectorField
static constexpr const zero Zero
Global zero (0).
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fvPatchField< scalar > fvPatchScalarField