70#ifndef distributionModels_fixedValue_H
71#define distributionModels_fixedValue_H
87 public distributionModel
126 virtual scalar
sample()
const;
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
distributionModel(const word &name, const dictionary &dict, Random &rndGen)
Construct from dictionary.
Particle-size distribution model wherein samples are given fixed values.
virtual ~fixedValue()=default
Destructor.
virtual autoPtr< distributionModel > clone() const
Construct and return a clone.
TypeName("fixedValue")
Runtime type information.
fixedValue(const dictionary &dict, Random &rndGen)
Construct from components.
virtual scalar sample() const
Sample the distribution.
virtual scalar meanValue() const
Return the theoretical mean of the distribution.
virtual scalar maxValue() const
Return the maximum of the distribution.
void operator=(const fixedValue &)=delete
No copy assignment.
virtual scalar minValue() const
Return the minimum of the distribution.
A namespace for various probability distribution model implementations.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.