42 fixedValueFvPatchScalarField(p, iF),
58 fixedValueFvPatchScalarField(p, iF, dict,
false),
62 p0_(
"p0", dict, p.
size())
64 if (dict.
found(
"value"))
66 fvPatchScalarField::operator=
87 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
101 fixedValueFvPatchScalarField(ptf),
116 fixedValueFvPatchScalarField(ptf, iF),
131 fixedValueFvPatchScalarField::autoMap(m);
142 fixedValueFvPatchScalarField::rmap(ptf, addr);
145 refCast<const prghTotalPressureFvPatchScalarField>(ptf);
175 mag(g.value()) > SMALL
176 ? g & (
cmptMag(g.value())/
mag(g.value()))*hRef
184 - rhop*((g.value() & patch().Cf()) - ghRef.value())
187 fixedValueFvPatchScalarField::updateCoeffs();
194 writeEntryIfDifferent<word>(os,
"U",
"U",
UName_);
195 writeEntryIfDifferent<word>(os,
"phi",
"phi",
phiName_);
196 writeEntryIfDifferent<word>(os,
"rho",
"rho",
rhoName_);
198 writeEntry(
"value", os);
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
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.
word UName_
Name of the velocity field.
GeometricField< vector, fvPatchField, volMesh > volVectorField
This boundary condition provides static pressure condition for p_rgh, calculated as: ...
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
A class for handling words, derived from string.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Foam::fvPatchFieldMapper.
scalarField p0_
Total pressure.
virtual label size() const
Return size.
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
dimensionedScalar pos0(const dimensionedScalar &ds)
prghTotalPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
const dimensionedVector & g
word phiName_
Name of the flux transporting the field.
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.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensioned< scalar > mag(const dimensioned< Type > &)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
word rhoName_
Name of phase-fraction field.
virtual void write(Ostream &) const
Write.