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
96 distributionModelDict_(
p.distributionModelDict_),
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...
const dictionary distributionModelDict_
Coefficients dictionary.
virtual void check() const
Check that the distribution model is valid.
Random & rndGen_
Reference to the random number generator.
virtual scalar maxValue() const
Return the maximum of the distribution.
scalar minValue_
Minimum of the distribution.
scalar maxValue_
Maximum of the distribution.
distributionModel(const word &name, const dictionary &dict, Random &rndGen)
Construct from dictionary.
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)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
constexpr char nl
The newline '\n' character (0x0a).
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.