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

forceCoeffs Class Reference

Derived from the forces function object, creates a specialisation to calculate lift and drag forces. More...

Inheritance diagram for forceCoeffs:
Collaboration diagram for forceCoeffs:

List of all members.


Public Member Functions

 TypeName ("forceCoeffs")
 Runtime type information.
 forceCoeffs (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false)
 Construct for given objectRegistry and dictionary.
virtual ~forceCoeffs ()
virtual void read (const dictionary &)
 Read the forces data.
virtual void execute ()
 Execute, currently does nothing.
virtual void end ()
 Execute at the final time-loop, currently does nothing.
virtual void write ()
 Write the forces.

Protected Member Functions

virtual void writeFileHeader ()
 Output file header information.

Detailed Description

Derived from the forces function object, creates a specialisation to calculate lift and drag forces.

Source files

Definition at line 46 of file forceCoeffs.H.


Constructor & Destructor Documentation

forceCoeffs ( 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 34 of file forceCoeffs.C.

References Foam::defineTypeNameAndDebug().

Here is the call graph for this function:

~forceCoeffs (  )  [virtual]

Definition at line 55 of file forceCoeffs.C.


Member Function Documentation

void writeFileHeader (  )  [protected, virtual]

Output file header information.

Reimplemented from forces.

Definition at line 82 of file forceCoeffs.C.

TypeName ( "forceCoeffs"   ) 

Runtime type information.

void read ( const dictionary dict  )  [virtual]

Read the forces data.

Reimplemented from forces.

Definition at line 61 of file forceCoeffs.C.

void execute (  )  [virtual]

Execute, currently does nothing.

Reimplemented from forces.

Definition at line 92 of file forceCoeffs.C.

References Foam::endl(), forces::forcesFilePtr_, Foam::tab, and autoPtr< T >::valid().

Here is the call graph for this function:

void end (  )  [virtual]

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

Reimplemented from forces.

Definition at line 98 of file forceCoeffs.C.

void write (  )  [virtual]

Write the forces.

Reimplemented from forces.

Definition at line 104 of file forceCoeffs.C.


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