40 mixedFvPatchScalarField(
p, iF,
dict, false),
41 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
44 dict.lookupOrDefault<
Switch>(
"supersonic", false)
49 if (
dict.found(
"value"))
75 mixedFvPatchScalarField(psf,
p, iF, mapper),
77 supersonic_(psf.supersonic_)
88 mixedFvPatchScalarField(psf, iF),
90 supersonic_(psf.supersonic_)
104 patch().template lookupPatchField<volVectorField, vector>
119 if (
magUp[i] > vSmall)
121 vf[i] = 0.5 - 0.5*(Up[i] & nf[i])/
magUp[i];
133 if (
magUp[i] > vSmall)
135 vf[i] = 0.5 + 0.5*(Up[i] & nf[i])/
magUp[i];
151 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
152 writeEntry(os,
"freestreamValue", freestreamValue());
#define forAll(list, i)
Loop across all elements in list.
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...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
This boundary condition provides a free-stream condition for pressure.
virtual void write(Ostream &) const
Write.
freestreamPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
const scalarField & freestreamValue() const
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Foam::fvPatchFieldMapper.
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 > &)
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 string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensioned< scalar > mag(const dimensioned< Type > &)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)