Public Member Functions | List of all members
atmBoundaryLayerInletVelocityFvPatchVectorField Class Reference

This boundary condition provides a log-law type ground-normal inlet boundary condition for the streamwise component of wind velocity (i.e. u) for homogeneous, two-dimensional, dry-air, equilibrium and neutral atmospheric boundary layer modelling. More...

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

Public Member Functions

 TypeName ("atmBoundaryLayerInletVelocity")
 
 atmBoundaryLayerInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 
 atmBoundaryLayerInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 
 atmBoundaryLayerInletVelocityFvPatchVectorField (const atmBoundaryLayerInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
virtual tmp< fvPatchVectorFieldclone () const
 
 atmBoundaryLayerInletVelocityFvPatchVectorField (const atmBoundaryLayerInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 
virtual void updateCoeffs ()
 
virtual void autoMap (const fvPatchFieldMapper &)
 
virtual void rmap (const fvPatchVectorField &, 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 streamwise component of wind velocity (i.e. u) for homogeneous, two-dimensional, dry-air, equilibrium and neutral atmospheric boundary layer modelling.

The ground-normal streamwise flow speed profile expression:

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

\[ v = w = 0 \]

where

$ u $ = Ground-normal streamwise flow speed profile [m/s]
$ v $ = Spanwise flow speed [m/s]
$ w $ = Ground-normal flow speed [m/s]
$ u^* $ = Friction velocity [m/s]
$ \kappa $ = von Kármán constant [-]
$ z $ = Ground-normal coordinate component [m]
$ d $ = Ground-normal displacement height [m]
$ z_0 $ = Aerodynamic roughness length [m]

Required fields:

        U   | Velocity                                          [m/s]
Usage
Example of the boundary condition specification:
inlet
{
    // Mandatory entries (unmodifiable)
    type            atmBoundaryLayerInletVelocity;

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

where the entries mean:

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

The inherited entries are elaborated in:

See also
Source files

Definition at line 155 of file atmBoundaryLayerInletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ atmBoundaryLayerInletVelocityFvPatchVectorField() [1/4]

Definition at line 37 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

Referenced by atmBoundaryLayerInletVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ atmBoundaryLayerInletVelocityFvPatchVectorField() [2/4]

Definition at line 49 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

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

Here is the call graph for this function:

◆ atmBoundaryLayerInletVelocityFvPatchVectorField() [3/4]

◆ atmBoundaryLayerInletVelocityFvPatchVectorField() [4/4]

Member Function Documentation

◆ TypeName()

TypeName ( "atmBoundaryLayerInletVelocity"  )

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

virtual tmp<fvPatchVectorField> clone ( const DimensionedField< vector, volMesh > &  iF) const
inlinevirtual

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Definition at line 104 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

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

Here is the call graph for this function:

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

Definition at line 118 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

References atmBoundaryLayer::autoMap().

Here is the call graph for this function:

◆ rmap()

void rmap ( const fvPatchVectorField pvf,
const labelList addr 
)
virtual

Definition at line 128 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

References atmBoundaryLayer::rmap().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Definition at line 142 of file atmBoundaryLayerInletVelocityFvPatchVectorField.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: