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...
#include <atmAlphatkWallFunctionFvPatchScalarField.H>


Public Member Functions | |
| TypeName ("atmAlphatkWallFunction") | |
| Runtime type information. | |
| atmAlphatkWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| atmAlphatkWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| atmAlphatkWallFunctionFvPatchScalarField (const atmAlphatkWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given atmAlphatkWallFunctionFvPatchScalarField onto a new patch. | |
| atmAlphatkWallFunctionFvPatchScalarField (const atmAlphatkWallFunctionFvPatchScalarField &) | |
| Construct as copy. | |
| atmAlphatkWallFunctionFvPatchScalarField (const atmAlphatkWallFunctionFvPatchScalarField &, 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 void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | autoMap (const fvPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. | |
| virtual void | rmap (const fvPatchScalarField &, const labelList &) |
| Reverse map the given fvPatchField onto this fvPatchField. | |
| virtual void | write (Ostream &) const |
| Write. | |
Protected Member Functions | |
| virtual void | checkType () |
| Check the type of the patch. | |
| void | writeLocalEntries (Ostream &) const |
| Write local wall function variables. | |
Protected Attributes | |
| const scalar | Cmu_ |
| Empirical model constant. | |
| const scalar | kappa_ |
| von Kármán constant | |
| autoPtr< Function1< scalar > > | Pr_ |
| Molecular Prandtl number. | |
| autoPtr< PatchFunction1< scalar > > | Prt_ |
| Turbulent Prandtl number field. | |
| autoPtr< PatchFunction1< scalar > > | z0_ |
| Surface roughness length [m]. | |
Static Protected Attributes | |
| static scalar | tolerance_ = 0.01 |
| Solution parameters. | |
| 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.
Required fields:
alphat | Kinematic turbulent thermal conductivity [m2/s]
<patchName>
{
// Mandatory entries
type atmAlphatkWallFunction;
Pr <Function1<scalar>>;
Prt <PatchFunction1<scalar>>;
z0 <PatchFunction1<scalar>>;
// Optional entries
Cmu <scalar>;
kappa <scalar>;
// Inherited entries
...
}
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
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 140 of file atmAlphatkWallFunctionFvPatchScalarField.H.
| atmAlphatkWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 80 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References checkType(), Cmu_, kappa_, p, Pr_, Prt_, and z0_.
Referenced by atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), and TypeName().


| atmAlphatkWallFunctionFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 118 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References checkType(), Cmu_, dict, kappa_, Foam::New(), p, Pr_, Prt_, and z0_.

| 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 98 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References atmAlphatkWallFunctionFvPatchScalarField(), checkType(), clone(), Cmu_, kappa_, p, Pr_, Prt_, and z0_.

| atmAlphatkWallFunctionFvPatchScalarField | ( | const atmAlphatkWallFunctionFvPatchScalarField & | wfpsf | ) |
Construct as copy.
Definition at line 153 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References atmAlphatkWallFunctionFvPatchScalarField(), checkType(), clone(), Cmu_, kappa_, Pr_, Prt_, and z0_.

| atmAlphatkWallFunctionFvPatchScalarField | ( | const atmAlphatkWallFunctionFvPatchScalarField & | wfpsf, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 170 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References atmAlphatkWallFunctionFvPatchScalarField(), checkType(), clone(), Cmu_, kappa_, Pr_, Prt_, and z0_.

|
protectedvirtual |
Check the type of the patch.
Definition at line 41 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::isA(), and Foam::nl.
Referenced by atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), and atmAlphatkWallFunctionFvPatchScalarField().


|
protected |
| TypeName | ( | "atmAlphatkWallFunction" | ) |
Runtime type information.
References atmAlphatkWallFunctionFvPatchScalarField().

|
inlinevirtual |
Return a clone.
Definition at line 257 of file atmAlphatkWallFunctionFvPatchScalarField.H.
References fvPatchField< Type >::Clone().
Referenced by atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), and atmAlphatkWallFunctionFvPatchScalarField().


|
inlinevirtual |
Clone with an internal field reference.
Definition at line 265 of file atmAlphatkWallFunctionFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 190 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References Cmu_, e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, IOobject::groupName(), k, kappa_, Foam::log(), Foam::max(), Foam::pow025(), Pr(), Pr_, turbulenceModel::propertiesName, Prt(), Prt_, Foam::sqrt(), fvPatchField< Type >::updateCoeffs(), y, and z0_.

|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 273 of file atmAlphatkWallFunctionFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 291 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References Prt_, Foam::refCast(), and z0_.

|
virtual |
Write.
Definition at line 313 of file atmAlphatkWallFunctionFvPatchScalarField.C.
References os(), fvPatchField< Type >::write(), writeLocalEntries(), and fvPatchField< Type >::writeValueEntry().

|
protected |
Empirical model constant.
Definition at line 151 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), updateCoeffs(), and writeLocalEntries().
|
protected |
von Kármán constant
Definition at line 156 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), updateCoeffs(), and writeLocalEntries().
Molecular Prandtl number.
Definition at line 161 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), updateCoeffs(), and writeLocalEntries().
|
protected |
Turbulent Prandtl number field.
Definition at line 166 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), autoMap(), rmap(), updateCoeffs(), and writeLocalEntries().
|
protected |
Surface roughness length [m].
Definition at line 171 of file atmAlphatkWallFunctionFvPatchScalarField.H.
Referenced by atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), atmAlphatkWallFunctionFvPatchScalarField(), autoMap(), rmap(), updateCoeffs(), and writeLocalEntries().
|
staticprotected |
Solution parameters.
Definition at line 178 of file atmAlphatkWallFunctionFvPatchScalarField.H.
|
staticprotected |
Definition at line 179 of file atmAlphatkWallFunctionFvPatchScalarField.H.