47 if (!isA<wallFvPatch>(patch()))
50 <<
"Invalid wall function specification" <<
nl
51 <<
" Patch type for patch " << patch().name()
52 <<
" must be wall" <<
nl
53 <<
" Current patch type is " << patch().type() <<
nl <<
endl
79 wallCoeffs_.writeEntries(
os);
91 fixedValueFvPatchScalarField(
p, iF),
107 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
109 wallCoeffs_(ptf.wallCoeffs_)
122 fixedValueFvPatchScalarField(
p, iF,
dict),
135 fixedValueFvPatchScalarField(wfpsf),
136 UName_(wfpsf.UName_),
137 wallCoeffs_(wfpsf.wallCoeffs_)
149 fixedValueFvPatchScalarField(wfpsf, iF),
150 UName_(wfpsf.UName_),
151 wallCoeffs_(wfpsf.wallCoeffs_)
167 refCast<const nutWallFunctionFvPatchScalarField>
169 turbModel.
nut()().boundaryField()[patchi],
184 fixedValueFvPatchScalarField::updateCoeffs();
194 writeLocalEntries(
os);
Macros for easy insertion into run-time selection tables.
compressible::turbulenceModel & turb
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,...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
The class nutWallFunction is an abstract base class that hosts calculation methods and common functi...
static const nutWallFunctionFvPatchScalarField & nutw(const turbulenceModel &turbModel, const label patchi)
Return the nut patchField for the given wall patch.
void writeLocalEntries(Ostream &) const
Write local wall function variables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void checkType()
Check the type of the patch.
Abstract base class for turbulence models (RAS, LES and laminar).
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
errorManip< error > abort(error &err)
constexpr char nl
The newline '\n' character (0x0a)