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);
128 os.writeEntryIfDifferent<
word>(
"U",
"U", UName_);
129 freestreamValue().writeEntry(
"freestreamValue",
os);
141 freestreamPressureFvPatchScalarField
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...
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
void assign(const entry &e, const label len)
Assign from a primitive dictionary entry with the following behaviour:
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition provides a free-stream condition for pressure.
virtual void write(Ostream &) const
Write.
freestreamPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
const scalarField & freestreamValue() const
Same as refValue().
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void operator=(const UList< scalar > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0).
fvPatchField< scalar > fvPatchScalarField