Public Member Functions | List of all members
MRFZone Class Reference

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

Public Member Functions

 ClassName ("MRFZone")
 
 MRFZone (const word &name, const fvMesh &mesh, const dictionary &dict, const word &cellZoneName=word::null)
 
autoPtr< MRFZoneclone () const
 
const wordname () const
 
bool active () const
 
const vectororigin () const
 
const vectoraxis () const
 
vector Omega () const
 
void updateMesh (const mapPolyMesh &mpm)
 
void addCoriolis (const volVectorField &U, volVectorField &ddtU) const
 
void addCoriolis (fvVectorMatrix &UEqn, const bool rhs=false) const
 
void addCoriolis (const volScalarField &rho, fvVectorMatrix &UEqn, const bool rhs=false) const
 
void makeRelative (volVectorField &U) const
 
void makeRelative (surfaceScalarField &phi) const
 
void makeRelative (FieldField< fvsPatchField, scalar > &phi) const
 
void makeRelative (Field< scalar > &phi, const label patchi) const
 
void makeRelative (const surfaceScalarField &rho, surfaceScalarField &phi) const
 
void makeAbsolute (volVectorField &U) const
 
void makeAbsolute (surfaceScalarField &phi) const
 
void makeAbsolute (const surfaceScalarField &rho, surfaceScalarField &phi) const
 
void correctBoundaryVelocity (volVectorField &U) const
 
template<class Type >
void zero (GeometricField< Type, fvsPatchField, surfaceMesh > &phi) const
 
void update ()
 
void writeData (Ostream &os) const
 
bool read (const dictionary &dict)
 

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 64 of file MRFZone.H.

Constructor & Destructor Documentation

◆ MRFZone()

MRFZone ( const word name,
const fvMesh mesh,
const dictionary dict,
const word cellZoneName = word::null 
)

Definition at line 233 of file MRFZone.C.

References dict, and Foam::read().

Here is the call graph for this function:

Member Function Documentation

◆ ClassName()

ClassName ( "MRFZone"  )

◆ clone()

autoPtr<MRFZone> clone ( ) const
inline

Definition at line 174 of file MRFZone.H.

References NotImplemented.

◆ name()

const Foam::word & name ( ) const
inline

Definition at line 22 of file MRFZoneI.H.

◆ active()

bool active ( ) const
inline

Definition at line 28 of file MRFZoneI.H.

◆ origin()

const Foam::vector & origin ( ) const
inline

Definition at line 34 of file MRFZoneI.H.

◆ axis()

const Foam::vector & axis ( ) const
inline

Definition at line 40 of file MRFZoneI.H.

◆ Omega()

Foam::vector Omega ( ) const

Definition at line 257 of file MRFZone.C.

◆ updateMesh()

void updateMesh ( const mapPolyMesh mpm)
inline

Definition at line 199 of file MRFZone.H.

◆ addCoriolis() [1/3]

void addCoriolis ( const volVectorField U,
volVectorField ddtU 
) const

Definition at line 264 of file MRFZone.C.

References cells, forAll, GeometricField::primitiveFieldRef(), and U.

Here is the call graph for this function:

◆ addCoriolis() [2/3]

void addCoriolis ( fvVectorMatrix UEqn,
const bool  rhs = false 
) const

Definition at line 288 of file MRFZone.C.

References cells, forAll, fvMatrix::psi(), fvMatrix::source(), U, and UEqn.

Here is the call graph for this function:

◆ addCoriolis() [3/3]

void addCoriolis ( const volScalarField rho,
fvVectorMatrix UEqn,
const bool  rhs = false 
) const

Definition at line 322 of file MRFZone.C.

References cells, forAll, fvMatrix::psi(), rho, fvMatrix::source(), U, and UEqn.

Here is the call graph for this function:

◆ makeRelative() [1/5]

void makeRelative ( volVectorField U) const

Definition at line 359 of file MRFZone.C.

References C::C(), cells, forAll, U, and Foam::Zero.

Here is the call graph for this function:

◆ makeRelative() [2/5]

void makeRelative ( surfaceScalarField phi) const

Definition at line 405 of file MRFZone.C.

References phi.

◆ makeRelative() [3/5]

void makeRelative ( FieldField< fvsPatchField, scalar > &  phi) const

Definition at line 411 of file MRFZone.C.

References phi.

◆ makeRelative() [4/5]

void makeRelative ( Field< scalar > &  phi,
const label  patchi 
) const

Definition at line 417 of file MRFZone.C.

References phi.

◆ makeRelative() [5/5]

void makeRelative ( const surfaceScalarField rho,
surfaceScalarField phi 
) const

Definition at line 424 of file MRFZone.C.

References phi, and rho.

◆ makeAbsolute() [1/3]

void makeAbsolute ( volVectorField U) const

Definition at line 433 of file MRFZone.C.

References C::C(), cells, forAll, and U.

Here is the call graph for this function:

◆ makeAbsolute() [2/3]

void makeAbsolute ( surfaceScalarField phi) const

Definition at line 478 of file MRFZone.C.

References phi.

◆ makeAbsolute() [3/3]

void makeAbsolute ( const surfaceScalarField rho,
surfaceScalarField phi 
) const

Definition at line 485 of file MRFZone.C.

References phi, and rho.

◆ correctBoundaryVelocity()

void correctBoundaryVelocity ( volVectorField U) const

Definition at line 494 of file MRFZone.C.

References forAll, and U.

◆ zero()

void zero ( GeometricField< Type, fvsPatchField, surfaceMesh > &  phi) const

Definition at line 207 of file MRFZoneTemplates.C.

References GeometricField::boundaryFieldRef(), forAll, phi, GeometricField::primitiveFieldRef(), and Foam::Zero.

Here is the call graph for this function:

◆ update()

void update ( )

Definition at line 607 of file MRFZone.C.

◆ writeData()

void writeData ( Ostream os) const

Definition at line 524 of file MRFZone.C.

References Ostream::beginBlock(), Ostream::endBlock(), Foam::nl, os(), and Ostream::writeEntry().

Here is the call graph for this function:

◆ read()

bool read ( const dictionary dict)

Definition at line 544 of file MRFZone.C.

References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, word::null, dictionary::readIfPresent(), and Foam::reduce().

Here is the call graph for this function:

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