Go to the documentation of this file.
94 #ifndef foamVtuSizing_H
95 #define foamVtuSizing_H
185 template<
class LabelType,
class LabelType2>
186 static void populateArrays
402 const label globalPointOffset
409 const label globalPointOffset
416 const label globalPointOffset
423 const label prevOffset
430 const label globalPointOffset
437 const label globalPointOffset
444 const label globalPointOffset
451 const label prevOffset
label nCells() const
Number of cells for the mesh.
static void renumberFaceLabelsXml(labelUList &faceLabels, const label globalPointOffset)
Renumber faces stream labels by global point offset - XML format.
End-offsets (XML) or locations (INTERNAL) for cells.
~vtuSizing()=default
Destructor.
bool decompose() const
Query the decompose flag (normally off)
label nCellsPoly() const
Number of polyhedral cells for the mesh.
vtuSizing()
Construct null.
Internal vtkUnstructuredGrid content.
void populateLegacy(const polyMesh &mesh, UList< uint8_t > &cellTypes, labelUList &connectivity, foamVtkMeshMaps &maps) const
Populate lists for Legacy output.
label nAddVerts() const
Number of additional (decomposed) vertices for the mesh.
void info(Ostream &os) const
Report some information.
void clear()
Reset all sizes to zero.
Mesh consisting of general polyhedral cells.
static labelList copyVertLabelsLegacy(const labelUList &connectivity, const label globalPointOffset)
Copy vertex labels with a global point offset - legacy format.
bool operator!=(const vtuSizing &rhs) const
Test inequality.
label sizeLegacy() const
The calculated size for legacy storage.
label nFieldCells() const
Number of field cells = nCells + nAddCells.
label nVertPoly() const
Number of vertex labels for polyhedral cells of the mesh.
void populateXml(const polyMesh &mesh, UList< uint8_t > &cellTypes, labelUList &connectivity, labelUList &offsets, labelUList &faces, labelUList &facesOffsets, foamVtkMeshMaps &maps) const
Populate lists for XML output.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label nFaceLabels() const
Number of polyhedral face labels for the mesh.
End-offsets (XML) or locations (INTERNAL) for faces.
static void renumberVertLabelsLegacy(labelUList &connectivity, const label globalPointOffset)
Renumber vertex labels by global point offset - legacy format.
void populateInternal(const polyMesh &mesh, UList< uint8_t > &cellTypes, UList< int > &connectivity, UList< int > &offsets, UList< int > &faces, UList< int > &facesOffsets, foamVtkMeshMaps &maps) const
Populate lists for Internal VTK format.
label nFieldPoints() const
Number of field points = nPoints + nAddPoints.
label nPoints() const
Number of points for the mesh.
label nVertLabels() const
Number of vertex labels for the mesh.
contentType
Types of content that the storage may represent.
Sizing descriptions and routines for transcribing an OpenFOAM volume mesh into a VTK unstructured gri...
static void renumberFaceOffsetsXml(labelUList &faceOffsets, const label prevOffset)
Renumber face offsets with an offset from previous - XML format.
Face-stream (XML, INTERNAL)
static labelList copyVertLabelsXml(const labelUList &connectivity, const label globalPointOffset)
Copy vertex labels with a global point offset - XML format.
const labelList & cellTypes
static labelList copyFaceOffsetsXml(const labelUList &faceOffsets, const label prevOffset)
Copy face offsets with an offset from previous - XML format.
label sizeInternal(const enum slotType slot) const
The calculated size for vtk-internal storage of the specified slot.
static void renumberVertLabelsXml(labelUList &connectivity, const label globalPointOffset)
Renumber vertex labels by global point offset - XML format.
static labelList copyFaceLabelsXml(const labelUList &faceLabels, const label globalPointOffset)
Copy faces stream labels with a global point offset - XML format.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
slotType
The possible storage 'slots' that can be used.
label nAddPoints() const
Number of additional (decomposed) points for the mesh.
label sizeXml(const enum slotType slot) const
The calculated size for xml storage of the specified slot.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label nAddCells() const
Number of additional (decomposed) cells for the mesh.
bool operator==(const vtuSizing &rhs) const
Test equality.
void reset(const polyMesh &mesh, const bool decompose=false)
Reset sizing by analyzing the mesh.
Bookkeeping for mesh subsetting and/or polyhedral cell decomposition. Although the main use case is f...
label sizeOf(const enum contentType output, const enum slotType slot) const
Return the required size for the storage slot.