StochasticDispersionRAS< CloudType > Class Template Reference

The velocity is perturbed in random direction, with a Gaussian random number distribution with variance sigma. where sigma is defined below. More...

Inheritance diagram for StochasticDispersionRAS< CloudType >:
[legend]
Collaboration diagram for StochasticDispersionRAS< CloudType >:
[legend]

Public Member Functions

 TypeName ("stochasticDispersionRAS")
 Runtime type information. More...
 
 StochasticDispersionRAS (const dictionary &dict, CloudType &owner)
 Construct from components. More...
 
 StochasticDispersionRAS (const StochasticDispersionRAS< CloudType > &dm)
 Construct copy. More...
 
virtual autoPtr< DispersionModel< CloudType > > clone () const
 Construct and return a clone. More...
 
virtual ~StochasticDispersionRAS ()
 Destructor. More...
 
virtual vector update (const scalar dt, const label celli, const vector &U, const vector &Uc, vector &UTurb, scalar &tTurb)
 Update (disperse particles) More...
 
- Public Member Functions inherited from DispersionRASModel< CloudType >
 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 ~DispersionRASModel ()
 Destructor. 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 ~DispersionModel ()
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from DispersionModel< CloudType >
static autoPtr< DispersionModel< CloudType > > New (const dictionary &dict, CloudType &owner)
 Selector. More...
 
- Protected Member Functions inherited from DispersionRASModel< CloudType >
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 inherited from DispersionRASModel< CloudType >
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...
 

Detailed Description

template<class CloudType>
class Foam::StochasticDispersionRAS< CloudType >

The velocity is perturbed in random direction, with a Gaussian random number distribution with variance sigma. where sigma is defined below.

Definition at line 50 of file StochasticDispersionRAS.H.

Constructor & Destructor Documentation

◆ StochasticDispersionRAS() [1/2]

StochasticDispersionRAS ( const dictionary dict,
CloudType owner 
)

Construct from components.

Definition at line 37 of file StochasticDispersionRAS.C.

◆ StochasticDispersionRAS() [2/2]

Construct copy.

Definition at line 48 of file StochasticDispersionRAS.C.

◆ ~StochasticDispersionRAS()

Destructor.

Definition at line 59 of file StochasticDispersionRAS.C.

Member Function Documentation

◆ TypeName()

TypeName ( "stochasticDispersionRAS"  )

Runtime type information.

◆ clone()

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

Construct and return a clone.

Implements DispersionRASModel< CloudType >.

Definition at line 69 of file StochasticDispersionRAS.H.

◆ update()

Foam::vector update ( const scalar  dt,
const label  celli,
const vector U,
const vector Uc,
vector UTurb,
scalar &  tTurb 
)
virtual

Update (disperse particles)

Implements DispersionRASModel< CloudType >.

Definition at line 67 of file StochasticDispersionRAS.C.

References Foam::cos(), epsilon, Random::GaussNormal(), k, Foam::mag(), Foam::min(), Foam::pow(), DSMCCloud< ParcelType >::rndGen(), Random::sample01(), sigma(), Foam::sin(), Foam::sqr(), Foam::sqrt(), Foam::constant::mathematical::twoPi(), U, and Foam::Zero.

Here is the call graph for this function:

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