rotatingWallVelocityFvPatchVectorField Class Reference

Condition on velocity for a boundary consisting of a rotating solid of revolution, e.g. cylinder. Calculates a tangential component of velocity from the angular velocity and rotational axis and ensures a zero normal component. More...

Inheritance diagram for rotatingWallVelocityFvPatchVectorField:
Collaboration diagram for rotatingWallVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("rotatingWallVelocity")
 Runtime type information. More...
 
 rotatingWallVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 rotatingWallVelocityFvPatchVectorField (const rotatingWallVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fieldMapper &)
 Construct by mapping given rotatingWallVelocityFvPatchVectorField. More...
 
 rotatingWallVelocityFvPatchVectorField (const rotatingWallVelocityFvPatchVectorField &)=delete
 Disallow copy without setting internal field reference. More...
 
 rotatingWallVelocityFvPatchVectorField (const rotatingWallVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Copy constructor 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 write (Ostream &) const
 Write. More...
 

Detailed Description

Condition on velocity for a boundary consisting of a rotating solid of revolution, e.g. cylinder. Calculates a tangential component of velocity from the angular velocity and rotational axis and ensures a zero normal component.

Usage
Property Description Required Default value
origin origin of rotation in Cartesian co-ordinates yes
axis axis of rotation yes
omega angular velocity of the frame no

Example of the boundary condition specification:

    <patchName>
    {
        type            rotatingWallVelocity;
        origin          (0 0 0);
        axis            (0 0 1);
        omega           100 [rpm];
    }

The omega entry is a Function1 of time, see Foam::Function1s.

See also
Foam::fixedValueFvPatchField Foam::Function1s
Source files

Definition at line 97 of file rotatingWallVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ rotatingWallVelocityFvPatchVectorField() [1/4]

rotatingWallVelocityFvPatchVectorField ( const fvPatch p,
const DimensionedField< vector, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 33 of file rotatingWallVelocityFvPatchVectorField.C.

References dict, DimensionedField< Type, GeoMesh >::dimensions(), p, and rotatingWallVelocityFvPatchVectorField::updateCoeffs().

Referenced by rotatingWallVelocityFvPatchVectorField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rotatingWallVelocityFvPatchVectorField() [2/4]

Construct by mapping given rotatingWallVelocityFvPatchVectorField.

onto a new patch

Definition at line 61 of file rotatingWallVelocityFvPatchVectorField.C.

◆ rotatingWallVelocityFvPatchVectorField() [3/4]

Disallow copy without setting internal field reference.

◆ rotatingWallVelocityFvPatchVectorField() [4/4]

Copy constructor setting internal field reference.

Definition at line 77 of file rotatingWallVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "rotatingWallVelocity"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Definition at line 153 of file rotatingWallVelocityFvPatchVectorField.H.

References rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 93 of file rotatingWallVelocityFvPatchVectorField.C.

References Foam::mag(), n, Field< vector >::operator=(), and dimensioned< Type >::value().

Referenced by rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 117 of file rotatingWallVelocityFvPatchVectorField.C.

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

Here is the call graph for this function:

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