Go to the documentation of this file.
87 #ifndef distributionModels_binned_H
88 #define distributionModels_binned_H
102 namespace distributionModels
108 Istream&
operator>>(Istream&, distributionModels::binned&);
109 Ostream&
operator<<(Ostream&,
const distributionModels::binned&);
111 namespace distributionModels
120 public distributionModel
122 typedef VectorSpace<Vector<scalar>, scalar, 2> pair;
144 static const char*
header;
157 const scalar binWidth,
181 virtual scalar
sample()
const;
virtual void readDict(const dictionary &dict)
Read data from dictionary.
virtual void writeData(Ostream &os) const
Write data to stream.
A class for handling words, derived from Foam::string.
TypeName("binned")
Runtime type information.
const word dictName("faMeshDefinition")
virtual void readData(Istream &os)
Read data from stream.
Particle-size distribution model wherein random samples are drawn from a given discrete set of (bin,...
Istream & operator>>(Istream &, directionInfo &)
A library of runtime-selectable doubly-truncated probability distribution models. Returns random samp...
virtual scalar meanValue() const
Return the arithmetic mean of the distribution data.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual scalar sample() const
Sample the distribution.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual ~binned()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
static const char * header
binned(const dictionary &dict, Random &rndGen)
Construct from dictionary.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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 dictionary writeDict(const word &dictName) const
Write data in dictionary format.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void operator=(const binned &)=delete
No copy assignment.