35Foam::freestreamPressureFvPatchScalarField::
36freestreamPressureFvPatchScalarField
42 mixedFvPatchScalarField(
p, iF),
47Foam::freestreamPressureFvPatchScalarField::
48freestreamPressureFvPatchScalarField
55 mixedFvPatchScalarField(
p, iF),
56 UName_(
dict.getOrDefault<
word>(
"U",
"U"))
77Foam::freestreamPressureFvPatchScalarField::
78freestreamPressureFvPatchScalarField
86 mixedFvPatchScalarField(ptf,
p, iF, mapper),
91Foam::freestreamPressureFvPatchScalarField::
92freestreamPressureFvPatchScalarField
97 mixedFvPatchScalarField(wbppsf),
102Foam::freestreamPressureFvPatchScalarField::
103freestreamPressureFvPatchScalarField
109 mixedFvPatchScalarField(wbppsf, iF),
110 UName_(wbppsf.UName_)
124 patch().template lookupPatchField<volVectorField, vector>
129 valueFraction() = 0.5 + 0.5*(Up & patch().nf())/
mag(Up);
139 freestreamValue().writeEntry(
"freestreamValue",
os);
140 writeEntry(
"value",
os);
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
This boundary condition provides a free-stream condition for pressure.
const scalarField & freestreamValue() const
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
virtual void operator=(const UList< scalar > &)
friend Ostream & operator(Ostream &, const fvPatchField< scalar > &)
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)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)