Public Member Functions | Private Attributes
rotatingWallVelocityFvPatchVectorField Class Reference

This boundary condition provides a rotational velocity condition. More...

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

Public Member Functions

 TypeName ("rotatingWallVelocity")
 Runtime type information. More...
 
 rotatingWallVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. 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 fvPatchFieldMapper &)
 Construct by mapping given rotatingWallVelocityFvPatchVectorField. More...
 
 rotatingWallVelocityFvPatchVectorField (const rotatingWallVelocityFvPatchVectorField &)
 Construct as copy. More...
 
virtual tmp< fvPatchVectorFieldclone () const
 Construct and return a clone. More...
 
 rotatingWallVelocityFvPatchVectorField (const rotatingWallVelocityFvPatchVectorField &, 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...
 
const vectororigin () const
 Return the origin of the rotation. More...
 
const vectoraxis () const
 Return the axis of the rotation. More...
 
vectororigin ()
 Return non-const access to the origin of the rotation. More...
 
vectoraxis ()
 Return non-const access to the axis of the rotation. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Private Attributes

vector origin_
 Origin of the rotation. More...
 
vector axis_
 Axis of the rotation. More...
 
autoPtr< DataEntry< scalar > > omega_
 Rotational speed. More...
 

Detailed Description

This boundary condition provides a rotational velocity condition.


Patch usage

Property Description Required Default value
origin origin of rotation in Cartesian co-ordinates yes
axis axis of rotation yes
omega angular velocty of the frame [rad/s] yes

Example of the boundary condition specification:

    myPatch
    {
        type            rotatingWallVelocity;
        origin          (0 0 0);
        axis            (0 0 1);
        omega           100;
    }

The omega entry is a DataEntry type, able to describe time varying functions.

See also
Foam::DataEntry Foam::fixedValueFvPatchField
Source files

Definition at line 99 of file rotatingWallVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ rotatingWallVelocityFvPatchVectorField() [1/5]

Construct from patch and internal field.

Definition at line 35 of file rotatingWallVelocityFvPatchVectorField.C.

Referenced by rotatingWallVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ rotatingWallVelocityFvPatchVectorField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 65 of file rotatingWallVelocityFvPatchVectorField.C.

References dict, p, and vectorField().

Here is the call graph for this function:

◆ rotatingWallVelocityFvPatchVectorField() [3/5]

Construct by mapping given rotatingWallVelocityFvPatchVectorField.

onto a new patch

Definition at line 49 of file rotatingWallVelocityFvPatchVectorField.C.

◆ rotatingWallVelocityFvPatchVectorField() [4/5]

Construct as copy.

Definition at line 93 of file rotatingWallVelocityFvPatchVectorField.C.

◆ rotatingWallVelocityFvPatchVectorField() [5/5]

Construct as copy setting internal field reference.

Definition at line 106 of file rotatingWallVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "rotatingWallVelocity"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 155 of file rotatingWallVelocityFvPatchVectorField.H.

References rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField().

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 172 of file rotatingWallVelocityFvPatchVectorField.H.

References rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ origin() [1/2]

const vector& origin ( ) const
inline

Return the origin of the rotation.

Definition at line 189 of file rotatingWallVelocityFvPatchVectorField.H.

References rotatingWallVelocityFvPatchVectorField::origin_.

◆ axis() [1/2]

const vector& axis ( ) const
inline

Return the axis of the rotation.

Definition at line 195 of file rotatingWallVelocityFvPatchVectorField.H.

References rotatingWallVelocityFvPatchVectorField::axis_.

◆ origin() [2/2]

vector& origin ( )
inline

Return non-const access to the origin of the rotation.

Definition at line 201 of file rotatingWallVelocityFvPatchVectorField.H.

References rotatingWallVelocityFvPatchVectorField::origin_.

◆ axis() [2/2]

vector& axis ( )
inline

Return non-const access to the axis of the rotation.

Definition at line 207 of file rotatingWallVelocityFvPatchVectorField.H.

References rotatingWallVelocityFvPatchVectorField::axis_.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 120 of file rotatingWallVelocityFvPatchVectorField.C.

References rotatingWallVelocityFvPatchVectorField::axis_, Foam::mag(), n, rotatingWallVelocityFvPatchVectorField::omega_, Field::operator=(), and rotatingWallVelocityFvPatchVectorField::origin_.

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 145 of file rotatingWallVelocityFvPatchVectorField.C.

References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().

Here is the call graph for this function:

Field Documentation

◆ origin_

vector origin_
private

◆ axis_

vector axis_
private

◆ omega_

autoPtr<DataEntry<scalar> > omega_
private

Rotational speed.

Definition at line 112 of file rotatingWallVelocityFvPatchVectorField.H.

Referenced by rotatingWallVelocityFvPatchVectorField::updateCoeffs().


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