The class nutWallFunction
is an abstract base class that hosts calculation methods and common functions for nut
wall-function boundary conditions.
More...
Public Member Functions | |
TypeName ("nutWallFunction") | |
Runtime type information. More... | |
nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given nutWallFunctionFvPatchScalarField onto a new patch. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< scalarField > | yPlus () const =0 |
Calculate and return the yPlus at the boundary. More... | |
const wallFunctionCoefficients & | wallCoeffs () const noexcept |
Return wallFunctionCoefficients. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Static Public Member Functions | |
static const nutWallFunctionFvPatchScalarField & | nutw (const turbulenceModel &turbModel, const label patchi) |
Return the nut patchField for the given wall patch. More... | |
Protected Member Functions | |
virtual const volVectorField & | U (const turbulenceModel &turb) const |
Helper to return the velocity field either from the turbulence model (default) or the mesh database. More... | |
virtual void | checkType () |
Check the type of the patch. More... | |
virtual tmp< scalarField > | calcNut () const =0 |
Calculate the turbulent viscosity. More... | |
void | writeLocalEntries (Ostream &) const |
Write local wall function variables. More... | |
Protected Attributes | |
word | UName_ |
Name of velocity field. More... | |
wallFunctionCoefficients | wallCoeffs_ |
Wall-function coefficients. More... | |
The class nutWallFunction
is an abstract base class that hosts calculation methods and common functions for nut
wall-function boundary conditions.
<patchName> { // Top-level entries ... // Optional entries U U; // Inherited entries ... }
where the entries mean:
Property | Description | Type | Reqd | Deflt |
---|---|---|---|---|
U | Name of operand velocity field | word | no | U |
The inherited entries are elaborated in:
Definition at line 93 of file nutWallFunctionFvPatchScalarField.H.
nutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 79 of file nutWallFunctionFvPatchScalarField.C.
nutWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 109 of file nutWallFunctionFvPatchScalarField.C.
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given nutWallFunctionFvPatchScalarField onto a new patch.
Definition at line 93 of file nutWallFunctionFvPatchScalarField.C.
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | wfpsf | ) |
Construct as copy.
Definition at line 124 of file nutWallFunctionFvPatchScalarField.C.
nutWallFunctionFvPatchScalarField | ( | const nutWallFunctionFvPatchScalarField & | wfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 137 of file nutWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Helper to return the velocity field either from the turbulence model (default) or the mesh database.
Definition at line 53 of file nutWallFunctionFvPatchScalarField.C.
References turb.
Referenced by nutUWallFunctionFvPatchScalarField::calcNut(), nutUTabulatedWallFunctionFvPatchScalarField::calcNut(), nutUBlendedWallFunctionFvPatchScalarField::calcNut(), atmNutUWallFunctionFvPatchScalarField::calcNut(), and nutUSpaldingWallFunctionFvPatchScalarField::calcNut().
|
protectedvirtual |
Check the type of the patch.
Definition at line 38 of file nutWallFunctionFvPatchScalarField.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and Foam::foamVersion::patch.
|
protectedpure virtual |
Calculate the turbulent viscosity.
Implemented in atmNutWallFunctionFvPatchScalarField, atmNutkWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, atmNutUWallFunctionFvPatchScalarField, nutUBlendedWallFunctionFvPatchScalarField, nutkFilmWallFunctionFvPatchScalarField, nutkRoughWallFunctionFvPatchScalarField, nutUTabulatedWallFunctionFvPatchScalarField, nutUWallFunctionFvPatchScalarField, nutkWallFunctionFvPatchScalarField, and nutLowReWallFunctionFvPatchScalarField.
|
protected |
Write local wall function variables.
Definition at line 67 of file nutWallFunctionFvPatchScalarField.C.
References word::null, os(), and Ostream::writeEntryIfDifferent().
TypeName | ( | "nutWallFunction" | ) |
Runtime type information.
|
static |
Return the nut patchField for the given wall patch.
Definition at line 154 of file nutWallFunctionFvPatchScalarField.C.
References turbulenceModel::nut().
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), atmNutUWallFunctionFvPatchScalarField::calcNut(), nutUSpaldingWallFunctionFvPatchScalarField::calcNut(), atmNutkWallFunctionFvPatchScalarField::calcNut(), and atmNutWallFunctionFvPatchScalarField::calcNut().
|
pure virtual |
Calculate and return the yPlus at the boundary.
yPlus is the first-cell-centre height from boundary in wall units
Implemented in nutURoughWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, nutUBlendedWallFunctionFvPatchScalarField, nutkFilmWallFunctionFvPatchScalarField, nutUTabulatedWallFunctionFvPatchScalarField, nutUWallFunctionFvPatchScalarField, nutkWallFunctionFvPatchScalarField, and nutLowReWallFunctionFvPatchScalarField.
Referenced by alphatJayatillekeWallFunctionFvPatchScalarField::yPlus().
|
inlinenoexcept |
Return wallFunctionCoefficients.
Definition at line 222 of file nutWallFunctionFvPatchScalarField.H.
References nutWallFunctionFvPatchScalarField::wallCoeffs_.
Referenced by adjointkOmegaSST::addWallFunctionTerms(), adjointkOmegaSST::adjointMeanFlowSource(), and kaqRWallFunctionFvPatchScalarField::manipulateMatrix().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 168 of file nutWallFunctionFvPatchScalarField.C.
References Foam::operator==().
|
virtual |
Write.
Reimplemented in atmNutWallFunctionFvPatchScalarField, nutURoughWallFunctionFvPatchScalarField, atmNutkWallFunctionFvPatchScalarField, nutUSpaldingWallFunctionFvPatchScalarField, atmNutUWallFunctionFvPatchScalarField, nutkRoughWallFunctionFvPatchScalarField, nutUBlendedWallFunctionFvPatchScalarField, nutkFilmWallFunctionFvPatchScalarField, nutUTabulatedWallFunctionFvPatchScalarField, nutUWallFunctionFvPatchScalarField, nutkWallFunctionFvPatchScalarField, and nutLowReWallFunctionFvPatchScalarField.
Definition at line 182 of file nutWallFunctionFvPatchScalarField.C.
References os(), and fvPatchField< Type >::write().
Referenced by nutLowReWallFunctionFvPatchScalarField::write(), nutkWallFunctionFvPatchScalarField::write(), nutUWallFunctionFvPatchScalarField::write(), nutUTabulatedWallFunctionFvPatchScalarField::write(), nutkFilmWallFunctionFvPatchScalarField::write(), nutUBlendedWallFunctionFvPatchScalarField::write(), nutkRoughWallFunctionFvPatchScalarField::write(), atmNutUWallFunctionFvPatchScalarField::write(), nutUSpaldingWallFunctionFvPatchScalarField::write(), atmNutkWallFunctionFvPatchScalarField::write(), nutURoughWallFunctionFvPatchScalarField::write(), and atmNutWallFunctionFvPatchScalarField::write().
|
protected |
Name of velocity field.
Default is null (not specified) in which case the velocity is retrieved from the turbulence model
Definition at line 107 of file nutWallFunctionFvPatchScalarField.H.
|
protected |
Wall-function coefficients.
Definition at line 112 of file nutWallFunctionFvPatchScalarField.H.
Referenced by nutkWallFunctionFvPatchScalarField::calcNut(), nutUWallFunctionFvPatchScalarField::calcNut(), nutkRoughWallFunctionFvPatchScalarField::calcNut(), atmNutUWallFunctionFvPatchScalarField::calcNut(), atmNutkWallFunctionFvPatchScalarField::calcNut(), atmNutWallFunctionFvPatchScalarField::calcNut(), and nutWallFunctionFvPatchScalarField::wallCoeffs().