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;
223 List<List<vector>>& data,
const fvMesh & mesh_
Reference to the mesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void writeBinnedData(List< List< Type >> &data, Ostream &os) const
Write binned data to stream.
virtual ~binModel()=default
Destructor.
wordList fieldNames_
Names of operand fields.
bool decomposePatchValues_
Decompose patch values into normal and tangential components.
label nBin_
Total number of bins.
declareRunTimeSelectionTable(autoPtr, binModel, dictionary,(const dictionary &dict, const fvMesh &mesh, const word &outputPrefix),(dict, mesh, outputPrefix))
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual void initialise()=0
Initialise bin properties.
Base class for bin models to handle general bin characteristics.
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.
A class for handling words, derived from Foam::string.
binModel(const dictionary &dict, const fvMesh &mesh, const word &outputPrefix)
Construct from components.
labelList patchIDs_
Indices of operand patches.
PtrList< OFstream > filePtrs_
List of file pointers; 1 file per field.
virtual void apply()=0
Apply bins.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
static const word null
An empty word.
autoPtr< coordinateSystem > coordSysPtr_
Local coordinate system of bins.
label nBin() const noexcept
Return the total number of bins.
bool cumulative_
Flag to accumulate bin data with increasing distance in binning direction.
static autoPtr< binModel > New(const dictionary &dict, const fvMesh &mesh, const word &outputPrefix)
Return a reference to the selected bin model.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
string writeComponents(const word &stem) const
Helper function to construct a string description for a given type.
OBJstream os(runTime.globalPath()/outputName)
void operator=(const binModel &)=delete
No copy assignment.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Mesh data needed to do the Finite Volume discretisation.
virtual bool read(const dictionary &dict)
Read the dictionary.
bool decomposePatchValues(List< List< Type >> &data, const label bini, const Type &v, const vector &n) const
Helper function to decompose patch values into normal and tangential components.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
Macros to ease declaration of run-time selection tables.
labelList cellZoneIDs_
Indices of operand cell zones.
TypeName("binModel")
Runtime type information.
Base class for writing single files from the function objects.
virtual void movePoints(const polyMesh &mesh)
Update for changes of mesh.