Go to the documentation of this file.
166 #ifndef functionObjects_forceCoeffs_H
167 #define functionObjects_forceCoeffs_H
175 namespace functionObjects
206 autoPtr<OFstream> coeffFilePtr_;
209 autoPtr<OFstream> CdBinFilePtr_;
212 autoPtr<OFstream> CsBinFilePtr_;
215 autoPtr<OFstream> ClBinFilePtr_;
218 autoPtr<OFstream> CmRollBinFilePtr_;
221 autoPtr<OFstream> CmPitchBinFilePtr_;
224 autoPtr<OFstream> CmYawBinFilePtr_;
230 forceCoeffs(
const forceCoeffs&) =
delete;
233 void operator=(
const forceCoeffs&) =
delete;
253 const List<Field<scalar>>& coeff
257 void writeBinData(
const List<Field<scalar>> coeffs, Ostream&
os)
const;
291 virtual bool write();
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
Calculates the forces and moments by integrating the pressure and skin-friction forces over a given l...
TypeName("forceCoeffs")
Runtime type information.
void writeBinData(const List< Field< scalar >> coeffs, Ostream &os) const
Write binned data.
virtual bool read(const dictionary &)
Read the forces data.
void writeBinHeader(const word &header, Ostream &os) const
Write header for binned data.
virtual ~forceCoeffs()=default
Destructor.
void writeIntegratedHeader(const word &header, Ostream &os) const
Write header for integrated data.
void writeIntegratedData(const word &title, const List< Field< scalar >> &coeff) const
Write integrated data.
Extends the forces functionObject by providing coefficients for:
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual bool write()
Write the forces.
virtual bool execute()
Execute.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
void createFiles()
Create the output files.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const word & name() const noexcept
Return the name of this functionObject.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Reads fields from the time directories and adds them to the mesh database for further post-processing...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...