39#ifndef Foam_binModel_H
40#define Foam_binModel_H
149 const word& outputPrefix
162 const word& outputPrefix
173 const word& outputPrefix
208 virtual void apply() = 0;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Base class for bin models to handle general bin characteristics.
string writeComponents(const word &stem) const
Helper function to construct a string description for a given type.
const fvMesh & mesh_
Reference to the mesh.
PtrList< OFstream > filePtrs_
List of file pointers; 1 file per field.
void writeBinnedData(List< List< Type > > &data, Ostream &os) const
Write binned data to stream.
wordList fieldNames_
Names of operand fields.
TypeName("binModel")
Runtime type information.
label nBin_
Total number of bins.
bool decomposePatchValues(List< List< Type > > &data, const label bini, const Type &v, const vector &n) const
virtual void movePoints(const polyMesh &mesh)
Update for changes of mesh.
label nBin() const noexcept
Return the total number of bins.
virtual bool read(const dictionary &dict)
Read the dictionary.
autoPtr< coordinateSystem > coordSysPtr_
Local coordinate system of bins.
bool decomposePatchValues_
Decompose patch values into normal and tangential components.
static autoPtr< binModel > New(const dictionary &dict, const fvMesh &mesh, const word &outputPrefix)
Return a reference to the selected bin model.
virtual ~binModel()=default
Destructor.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
labelHashSet patchSet_
Indices of operand patches.
declareRunTimeSelectionTable(autoPtr, binModel, dictionary,(const dictionary &dict, const fvMesh &mesh, const word &outputPrefix),(dict, mesh, outputPrefix))
labelList cellZoneIDs_
Indices of operand cell zones.
void operator=(const binModel &)=delete
No copy assignment.
virtual void initialise()=0
Initialise bin properties.
virtual void apply()=0
Apply bins.
void setCoordinateSystem(const dictionary &dict, const word &e3Name=word::null, const word &e1Name=word::null)
Set the co-ordinate system from dictionary and axes names.
binModel(const binModel &)=delete
No copy construct.
Database for solution data, solver performance and other reduced data.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Base class for writing single files from the function objects.
Mesh data needed to do the Finite Volume discretisation.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.