42 mixedFvPatchScalarField(
p, iF),
55 mixedFvPatchScalarField(
p, iF),
56 UName_(
dict.getOrDefault<
word>(
"U",
"U"))
63 if (!this->readValueEntry(
dict))
73 const freestreamPressureFvPatchScalarField& ptf,
75 const DimensionedField<scalar, volMesh>& iF,
76 const fvPatchFieldMapper& mapper
79 mixedFvPatchScalarField(ptf,
p, iF, mapper),
90 mixedFvPatchScalarField(wbppsf),
102 mixedFvPatchScalarField(wbppsf, iF),
103 UName_(wbppsf.UName_)
116 const Field<vector>& Up =
117 patch().template lookupPatchField<volVectorField>(UName_);
119 valueFraction() = 0.5 + 0.5*(Up &
patch().nf())/
mag(Up);
129 freestreamValue().writeEntry(
"freestreamValue",
os);
141 freestreamPressureFvPatchScalarField
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
freestreamPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from Foam::string.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
void assign(const entry &e, const label len)
Assign from a primitive dictionary entry with the following behaviour:
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void operator=(const UList< scalar > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
This boundary condition provides a free-stream condition for pressure.
const scalarField & freestreamValue() const
Same as refValue()
virtual void write(Ostream &) const
Write.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)