Base class for particle dispersion models based on RAS turbulence. More...
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... | |
![]() | |
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< volScalarField > | kModel () const |
Return the k field from the turbulence model. More... | |
tmp< volScalarField > | epsilonModel () const |
Return the epsilon field from the turbulence model. More... | |
Protected Attributes | |
const volScalarField * | kPtr_ |
Turbulence k. More... | |
bool | ownK_ |
Take ownership of the k field. More... | |
const volScalarField * | epsilonPtr_ |
Turbulence epsilon. More... | |
bool | ownEpsilon_ |
Take ownership of the epsilon field. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< DispersionModel< CloudType > > | New (const dictionary &dict, CloudType &owner) |
Selector. More... | |
Base class for particle dispersion models based on RAS turbulence.
Definition at line 47 of file DispersionRASModel.H.
DispersionRASModel | ( | const dictionary & | dict, |
CloudType & | owner | ||
) |
Construct from components.
Definition at line 96 of file DispersionRASModel.C.
DispersionRASModel | ( | const DispersionRASModel< CloudType > & | dm | ) |
Construct copy.
Definition at line 111 of file DispersionRASModel.C.
References DispersionRASModel< CloudType >::ownEpsilon_, and DispersionRASModel< CloudType >::ownK_.
|
virtual |
Destructor.
Definition at line 129 of file DispersionRASModel.C.
|
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.
|
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.
TypeName | ( | "dispersionRASModel" | ) |
Runtime type information.
|
pure virtual |
Construct and return a clone.
Implemented in GradientDispersionRAS< CloudType >, and StochasticDispersionRAS< CloudType >.
|
pure virtual |
Update (disperse particles)
Implements DispersionModel< CloudType >.
Implemented in GradientDispersionRAS< CloudType >, and StochasticDispersionRAS< CloudType >.
|
virtual |
Cache carrier fields.
Reimplemented in GradientDispersionRAS< CloudType >.
Definition at line 138 of file DispersionRASModel.C.
References Foam::deleteDemandDrivenData(), tmp::isTmp(), and tmp::ptr().
|
virtual |
Write.
Definition at line 183 of file DispersionRASModel.C.
References Foam::endl(), write(), and Ostream::writeKeyword().
|
protected |
Turbulence k.
Definition at line 58 of file DispersionRASModel.H.
|
mutableprotected |
Take ownership of the k field.
Definition at line 61 of file DispersionRASModel.H.
Referenced by DispersionRASModel< CloudType >::DispersionRASModel().
|
protected |
Turbulence epsilon.
Definition at line 64 of file DispersionRASModel.H.
|
mutableprotected |
Take ownership of the epsilon field.
Definition at line 67 of file DispersionRASModel.H.
Referenced by DispersionRASModel< CloudType >::DispersionRASModel().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.