Stochastic return-to-isotropy model. More...
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... | |
![]() | |
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 autoPtr< IsotropyModel< CloudType > > | clone () const=0 |
Construct and return a clone. More... | |
virtual | ~IsotropyModel () |
Destructor. More... | |
Private Member Functions | |
scalar | sampleGauss () |
Sample a gaussian distribution using the Box-Muller method. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< IsotropyModel< CloudType > > | New (const dictionary &dict, CloudType &owner) |
Selector. More... | |
![]() | |
autoPtr< TimeScaleModel > | timeScaleModel_ |
Time scale model. More... | |
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.
Reference:
"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
Definition at line 67 of file Stochastic.H.
Stochastic | ( | const dictionary & | dict, |
CloudType & | owner | ||
) |
Construct from components.
Definition at line 32 of file Stochastic.C.
Stochastic | ( | const Stochastic< CloudType > & | cm | ) |
Construct copy.
Definition at line 43 of file Stochastic.C.
|
virtual |
Destructor.
Definition at line 54 of file Stochastic.C.
|
private |
Sample a gaussian distribution using the Box-Muller method.
Definition at line 61 of file Stochastic.C.
References f(), Foam::log(), rndGen(), DSMCCloud< ParcelType >::rndGen(), Foam::sqrt(), x, and y.
TypeName | ( | "stochastic" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 93 of file Stochastic.H.
|
virtual |
Member Functions.
Calculate velocities
Implements IsotropyModel< CloudType >.
Definition at line 97 of file Stochastic.C.
References AveragingMethod::add(), AveragingMethod::average(), dict, Foam::exp(), forAllIter, AveragingMethod::interpolate(), Foam::magSqr(), Foam::max(), mesh, DSMCCloud< ParcelType >::mesh(), Foam::name(), p, rndGen(), DSMCCloud< ParcelType >::rndGen(), Foam::sqrt(), timeName, and x.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.