OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

SRFModel Class Reference

Top level model for single rotating frame
  • Steady state only - no time derivatives included.
More...

Inheritance diagram for SRFModel:
Collaboration diagram for SRFModel:

List of all members.


Public Member Functions

 TypeName ("SRFModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, SRFModel, dictionary,(const volVectorField &Urel),(Urel))
 SRFModel (const word &type, const volVectorField &Urel)
 Construct from components.
virtual ~SRFModel ()
virtual bool read ()
 Read radiationProperties dictionary.
const vectoraxis () const
 Return the axis of rotation.
const dimensionedVectoromega () const
 Return the angular velocity field [rad/s].
tmp< DimensionedField< vector,
volMesh > > 
Fcoriolis () const
 Return the coriolis force.
tmp< DimensionedField< vector,
volMesh > > 
Fcentrifugal () const
 Return the centrifugal force.
tmp< DimensionedField< vector,
volMesh > > 
Su () const
 Source term component for momentum equation.
vectorField velocity (const vectorField &positions) const
 Return velocity vector from positions.
tmp< volVectorFieldU () const
 Return velocity of SRF for complete mesh.
tmp< volVectorFieldUabs () const
 Return absolute velocity for complete mesh.

Static Public Member Functions

static autoPtr< SRFModelNew (const volVectorField &Urel)
 Return a reference to the selected SRF model.

Protected Attributes

const volVectorFieldUrel_
 Reference to the relative velocity field.
const fvMeshmesh_
 Reference to the mesh.
vector axis_
 Axis of rotation.
dictionary SRFModelCoeffs_
 SRF model coeficients dictionary.
dimensionedVector omega_
 Angular velocity of the frame (rad/s).

Detailed Description

Top level model for single rotating frame
  • Steady state only - no time derivatives included.

Source files

Definition at line 58 of file SRFModel.H.


Constructor & Destructor Documentation

SRFModel ( const word type,
const volVectorField Urel 
)

Construct from components.

Definition at line 36 of file SRFModel.C.

~SRFModel (  )  [virtual]

Definition at line 65 of file SRFModel.C.

References Foam::mag().

Here is the call graph for this function:


Member Function Documentation

TypeName ( "SRFModel"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
SRFModel  ,
dictionary  ,
(const volVectorField &Urel)  ,
(Urel)   
)

autoPtr< SRFModel > New ( const volVectorField Urel  )  [static]

Return a reference to the selected SRF model.

Definition at line 33 of file newSRFModel.C.

References TimePaths::constant(), IOobject::db(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, dictionary::lookup(), IOobject::MUST_READ, Foam::nl, IOobject::NO_WRITE, and IOobject::time().

Here is the call graph for this function:

bool read (  )  [virtual]

Read radiationProperties dictionary.

Reimplemented from regIOobject.

Reimplemented in rpm.

Definition at line 71 of file SRFModel.C.

const Foam::vector & axis (  )  const

Return the axis of rotation.

Definition at line 91 of file SRFModel.C.

const Foam::dimensionedVector & omega (  )  const

Return the angular velocity field [rad/s].

Definition at line 97 of file SRFModel.C.

Return the coriolis force.

Definition at line 104 of file SRFModel.C.

References SRFModel::omega_.

Referenced by SRFModel::velocity().

Here is the caller graph for this function:

Foam::tmp< Foam::DimensionedField< Foam::vector, Foam::volMesh > > Fcentrifugal (  )  const

Return the centrifugal force.

Definition at line 125 of file SRFModel.C.

Referenced by SRFModel::velocity().

Here is the caller graph for this function:

Source term component for momentum equation.

Definition at line 146 of file SRFModel.C.

Foam::vectorField velocity ( const vectorField positions  )  const

Return velocity vector from positions.

Definition at line 153 of file SRFModel.C.

References SRFModel::Fcentrifugal(), and SRFModel::Fcoriolis().

Here is the call graph for this function:

Foam::tmp< Foam::volVectorField > U (  )  const

Return velocity of SRF for complete mesh.

Definition at line 161 of file SRFModel.C.

References SRFModel::axis_, and SRFModel::omega_.

Foam::tmp< Foam::volVectorField > Uabs (  )  const

Return absolute velocity for complete mesh.

Definition at line 181 of file SRFModel.C.


Member Data Documentation

const volVectorField& Urel_ [protected]

Reference to the relative velocity field.

Definition at line 68 of file SRFModel.H.

const fvMesh& mesh_ [protected]

Reference to the mesh.

Definition at line 71 of file SRFModel.H.

vector axis_ [protected]

Axis of rotation.

Definition at line 74 of file SRFModel.H.

Referenced by SRFModel::U().

SRF model coeficients dictionary.

Definition at line 77 of file SRFModel.H.

Angular velocity of the frame (rad/s).

Definition at line 80 of file SRFModel.H.

Referenced by SRFModel::Fcoriolis(), and SRFModel::U().


The documentation for this class was generated from the following files:
  • src/finiteVolume/cfdTools/general/SRF/SRFModel/SRFModel/SRFModel.H
  • src/finiteVolume/cfdTools/general/SRF/SRFModel/SRFModel/newSRFModel.C
  • src/finiteVolume/cfdTools/general/SRF/SRFModel/SRFModel/SRFModel.C
Copyright © 2000-2009 OpenCFD Ltd