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_)
101 fixedValueFvPatchScalarField(ptf),
104 pRefPointSpecified_(ptf.pRefPointSpecified_),
105 pRefPoint_(ptf.pRefPoint_)
116 fixedValueFvPatchScalarField(ptf, iF),
119 pRefPointSpecified_(ptf.pRefPointSpecified_),
120 pRefPoint_(ptf.pRefPoint_)
136 scalar ghRef = g.
value() & pRefPoint_;
138 if (!pRefPointSpecified_)
149 + rho_*((g.
value() & patch().Cf()) - ghRef)
152 fixedValueFvPatchScalarField::updateCoeffs();
164 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.