41 fixedValueFvPatchScalarField(p, iF),
55 fixedValueFvPatchScalarField(p, iF, dict,
false),
57 p_(
"p", dict, p.
size())
59 if (dict.
found(
"value"))
61 fvPatchScalarField::operator=
82 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
94 fixedValueFvPatchScalarField(ptf),
107 fixedValueFvPatchScalarField(ptf, iF),
120 fixedValueFvPatchScalarField::autoMap(m);
131 fixedValueFvPatchScalarField::rmap(ptf, addr);
134 refCast<const prghPressureFvPatchScalarField>(ptf);
160 mag(g.value()) > SMALL
161 ? g & (
cmptMag(g.value())/
mag(g.value()))*hRef
165 operator==(
p_ - rhop*((g.value() & patch().Cf()) - ghRef.value()));
167 fixedValueFvPatchScalarField::updateCoeffs();
174 writeEntryIfDifferent<word>(os,
"rho",
"rho",
rhoName_);
176 writeEntry(
"value", os);
prghPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
word rhoName_
Name of phase-fraction 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.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
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.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
This boundary condition provides static pressure condition for p_rgh, calculated as: ...
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
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...
volScalarField scalarField(fieldObject, mesh)
const dimensionedVector & g
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
scalarField p_
Static pressure.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
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.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual void write(Ostream &) const
Write.