97 #ifndef distributionModels_general_H 98 #define distributionModels_general_H 109 namespace distributionModels
116 Istream&
operator>>(Istream&, distributionModels::general&);
117 Ostream&
operator<<(Ostream&,
const distributionModels::general&);
119 namespace distributionModels
128 public distributionModel
130 typedef VectorSpace<Vector<scalar>, scalar, 2> pair;
144 List<scalar> integral_;
172 const scalar binWidth,
202 virtual scalar
sample()
const;
virtual scalar sample() const
Sample the distribution.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
TypeName("general")
Runtime type information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const word dictName("faMeshDefinition")
virtual autoPtr< distributionModel > clone() const
Construct and return a clone.
virtual ~general()=default
Destructor.
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
void operator=(const general &)=delete
No copy assignment.
virtual scalar meanValue() const
Return the arithmetic mean of the distribution data.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual tmp< scalarField > x() const
Bin boundaries.
virtual tmp< scalarField > y() const
Probabilities.
virtual void writeData(Ostream &os) const
Write data to stream.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
general(const dictionary &dict, Random &rndGen)
Construct from components.
virtual void readData(Istream &os)
Read data from stream.
Particle-size distribution model wherein random samples are drawn from a given arbitrary probability ...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
virtual dictionary writeDict(const word &dictName) const
Write data in dictionary format.
A class for managing temporary objects.
virtual void readDict(const dictionary &dict)
Read data from dictionary.