calcMag Class Reference

This function object calculates the magnitude of a field. The operation can be applied to any volume or surface fieldsm and the output is a volume or surface scalar field. More...

Collaboration diagram for calcMag:

List of all members.

Public Member Functions

 TypeName ("calcMag")
 Runtime type information.
 calcMag (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false)
 Construct for given objectRegistry and dictionary.
virtual ~calcMag ()
 Destructor.
virtual const wordname () const
 Return name of the set of calcMag.
virtual void read (const dictionary &)
 Read the calcMag data.
virtual void execute ()
 Execute, currently does nothing.
virtual void end ()
 Execute at the final time-loop, currently does nothing.
virtual void write ()
 Calculate the calcMag and write.
virtual void updateMesh (const mapPolyMesh &)
 Update for changes of mesh.
virtual void movePoints (const polyMesh &)
 Update for changes of mesh.

Detailed Description

This function object calculates the magnitude of a field. The operation can be applied to any volume or surface fieldsm and the output is a volume or surface scalar field.

Source files

Definition at line 65 of file calcMag.H.


Constructor & Destructor Documentation

calcMag ( const word name,
const objectRegistry obr,
const dictionary dict,
const bool  loadFromFiles = false 
)

Construct for given objectRegistry and dictionary.

Allow the possibility to load fields from files

Definition at line 42 of file calcMag.C.

References Foam::endl(), and WarningIn.

Here is the call graph for this function:

~calcMag ( ) [virtual]

Destructor.

Definition at line 78 of file calcMag.C.


Member Function Documentation

TypeName ( "calcMag"  )

Runtime type information.

virtual const word& name ( ) const [inline, virtual]

Return name of the set of calcMag.

Definition at line 133 of file calcMag.H.

void read ( const dictionary dict) [virtual]

Read the calcMag data.

Definition at line 84 of file calcMag.C.

References dictionary::lookup().

Here is the call graph for this function:

void execute ( ) [virtual]

Execute, currently does nothing.

Definition at line 94 of file calcMag.C.

void end ( ) [virtual]

Execute at the final time-loop, currently does nothing.

Definition at line 100 of file calcMag.C.

void write ( ) [virtual]

Calculate the calcMag and write.

Definition at line 106 of file calcMag.C.

References Foam::endl(), and WarningIn.

Here is the call graph for this function:

virtual void updateMesh ( const mapPolyMesh ) [inline, virtual]

Update for changes of mesh.

Definition at line 151 of file calcMag.H.

virtual void movePoints ( const polyMesh ) [inline, virtual]

Update for changes of mesh.

Definition at line 155 of file calcMag.H.


The documentation for this class was generated from the following files:
  • src/postProcessing/functionObjects/fvTools/calcMag/calcMag.H
  • src/postProcessing/functionObjects/fvTools/calcMag/calcMag.C
  • src/postProcessing/functionObjects/fvTools/calcMag/calcMagTemplates.C