4 scalar factorGamma = 1.;
5 scalar delta = rs/factorGamma;
7 scalar minValue =
min(d/2.0, 0.04*rs);
8 scalar maxValue = rs*4.0;
12 if (maxValue - minValue < small)
19 FixedList<scalar, 100>
rrd;
21 scalar probFactorMin =
exp(-
pow(minValue/delta, nExp));
22 scalar probFactorMax =
exp(-
pow(maxValue/delta, nExp));
27 scalar xx = minValue + range*n/100;
28 rrd[
n] = (probFactorMin -
exp(-
pow(xx/delta, nExp)))*probFactor;
33 scalar random =
rndGen.sample01<scalar>();
35 while (!found && (n<100))
45 rNew = minValue + range*(n - 0.5)/100.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 exp(const dimensionedScalar &ds)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
FixedList< scalar, 100 > rrd