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. | |
![]() | |
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. | |
![]() | |
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 | |
![]() | |
typedef Tuple2< vector, vector > | pressureViscous |
typedef Tuple2 < pressureViscous, pressureViscous > | forcesMoments |
![]() | |
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. |
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.
|
virtual |
Destructor.
Definition at line 63 of file forceCoeffs.C.
|
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.
|
virtual |
Read the forces data.
Reimplemented from forces.
Definition at line 69 of file forceCoeffs.C.
References dictionary::lookup(), and forces::read().
|
virtual |
Execute, currently does nothing.
Reimplemented from forces.
Definition at line 100 of file forceCoeffs.C.
|
virtual |
Execute at the final time-loop, currently does nothing.
Reimplemented from forces.
Definition at line 106 of file forceCoeffs.C.
|
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.