forces Class Reference
Calculates the
forces and moments by integrating the pressure and skin-friction
forces over a given list of patches.
More...
List of all members.
|
Classes |
| class | sumOp |
| | Sum operation class to accumulate the pressure, viscous forces and moments. More...
|
Public Types |
| typedef Tuple2< vector, vector > | pressureViscous |
typedef Tuple2
< pressureViscous,
pressureViscous > | forcesMoments |
Public Member Functions |
| | 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 () |
| virtual const word & | name () const |
| | Return name of the set of forces.
|
| 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.
|
| 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 |
| void | makeFile () |
| | If the forces file has not been created create it.
|
| tmp< volSymmTensorField > | devRhoReff () const |
| | Return the effective viscous stress (laminar + turbulent).
|
| 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.
|
| virtual void | writeFileHeader () |
| | Output file header information.
|
Protected Attributes |
| 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.
|
| 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.
|
| vector | CofR_ |
| | Centre of rotation.
|
| autoPtr< OFstream > | forcesFilePtr_ |
| | Forces/moment file ptr.
|
Detailed Description
Calculates the
forces and moments by integrating the pressure and skin-friction
forces over a given list of patches.
Member function calcForcesMoment()calculates and returns the forces and moments.
Member function forces::write() calls calcForcesMoment() and writes the forces and moments into the file <timeDir>/forces.dat
- Source files
-
Definition at line 63 of file forces.H.
Member Typedef Documentation
Constructor & Destructor Documentation
Disallow default bitwise copy construct.
Member Function Documentation
| void makeFile |
( |
|
) |
[protected] |
If the forces file has not been created create it.
Definition at line 242 of file forces.C.
Return rhoRef if the pressure field is dynamic, i.e. p/rho.
otherwise return 1
Definition at line 115 of file forces.C.
| void operator= |
( |
const forces & |
|
) |
[protected] |
Disallow default bitwise assignment.
| void writeFileHeader |
( |
|
) |
[protected, virtual] |
Runtime type information.
| virtual const word& name |
( |
|
) |
const [inline, virtual] |
| void execute |
( |
|
) |
[virtual] |
Execute at the final time-loop, currently does nothing.
Reimplemented in forceCoeffs.
Definition at line 299 of file forces.C.
| virtual void updateMesh |
( |
const mapPolyMesh & |
|
) |
[inline, virtual] |
Update for changes of mesh.
Definition at line 222 of file forces.H.
| virtual void movePoints |
( |
const pointField & |
|
) |
[inline, virtual] |
Update for changes of mesh.
Definition at line 226 of file forces.H.
Member Data Documentation
Switch to send output to Info as well as to file.
Definition at line 118 of file forces.H.
Name of pressure field.
Definition at line 126 of file forces.H.
Name of velocity field.
Definition at line 129 of file forces.H.
Is the force density being supplied directly?
Definition at line 132 of file forces.H.
The name of the force density (fD) field.
Definition at line 135 of file forces.H.
Centre of rotation.
Definition at line 141 of file forces.H.
The documentation for this class was generated from the following files:
- src/postProcessing/functionObjects/forces/forces/forces.H
- src/postProcessing/functionObjects/forces/forces/forces.C
Copyright © 2000-2009 OpenCFD Ltd