35 template<
class CloudType>
46 template<
class CloudType>
58 template<
class CloudType>
65 template<
class CloudType>
81 const scalar cps = 0.16432;
83 const scalar
k = this->kPtr_->primitiveField()[celli];
85 this->epsilonPtr_->primitiveField()[celli] + rootVSmall;
87 const scalar UrelMag =
mag(
U - Uc - UTurb);
89 const scalar tTurbLoc =
110 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Standard normal distribution. Not selectable.
virtual scalar sample() const
Sample the distribution.
Mesh consisting of general polyhedral cells.
const Vector< label > & solutionD() const
Return the vector of solved-for directions in mesh.
scalar scalar01()
Return a scalar uniformly distributed between zero and one.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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.
dimensionedScalar sin(const dimensionedScalar &ds)
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
tmp< DimensionedField< typename powProduct< Type, r >::type, GeoMesh, Field > > pow(const DimensionedField< Type, GeoMesh, PrimitiveField > &df, typename powProduct< Type, r >::type)
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
dimensionedScalar cos(const dimensionedScalar &ds)
randomGenerator rndGen(653213)