OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

pdf Class Reference

A library of runtime-selectable pdf's. More...

Inheritance diagram for pdf:
Collaboration diagram for pdf:

List of all members.


Public Member Functions

 TypeName ("pdf")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, pdf, dictionary,(const dictionary &dict, Random &rndGen),(dict, rndGen))
 Declare runtime constructor selection table.
 pdf (const dictionary &dict, Random &rndGen)
 Construct from dictionary.
virtual ~pdf ()
 Destructor.
virtual scalar sample () const =0
 Sample the pdf.
virtual scalar minValue () const =0
 Return the minimum value.
virtual scalar maxValue () const =0
 Return the maximum value.

Static Public Member Functions

static autoPtr< pdf > New (const dictionary &dict, Random &rndGen)
 Selector.

Protected Attributes

const dictionary & dict_
Random & rndGen_

Detailed Description

A library of runtime-selectable pdf's.

Returns a sampled value given the expectation (nu) and variance (sigma^2)

Sample of planned pdfs (beta p. 374-375):

The pdf is tabulated in equidistant nPoints, in an interval. These values are integrated to obtain the cumulated pdf, which is then used to change the distribution from unifrom to the actual pdf.

Source files

Definition at line 73 of file pdf.H.


Constructor & Destructor Documentation

pdf ( const dictionary &  dict,
Random &  rndGen 
)

Construct from dictionary.

Definition at line 30 of file pdf.C.

References Foam::defineRunTimeSelectionTable(), and Foam::defineTypeNameAndDebug().

Here is the call graph for this function:

~pdf (  )  [virtual]

Destructor.

Definition at line 39 of file pdf.C.


Member Function Documentation

TypeName ( "pdf"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
pdf  ,
dictionary  ,
(const dictionary &dict, Random &rndGen)  ,
(dict, rndGen)   
)

Declare runtime constructor selection table.

Foam::autoPtr< Foam::pdf > New ( const dictionary &  dict,
Random &  rndGen 
) [static]

Selector.

Definition at line 23 of file newPdf.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, dictionary::lookup(), and Foam::nl.

Here is the call graph for this function:

virtual scalar sample (  )  const [pure virtual]

Sample the pdf.

Implemented in exponential, general, normal, RosinRammler, and uniform.

virtual scalar minValue (  )  const [pure virtual]

Return the minimum value.

Implemented in exponential, general, normal, RosinRammler, and uniform.

virtual scalar maxValue (  )  const [pure virtual]

Return the maximum value.

Implemented in exponential, general, normal, RosinRammler, and uniform.


Member Data Documentation

const dictionary& dict_ [protected]

Definition at line 80 of file pdf.H.

Random& rndGen_ [protected]

Definition at line 82 of file pdf.H.

Referenced by uniform::minValue().


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/pdfs/pdf/pdf.H
  • src/thermophysicalModels/pdfs/pdf/newPdf.C
  • src/thermophysicalModels/pdfs/pdf/pdf.C
Copyright © 2000-2009 OpenCFD Ltd