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