Public Member Functions | Protected Attributes | Friends | List of all members
MRFZoneList Class Reference

List container for MRF zomes. More...

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

Public Member Functions

 MRFZoneList (const fvMesh &mesh, const dictionary &dict)
 Constructor. More...
 
 ~MRFZoneList ()
 Destructor. More...
 
bool active (const bool warn=false) const
 Return active status. More...
 
void reset (const dictionary &dict)
 Reset the source list. More...
 
void addAcceleration (const volVectorField &U, volVectorField &ddtU) const
 Add the frame acceleration. More...
 
void addAcceleration (fvVectorMatrix &UEqn) const
 Add the frame acceleration contribution to the momentum equation. More...
 
void addAcceleration (const volScalarField &rho, fvVectorMatrix &UEqn) const
 Add the frame acceleration contribution to the momentum equation. More...
 
tmp< volVectorFieldDDt (const volVectorField &U) const
 Return the frame acceleration. More...
 
tmp< volVectorFieldDDt (const volScalarField &rho, const volVectorField &U) const
 Return the frame acceleration. More...
 
void makeRelative (volVectorField &U) const
 Make the given absolute velocity relative within the MRF region. More...
 
void makeRelative (surfaceScalarField &phi) const
 Make the given absolute flux relative within the MRF region. More...
 
tmp< surfaceScalarFieldrelative (const tmp< surfaceScalarField > &phi) const
 Return the given absolute flux relative within the MRF region. More...
 
tmp< FieldField< fvsPatchField, scalar > > relative (const tmp< FieldField< fvsPatchField, scalar > > &tphi) const
 Return the given absolute boundary flux relative within. More...
 
void makeRelative (const surfaceScalarField &rho, surfaceScalarField &phi) const
 Make the given absolute mass-flux relative within the MRF region. More...
 
void makeAbsolute (volVectorField &U) const
 Make the given relative velocity absolute within the MRF region. More...
 
void makeAbsolute (surfaceScalarField &phi) const
 Make the given relative flux absolute within the MRF region. More...
 
tmp< surfaceScalarFieldabsolute (const tmp< surfaceScalarField > &phi) const
 Return the given relative flux absolute within the MRF region. More...
 
void makeAbsolute (const surfaceScalarField &rho, surfaceScalarField &phi) const
 Make the given relative mass-flux absolute within the MRF region. More...
 
void correctBoundaryVelocity (volVectorField &U) const
 Correct the boundary velocity for the rotation of the MRF region. More...
 
void correctBoundaryFlux (const volVectorField &U, surfaceScalarField &phi) const
 Correct the boundary flux for the rotation of the MRF region. More...
 
bool read (const dictionary &dict)
 Read dictionary. More...
 
bool writeData (Ostream &os) const
 Write data to Ostream. More...
 

Protected Attributes

const fvMeshmesh_
 Reference to the mesh database. More...
 

Friends

Ostreamoperator<< (Ostream &os, const MRFZoneList &models)
 Ostream operator. More...
 

Detailed Description

List container for MRF zomes.

Source files

Definition at line 55 of file MRFZoneList.H.

Constructor & Destructor Documentation

MRFZoneList ( const fvMesh mesh,
const dictionary dict 
)

Constructor.

Definition at line 33 of file MRFZoneList.C.

Destructor.

Definition at line 49 of file MRFZoneList.C.

Member Function Documentation

bool active ( const bool  warn = false) const

Return active status.

Definition at line 55 of file MRFZoneList.C.

References MRFZone::active(), Foam::endl(), forAll, Foam::Info, PtrList< MRFZone >::operator[](), and PtrList< MRFZone >::size().

Here is the call graph for this function:

void reset ( const dictionary dict)

Reset the source list.

Definition at line 72 of file MRFZoneList.C.

References Foam::endl(), forAllConstIter(), Foam::Info, MRFZoneList::mesh_, Foam::name(), and PtrList< MRFZone >::setSize().

Here is the call graph for this function:

void addAcceleration ( const volVectorField U,
volVectorField ddtU 
) const

Add the frame acceleration.

Definition at line 130 of file MRFZoneList.C.

References MRFZone::addCoriolis(), forAll, and PtrList< MRFZone >::operator[]().

Referenced by MRFZoneList::addAcceleration(), and MRFZoneList::writeData().

Here is the call graph for this function:

Here is the caller graph for this function:

void addAcceleration ( fvVectorMatrix UEqn) const

Add the frame acceleration contribution to the momentum equation.

Definition at line 142 of file MRFZoneList.C.

References MRFZoneList::addAcceleration(), MRFZone::addCoriolis(), forAll, and PtrList< MRFZone >::operator[]().

Here is the call graph for this function:

void addAcceleration ( const volScalarField rho,
fvVectorMatrix UEqn 
) const

Add the frame acceleration contribution to the momentum equation.

Definition at line 152 of file MRFZoneList.C.

References MRFZone::addCoriolis(), MRFZoneList::DDt(), forAll, and PtrList< MRFZone >::operator[]().

Here is the call graph for this function:

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

Return the frame acceleration.

Definition at line 165 of file MRFZoneList.C.

References MRFZone::addCoriolis(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimTime, forAll, DimensionedField< Type, GeoMesh >::mesh(), PtrList< MRFZone >::operator[](), and Vector< Cmpt >::zero.

Referenced by MRFZoneList::addAcceleration(), and MRFZoneList::DDt().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tmp< Foam::volVectorField > DDt ( const volScalarField rho,
const volVectorField U 
) const

Return the frame acceleration.

Definition at line 195 of file MRFZoneList.C.

References MRFZoneList::DDt().

Here is the call graph for this function:

void makeRelative ( volVectorField U) const

Make the given absolute velocity relative within the MRF region.

Definition at line 204 of file MRFZoneList.C.

References forAll, MRFZone::makeRelative(), and PtrList< MRFZone >::operator[]().

Referenced by MRFZoneList::relative().

Here is the call graph for this function:

Here is the caller graph for this function:

void makeRelative ( surfaceScalarField phi) const

Make the given absolute flux relative within the MRF region.

Definition at line 213 of file MRFZoneList.C.

References forAll, MRFZone::makeRelative(), PtrList< MRFZone >::operator[](), and MRFZoneList::relative().

Here is the call graph for this function:

Foam::tmp< Foam::surfaceScalarField > relative ( const tmp< surfaceScalarField > &  phi) const

Return the given absolute flux relative within the MRF region.

Definition at line 223 of file MRFZoneList.C.

References MRFZoneList::makeRelative(), and tmp< T >::ptr().

Referenced by MRFZoneList::correctBoundaryFlux(), and MRFZoneList::makeRelative().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tmp< Foam::FieldField< Foam::fvsPatchField, Foam::scalar > > relative ( const tmp< FieldField< fvsPatchField, scalar > > &  tphi) const

Return the given absolute boundary flux relative within.

the MRF region

Definition at line 235 of file MRFZoneList.C.

References forAll, MRFZoneList::makeRelative(), MRFZone::makeRelative(), PtrList< MRFZone >::operator[](), and tmp< T >::ptr().

Here is the call graph for this function:

void makeRelative ( const surfaceScalarField rho,
surfaceScalarField phi 
) const

Make the given absolute mass-flux relative within the MRF region.

Definition at line 251 of file MRFZoneList.C.

References forAll, MRFZone::makeRelative(), and PtrList< MRFZone >::operator[]().

Here is the call graph for this function:

void makeAbsolute ( volVectorField U) const

Make the given relative velocity absolute within the MRF region.

Definition at line 263 of file MRFZoneList.C.

References forAll, MRFZone::makeAbsolute(), and PtrList< MRFZone >::operator[]().

Referenced by MRFZoneList::absolute().

Here is the call graph for this function:

Here is the caller graph for this function:

void makeAbsolute ( surfaceScalarField phi) const

Make the given relative flux absolute within the MRF region.

Definition at line 272 of file MRFZoneList.C.

References MRFZoneList::absolute(), forAll, MRFZone::makeAbsolute(), and PtrList< MRFZone >::operator[]().

Here is the call graph for this function:

Foam::tmp< Foam::surfaceScalarField > absolute ( const tmp< surfaceScalarField > &  phi) const

Return the given relative flux absolute within the MRF region.

Definition at line 282 of file MRFZoneList.C.

References MRFZoneList::makeAbsolute(), and tmp< T >::ptr().

Referenced by MRFZoneList::makeAbsolute().

Here is the call graph for this function:

Here is the caller graph for this function:

void makeAbsolute ( const surfaceScalarField rho,
surfaceScalarField phi 
) const

Make the given relative mass-flux absolute within the MRF region.

Definition at line 293 of file MRFZoneList.C.

References forAll, MRFZone::makeAbsolute(), and PtrList< MRFZone >::operator[]().

Here is the call graph for this function:

void correctBoundaryVelocity ( volVectorField U) const

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

Definition at line 305 of file MRFZoneList.C.

References MRFZoneList::correctBoundaryFlux(), MRFZone::correctBoundaryVelocity(), forAll, and PtrList< MRFZone >::operator[]().

Here is the call graph for this function:

void correctBoundaryFlux ( const volVectorField U,
surfaceScalarField phi 
) const

Correct the boundary flux for the rotation of the MRF region.

Definition at line 315 of file MRFZoneList.C.

References fvMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), forAll, MRFZoneList::mesh_, patchi, MRFZoneList::relative(), and fvMesh::Sf().

Referenced by MRFZoneList::correctBoundaryVelocity().

Here is the call graph for this function:

Here is the caller graph for this function:

bool read ( const dictionary dict)

Read dictionary.

Definition at line 104 of file MRFZoneList.C.

References forAll, MRFZone::name(), PtrList< MRFZone >::operator[](), MRFZone::read(), and dictionary::subDict().

Referenced by IOMRFZoneList::read().

Here is the call graph for this function:

Here is the caller graph for this function:

bool writeData ( Ostream os) const

Write data to Ostream.

Definition at line 117 of file MRFZoneList.C.

References MRFZoneList::addAcceleration(), forAll, IOstream::good(), Foam::nl, PtrList< MRFZone >::operator[](), and MRFZone::writeData().

Here is the call graph for this function:

Friends And Related Function Documentation

Ostream& operator<< ( Ostream os,
const MRFZoneList models 
)
friend

Ostream operator.

Member Data Documentation

const fvMesh& mesh_
protected

Reference to the mesh database.

Definition at line 75 of file MRFZoneList.H.

Referenced by MRFZoneList::correctBoundaryFlux(), and MRFZoneList::reset().


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