31 #if INT_MAX != 2147483647 32 # error "INT_MAX != 2147483647" 33 # error "The random number generator may not work!" 172 scalar fac, rsq, v1, v2;
181 }
while (rsq >= 1.0 || rsq == 0.0);
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 log(const dimensionedScalar &ds)
sphericalTensor sphericalTensor01()
sphericalTensor with every component scalar01
label integer(const label lower, const label upper)
Label [lower..upper].
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tensor tensor01()
Tensor with every component scalar01.
scalar osRandomDouble()
Return random double precision (uniform distribution between 0 and 1)
dimensionedScalar sqrt(const dimensionedScalar &ds)
vector position(const vector &, const vector &)
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component, element access using th ii() member function and the inner-product (dot-product) and outer-product operators.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
static const direction nComponents
Number of components in this vector space.
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))
vector vector01()
Vector with every component scalar01.
Random(const label)
Construct given seed.
label osRandomInteger()
Return random integer (uniform distribution between 0 and 2^31)
symmTensor symmTensor01()
symmTensor with every component scalar01
scalar GaussNormal()
Return a normal Gaussian randon number.
const Cmpt & component(const direction) const
void osRandomSeed(const label seed)
Seed random number generator.
scalar scalar01()
Scalar [0..1] (so including 0,1)