This boundary condition provides a wall function for the turbulent viscosity (i.e. nut) based on velocity (i.e. U) for low- and high-Reynolds number applications.
More...
#include <nutUWallFunctionFvPatchScalarField.H>


Public Member Functions | |
| TypeName ("nutUWallFunction") | |
| Runtime type information. | |
| nutUWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| nutUWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| nutUWallFunctionFvPatchScalarField (const nutUWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given nutUWallFunctionFvPatchScalarField onto a new patch. | |
| nutUWallFunctionFvPatchScalarField (const nutUWallFunctionFvPatchScalarField &) | |
| Construct as copy. | |
| nutUWallFunctionFvPatchScalarField (const nutUWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< scalar > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Clone with an internal field reference. | |
| virtual tmp< scalarField > | yPlus () const |
| Calculate and return the yPlus at the boundary. | |
| virtual void | write (Ostream &os) const |
| Write. | |
| Public Member Functions inherited from nutWallFunctionFvPatchScalarField | |
| TypeName ("nutWallFunction") | |
| Runtime type information. | |
| nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| nutWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given nutWallFunctionFvPatchScalarField onto a new patch. | |
| nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &) | |
| Construct as copy. | |
| nutWallFunctionFvPatchScalarField (const nutWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| const wallFunctionCoefficients & | wallCoeffs () const noexcept |
| Return wallFunctionCoefficients. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
Protected Member Functions | |
| virtual tmp< scalarField > | calcNut () const |
| Calculate the turbulent viscosity. | |
| tmp< scalarField > | calcYPlus (const scalarField &magUp) const |
| Calculate yPlus. | |
| void | writeLocalEntries (Ostream &) const |
| Write local wall function variables. | |
| Protected Member Functions inherited from nutWallFunctionFvPatchScalarField | |
| virtual const volVectorField & | U (const turbulenceModel &turb) const |
| Helper to return the velocity field either from the turbulence model (default) or the mesh database. | |
| virtual void | checkType () |
| Check the type of the patch. | |
| void | writeLocalEntries (Ostream &) const |
| Write local wall function variables. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from nutWallFunctionFvPatchScalarField | |
| static const nutWallFunctionFvPatchScalarField & | nutw (const turbulenceModel &turbModel, const label patchi) |
| Return the nut patchField for the given wall patch. | |
| Protected Attributes inherited from nutWallFunctionFvPatchScalarField | |
| word | UName_ |
| Name of velocity field. | |
| wallFunctionCoefficients | wallCoeffs_ |
| Wall-function coefficients. | |
This boundary condition provides a wall function for the turbulent viscosity (i.e. nut) based on velocity (i.e. U) for low- and high-Reynolds number applications.
<patchName>
{
// Mandatory entries
type nutUWallFunction;
// Inherited entries
...
}
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
type | Type name: nutUWallFunction | word | yes | - |
The inherited entries are elaborated in:
correctNut() (called through turbulence->validate) returns a slightly different value every time it is called. See nutUSpaldingWallFunctionFvPatchScalarField.C.Definition at line 94 of file nutUWallFunctionFvPatchScalarField.H.
| nutUWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 220 of file nutUWallFunctionFvPatchScalarField.C.
References nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField(), p, and wallFunctionBlenders::wallFunctionBlenders().
Referenced by atmNutUWallFunctionFvPatchScalarField::atmNutUWallFunctionFvPatchScalarField(), atmNutUWallFunctionFvPatchScalarField::atmNutUWallFunctionFvPatchScalarField(), atmNutUWallFunctionFvPatchScalarField::atmNutUWallFunctionFvPatchScalarField(), atmNutUWallFunctionFvPatchScalarField::atmNutUWallFunctionFvPatchScalarField(), atmNutUWallFunctionFvPatchScalarField::atmNutUWallFunctionFvPatchScalarField(), nutUWallFunctionFvPatchScalarField(), nutUWallFunctionFvPatchScalarField(), nutUWallFunctionFvPatchScalarField(), and TypeName().


| nutUWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 244 of file nutUWallFunctionFvPatchScalarField.C.
References dict, nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField(), p, wallFunctionBlenders::STEPWISE, and wallFunctionBlenders::wallFunctionBlenders().

| nutUWallFunctionFvPatchScalarField | ( | const nutUWallFunctionFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper ) |
Construct by mapping given nutUWallFunctionFvPatchScalarField onto a new patch.
Definition at line 231 of file nutUWallFunctionFvPatchScalarField.C.
References nutUWallFunctionFvPatchScalarField(), nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField(), p, and wallFunctionBlenders::wallFunctionBlenders().

| nutUWallFunctionFvPatchScalarField | ( | const nutUWallFunctionFvPatchScalarField & | sawfpsf | ) |
Construct as copy.
Definition at line 256 of file nutUWallFunctionFvPatchScalarField.C.
References nutUWallFunctionFvPatchScalarField(), nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField(), and wallFunctionBlenders::wallFunctionBlenders().

| nutUWallFunctionFvPatchScalarField | ( | const nutUWallFunctionFvPatchScalarField & | sawfpsf, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 266 of file nutUWallFunctionFvPatchScalarField.C.
References nutUWallFunctionFvPatchScalarField(), nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField(), and wallFunctionBlenders::wallFunctionBlenders().

|
protectedvirtual |
Calculate the turbulent viscosity.
Implements nutWallFunctionFvPatchScalarField.
Reimplemented in atmNutUWallFunctionFvPatchScalarField.
Definition at line 31 of file nutUWallFunctionFvPatchScalarField.C.
References wallFunctionBlenders::blender_, calcYPlus(), e, Foam::exp(), forAll, IOobject::groupName(), Foam::log(), Foam::mag(), magUp, Foam::max(), wallFunctionBlenders::n_, tmp< T >::New(), nutWallFunctionFvPatchScalarField::nutw(), Foam::pow(), Foam::pow4(), turbulenceModel::propertiesName, Foam::tanh(), U, nutWallFunctionFvPatchScalarField::wallCoeffs_, yPlus(), and Foam::Zero.

|
protected |
Calculate yPlus.
Definition at line 157 of file nutUWallFunctionFvPatchScalarField.C.
References forAll, IOobject::groupName(), Foam::log(), Foam::mag(), magUp, Foam::max(), tmp< T >::New(), turbulenceModel::propertiesName, nutWallFunctionFvPatchScalarField::wallCoeffs_, y, yPlus(), and Foam::Zero.
Referenced by calcNut(), and yPlus().


|
protected |
Write local wall function variables.
Definition at line 209 of file nutUWallFunctionFvPatchScalarField.C.
References os(), and wallFunctionBlenders::writeEntries().
Referenced by write().


| TypeName | ( | "nutUWallFunction" | ) |
Runtime type information.
References nutUWallFunctionFvPatchScalarField().

|
inlinevirtual |
Return a clone.
Reimplemented in atmNutUWallFunctionFvPatchScalarField.
Definition at line 181 of file nutUWallFunctionFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
Clone with an internal field reference.
Reimplemented in atmNutUWallFunctionFvPatchScalarField.
Definition at line 189 of file nutUWallFunctionFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
virtual |
Calculate and return the yPlus at the boundary.
Implements nutWallFunctionFvPatchScalarField.
Definition at line 280 of file nutUWallFunctionFvPatchScalarField.C.
References calcYPlus(), forAll, IOobject::groupName(), Foam::mag(), magUp, fvPatchField< Type >::patchInternalField(), turbulenceModel::propertiesName, tmp< T >::ref(), fvPatchField< Type >::snGrad(), Foam::sqrt(), U, nutWallFunctionFvPatchScalarField::wallCoeffs_, y, and yPlus().
Referenced by calcNut(), calcYPlus(), and yPlus().


|
virtual |
Write.
Reimplemented from nutWallFunctionFvPatchScalarField.
Reimplemented in atmNutUWallFunctionFvPatchScalarField.
Definition at line 324 of file nutUWallFunctionFvPatchScalarField.C.
References os(), nutWallFunctionFvPatchScalarField::write(), writeLocalEntries(), and fvPatchField< Type >::writeValueEntry().
