40 mixedFvPatchScalarField(
p, iF,
dict, false),
41 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
44 dict.lookupOrDefault<
Switch>(
"supersonic", false)
50 if (
dict.found(
"value"))
76 mixedFvPatchScalarField(psf,
p, iF, mapper),
78 supersonic_(psf.supersonic_)
89 mixedFvPatchScalarField(psf, iF),
91 supersonic_(psf.supersonic_)
105 patch().template lookupPatchField<volVectorField, vector>
120 if (
magUp[i] > vSmall)
122 vf[i] = 0.5 - 0.5*(Up[i] & nf[i])/
magUp[i];
134 if (
magUp[i] > vSmall)
136 vf[i] = 0.5 + 0.5*(Up[i] & nf[i])/
magUp[i];
152 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
153 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...
const dimensionSet & dimensions() const
Return dimensions.
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....
Abstract base class for field mapping.
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.
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.
const dimensionSet dimPressure
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)