GradientDispersionRAS< CloudType > Class Template Reference

The velocity is perturbed in the direction of -grad(k), with a Gaussian random number distribution with variance sigma. where sigma is defined below. More...

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

Public Member Functions

 TypeName ("gradientDispersionRAS")
 Runtime type information. More...
 
 GradientDispersionRAS (const dictionary &dict, CloudType &owner)
 Construct from components. More...
 
 GradientDispersionRAS (const GradientDispersionRAS< CloudType > &dm)
 Construct copy. More...
 
virtual autoPtr< DispersionModel< CloudType > > clone () const
 Construct and return a clone. More...
 
virtual ~GradientDispersionRAS ()
 Destructor. More...
 
virtual void cacheFields (const bool store)
 Cache carrier fields. 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 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...
 

Protected Attributes

const volVectorFieldgradkPtr_
 Gradient of k. More...
 
bool ownGradK_
 Take ownership of the grad(k) 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...
 

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...
 

Detailed Description

template<class CloudType>
class Foam::GradientDispersionRAS< CloudType >

The velocity is perturbed in the direction of -grad(k), with a Gaussian random number distribution with variance sigma. where sigma is defined below.

Definition at line 50 of file GradientDispersionRAS.H.

Constructor & Destructor Documentation

◆ GradientDispersionRAS() [1/2]

GradientDispersionRAS ( const dictionary dict,
CloudType owner 
)

Construct from components.

Definition at line 36 of file GradientDispersionRAS.C.

◆ GradientDispersionRAS() [2/2]

Construct copy.

Definition at line 49 of file GradientDispersionRAS.C.

References GradientDispersionRAS< CloudType >::ownGradK_.

◆ ~GradientDispersionRAS()

~GradientDispersionRAS ( )
virtual

Destructor.

Definition at line 64 of file GradientDispersionRAS.C.

Member Function Documentation

◆ TypeName()

TypeName ( "gradientDispersionRAS"  )

Runtime type information.

◆ clone()

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

Construct and return a clone.

Implements DispersionRASModel< CloudType >.

Definition at line 82 of file GradientDispersionRAS.H.

◆ cacheFields()

void cacheFields ( const bool  store)
virtual

Cache carrier fields.

Reimplemented from DispersionRASModel< CloudType >.

Definition at line 73 of file GradientDispersionRAS.C.

References Foam::deleteDemandDrivenData(), and Foam::fac::grad().

Here is the call graph for this function:

◆ 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 96 of file GradientDispersionRAS.C.

References epsilon, Random::GaussNormal(), k, Foam::mag(), DSMCCloud< ParcelType >::mesh(), Foam::min(), polyMesh::nSolutionD(), Foam::pow(), DSMCCloud< ParcelType >::rndGen(), sigma(), Foam::sqrt(), U, and Foam::Zero.

Here is the call graph for this function:

Member Data Documentation

◆ gradkPtr_

const volVectorField* gradkPtr_
protected

Gradient of k.

Definition at line 61 of file GradientDispersionRAS.H.

◆ ownGradK_

bool ownGradK_
mutableprotected

Take ownership of the grad(k)

Definition at line 64 of file GradientDispersionRAS.H.

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


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