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
61 const turbulenceModel&
turb
91 fixedValueFvPatchScalarField(
p, iF),
107 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
122 fixedValueFvPatchScalarField(
p, iF,
dict),
135 fixedValueFvPatchScalarField(wfpsf),
149 fixedValueFvPatchScalarField(wfpsf, iF),
150 UName_(wfpsf.UName_),
151 wallCoeffs_(wfpsf.wallCoeffs_)
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,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
The class nutWallFunction is an abstract base class that hosts calculation methods and common functi...
virtual const volVectorField & U(const turbulenceModel &turb) const
Helper to return the velocity field either from the turbulence model (default) or the mesh database.
static const nutWallFunctionFvPatchScalarField & nutw(const turbulenceModel &turbModel, const label patchi)
Return the nut patchField for the given wall patch.
word UName_
Name of velocity field.
virtual void write(Ostream &) const
Write.
void writeLocalEntries(Ostream &) const
Write local wall function variables.
virtual tmp< scalarField > calcNut() const =0
Calculate the turbulent viscosity.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
wallFunctionCoefficients wallCoeffs_
Wall-function coefficients.
virtual void checkType()
Check the type of the patch.
nutWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
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)
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
constexpr char nl
The newline '\n' character (0x0a).