Stochastic< CloudType > Class Template Reference

Stochastic return-to-isotropy model. More...

Inheritance diagram for Stochastic< CloudType >:
Collaboration diagram for Stochastic< CloudType >:

Public Member Functions

 TypeName ("stochastic")
 Runtime type information. More...
 Stochastic (const dictionary &dict, CloudType &owner)
 Construct from components. More...
 Stochastic (const Stochastic< CloudType > &cm)
 Construct copy. More...
virtual autoPtr< IsotropyModel< CloudType > > clone () const
 Construct and return a clone. More...
virtual ~Stochastic ()
 Destructor. More...
virtual void calculate ()
 Member Functions. More...
- Public Member Functions inherited from IsotropyModel< CloudType >
 TypeName ("isotropyModel")
 Runtime type information. More...
 declareRunTimeSelectionTable (autoPtr, IsotropyModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
 Declare runtime constructor selection table. More...
 IsotropyModel (CloudType &owner)
 Construct null from owner. More...
 IsotropyModel (const dictionary &dict, CloudType &owner, const word &type)
 Construct from components. More...
 IsotropyModel (const IsotropyModel< CloudType > &cm)
 Construct a copy. More...
virtual ~IsotropyModel ()
 Destructor. More...

Additional Inherited Members

- Static Public Member Functions inherited from IsotropyModel< CloudType >
static autoPtr< IsotropyModel< CloudType > > New (const dictionary &dict, CloudType &owner)
 Selector. More...
- Protected Attributes inherited from IsotropyModel< CloudType >
autoPtr< TimeScaleModeltimeScaleModel_
 Time scale model. More...

Detailed Description

template<class CloudType>
class Foam::IsotropyModels::Stochastic< CloudType >

Stochastic return-to-isotropy model.

Particle velocities are modified by sampling a gaussian-plus-delta distribution, which depends on a time-scale. This randomises some particle velocities whilst leaving others unchanged. The lower the value of the time-scale, the greater the proportion of particle velocities affected.

A correction step is performed at the end to ensure that the model conserves both momentum and granular temperature.


    "Inclusion of collisional return-to-isotropy in the MP-PIC method"
    P O'Rourke and D Snider
    Chemical Engineering Science
    Volume 80, Issue 0, Pages 39-54, December 2012
Source files

Definition at line 72 of file Stochastic.H.

Constructor & Destructor Documentation

◆ Stochastic() [1/2]

Stochastic ( const dictionary dict,
CloudType owner 

Construct from components.

Definition at line 35 of file Stochastic.C.

◆ Stochastic() [2/2]

Stochastic ( const Stochastic< CloudType > &  cm)

Construct copy.

Definition at line 46 of file Stochastic.C.

◆ ~Stochastic()

~Stochastic ( )


Definition at line 57 of file Stochastic.C.

Member Function Documentation

◆ TypeName()

TypeName ( "stochastic"  )

Runtime type information.

◆ clone()

virtual autoPtr<IsotropyModel<CloudType> > clone ( ) const

Construct and return a clone.

Implements IsotropyModel< CloudType >.

Definition at line 98 of file Stochastic.H.

◆ calculate()

void calculate ( )

Member Functions.

Calculate velocities

Implements IsotropyModel< CloudType >.

Definition at line 100 of file Stochastic.C.

References AveragingMethod< Type >::add(), AveragingMethod< Type >::average(), dict, Foam::exp(), AveragingMethod< Type >::interpolate(), Foam::magSqr(), Foam::max(), mesh, DSMCCloud< ParcelType >::mesh(), Foam::name(), p, rndGen, DSMCCloud< ParcelType >::rndGen(), Foam::sqrt(), timeName, and x.

Here is the call graph for this function:

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