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 80 const dictionary&
dict,
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_)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual scalar maxValue() const
Return the maximum of the distribution.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual scalar minValue() const
Return the minimum of the distribution.
distributionModel(const word &name, const dictionary &dict, Random &rndGen)
Construct from dictionary.
virtual void check() const
Check that the distribution model is valid.
errorManip< error > abort(error &err)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
A library of runtime-selectable doubly-truncated probability distribution models. Returns random samp...