33 namespace distributionModels
49 minValue_(distributionModelDict_.template lookup<scalar>(
"minValue")),
50 maxValue_(distributionModelDict_.template lookup<scalar>(
"maxValue")),
51 d_(distributionModelDict_.template lookup<scalar>(
"d")),
52 n_(distributionModelDict_.template lookup<scalar>(
"n"))
65 minValue_(p.minValue_),
66 maxValue_(p.maxValue_),
87 const scalar a = 3/n_ + 1;
88 const scalar P = rndGen_.sample01<scalar>();
91 }
while (d < minValue_ || d > maxValue_);
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual scalar meanValue() const
Return the mean value.
Macros for easy insertion into run-time selection tables.
virtual ~massRosinRammler()
Destructor.
massRosinRammler(const dictionary &dict, Random &rndGen)
Construct from components.
scalar invIncGamma(const scalar a, const scalar P)
Inverse normalised incomplete gamma function.
defineTypeNameAndDebug(exponential, 0)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
A library of runtime-selectable distribution models.
addToRunTimeSelectionTable(distributionModel, exponential, dictionary)
virtual scalar maxValue() const
Return the maximum value.
virtual scalar minValue() const
Return the minimum value.
virtual scalar sample() const
Sample the distributionModel.
Mass-based Rosin-Rammler distributionModel.