Go to the documentation of this file.
38 #ifndef distributionModels_general_H
39 #define distributionModels_general_H
55 namespace distributionModels
61 Istream&
operator>>(Istream&, distributionModels::general&);
62 Ostream&
operator<<(Ostream&,
const distributionModels::general&);
64 namespace distributionModels
108 const scalar binWidth,
135 virtual scalar
sample()
const;
A class for handling words, derived from Foam::string.
virtual tmp< Field< scalar > > x() const
Bin boundaries.
virtual ~general()
Destructor.
virtual scalar meanValue() const
Return the mean value.
virtual scalar minValue() const
Return the minimum value.
A class for managing temporary objects.
const word dictName("blockMeshDict")
Istream & operator>>(Istream &, directionInfo &)
A library of runtime-selectable distribution models.
general distribution model
virtual tmp< Field< scalar > > y() const
Probabilities.
virtual scalar sample() const
Sample the distributionModel.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
General relative velocity model.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual void readDict(const dictionary &dict)
Read data from dictionary.
TypeName("general")
Runtime type information.
virtual dictionary writeDict(const word &dictName) const
Write data in dictionary format.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
general(const dictionary &dict, Random &rndGen)
Construct from components.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual scalar maxValue() const
Return the maximum value.
virtual autoPtr< distributionModel > clone() const
Construct and return a clone.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual void readData(Istream &os)
Read data from stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void writeData(Ostream &os) const
Write data to stream.