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;
FvWallInfoData< WallInfo, label > 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)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
FixedList< scalar, 100 > rrd