This boundary condition provides a wall constraint on the kinematic turbulent thermal conductivity (i.e. alphat
) for atmospheric boundary layer modelling. It assumes a logarithmic distribution of the potential temperature within the first cell.
More...
Public Member Functions | |
TypeName ("atmAlphatkWallFunction") | |
Runtime type information. More... | |
atmAlphatkWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
atmAlphatkWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
atmAlphatkWallFunctionFvPatchScalarField (const atmAlphatkWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
atmAlphatkWallFunctionFvPatchScalarField (const atmAlphatkWallFunctionFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
atmAlphatkWallFunctionFvPatchScalarField (const atmAlphatkWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchScalarField &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Protected Member Functions | |
virtual void | checkType () |
Check the type of the patch. More... | |
Protected Attributes | |
const scalar | Cmu_ |
Empirical model constant. More... | |
const scalar | kappa_ |
von Kármán constant More... | |
autoPtr< Function1< scalar > > | Pr_ |
Molecular Prandtl number. More... | |
autoPtr< PatchFunction1< scalar > > | Prt_ |
Turbulent Prandtl number field. More... | |
autoPtr< PatchFunction1< scalar > > | z0_ |
Surface roughness length [m]. More... | |
Static Protected Attributes | |
static scalar | tolerance_ = 0.01 |
Solution parameters. More... | |
static label | maxIters_ = 10 |
This boundary condition provides a wall constraint on the kinematic turbulent thermal conductivity (i.e. alphat
) for atmospheric boundary layer modelling. It assumes a logarithmic distribution of the potential temperature within the first cell.
alphat | Kinematic turbulent thermal conductivity [m2/s]
<patchName> { // Mandatory entries (unmodifiable) type atmAlphatkWallFunction; // Mandatory entries (runtime modifiable) Pr 0.90; Prt uniform 0.85; z0 uniform 0.001; // Optional entries (unmodifiable) Cmu 0.09; kappa 0.41; // Optional (inherited) entries ... }
where the entries mean:
Property | Description | Type | Reqd | Dflt |
---|---|---|---|---|
type | Type name: atmAlphatkWallFunction | word | yes | - |
Pr | Molecular Prandtl number | Function1<scalar> | yes | - |
Prt | Turbulent Prandtl number | PatchFunction1<scalar> | yes | - |
z0 | Surface roughness length [m] | PatchFunction1<scalar> | yes | - |
Cmu | Empirical model constant | scalar | no | 0.09 |
kappa | von Kármán constant | scalar | no | 0.41 |
The inherited entries are elaborated in:
Definition at line 149 of file atmAlphatkWallFunctionFvPatchScalarField.H.
atmAlphatkWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 68 of file atmAlphatkWallFunctionFvPatchScalarField.C.
Referenced by atmAlphatkWallFunctionFvPatchScalarField::clone().
atmAlphatkWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 106 of file atmAlphatkWallFunctionFvPatchScalarField.C.
atmAlphatkWallFunctionFvPatchScalarField | ( | const atmAlphatkWallFunctionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given atmAlphatkWallFunctionFvPatchScalarField onto a new patch
Definition at line 86 of file atmAlphatkWallFunctionFvPatchScalarField.C.
Construct as copy.
Definition at line 141 of file atmAlphatkWallFunctionFvPatchScalarField.C.
atmAlphatkWallFunctionFvPatchScalarField | ( | const atmAlphatkWallFunctionFvPatchScalarField & | wfpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 158 of file atmAlphatkWallFunctionFvPatchScalarField.C.
|
protectedvirtual |
Check the type of the patch.
Definition at line 50 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and Foam::foamVersion::patch.
TypeName | ( | "atmAlphatkWallFunction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 226 of file atmAlphatkWallFunctionFvPatchScalarField.H.
References atmAlphatkWallFunctionFvPatchScalarField::atmAlphatkWallFunctionFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 243 of file atmAlphatkWallFunctionFvPatchScalarField.H.
References atmAlphatkWallFunctionFvPatchScalarField::atmAlphatkWallFunctionFvPatchScalarField().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 176 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References atmAlphatkWallFunctionFvPatchScalarField::Cmu_, Foam::constant::electromagnetic::e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::constant::atomic::group, IOobject::groupName(), k, atmAlphatkWallFunctionFvPatchScalarField::kappa_, Foam::log(), Foam::max(), Foam::foamVersion::patch, Foam::pow025(), Pr(), atmAlphatkWallFunctionFvPatchScalarField::Pr_, turbulenceModel::propertiesName, Prt(), atmAlphatkWallFunctionFvPatchScalarField::Prt_, Foam::sqrt(), fvPatchField< Type >::updateCoeffs(), y, and atmAlphatkWallFunctionFvPatchScalarField::z0_.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 261 of file atmAlphatkWallFunctionFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 272 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References atmAlphatkWallFunctionFvPatchScalarField::Prt_, and atmAlphatkWallFunctionFvPatchScalarField::z0_.
|
virtual |
Write.
Definition at line 287 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References atmAlphatkWallFunctionFvPatchScalarField::Cmu_, atmAlphatkWallFunctionFvPatchScalarField::kappa_, os(), atmAlphatkWallFunctionFvPatchScalarField::Pr_, atmAlphatkWallFunctionFvPatchScalarField::Prt_, fvPatchField< Type >::write(), and atmAlphatkWallFunctionFvPatchScalarField::z0_.
|
protected |
Empirical model constant.
Definition at line 158 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField::updateCoeffs(), and atmAlphatkWallFunctionFvPatchScalarField::write().
|
protected |
von Kármán constant
Definition at line 161 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField::updateCoeffs(), and atmAlphatkWallFunctionFvPatchScalarField::write().
Molecular Prandtl number.
Definition at line 164 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField::updateCoeffs(), and atmAlphatkWallFunctionFvPatchScalarField::write().
|
protected |
Turbulent Prandtl number field.
Definition at line 167 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField::rmap(), atmAlphatkWallFunctionFvPatchScalarField::updateCoeffs(), and atmAlphatkWallFunctionFvPatchScalarField::write().
|
protected |
Surface roughness length [m].
Definition at line 170 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField::rmap(), atmAlphatkWallFunctionFvPatchScalarField::updateCoeffs(), and atmAlphatkWallFunctionFvPatchScalarField::write().
|
staticprotected |
Solution parameters.
Definition at line 175 of file atmAlphatkWallFunctionFvPatchScalarField.H.
|
staticprotected |
Definition at line 176 of file atmAlphatkWallFunctionFvPatchScalarField.H.