FreeFOAM The Cross-Platform CFD Toolkit
forceCoeffs Class Reference

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

#include <forces/forceCoeffs.H>


Detailed Description

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

Source files

Definition at line 51 of file forceCoeffs.H.

+ 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 ()
 Destructor.
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.
- Public Member Functions inherited from forces
 TypeName ("forces")
 Runtime type information.
 forces (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false)
 Construct for given objectRegistry and dictionary.
virtual ~forces ()
 Destructor.
virtual const word & name () const
 Return name of the set of forces.
virtual forcesMoments calcForcesMoment () const
 Calculate and return forces and moment.
virtual void updateMesh (const mapPolyMesh &)
 Update for changes of mesh.
virtual void movePoints (const pointField &)
 Update for changes of mesh.

Protected Member Functions

virtual void writeFileHeader ()
 Output file header information.
- Protected Member Functions inherited from forces
void makeFile ()
 If the forces file has not been created create it.
tmp< volSymmTensorField > devRhoReff () const
 Return the effective viscous stress (laminar + turbulent).
tmp< volScalarField > rho () const
 Return rho if rhoName is specified otherwise rhoRef.
scalar rho (const volScalarField &p) const
 Return rhoRef if the pressure field is dynamic, i.e. p/rho.
 forces (const forces &)
 Disallow default bitwise copy construct.
void operator= (const forces &)
 Disallow default bitwise assignment.

Additional Inherited Members

- Public Types inherited from forces
typedef Tuple2< vector, vector > pressureViscous
typedef Tuple2
< pressureViscous,
pressureViscous > 
forcesMoments
- Protected Attributes inherited from forces
word name_
 Name of this set of forces,.
const objectRegistry & obr_
bool active_
 on/off switch
Switch log_
 Switch to send output to Info as well as to file.
labelHashSet patchSet_
 Patches to integrate forces over.
word pName_
 Name of pressure field.
word UName_
 Name of velocity field.
word rhoName_
 Name of density field (optional)
Switch directForceDensity_
 Is the force density being supplied directly?
word fDName_
 The name of the force density (fD) field.
scalar rhoRef_
 Reference density needed for incompressible calculations.
scalar pRef_
 Reference pressure.
vector CofR_
 Centre of rotation.
autoPtr< OFstream > forcesFilePtr_
 Forces/moment file ptr.

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

~forceCoeffs ( )
virtual

Destructor.

Definition at line 63 of file forceCoeffs.C.


Member Function Documentation

void writeFileHeader ( )
protectedvirtual

Output file header information.

Reimplemented from forces.

Definition at line 90 of file forceCoeffs.C.

References Foam::endl(), and Foam::tab.

TypeName ( "forceCoeffs"  )

Runtime type information.

void read ( const dictionary &  dict)
virtual

Read the forces data.

Reimplemented from forces.

Definition at line 69 of file forceCoeffs.C.

References dictionary::lookup(), and forces::read().

void execute ( )
virtual

Execute, currently does nothing.

Reimplemented from forces.

Definition at line 100 of file forceCoeffs.C.

void end ( )
virtual

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

Reimplemented from forces.

Definition at line 106 of file forceCoeffs.C.

void write ( )
virtual

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