general distribution model More...
Public Member Functions | |
TypeName ("general") | |
Runtime type information. More... | |
general (const dictionary &dict, Random &rndGen) | |
Construct from components. More... | |
general (const UList< scalar > &sampleData, const scalar binWidth, Random &rndGen) | |
Construct from components. More... | |
general (const general &p) | |
Construct copy. More... | |
virtual autoPtr< distributionModel > | clone () const |
Construct and return a clone. More... | |
virtual | ~general () |
Destructor. More... | |
virtual tmp< Field< scalar > > | x () const |
Bin boundaries. More... | |
virtual tmp< Field< scalar > > | y () const |
Probabilities. More... | |
virtual scalar | sample () const |
Sample the distributionModel. More... | |
virtual scalar | minValue () const |
Return the minimum value. More... | |
virtual scalar | maxValue () const |
Return the maximum value. More... | |
virtual scalar | meanValue () const |
Return the mean value. More... | |
virtual void | writeData (Ostream &os) const |
Write data to stream. More... | |
virtual void | readData (Istream &os) |
Read data from stream. More... | |
virtual dictionary | writeDict (const word &dictName) const |
Write data in dictionary format. More... | |
virtual void | readDict (const dictionary &dict) |
Read data from dictionary. More... | |
Public Member Functions inherited from distributionModel | |
TypeName ("distributionModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, distributionModel, dictionary,(const dictionary &dict, Random &rndGen),(dict, rndGen)) | |
Declare runtime constructor selection table. More... | |
distributionModel (const word &name, const dictionary &dict, Random &rndGen) | |
Construct from dictionary. More... | |
distributionModel (const distributionModel &p) | |
Construct copy. More... | |
virtual | ~distributionModel () |
Destructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from distributionModel | |
static autoPtr< distributionModel > | New (const dictionary &dict, Random &rndGen) |
Selector. More... | |
Protected Member Functions inherited from distributionModel | |
virtual void | check () const |
Check that the distribution model is valid. More... | |
Protected Attributes inherited from distributionModel | |
const dictionary | distributionModelDict_ |
Coefficients dictionary. More... | |
Random & | rndGen_ |
Reference to the random number generator. More... | |
general distribution model
general | ( | const dictionary & | dict, |
Random & | rndGen | ||
) |
Construct from components.
Definition at line 82 of file general.C.
Referenced by general::clone().
Construct from components.
Definition at line 99 of file general.C.
References Foam::endl(), forAll, Foam::max(), maxValue, Foam::min(), minValue, Foam::nl, and WarningInFunction.
TypeName | ( | "general" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements distributionModel.
Definition at line 115 of file general.H.
References general::general().
|
virtual |
Bin boundaries.
Definition at line 279 of file general.C.
References forAll, and tmp< T >::ref().
|
virtual |
Probabilities.
Definition at line 293 of file general.C.
References forAll, and tmp< T >::ref().
|
virtual |
Sample the distributionModel.
Implements distributionModel.
Definition at line 170 of file general.C.
References Foam::constant::atomic::alpha, k, Foam::mag(), n, p, Foam::sqrt(), x, and y.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Write data in dictionary format.
Definition at line 248 of file general.C.
References dict, dictName(), x, and y.
Referenced by InjectedParticleDistributionInjection< CloudType >::info().
|
virtual |