44 <<
type() <<
": The maximum value is smaller than the minimum "
45 <<
"value:" <<
nl <<
" max = " <<
max() <<
", min = "
56 <<
type() <<
": The minimum value must be greater than "
57 <<
"zero." <<
nl <<
" min = " <<
min()
85 Q_(
dict.lookup<scalar>(
"Q")),
91 <<
name <<
": Size exponent cannot be negative" <<
nl
98 <<
name <<
": Sampling size exponent cannot be negative" <<
nl
135 Info<<
indent <<
"min/average/max value = " <<
min() <<
'/' << mean()
142 const scalar x0 =
min(), x1 =
max(), d = 0.1*(x1 - x0);
148 result[1] = x0*(1 -
sign(x0)*small);
149 result[2] = x0*(1 +
sign(x0)*small);
151 for (
label i = 3; i <
n - 3; ++ i)
153 const scalar
f = scalar(i - 2)/(
n - 5);
155 result[i] = (1 -
f)*x0 +
f*x1;
158 result[
n - 3] = x1*(1 -
sign(x1)*small);
159 result[
n - 2] = x1*(1 +
sign(x1)*small);
160 result[
n - 1] = x1 + d;
A list of keyword definitions, which are a keyword followed by any number of values (e....
Accumulating histogram of values. Specified bin resolution automatic generation of bins.
void report() const
Report.
virtual scalar max() const =0
Return the maximum value.
virtual void validatePositive(const dictionary &dict) const
Validate that the lower bound is positive.
tmp< scalarField > clipPDF(const scalarField &x, const tmp< scalarField > &pdf) const
Clip the PDF values to zero outside the bounds.
const label Q_
Distribution size exponent.
virtual ~distribution()
Destructor.
virtual tmp< scalarField > x(const label n) const
Return coordinates to plot across the range of the distribution.
const label sampleQ_
Sample size exponent.
virtual void validateBounds(const dictionary &dict) const
Validate that the bounds are monotonic.
distribution()
Construct null.
virtual scalar min() const =0
Return the minimum value.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedScalar pos0(const dimensionedScalar &ds)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
dimensionedScalar sign(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
defineTypeNameAndDebug(combustionModel, 0)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
word name(const complex &)
Return a string representation of a complex.
Ostream & indent(Ostream &os)
Indent stream.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.