Go to the documentation of this file.
109 #ifndef forceCoeffs_H
110 #define forceCoeffs_H
219 const bool loadFromFiles =
false,
243 virtual void write();
A class for handling words, derived from string.
void writeIntegratedHeader(const word &header, Ostream &os) const
Write header for integrated data.
virtual void read(const dictionary &)
Read the forces data.
This function object reads fields from the time directories and adds them to the mesh database for fu...
Registry of regIOobjects.
scalar magUInf_
Velocity magnitude.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
void writeBinHeader(const word &header, Ostream &os) const
Write header for binned data.
virtual void end()
Execute at the final time-loop, currently does nothing.
void writeIntegratedData(const word &title, const List< Field< scalar > > &coeff) const
Write integrated data.
virtual const word & name() const
Return name of the set of forces.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void createFiles()
Create the output files.
virtual ~forceCoeffs()
Destructor.
Vector< scalar > vector
A scalar version of the templated Vector.
void operator=(const forceCoeffs &)
Disallow default bitwise assignment.
autoPtr< OFstream > coeffFilePtr_
Integrated coefficients.
TypeName("forceCoeffs")
Runtime type information.
autoPtr< OFstream > CdBinFilePtr_
Drag coefficient.
virtual void write()
Write the forces.
This function object calculates the forces and moments by integrating the pressure and skin-friction ...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
This function object extends the Foam::forces function object by providing lift, drag and moment coef...
forceCoeffs(const forceCoeffs &)
Disallow default bitwise copy construct.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void execute()
Execute, currently does nothing.
autoPtr< OFstream > ClBinFilePtr_
Lift coefficient.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
autoPtr< OFstream > CmBinFilePtr_
Moment coefficient.
void writeBinData(const List< Field< scalar > > coeffs, Ostream &os) const
Write binned data.