Public Member Functions | Protected Member Functions | Protected Attributes
DispersionRASModel< CloudType > Class Template Referenceabstract

Base class for particle dispersion models based on RAS turbulence. More...

Inheritance diagram for DispersionRASModel< CloudType >:
Inheritance graph
[legend]
Collaboration diagram for DispersionRASModel< CloudType >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("dispersionRASModel")
 Runtime type information. More...
 
 DispersionRASModel (const dictionary &dict, CloudType &owner)
 Construct from components. More...
 
 DispersionRASModel (const DispersionRASModel< CloudType > &dm)
 Construct copy. More...
 
virtual autoPtr< DispersionModel< CloudType > > clone () const =0
 Construct and return a clone. More...
 
virtual ~DispersionRASModel ()
 Destructor. More...
 
virtual vector update (const scalar dt, const label cellI, const vector &U, const vector &Uc, vector &UTurb, scalar &tTurb)=0
 Update (disperse particles) More...
 
virtual void cacheFields (const bool store)
 Cache carrier fields. More...
 
virtual void write (Ostream &os) const
 Write. More...
 
- Public Member Functions inherited from DispersionModel< CloudType >
 TypeName ("dispersionModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, DispersionModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
 
 DispersionModel (CloudType &owner)
 Construct null from owner. More...
 
 DispersionModel (const dictionary &dict, CloudType &owner, const word &type)
 Construct from components. More...
 
 DispersionModel (const DispersionModel< CloudType > &dm)
 Construct copy. More...
 
virtual autoPtr< DispersionModel< CloudType > > clone () const=0
 Construct and return a clone. More...
 
virtual ~DispersionModel ()
 Destructor. More...
 

Protected Member Functions

tmp< volScalarFieldkModel () const
 Return the k field from the turbulence model. More...
 
tmp< volScalarFieldepsilonModel () const
 Return the epsilon field from the turbulence model. More...
 

Protected Attributes

const volScalarFieldkPtr_
 Turbulence k. More...
 
bool ownK_
 Take ownership of the k field. More...
 
const volScalarFieldepsilonPtr_
 Turbulence epsilon. More...
 
bool ownEpsilon_
 Take ownership of the epsilon field. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from DispersionModel< CloudType >
static autoPtr< DispersionModel< CloudType > > New (const dictionary &dict, CloudType &owner)
 Selector. More...
 

Detailed Description

template<class CloudType>
class Foam::DispersionRASModel< CloudType >

Base class for particle dispersion models based on RAS turbulence.

Definition at line 47 of file DispersionRASModel.H.

Constructor & Destructor Documentation

◆ DispersionRASModel() [1/2]

DispersionRASModel ( const dictionary dict,
CloudType owner 
)

Construct from components.

Definition at line 96 of file DispersionRASModel.C.

◆ DispersionRASModel() [2/2]

◆ ~DispersionRASModel()

Destructor.

Definition at line 129 of file DispersionRASModel.C.

Member Function Documentation

◆ kModel()

Foam::tmp< Foam::volScalarField > kModel
protected

Return the k field from the turbulence model.

Definition at line 34 of file DispersionRASModel.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, objectRegistry::foundObject(), Foam::constant::atomic::group, turbulenceModel::k(), objectRegistry::lookupObject(), Foam::nl, HashTable::sortedToc(), and U.

Here is the call graph for this function:

◆ epsilonModel()

Foam::tmp< Foam::volScalarField > epsilonModel
protected

Return the epsilon field from the turbulence model.

Definition at line 64 of file DispersionRASModel.C.

References Foam::abort(), turbulenceModel::epsilon(), Foam::FatalError, FatalErrorInFunction, objectRegistry::foundObject(), Foam::constant::atomic::group, objectRegistry::lookupObject(), Foam::nl, HashTable::sortedToc(), and U.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "dispersionRASModel"  )

Runtime type information.

◆ clone()

virtual autoPtr<DispersionModel<CloudType> > clone ( ) const
pure virtual

Construct and return a clone.

Implemented in GradientDispersionRAS< CloudType >, and StochasticDispersionRAS< CloudType >.

◆ update()

virtual vector update ( const scalar  dt,
const label  cellI,
const vector U,
const vector Uc,
vector UTurb,
scalar &  tTurb 
)
pure virtual

◆ cacheFields()

void cacheFields ( const bool  store)
virtual

Cache carrier fields.

Reimplemented in GradientDispersionRAS< CloudType >.

Definition at line 138 of file DispersionRASModel.C.

References Foam::deleteDemandDrivenData(), tmp::isTmp(), and tmp::ptr().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 183 of file DispersionRASModel.C.

References Foam::endl(), write(), and Ostream::writeKeyword().

Here is the call graph for this function:

Field Documentation

◆ kPtr_

const volScalarField* kPtr_
protected

Turbulence k.

Definition at line 58 of file DispersionRASModel.H.

◆ ownK_

bool ownK_
mutableprotected

Take ownership of the k field.

Definition at line 61 of file DispersionRASModel.H.

Referenced by DispersionRASModel< CloudType >::DispersionRASModel().

◆ epsilonPtr_

const volScalarField* epsilonPtr_
protected

Turbulence epsilon.

Definition at line 64 of file DispersionRASModel.H.

◆ ownEpsilon_

bool ownEpsilon_
mutableprotected

Take ownership of the epsilon field.

Definition at line 67 of file DispersionRASModel.H.

Referenced by DispersionRASModel< CloudType >::DispersionRASModel().


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