FreeFOAM The Cross-Platform CFD Toolkit
magSqr Class Reference

Calculates and writes the magnitude-sqaured of a field for each time. More...

#include <foamCalcFunctions/magSqr.H>


Detailed Description

Calculates and writes the magnitude-sqaured of a field for each time.

Source files

Definition at line 52 of file magSqr.H.

+ Inheritance diagram for magSqr:
+ Collaboration diagram for magSqr:

List of all members.

Public Member Functions

 TypeName ("magSqr")
 Runtime type information.
 magSqr ()
 Construct null.
virtual ~magSqr ()
- Public Member Functions inherited from calcType
 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.

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.
template<class Type >
void writeMagSqrField (const IOobject &header, const fvMesh &mesh, bool &processed)
 Write component fields.
- Protected Member Functions inherited from calcType
virtual void postCalc (const argList &args, const Time &runTime, const fvMesh &mesh)
 Post-time loop calculations.

Additional Inherited Members

- Static Public Member Functions inherited from calcType
static autoPtr< calcTypeNew (const word &calcTypeName)

Constructor & Destructor Documentation

magSqr ( )

Construct null.

Definition at line 43 of file magSqr.C.

~magSqr ( )
virtual

Definition at line 51 of file magSqr.C.


Member Function Documentation

void init ( )
protectedvirtual

Initialise - typically setting static variables,.

e.g. command line arguments

Reimplemented from calcType.

Definition at line 57 of file magSqr.C.

References LList< LListBase, T >::append(), and argList::validArgs.

void preCalc ( const argList args,
const Time runTime,
const fvMesh mesh 
)
protectedvirtual

Pre-time loop calculations.

Reimplemented from calcType.

Definition at line 65 of file magSqr.C.

void calc ( const argList args,
const Time runTime,
const fvMesh mesh 
)
protectedvirtual

Time loop calculations.

Reimplemented from calcType.

Definition at line 74 of file magSqr.C.

References argList::additionalArgs(), Foam::endl(), Foam::exit(), Foam::FatalError, Foam::Info, mesh, IOobject::MUST_READ, Foam::nl, and Time::timeName().

void writeMagSqrField ( const IOobject header,
const fvMesh mesh,
bool &  processed 
)
protected
TypeName ( "magSqr"  )

Runtime type information.


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