Derived from the forces function object, creates a specialisation to calculate lift and drag forces. More...
#include <forces/forceCoeffs.H>
Derived from the forces function object, creates a specialisation to calculate lift and drag forces.
Definition at line 51 of file forceCoeffs.H.
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.
| |
Protected Member Functions | |
virtual void | writeFileHeader () |
Output file header information.
|
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.
void writeFileHeader | ( | ) | [protected, virtual]
|
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]
|
Write the forces.
Reimplemented from forces.
Definition at line 112 of file forceCoeffs.C.
References forces::calcForcesMoment(), Foam::endl(), Tuple2< Type1, Type2 >::first(), Foam::Info, Pstream::master(), Foam::nl, pDyn(), Tuple2< Type1, Type2 >::second(), and Foam::tab.