47 <<
type() <<
"Distribution: "
48 <<
"Minimum value must be greater than zero." <<
nl
49 <<
"Supplied minValue = " <<
minValue()
56 <<
type() <<
"Distribution: "
57 <<
"Maximum value cannot be smaller than minimum value" <<
nl
66 <<
type() <<
"Distribution: "
67 <<
"Maximum and minimum values are equal to each other" <<
nl
84 distributionModelDict_(
dict),
86 minValue_(distributionModelDict_.getOrDefault<scalar>(
"minValue", GREAT)),
87 maxValue_(distributionModelDict_.getOrDefault<scalar>(
"maxValue", -GREAT))
96 distributionModelDict_(
p.distributionModelDict_),
98 minValue_(
p.minValue_),
99 maxValue_(
p.maxValue_)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A library of runtime-selectable doubly-truncated probability distribution models. Returns random samp...
virtual void check() const
Check that the distribution model is valid.
virtual scalar maxValue() const
Return the maximum of the distribution.
virtual scalar minValue() const
Return the minimum of the distribution.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.