42 fixedValueFvPatchScalarField(p, iF),
45 pRefPointSpecified_(
false),
58 fixedValueFvPatchScalarField(p, iF, dict,
false),
59 rho_(dict.
lookup<scalar>(
"rhoRef")),
60 pRef_(dict.
lookup<scalar>(
"pRef")),
61 pRefPointSpecified_(dict.
found(
"pRefPoint")),
64 if (dict.
found(
"value"))
66 fvPatchScalarField::operator=
87 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
90 pRefPointSpecified_(ptf.pRefPointSpecified_),
91 pRefPoint_(ptf.pRefPoint_)
102 fixedValueFvPatchScalarField(ptf, iF),
105 pRefPointSpecified_(ptf.pRefPointSpecified_),
106 pRefPoint_(ptf.pRefPoint_)
122 scalar ghRef = g.
value() & pRefPoint_;
124 if (!pRefPointSpecified_)
135 + rho_*((g.
value() & patch().Cf()) - ghRef)
138 fixedValueFvPatchScalarField::updateCoeffs();
150 if (pRefPointSpecified_)
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...
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
Foam::fvPatchFieldMapper.
const Type & value() const
Return const reference to value.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensioned< scalar > mag(const dimensioned< Type > &)
const dimensionedVector & g
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.