Public Member Functions | List of all members
atmBoundaryLayerInletEpsilonFvPatchScalarField Class Reference

This boundary condition provides a log-law type ground-normal inlet boundary condition for the turbulent kinetic energy dissipation rate (i.e. epsilon) for homogeneous, two-dimensional, dry-air, equilibrium and neutral atmospheric boundary layer modelling. More...

Inheritance diagram for atmBoundaryLayerInletEpsilonFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for atmBoundaryLayerInletEpsilonFvPatchScalarField:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("atmBoundaryLayerInletEpsilon")
 
 atmBoundaryLayerInletEpsilonFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 atmBoundaryLayerInletEpsilonFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 atmBoundaryLayerInletEpsilonFvPatchScalarField (const atmBoundaryLayerInletEpsilonFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 atmBoundaryLayerInletEpsilonFvPatchScalarField (const atmBoundaryLayerInletEpsilonFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
virtual void updateCoeffs ()
 
virtual void autoMap (const fvPatchFieldMapper &)
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 
virtual void write (Ostream &) const
 
- Public Member Functions inherited from atmBoundaryLayer
 atmBoundaryLayer (const Time &time, const polyPatch &pp)
 
 atmBoundaryLayer (const Time &time, const polyPatch &pp, const dictionary &dict)
 
 atmBoundaryLayer (const atmBoundaryLayer &abl, const fvPatch &patch, const fvPatchFieldMapper &mapper)
 
 atmBoundaryLayer (const atmBoundaryLayer &)
 
vector flowDir () const
 
vector zDir () const
 
tmp< scalarFieldUstar (const scalarField &z0) const
 
void autoMap (const fvPatchFieldMapper &)
 
void rmap (const atmBoundaryLayer &, const labelList &)
 
tmp< vectorFieldU (const vectorField &pCf) const
 
tmp< scalarFieldk (const vectorField &pCf) const
 
tmp< scalarFieldepsilon (const vectorField &pCf) const
 
tmp< scalarFieldomega (const vectorField &pCf) const
 
void write (Ostream &) const
 

Additional Inherited Members

- Protected Attributes inherited from atmBoundaryLayer
bool initABL_
 

Detailed Description

This boundary condition provides a log-law type ground-normal inlet boundary condition for the turbulent kinetic energy dissipation rate (i.e. epsilon) for homogeneous, two-dimensional, dry-air, equilibrium and neutral atmospheric boundary layer modelling.

The ground-normal epsilon profile expression:

\[ \epsilon = \frac{(u^*)^3}{\kappa (z - d + z_0)} \sqrt{C_1 \ln \left( \frac{z - d + z_0}{z_0} \right) + C_2} \]

where

$ \epsilon $ = Ground-normal TKE dissipation rate profile [m^2/s^3]
$ u^* $ = Friction velocity [m/s]
$ \kappa $ = von Kármán constant [-]
$ z $ = Ground-normal coordinate component [m]
$ z_0 $ = Aerodynamic roughness length [m]
$ d $ = Ground-normal displacement height [m]
$ C_1 $ = Curve-fitting coefficient for YGCJ profiles [-]
$ C_2 $ = Curve-fitting coefficient for YGCJ profiles [-]

Required fields:

        epsilon   | Turbulent kinetic energy dissipation rate   [m2/s3]
Usage
Example of the boundary condition specification:
inlet
{
    // Mandatory entries (unmodifiable)
    type            atmBoundaryLayerInletEpsilon;

    // Mandatory/Optional (inherited) entries (unmodifiable)
    ...
}

where the entries mean:

Property Description Type Reqd Deflt
type Type name: atmBoundaryLayerInletEpsilon word yes -

The inherited entries are elaborated in:

See also
Source files

Definition at line 152 of file atmBoundaryLayerInletEpsilonFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ atmBoundaryLayerInletEpsilonFvPatchScalarField() [1/4]

Definition at line 38 of file atmBoundaryLayerInletEpsilonFvPatchScalarField.C.

Referenced by atmBoundaryLayerInletEpsilonFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ atmBoundaryLayerInletEpsilonFvPatchScalarField() [2/4]

atmBoundaryLayerInletEpsilonFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Definition at line 50 of file atmBoundaryLayerInletEpsilonFvPatchScalarField.C.

References dict, epsilon, dictionary::getOrDefault(), Field::operator=(), p, and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ atmBoundaryLayerInletEpsilonFvPatchScalarField() [3/4]

◆ atmBoundaryLayerInletEpsilonFvPatchScalarField() [4/4]

Member Function Documentation

◆ TypeName()

TypeName ( "atmBoundaryLayerInletEpsilon"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Definition at line 105 of file atmBoundaryLayerInletEpsilonFvPatchScalarField.C.

References atmBoundaryLayer::epsilon(), and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

Definition at line 119 of file atmBoundaryLayerInletEpsilonFvPatchScalarField.C.

References atmBoundaryLayer::autoMap().

Here is the call graph for this function:

◆ rmap()

void rmap ( const fvPatchScalarField psf,
const labelList addr 
)
virtual

Definition at line 129 of file atmBoundaryLayerInletEpsilonFvPatchScalarField.C.

References atmBoundaryLayer::rmap().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Definition at line 143 of file atmBoundaryLayerInletEpsilonFvPatchScalarField.C.

References os(), atmBoundaryLayer::write(), and fvPatchField::write().

Here is the call graph for this function:

The documentation for this class was generated from the following files: