47 if (!isA<wallFvPatch>(
patch()))
50 <<
"Invalid wall function specification" <<
nl 51 <<
" Patch type for patch " <<
patch().name()
52 <<
" must be wall" <<
nl 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);
virtual const volVectorField & U(const turbulenceModel &turb) const
Helper to return the velocity field either from the turbulence model (default) or the mesh database...
void writeLocalEntries(Ostream &) const
Write local wall function variables.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
compressible::turbulenceModel & turb
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
The class nutWallFunction is an abstract base class that hosts calculation methods and common functi...
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
static const word null
An empty word.
errorManip< error > abort(error &err)
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const
Write.
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
virtual void checkType()
Check the type of the patch.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
nutWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
static const nutWallFunctionFvPatchScalarField & nutw(const turbulenceModel &turbModel, const label patchi)
Return the nut patchField for the given wall patch.