This boundary condition provides a turbulent viscosity condition when using wall functions, based on turbulence kinetic energy, for use with surface film models. More...


Protected Member Functions | |
| virtual tmp< scalarField > | calcNut () const |
| Calculate the turbulence viscosity. More... | |
| tmp< scalarField > | calcUTau (const scalarField &magGradU) const |
| Calculate the friction velocity. More... | |
| void | writeLocalEntries (Ostream &) const |
| Write local wall function variables. More... | |
Protected Member Functions inherited from nutkWallFunctionFvPatchScalarField | |
| void | writeLocalEntries (Ostream &) const |
| Write local wall function variables. More... | |
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. More... | |
| virtual void | checkType () |
| Check the type of the patch. More... | |
| void | writeLocalEntries (Ostream &) const |
| Write local wall function variables. More... | |
Protected Attributes | |
| word | filmRegionName_ |
| Name of film region. More... | |
| scalar | B_ |
| B Coefficient. More... | |
| scalar | yPlusCrit_ |
| y+ value for laminar -> turbulent transition More... | |
Protected Attributes inherited from nutWallFunctionFvPatchScalarField | |
| word | UName_ |
| Name of velocity field. More... | |
| wallFunctionCoefficients | wallCoeffs_ |
| Wall-function coefficients. More... | |
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. More... | |
This boundary condition provides a turbulent viscosity condition when using wall functions, based on turbulence kinetic energy, for use with surface film models.
<patchName>
{
// Mandatory entries
type nutkFilmWallFunction;
// Optional entries
filmRegion <word>;
B <scalar>;
yPlusCrit <scalar>;
// Inherited entries
...
}
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
type | Type name: alphatFilmWallFunction | word | yes | - |
filmRegion | Name of film region | word | no | surfaceFilmProperties |
B | Model coefficient | scalar | no | 5.5 |
yPlusCrit | Critical y+ for transition to turbulence | scalar | no | 11.5 |
The inherited entries are elaborated in:
Definition at line 116 of file nutkFilmWallFunctionFvPatchScalarField.H.
| nutkFilmWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 170 of file nutkFilmWallFunctionFvPatchScalarField.C.
| nutkFilmWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 198 of file nutkFilmWallFunctionFvPatchScalarField.C.
| nutkFilmWallFunctionFvPatchScalarField | ( | const nutkFilmWallFunctionFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given nutkFilmWallFunctionFvPatchScalarField onto a new patch.
Definition at line 183 of file nutkFilmWallFunctionFvPatchScalarField.C.
Construct as copy.
Definition at line 215 of file nutkFilmWallFunctionFvPatchScalarField.C.
| nutkFilmWallFunctionFvPatchScalarField | ( | const nutkFilmWallFunctionFvPatchScalarField & | wfpsf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 227 of file nutkFilmWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Calculate the turbulence viscosity.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 124 of file nutkFilmWallFunctionFvPatchScalarField.C.
References nutkFilmWallFunctionFvPatchScalarField::calcUTau(), Foam::constant::atomic::group, IOobject::groupName(), Foam::mag(), Foam::max(), Foam::foamVersion::patch, turbulenceModel::propertiesName, and Foam::sqr().

|
protected |
Calculate the friction velocity.
Definition at line 43 of file nutkFilmWallFunctionFvPatchScalarField.C.
References Foam::exp(), forAll, Foam::constant::atomic::group, IOobject::groupName(), k, Foam::constant::electromagnetic::kappa, Foam::max(), Foam::min(), tmp< T >::New(), Foam::foamVersion::patch, Foam::pow(), Foam::pow025(), turbulenceModel::propertiesName, Foam::sqrt(), uTau, y, yPlus, and Foam::Zero.
Referenced by nutkFilmWallFunctionFvPatchScalarField::calcNut(), and nutkFilmWallFunctionFvPatchScalarField::yPlus().


|
protected |
Write local wall function variables.
Definition at line 152 of file nutkFilmWallFunctionFvPatchScalarField.C.
References os().
Referenced by nutkFilmWallFunctionFvPatchScalarField::write().


| TypeName | ( | "nutkFilmWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 220 of file nutkFilmWallFunctionFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
Clone with an internal field reference.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 229 of file nutkFilmWallFunctionFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
virtual |
Calculate and return the yPlus at the boundary.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 241 of file nutkFilmWallFunctionFvPatchScalarField.C.
References nutkFilmWallFunctionFvPatchScalarField::calcUTau(), Foam::constant::atomic::group, IOobject::groupName(), Foam::mag(), Foam::foamVersion::patch, turbulenceModel::propertiesName, fvPatchField< Type >::snGrad(), and y.

|
virtual |
Write.
Reimplemented from nutkWallFunctionFvPatchScalarField.
Definition at line 265 of file nutkFilmWallFunctionFvPatchScalarField.C.
References os(), nutWallFunctionFvPatchScalarField::write(), nutkFilmWallFunctionFvPatchScalarField::writeLocalEntries(), and fvPatchField< Type >::writeValueEntry().

|
protected |
Name of film region.
Definition at line 127 of file nutkFilmWallFunctionFvPatchScalarField.H.
|
protected |
B Coefficient.
Definition at line 132 of file nutkFilmWallFunctionFvPatchScalarField.H.
|
protected |
y+ value for laminar -> turbulent transition
Definition at line 137 of file nutkFilmWallFunctionFvPatchScalarField.H.