Go to the documentation of this file.
32 template<
class CloudType>
45 template<
class CloudType>
61 template<
class CloudType>
70 template<
class CloudType>
77 gradkPtr_ =
fvc::grad(*this->kPtr_).ptr();
92 template<
class CloudType>
105 const scalar cps = 0.16432;
107 const scalar
k = this->kPtr_->internalField()[cellI];
109 this->epsilonPtr_->internalField()[cellI] + ROOTVSMALL;
110 const vector& gradk = this->gradkPtr_->internalField()[cellI];
112 const scalar UrelMag =
mag(
U - Uc - UTurb);
114 const scalar tTurbLoc =
123 if (tTurb > tTurbLoc)
128 const vector dir = -gradk/(
mag(gradk) + SMALL);
145 UTurb =
sigma*fac*dir;
151 UTurb = vector::zero;
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
virtual ~GradientDispersionRAS()
Destructor.
virtual void cacheFields(const bool store)
Cache carrier fields.
Template functions to aid in the implementation of demand driven data.
bool ownGradK_
Take ownership of the grad(k)
dimensioned< scalar > mag(const dimensioned< Type > &)
Random & rndGen()
Return refernce to the random object.
void deleteDemandDrivenData(DataPtr &dataPtr)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const fvMesh & mesh() const
Return refernce to the mesh.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const volVectorField * gradkPtr_
Gradient of k.
label nSolutionD() const
Return the number of valid solved-for dimensions in the mesh.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Calculate the gradient of the given field.
label k
Boltzmann constant.
Type GaussNormal()
Return a sample whose components are normally distributed.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
The velocity is perturbed in the direction of -grad(k), with a Gaussian random number distribution wi...
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
GradientDispersionRAS(const dictionary &dict, CloudType &owner)
Construct from components.
virtual vector update(const scalar dt, const label cellI, const vector &U, const vector &Uc, vector &UTurb, scalar &tTurb)
Update (disperse particles)
Base class for particle dispersion models based on RAS turbulence.