atmBoundaryLayerInletVelocityFvPatchVectorField Class Reference

This boundary condition specifies a velocity inlet profile appropriate for atmospheric boundary layers (ABL). More...

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

Public Member Functions

 TypeName ("atmBoundaryLayerInletVelocity")
 Runtime type information. More...
 
 atmBoundaryLayerInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. More...
 
 atmBoundaryLayerInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 atmBoundaryLayerInletVelocityFvPatchVectorField (const atmBoundaryLayerInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
virtual tmp< fvPatchVectorFieldclone () const
 Construct and return a clone. More...
 
 atmBoundaryLayerInletVelocityFvPatchVectorField (const atmBoundaryLayerInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const fvPatchVectorField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from atmBoundaryLayer
 atmBoundaryLayer (const Time &time, const polyPatch &pp)
 Construct null from time. More...
 
 atmBoundaryLayer (const Time &time, const polyPatch &pp, const dictionary &dict)
 Construct from the time database and dictionary. More...
 
 atmBoundaryLayer (const atmBoundaryLayer &abl, const fvPatch &patch, const fvPatchFieldMapper &mapper)
 Construct by mapping given atmBoundaryLayer onto a new patch. More...
 
 atmBoundaryLayer (const atmBoundaryLayer &)
 Construct as copy. More...
 
vector flowDir () const
 Return flow direction. More...
 
vector zDir () const
 Return z-direction. More...
 
tmp< scalarFieldUstar (const scalarField &z0) const
 Return friction velocity. More...
 
void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
void rmap (const atmBoundaryLayer &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField. More...
 
tmp< vectorFieldU (const vectorField &p) const
 Return the velocity distribution for the ATM. More...
 
tmp< scalarFieldk (const vectorField &p) const
 Return the turbulent kinetic energy distribution for the ATM. More...
 
tmp< scalarFieldepsilon (const vectorField &p) const
 Return the turbulent dissipation rate distribution for the ATM. More...
 
void write (Ostream &) const
 Write. More...
 

Detailed Description

This boundary condition specifies a velocity inlet profile appropriate for atmospheric boundary layers (ABL).

See Foam::atmBoundaryLayer for details.

Example of the boundary condition specification:

ground
{
    type            atmBoundaryLayerInletVelocity;
    n               (1 0 0);
    z               (0 0 1);
    Uref            10.0;
    Zref            20.0;
    z0              uniform 0.1;
    zGround         uniform 0.0;
}
See also
Foam::atmBoundaryLayer, Foam::atmBoundaryLayerInletKFvPatchScalarField, Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField
Source files

Definition at line 77 of file atmBoundaryLayerInletVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ atmBoundaryLayerInletVelocityFvPatchVectorField() [1/4]

Construct from patch and internal field.

Definition at line 43 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

Referenced by atmBoundaryLayerInletVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ atmBoundaryLayerInletVelocityFvPatchVectorField() [2/4]

Construct from patch, internal field and dictionary.

Definition at line 55 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

References dict, dictionary::found(), dictionary::lookupOrDefault(), Field< vector >::operator=(), p, Foam::foamVersion::patch, U, and Foam::Zero.

Here is the call graph for this function:

◆ atmBoundaryLayerInletVelocityFvPatchVectorField() [3/4]

◆ atmBoundaryLayerInletVelocityFvPatchVectorField() [4/4]

Construct as copy setting internal field reference.

Definition at line 97 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "atmBoundaryLayerInletVelocity"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 117 of file atmBoundaryLayerInletVelocityFvPatchVectorField.H.

References atmBoundaryLayerInletVelocityFvPatchVectorField::atmBoundaryLayerInletVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Construct and return a clone setting internal field reference.

Definition at line 134 of file atmBoundaryLayerInletVelocityFvPatchVectorField.H.

References atmBoundaryLayerInletVelocityFvPatchVectorField::atmBoundaryLayerInletVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 109 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

Map (and resize as needed) from self given a mapping object.

Definition at line 123 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

Reverse map the given fvPatchField onto this fvPatchField.

Definition at line 133 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

References atmBoundaryLayer::rmap().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 147 of file atmBoundaryLayerInletVelocityFvPatchVectorField.C.

References atmBoundaryLayer::write(), fvPatchField< vector >::write(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

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