142 #ifndef Foam_functionObjects_bladeForces_H 143 #define Foam_functionObjects_bladeForces_H 154 namespace functionObjects
163 public fvMeshFunctionObject,
219 coordSystem::cylindrical cylCoord_;
251 label fieldsInterval_;
266 bool useGeometricVelocity_;
278 autoPtr<OFstream> forceFilePtr_;
281 autoPtr<OFstream> areaFilePtr_;
284 autoPtr<OFstream> CdFilePtr_;
287 autoPtr<OFstream> ClFilePtr_;
290 autoPtr<OFstream> CpFilePtr_;
299 void writeSurface()
const;
305 tmp<symmTensorField> devRhoReff
312 tmp<volScalarField> mu()
const;
315 tmp<volScalarField> rho()
const;
318 tmp<scalarField> rho(
const label patchi)
const;
328 void createIntegratedDataFiles();
331 void writeIntegratedDataFiles();
387 virtual bool read(
const dictionary&
dict);
393 virtual bool write();
List< scalar > scalarList
List of scalar.
TypeName("bladeForces")
Runtime type information.
scalar torque() const noexcept
The integrated torque.
Forwards and collection of common volume field types.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual bool execute()
Execute the function object.
const word & name() const noexcept
Return the name of this functionObject.
void calculate()
Calculate forces, torque, coefficients.
scalar drag() const noexcept
The integrated drag force (tangential)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
bladeForces(const word &name, const Time &runTime, const dictionary &dict, const bool readFields=true)
Construct from Time and dictionary.
A class for handling words, derived from Foam::string.
virtual ~bladeForces()=default
Destructor.
Reads fields from the time directories and adds them to the mesh database for further post-processing...
virtual bool read(const dictionary &dict)
Read the dictionary.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
Computes forces and coefficients over a given list of patches by integrating pressure and viscous for...
virtual bool write()
Write to data files/fields and to streams.
List< label > labelList
A List of labels.
Registry of regIOobjects.
scalar thrust() const noexcept
The integrated thrust force (axial)
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
void operator=(const bladeForces &)=delete
No copy assignment.