44 fixedValueFvPatchScalarField(
p, iF),
59 fixedValueFvPatchScalarField(
p, iF,
dict, false),
60 UName_(
dict.getOrDefault<
word>(
"U",
"U")),
61 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
62 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho")),
63 p0_(
"p0",
dict,
p.size())
87 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
89 phiName_(ptf.phiName_),
90 rhoName_(ptf.rhoName_),
100 fixedValueFvPatchScalarField(ptf),
102 phiName_(ptf.phiName_),
103 rhoName_(ptf.rhoName_),
114 fixedValueFvPatchScalarField(ptf, iF),
116 phiName_(ptf.phiName_),
117 rhoName_(ptf.rhoName_),
129 fixedValueFvPatchScalarField::autoMap(m);
140 fixedValueFvPatchScalarField::rmap(ptf, addr);
143 refCast<const prghTotalPressureFvPatchScalarField>(ptf);
145 p0_.rmap(tiptf.
p0_, addr);
182 - rhop*((
g.
value() & patch().Cf()) - ghRef.value())
185 fixedValueFvPatchScalarField::updateCoeffs();
195 p0_.writeEntry(
"p0",
os);
196 writeEntry(
"value",
os);
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...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
const dimensionSet & dimensions() const
Return const reference to dimensions.
const Type & value() const
Return const reference to value.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
virtual void operator=(const UList< Type > &)
friend Ostream & operator(Ostream &, const fvPatchField< scalar > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
scalarField p0_
Total 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.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedScalar pos0(const dimensionedScalar &ds)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)