Public Member Functions | List of all members
normal Class Reference
Inheritance diagram for normal:
Inheritance graph
[legend]
Collaboration diagram for normal:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("normal")
 Runtime type information. More...
 
 normal (const dictionary &dict, cachedRandom &rndGen)
 Construct from components. More...
 
 normal (const normal &p)
 Construct copy. More...
 
virtual autoPtr< distributionModelclone () const
 Construct and return a clone. More...
 
virtual ~normal ()
 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...
 
virtual scalar erfInv (const scalar y) const
 
- Public Member Functions inherited from distributionModel
 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...
 

Additional Inherited Members

- Static Public Member Functions inherited from distributionModel
static autoPtr< distributionModelNew (const dictionary &dict, cachedRandom &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...
 
cachedRandomrndGen_
 Reference to the random number generator. More...
 

Detailed Description

Definition at line 56 of file normal.H.

Constructor & Destructor Documentation

normal ( const dictionary dict,
cachedRandom rndGen 
)

Construct from components.

Definition at line 44 of file normal.C.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Referenced by normal::clone().

Here is the call graph for this function:

Here is the caller graph for this function:

normal ( const normal p)

Construct copy.

Definition at line 74 of file normal.C.

~normal ( )
virtual

Destructor.

Definition at line 87 of file normal.C.

Referenced by normal::clone().

Here is the caller graph for this function:

Member Function Documentation

TypeName ( "normal"  )

Runtime type information.

virtual autoPtr<distributionModel> clone ( ) const
inlinevirtual

Construct and return a clone.

Implements distributionModel.

Definition at line 93 of file normal.H.

References normal::erfInv(), normal::maxValue(), normal::meanValue(), normal::minValue(), normal::normal(), normal::sample(), y, and normal::~normal().

Here is the call graph for this function:

Foam::scalar sample ( ) const
virtual

Sample the distributionModel.

Implements distributionModel.

Definition at line 93 of file normal.C.

References Foam::constant::physicoChemical::b, Foam::erf(), normal::erfInv(), Foam::max(), Foam::min(), distributionModel::rndGen_, cachedRandom::sample01(), x, and y.

Referenced by normal::clone().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar minValue ( ) const
virtual

Return the minimum value.

Implements distributionModel.

Definition at line 111 of file normal.C.

Referenced by normal::clone().

Here is the caller graph for this function:

Foam::scalar maxValue ( ) const
virtual

Return the maximum value.

Implements distributionModel.

Definition at line 117 of file normal.C.

Referenced by normal::clone().

Here is the caller graph for this function:

Foam::scalar meanValue ( ) const
virtual

Return the mean value.

Implements distributionModel.

Definition at line 123 of file normal.C.

Referenced by normal::clone().

Here is the caller graph for this function:

Foam::scalar erfInv ( const scalar  y) const
virtual

Definition at line 129 of file normal.C.

References Foam::constant::universal::h, k, Foam::log(), Foam::constant::mathematical::pi(), Foam::sqrt(), and x.

Referenced by normal::clone(), and normal::sample().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: