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

calcType Class Reference

Base class for post-processing calculation functions. More...

Inheritance diagram for calcType:

List of all members.


Public Member Functions

 TypeName ("calcType")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, calcType, dictionary,(),())
 calcType ()
 Construct null.
virtual ~calcType ()
void tryInit ()
 Initialise - typically setting static variables,.
void tryPreCalc (const argList &args, const Time &runTime, const fvMesh &mesh)
 Pre-time loop calculations.
void tryCalc (const argList &args, const Time &runTime, const fvMesh &mesh)
 Time loop calculations.
void tryPostCalc (const argList &args, const Time &runTime, const fvMesh &mesh)
 Post-time loop calculations.

Static Public Member Functions

static autoPtr< calcType > New (const word &calcTypeName)

Protected Member Functions

virtual void init ()
 Initialise - typically setting static variables,.
virtual void preCalc (const argList &args, const Time &runTime, const fvMesh &mesh)
 Pre-time loop calculations.
virtual void calc (const argList &args, const Time &runTime, const fvMesh &mesh)
 Time loop calculations.
virtual void postCalc (const argList &args, const Time &runTime, const fvMesh &mesh)
 Post-time loop calculations.

Detailed Description

Base class for post-processing calculation functions.

Source files

Definition at line 54 of file calcType.H.


Constructor & Destructor Documentation

calcType (  ) 

Construct null.

Definition at line 29 of file calcType.C.

~calcType (  )  [virtual]

Definition at line 35 of file calcType.C.


Member Function Documentation

void init (  )  [protected, virtual]

Initialise - typically setting static variables,.

e.g. command line arguments

Reimplemented in addSubtract, components, div, interpolate, mag, magGrad, magSqr, and randomise.

Definition at line 41 of file calcType.C.

void preCalc ( const argList &  args,
const Time &  runTime,
const fvMesh &  mesh 
) [protected, virtual]

Pre-time loop calculations.

Reimplemented in addSubtract, components, div, interpolate, mag, magGrad, magSqr, and randomise.

Definition at line 48 of file calcType.C.

void calc ( const argList &  args,
const Time &  runTime,
const fvMesh &  mesh 
) [protected, virtual]

Time loop calculations.

Reimplemented in addSubtract, components, div, interpolate, mag, magGrad, magSqr, and randomise.

Definition at line 59 of file calcType.C.

void postCalc ( const argList &  args,
const Time &  runTime,
const fvMesh &  mesh 
) [protected, virtual]

Post-time loop calculations.

Definition at line 70 of file calcType.C.

TypeName ( "calcType"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
calcType  ,
dictionary  ,
()  ,
()   
)

Foam::autoPtr< Foam::calcType > New ( const word &  calcTypeName  )  [static]

Definition at line 23 of file newCalcType.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, Foam::Info, and Foam::nl.

Here is the call graph for this function:

void tryInit (  ) 

Initialise - typically setting static variables,.

e.g. command line arguments

Definition at line 82 of file calcType.C.

void tryPreCalc ( const argList &  args,
const Time &  runTime,
const fvMesh &  mesh 
)

Pre-time loop calculations.

Definition at line 98 of file calcType.C.

void tryCalc ( const argList &  args,
const Time &  runTime,
const fvMesh &  mesh 
)

Time loop calculations.

Definition at line 118 of file calcType.C.

void tryPostCalc ( const argList &  args,
const Time &  runTime,
const fvMesh &  mesh 
)

Post-time loop calculations.

Definition at line 138 of file calcType.C.


The documentation for this class was generated from the following files:
  • src/postProcessing/foamCalcFunctions/calcType/calcType.H
  • src/postProcessing/foamCalcFunctions/calcType/calcType.C
  • src/postProcessing/foamCalcFunctions/calcType/newCalcType.C
Copyright © 2000-2009 OpenCFD Ltd