43 fixedValueFvPatchScalarField(
p, iF,
dict, false),
46 pRefPointSpecified_(
dict.
found(
"pRefPoint")),
49 if (
dict.found(
"value"))
72 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
75 pRefPointSpecified_(ptf.pRefPointSpecified_),
76 pRefPoint_(ptf.pRefPoint_)
87 fixedValueFvPatchScalarField(ptf, iF),
90 pRefPointSpecified_(ptf.pRefPointSpecified_),
91 pRefPoint_(ptf.pRefPoint_)
104 const uniformDimensionedVectorField& g =
105 db().lookupObject<uniformDimensionedVectorField>(
"g");
107 scalar ghRef = g.value() & pRefPoint_;
109 if (!pRefPointSpecified_)
111 const uniformDimensionedScalarField& hRef =
112 db().lookupObject<uniformDimensionedScalarField>(
"hRef");
114 ghRef = -
mag(g.value())*hRef.value();
120 + rho_*((g.value() & patch().Cf()) - ghRef)
123 fixedValueFvPatchScalarField::updateCoeffs();
135 if (pRefPointSpecified_)
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
const dimensionSet & dimLength
makePatchTypeField(fvPatchScalarField, atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const dimensionSet & dimDensity
const dimensionSet & dimPressure
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)