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

MRFZone Class Reference

MRF zone definition based on cell zone and parameters obtained from a control dictionary constructed from the given stream. More...

Collaboration diagram for MRFZone:

List of all members.


Classes

class  iNew
 Return a pointer to a new MRFZone created on freestore. More...

Public Member Functions

 ClassName ("MRFZone")
 MRFZone (const fvMesh &mesh, Istream &is)
 Construct from fvMesh and Istream.
autoPtr< MRFZoneclone () const
 Return clone.
void updateMesh (const mapPolyMesh &mpm)
 Update the mesh corresponding to given map.
void addCoriolis (fvVectorMatrix &UEqn) const
 Add the Coriolis force contribution to the momentum equation.
void addCoriolis (const volScalarField &rho, fvVectorMatrix &UEqn) const
 Add the Coriolis force contribution to the momentum equation.
void relativeVelocity (volVectorField &U) const
 Make the given absolute velocity relative within the MRF region.
void relativeFlux (surfaceScalarField &phi) const
 Make the given absolute flux relative within the MRF region.
void absoluteFlux (surfaceScalarField &phi) const
 Make the given relative flux absolute within the MRF region.
void correctBoundaryVelocity (volVectorField &U) const
 Correct the boundary velocity for the roation of the MRF region.

Friends

Ostreamoperator<< (Ostream &os, const MRFZone &)

Detailed Description

MRF zone definition based on cell zone and parameters obtained from a control dictionary constructed from the given stream.

The rotation of the MRF region is defined by an origin and axis of rotation and an angular speed.

Source files

Definition at line 59 of file MRFZone.H.


Constructor & Destructor Documentation

MRFZone ( const fvMesh mesh,
Istream is 
)

Construct from fvMesh and Istream.

Definition at line 221 of file MRFZone.C.


Member Function Documentation

ClassName ( "MRFZone"   ) 

autoPtr<MRFZone> clone (  )  const [inline]

Return clone.

Definition at line 113 of file MRFZone.H.

void updateMesh ( const mapPolyMesh mpm  )  [inline]

Update the mesh corresponding to given map.

Definition at line 144 of file MRFZone.H.

void addCoriolis ( fvVectorMatrix UEqn  )  const

Add the Coriolis force contribution to the momentum equation.

Definition at line 285 of file MRFZone.C.

Referenced by MRFZones::addCoriolis(), and MRFZones::relativeVelocity().

Here is the caller graph for this function:

void addCoriolis ( const volScalarField rho,
fvVectorMatrix UEqn 
) const

Add the Coriolis force contribution to the momentum equation.

Definition at line 307 of file MRFZone.C.

void relativeVelocity ( volVectorField U  )  const

Make the given absolute velocity relative within the MRF region.

Definition at line 331 of file MRFZone.C.

Referenced by MRFZones::relativeFlux().

Here is the caller graph for this function:

void relativeFlux ( surfaceScalarField phi  )  const

Make the given absolute flux relative within the MRF region.

Definition at line 369 of file MRFZone.C.

Referenced by MRFZones::absoluteFlux().

Here is the caller graph for this function:

void absoluteFlux ( surfaceScalarField phi  )  const

Make the given relative flux absolute within the MRF region.

Definition at line 410 of file MRFZone.C.

Referenced by MRFZones::correctBoundaryVelocity().

Here is the caller graph for this function:

void correctBoundaryVelocity ( volVectorField U  )  const

Correct the boundary velocity for the roation of the MRF region.

Definition at line 453 of file MRFZone.C.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream os,
const MRFZone  
) [friend]

Definition at line 171 of file MRFZone.H.


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