Go to the documentation of this file.
55 #ifndef distributionModel_H
56 #define distributionModel_H
88 virtual void check()
const;
143 virtual scalar
sample()
const = 0;
146 virtual scalar
minValue()
const = 0;
149 virtual scalar
maxValue()
const = 0;
Random & rndGen_
Reference to the random number generator.
virtual void check() const
Check that the distribution model is valid.
virtual autoPtr< distributionModel > clone() const =0
Construct and return a clone.
A class for handling words, derived from Foam::string.
TypeName("distributionModel")
Runtime type information.
A library of runtime-selectable distribution models.
virtual scalar meanValue() const =0
Return the maximum value.
virtual scalar maxValue() const =0
Return the maximum value.
word name(const complex &c)
Return string representation of complex.
distributionModel(const word &name, const dictionary &dict, Random &rndGen)
Construct from dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
declareRunTimeSelectionTable(autoPtr, distributionModel, dictionary,(const dictionary &dict, Random &rndGen),(dict, rndGen))
Declare runtime constructor selection table.
static autoPtr< distributionModel > New(const dictionary &dict, Random &rndGen)
Selector.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual scalar sample() const =0
Sample the distributionModel.
const dictionary distributionModelDict_
Coefficients dictionary.
virtual scalar minValue() const =0
Return the minimum value.
virtual ~distributionModel()
Destructor.