30 inline Foam::Random::type Foam::Random::sample()
43 x_((type(s) << 16) + 0x330E),
44 scalarNormalStored_(false),
59 return scalar(sample())/(M >> 17);
74 for (
direction i = 0; i < pTraits<Type>::nComponents; ++ i)
114 return a + sample() % (b - a);
123 for (
direction i = 0; i < pTraits<Type>::nComponents; ++ i)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
scalar scalarNormal()
Advance the state and return a scalar sample from a normal.
Type sampleNormal()
Advance the state and return a sample of a given type from a.
scalar scalarAB(const scalar a, const scalar b)
Advance the state and return a scalar sample from a uniform.
Type sampleAB(const Type &a, const Type &b)
Advance the state and return a sample of a given type from a.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Type sample01()
Advance the state and return a sample of a given type from a.
Random(const label s)
Construct from a seed.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
scalar scalar01()
Advance the state and return a scalar sample from a uniform.