Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
atmOmegaWallFunctionFvPatchScalarField Class Reference

This boundary condition provides a wall constraint on the specific dissipation rate (i.e. omega) and the turbulent kinetic energy production contribution (i.e. G) for atmospheric boundary layer modelling. More...

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

Public Member Functions

 TypeName ("atmOmegaWallFunction")
 
 atmOmegaWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 atmOmegaWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 atmOmegaWallFunctionFvPatchScalarField (const atmOmegaWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 atmOmegaWallFunctionFvPatchScalarField (const atmOmegaWallFunctionFvPatchScalarField &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 atmOmegaWallFunctionFvPatchScalarField (const atmOmegaWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
virtual ~atmOmegaWallFunctionFvPatchScalarField ()=default
 
virtual void autoMap (const fvPatchFieldMapper &)
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 
virtual void write (Ostream &) const
 
- Public Member Functions inherited from omegaWallFunctionFvPatchScalarField
 TypeName ("omegaWallFunction")
 
 omegaWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 omegaWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 omegaWallFunctionFvPatchScalarField (const omegaWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 omegaWallFunctionFvPatchScalarField (const omegaWallFunctionFvPatchScalarField &)
 
 omegaWallFunctionFvPatchScalarField (const omegaWallFunctionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual ~omegaWallFunctionFvPatchScalarField ()=default
 
scalarFieldG (bool init=false)
 
scalarFieldomega (bool init=false)
 
virtual void updateCoeffs ()
 
virtual void updateWeightedCoeffs (const scalarField &weights)
 
virtual void manipulateMatrix (fvMatrix< scalar > &matrix)
 
virtual void manipulateMatrix (fvMatrix< scalar > &matrix, const scalarField &weights)
 
- Public Member Functions inherited from fixedValueFvPatchField< scalar >
 TypeName ("fixedValue")
 
 fixedValueFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 fixedValueFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const scalar &value)
 
 fixedValueFvPatchField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &, const bool valueRequired=true)
 
 fixedValueFvPatchField (const fixedValueFvPatchField< scalar > &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 fixedValueFvPatchField (const fixedValueFvPatchField< scalar > &)
 
 fixedValueFvPatchField (const fixedValueFvPatchField< scalar > &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchField< scalar > > clone () const
 
virtual bool fixesValue () const
 
virtual bool assignable () const
 
virtual tmp< Field< scalar > > valueInternalCoeffs (const tmp< scalarField > &) const
 
virtual tmp< Field< scalar > > valueBoundaryCoeffs (const tmp< scalarField > &) const
 
virtual tmp< Field< scalar > > gradientInternalCoeffs () const
 
virtual tmp< Field< scalar > > gradientBoundaryCoeffs () const
 
virtual void operator= (const UList< scalar > &)
 
virtual void operator= (const fvPatchField< scalar > &)
 
virtual void operator= (const scalar &)
 
virtual void operator+= (const fvPatchField< scalar > &)
 
virtual void operator+= (const Field< scalar > &)
 
virtual void operator+= (const scalar &)
 
virtual void operator-= (const fvPatchField< scalar > &)
 
virtual void operator-= (const Field< scalar > &)
 
virtual void operator-= (const scalar &)
 
virtual void operator*= (const fvPatchField< scalar > &)
 
virtual void operator*= (const Field< scalar > &)
 
virtual void operator*= (const scalar)
 
virtual void operator/= (const fvPatchField< scalar > &)
 
virtual void operator/= (const Field< scalar > &)
 
virtual void operator/= (const scalar)
 
- Public Member Functions inherited from fvPatchField< scalar >
 TypeName ("fvPatchField")
 
 declareRunTimeSelectionTable (tmp, fvPatchField, patch,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF),(p, iF))
 
 declareRunTimeSelectionTable (tmp, fvPatchField, patchMapper,(const fvPatchField< Type > &ptf, const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const fvPatchFieldMapper &m),(dynamic_cast< const fvPatchFieldType & >(ptf), p, iF, m))
 
 declareRunTimeSelectionTable (tmp, fvPatchField, dictionary,(const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const dictionary &dict),(p, iF, dict))
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Type &value)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const word &patchType)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const Field< Type > &)
 
 fvPatchField (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &, const bool valueRequired=true)
 
 fvPatchField (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 
 fvPatchField (const fvPatchField< Type > &)
 
 fvPatchField (const fvPatchField< Type > &, const DimensionedField< Type, volMesh > &)
 
virtual tmp< fvPatchField< Type > > clone (const DimensionedField< Type, volMesh > &iF) const
 
Foam::tmp< Foam::fvPatchField< Type > > NewCalculatedType (const fvPatch &p)
 
Foam::tmp< Foam::fvPatchField< Type > > NewCalculatedType (const fvPatchField< Type2 > &pf)
 
virtual ~fvPatchField ()=default
 
bool useImplicit () const noexcept
 
bool useImplicit (bool on) noexcept
 
virtual bool coupled () const
 
const objectRegistrydb () const
 
const fvPatchpatch () const
 
const DimensionedField< Type, volMesh > & internalField () const
 
const Field< Type > & primitiveField () const
 
const wordpatchType () const
 
wordpatchType ()
 
bool updated () const
 
bool manipulatedMatrix () const
 
virtual void rmap (const fvPatchField< Type > &, const labelList &)
 
virtual tmp< Field< Type > > snGrad () const
 
virtual tmp< Field< Type > > snGrad (const scalarField &deltaCoeffs) const
 
virtual tmp< Field< Type > > patchInternalField () const
 
virtual void patchInternalField (Field< Type > &) const
 
virtual tmp< Field< Type > > patchNeighbourField () const
 
virtual void initEvaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
 
virtual void evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
 
virtual tmp< Field< Type > > valueInternalCoeffs (const tmp< Field< scalar >> &) const
 
virtual tmp< Field< Type > > valueBoundaryCoeffs (const tmp< Field< scalar >> &) const
 
virtual tmp< Field< Type > > gradientInternalCoeffs (const scalarField &deltaCoeffs) const
 
virtual tmp< Field< Type > > gradientBoundaryCoeffs (const scalarField &deltaCoeffs) const
 
virtual void manipulateMatrix (fvMatrix< Type > &matrix)
 
virtual void manipulateMatrix (fvMatrix< Type > &matrix, const scalarField &weights)
 
virtual void manipulateMatrix (fvMatrix< Type > &matrix, const label iMatrix, const direction cmp)
 
void check (const fvPatchField< Type > &) const
 
virtual void operator= (const UList< Type > &)
 
virtual void operator= (const fvPatchField< Type > &)
 
virtual void operator= (const Type &)
 
virtual void operator+= (const fvPatchField< Type > &)
 
virtual void operator+= (const Field< Type > &)
 
virtual void operator+= (const Type &)
 
virtual void operator-= (const fvPatchField< Type > &)
 
virtual void operator-= (const Field< Type > &)
 
virtual void operator-= (const Type &)
 
virtual void operator== (const fvPatchField< Type > &)
 
virtual void operator== (const Field< Type > &)
 
virtual void operator== (const Type &)
 

Protected Member Functions

virtual void calculate (const turbulenceModel &turbulence, const List< scalar > &cornerWeights, const fvPatch &patch, scalarField &G, scalarField &omega)
 
- Protected Member Functions inherited from omegaWallFunctionFvPatchScalarField
virtual void setMaster ()
 
virtual void createAveragingWeights ()
 
virtual omegaWallFunctionFvPatchScalarFieldomegaPatch (const label patchi)
 
virtual void calculateTurbulenceFields (const turbulenceModel &turbulence, scalarField &G0, scalarField &omega0)
 
virtual label & master ()
 

Protected Attributes

autoPtr< PatchFunction1< scalar > > z0_
 
- Protected Attributes inherited from omegaWallFunctionFvPatchScalarField
bool blended_
 
bool initialised_
 
label master_
 
scalar beta1_
 
scalarField G_
 
scalarField omega_
 
List< List< scalar > > cornerWeights_
 

Additional Inherited Members

- Public Types inherited from fvPatchField< scalar >
typedef fvPatch Patch
 
typedef calculatedFvPatchField< Type > Calculated
 
- Static Public Member Functions inherited from fvPatchField< scalar >
static tmp< fvPatchField< Type > > New (const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
 
static tmp< fvPatchField< Type > > New (const word &, const word &actualPatchType, const fvPatch &, const DimensionedField< Type, volMesh > &)
 
static tmp< fvPatchField< Type > > New (const fvPatchField< Type > &, const fvPatch &, const DimensionedField< Type, volMesh > &, const fvPatchFieldMapper &)
 
static tmp< fvPatchField< Type > > New (const fvPatch &, const DimensionedField< Type, volMesh > &, const dictionary &)
 
static tmp< fvPatchField< Type > > NewCalculatedType (const fvPatch &)
 
static tmp< fvPatchField< Type > > NewCalculatedType (const fvPatchField< Type2 > &)
 
static const wordcalculatedType ()
 
- Static Public Attributes inherited from fvPatchField< scalar >
static int disallowGenericFvPatchField
 
- Static Protected Attributes inherited from omegaWallFunctionFvPatchScalarField
static scalar tolerance_ = 1e-5
 

Detailed Description

This boundary condition provides a wall constraint on the specific dissipation rate (i.e. omega) and the turbulent kinetic energy production contribution (i.e. G) for atmospheric boundary layer modelling.

References:

    Theoretical expressions (tags:PGVB, B):
        Parente, A., Gorlé, C., Van Beeck, J., & Benocci, C. (2011).
        Improved k–ε model and wall function formulation
        for the RANS simulation of ABL flows.
        J. of wind engineering and industrial aerodynamics, 99(4), 267-278.
        DOI:10.1016/j.jweia.2010.12.017

        Bredberg, J. (2000).
        On the wall boundary condition for turbulence models.
        Chalmers University of Technology, Depart. of Thermo and Fluid Dyn.
        Internal Report 00/4. Sweden: Göteborg.

Required fields:

  omega    | Specific dissipation rate    [1/s]
Usage
Example of the boundary condition specification:
<patchName>
{
    // Mandatory entries (unmodifiable)
    type            atmOmegaWallFunction;

    // Mandatory entries (runtime modifiable)
    z0              uniform 0.001;

    // Optional (inherited) entries
    ...
}

where the entries mean:

Property Description Type Reqd Dflt
type Type name: atmOmegaWallFunction word yes -
z0 Surface roughness length [m] PatchFunction1<scalar> yes -

The inherited entries are elaborated in:

See also
Source files

Definition at line 122 of file atmOmegaWallFunctionFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ atmOmegaWallFunctionFvPatchScalarField() [1/5]

atmOmegaWallFunctionFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Definition at line 100 of file atmOmegaWallFunctionFvPatchScalarField.C.

Referenced by atmOmegaWallFunctionFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ atmOmegaWallFunctionFvPatchScalarField() [2/5]

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

Definition at line 126 of file atmOmegaWallFunctionFvPatchScalarField.C.

◆ atmOmegaWallFunctionFvPatchScalarField() [3/5]

atmOmegaWallFunctionFvPatchScalarField ( const atmOmegaWallFunctionFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Definition at line 112 of file atmOmegaWallFunctionFvPatchScalarField.C.

◆ atmOmegaWallFunctionFvPatchScalarField() [4/5]

Definition at line 139 of file atmOmegaWallFunctionFvPatchScalarField.C.

◆ atmOmegaWallFunctionFvPatchScalarField() [5/5]

Definition at line 150 of file atmOmegaWallFunctionFvPatchScalarField.C.

◆ ~atmOmegaWallFunctionFvPatchScalarField()

virtual ~atmOmegaWallFunctionFvPatchScalarField ( )
virtualdefault

Member Function Documentation

◆ calculate()

void calculate ( const turbulenceModel turbulence,
const List< scalar > &  cornerWeights,
const fvPatch patch,
scalarField G,
scalarField omega 
)
protectedvirtual

◆ TypeName()

TypeName ( "atmOmegaWallFunction"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Reimplemented from omegaWallFunctionFvPatchScalarField.

Definition at line 188 of file atmOmegaWallFunctionFvPatchScalarField.H.

References atmOmegaWallFunctionFvPatchScalarField::atmOmegaWallFunctionFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Reimplemented from omegaWallFunctionFvPatchScalarField.

Definition at line 205 of file atmOmegaWallFunctionFvPatchScalarField.H.

References atmOmegaWallFunctionFvPatchScalarField::atmOmegaWallFunctionFvPatchScalarField().

Here is the call graph for this function:

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

Reimplemented from fvPatchField< scalar >.

Definition at line 163 of file atmOmegaWallFunctionFvPatchScalarField.C.

◆ rmap()

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

◆ write()

void write ( Ostream os) const
virtual

Reimplemented from omegaWallFunctionFvPatchScalarField.

Definition at line 188 of file atmOmegaWallFunctionFvPatchScalarField.C.

References os(), and Foam::vtk::write().

Here is the call graph for this function:

Member Data Documentation

◆ z0_

autoPtr<PatchFunction1<scalar> > z0_
protected

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