omegaWallFunctionFvPatchScalarField Class Reference

This boundary condition provides a wall constraint on turbulnce specific dissipation, omega for both low and high Reynolds number turbulence models. More...

Inheritance diagram for omegaWallFunctionFvPatchScalarField:
Collaboration diagram for omegaWallFunctionFvPatchScalarField:

Public Member Functions

 TypeName ("omegaWallFunction")
 Runtime type information. More...
 
 omegaWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 omegaWallFunctionFvPatchScalarField (const omegaWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, fvMesh > &, const fieldMapper &)
 Construct by mapping given. More...
 
 omegaWallFunctionFvPatchScalarField (const omegaWallFunctionFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 omegaWallFunctionFvPatchScalarField (const omegaWallFunctionFvPatchScalarField &, const DimensionedField< scalar, fvMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, fvMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual ~omegaWallFunctionFvPatchScalarField ()
 Destructor. More...
 
virtual void map (const fvPatchScalarField &, const fieldMapper &)
 Map the given fvPatchField onto this fvPatchField. More...
 
virtual void reset (const fvPatchScalarField &)
 Reset the fvPatchField to the given fvPatchField. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void manipulateMatrix (fvMatrix< scalar > &matrix)
 Manipulate matrix. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from wallCellWallFunctionFvPatchScalarField
 wallCellWallFunctionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 wallCellWallFunctionFvPatchScalarField (const wallCellWallFunctionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, fvMesh > &, const fieldMapper &)
 Construct by mapping given wallCellWallFunctionFvPatchScalarField. More...
 
 wallCellWallFunctionFvPatchScalarField (const wallCellWallFunctionFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 wallCellWallFunctionFvPatchScalarField (const wallCellWallFunctionFvPatchScalarField &, const DimensionedField< scalar, fvMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual ~wallCellWallFunctionFvPatchScalarField ()
 Destructor. More...
 
virtual void operator= (const UList< Type > &)
 Inherit assignment. More...
 
virtual void operator= (const fvPatchField< Type > &)
 Inherit assignment. More...
 
virtual void operator= (const Type &)
 Inherit assignment. More...
 

Additional Inherited Members

- Protected Member Functions inherited from wallCellWallFunctionFvPatchScalarField
label masterPatchIndex () const
 Return the master patch index. More...
 
const labelListwallCells () const
 Return the wall cell indices. More...
 
const scalarFieldwallCellFraction () const
 Return the wall cell fractions. More...
 
void initMaster ()
 Initialise the master cell indices and fractions, and allocate the. More...
 
tmp< scalarFieldpatchFieldsToWallCellField (const PtrList< scalarField > &pfs) const
 Average a set of patch fields into a wall cell field. More...
 
- Static Protected Member Functions inherited from wallCellWallFunctionFvPatchScalarField
static void patchFieldAddToCellField (const fvPatch &fvp, const scalarField &pf, scalarField &vf)
 Sum values from a patch field into a cell field. More...
 

Detailed Description

This boundary condition provides a wall constraint on turbulnce specific dissipation, omega for both low and high Reynolds number turbulence models.

The near-wall omega may be either blended between the viscous region and logarithmic region values or switched between these values based on the laminar-to-turbulent y+ value derived from kappa and E specified in the corresponding nutWallFunction. Recent tests have shown that the standard switching method provides more accurate results for 10 < y+ < 30 when used with high Reynolds number wall-functions and both methods provide accurate results when used with continuous wall-functions. Based on this the standard switching method is used by default.

Usage
Property Description Required Default value
beta1 Model coefficient no 0.075
blended Blending switch no false

Example of the boundary condition specification:

    <patchName>
    {
        type            omegaWallFunction;
    }
See also
Foam::fixedInternalValueFvPatchField Foam::epsilonWallFunctionFvPatchScalarField
Source files

Definition at line 94 of file omegaWallFunctionFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ omegaWallFunctionFvPatchScalarField() [1/4]

omegaWallFunctionFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, fvMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 206 of file omegaWallFunctionFvPatchScalarField.C.

Referenced by omegaWallFunctionFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ omegaWallFunctionFvPatchScalarField() [2/4]

omegaWallFunctionFvPatchScalarField ( const omegaWallFunctionFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, fvMesh > &  iF,
const fieldMapper mapper 
)

Construct by mapping given.

omegaWallFunctionFvPatchScalarField onto a new patch

Definition at line 221 of file omegaWallFunctionFvPatchScalarField.C.

◆ omegaWallFunctionFvPatchScalarField() [3/4]

Disallow copy without setting internal field reference.

◆ omegaWallFunctionFvPatchScalarField() [4/4]

Copy constructor setting internal field reference.

Definition at line 237 of file omegaWallFunctionFvPatchScalarField.C.

◆ ~omegaWallFunctionFvPatchScalarField()

virtual ~omegaWallFunctionFvPatchScalarField ( )
inlinevirtual

Destructor.

Definition at line 183 of file omegaWallFunctionFvPatchScalarField.H.

Member Function Documentation

◆ TypeName()

TypeName ( "omegaWallFunction"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Reimplemented from wallCellWallFunctionFvPatchScalarField.

Definition at line 170 of file omegaWallFunctionFvPatchScalarField.H.

References omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField().

Here is the call graph for this function:

◆ map()

void map ( const fvPatchScalarField ptf,
const fieldMapper mapper 
)
virtual

Map the given fvPatchField onto this fvPatchField.

Reimplemented from wallCellWallFunctionFvPatchScalarField.

Definition at line 253 of file omegaWallFunctionFvPatchScalarField.C.

References wallCellWallFunctionFvPatchScalarField::map().

Here is the call graph for this function:

◆ reset()

void reset ( const fvPatchScalarField ptf)
virtual

Reset the fvPatchField to the given fvPatchField.

Used for mesh to mesh mapping

Reimplemented from wallCellWallFunctionFvPatchScalarField.

Definition at line 265 of file omegaWallFunctionFvPatchScalarField.C.

References wallCellWallFunctionFvPatchScalarField::reset().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 276 of file omegaWallFunctionFvPatchScalarField.C.

References Foam::operator==(), and fvPatchField< Type >::updateCoeffs().

Here is the call graph for this function:

◆ manipulateMatrix()

void manipulateMatrix ( fvMatrix< scalar > &  matrix)
virtual

Manipulate matrix.

Definition at line 293 of file omegaWallFunctionFvPatchScalarField.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and fvPatchField< Type >::manipulateMatrix().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 316 of file omegaWallFunctionFvPatchScalarField.C.

References fixedValueFvPatchField< Type >::write(), and Foam::writeEntry().

Here is the call graph for this function:

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