34 template<
class CloudType>
45 template<
class CloudType>
57 template<
class CloudType>
64 template<
class CloudType>
78 const scalar cps = 0.16432;
80 const scalar
k = this->kPtr_->primitiveField()[celli];
82 this->epsilonPtr_->primitiveField()[celli] + rootVSmall;
84 const scalar UrelMag =
mag(
U - Uc - UTurb);
86 const scalar tTurbLoc =
107 const scalar a =
sqrt(1 -
sqr(u));
Templated base class for dsmc cloud.
Base class for particle dispersion models based on RAS turbulence.
The velocity is perturbed in random direction, with a Gaussian random number distribution with varian...
virtual ~StochasticDispersionRAS()
Destructor.
StochasticDispersionRAS(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)
A list of keyword definitions, which are a keyword followed by any number of values (e....
Standard normal distribution. Not selectable.
virtual scalar sample() const
Sample the distribution.
scalar scalar01()
Return a scalar uniformly distributed between zero and one.
const scalar twoPi(2 *pi)
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sin(const dimensionedScalar &ds)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar cos(const dimensionedScalar &ds)
randomGenerator rndGen(653213)