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

div Class Reference

Writes scalar fields corresponding to the divergence of the supplied field (name) for each time. More...

Inheritance diagram for div:
Collaboration diagram for div:

List of all members.


Public Member Functions

 TypeName ("div")
 Runtime type information.
 div ()
 Construct null.
virtual ~div ()

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 writeDivField (const IOobject &header, const fvMesh &mesh, bool &processed)
 Write div fields.

Detailed Description

Writes scalar fields corresponding to the divergence of the supplied field (name) for each time.

Source files

Definition at line 48 of file div.H.


Constructor & Destructor Documentation

div (  ) 

Construct null.

Definition at line 35 of file div.C.

References Foam::calcTypes::addToRunTimeSelectionTable(), and Foam::calcTypes::defineTypeNameAndDebug().

Here is the call graph for this function:

~div (  )  [virtual]

Definition at line 43 of file div.C.


Member Function Documentation

void init (  )  [protected, virtual]

Initialise - typically setting static variables,.

e.g. command line arguments

Reimplemented from calcType.

Definition at line 49 of file div.C.

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

Pre-time loop calculations.

Reimplemented from calcType.

Definition at line 57 of file div.C.

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

Here is the call graph for this function:

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

Time loop calculations.

Reimplemented from calcType.

Definition at line 66 of file div.C.

void writeDivField ( const IOobject &  header,
const fvMesh &  mesh,
bool &  processed 
) [inline, protected]

Write div fields.

Definition at line 20 of file writeDivField.C.

References Foam::fvc::div(), Foam::endl(), IOobject::headerClassName(), Foam::Info, IOobject::name(), IOobject::NO_READ, fvMesh::time(), Time::timeName(), and Ostream::write().

Here is the call graph for this function:

TypeName ( "div"   ) 

Runtime type information.


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