Public Member Functions | |
TypeName ("general") | |
Runtime type information. More... | |
general (const dictionary &dict, cachedRandom &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 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... | |
![]() | |
TypeName ("distributionModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, distributionModel, dictionary,(const dictionary &dict, cachedRandom &rndGen),(dict, rndGen)) | |
Declare runtime constructor selection table. More... | |
distributionModel (const word &name, const dictionary &dict, cachedRandom &rndGen) | |
Construct from dictionary. More... | |
distributionModel (const distributionModel &p) | |
Construct copy. More... | |
virtual | ~distributionModel () |
Destructor. More... | |
Private Types | |
typedef VectorSpace< Vector< scalar >, scalar, 2 > | pair |
Private Attributes | |
List< pair > | xy_ |
label | nEntries_ |
scalar | minValue_ |
Min and max values of the distribution. More... | |
scalar | maxValue_ |
scalar | meanValue_ |
List< scalar > | integral_ |
Additional Inherited Members | |
![]() | |
static autoPtr< distributionModel > | New (const dictionary &dict, cachedRandom &rndGen) |
Selector. More... | |
![]() | |
virtual void | check () const |
Check that the distribution model is valid. More... | |
![]() | |
const dictionary | distributionModelDict_ |
Coefficients dictionary. More... | |
cachedRandom & | rndGen_ |
Reference to the random number generator. More... | |
|
private |
general | ( | const dictionary & | dict, |
cachedRandom & | rndGen | ||
) |
Construct from components.
Definition at line 43 of file general.C.
References k, Foam::y0(), and Foam::y1().
Referenced by general::clone().
TypeName | ( | "general" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements distributionModel.
Definition at line 88 of file general.H.
References general::general().
|
virtual |
Sample the distributionModel.
Implements distributionModel.
Definition at line 105 of file general.C.
References Foam::constant::atomic::alpha, k, Foam::mag(), n, p, Foam::sqrt(), x, and y.
|
virtual |
|
virtual |
|
virtual |
|
private |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.