33 namespace distributions
51 value_(
dict.lookup<scalar>(
"value"))
103 const scalar d = 0.1*
mag(value_);
108 result[0] = value_ - d;
109 result[1] = value_*(1 -
sign(value_)*rootVSmall);
111 result[3] = value_*(1 +
sign(value_)*rootVSmall);
112 result[4] = value_ + d;
124 result[2] = 1/rootVSmall;
Macros for easy insertion into run-time selection tables.
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.
Distribution which always takes a specified fixed value.
virtual scalar min() const
Return the minimum value.
virtual scalar sample() const
Sample the distribution.
virtual tmp< scalarField > PDF(const scalarField &x) const
Return the distribution probability density function.
virtual ~fixedValue()
Destructor.
virtual tmp< scalarField > x(const label n) const
Return coordinates to plot across the range of the distribution.
fixedValue(const dictionary &dict, Random &rndGen, const label sampleQ)
Construct from a dictionary.
virtual scalar max() const
Return the maximum value.
virtual scalar mean() const
Return the mean value.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
defineTypeNameAndDebug(exponential, 0)
addToRunTimeSelectionTable(distribution, exponential, 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.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensioned< scalar > mag(const dimensioned< Type > &)
static const label labelMax