50#ifndef Foam_vtk_vtuCells_H
51#define Foam_vtk_vtuCells_H
90 bool decomposeRequest_;
368#include "foamVtuCellsI.H"
373 #include "foamVtuCells.txx"
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An analytical geometric cellShape.
Bookkeeping for mesh subsetting and/or polyhedral cell decomposition. Although the main use case is f...
Mesh consisting of general polyhedral cells.
A class for managing references or pointers (no reference counting).
A class for managing temporary objects.
Encapsulated combinations of output format options. This is primarily useful when defining the output...
void resetShapes(const UList< cellShape > &shapes)
Reset sizing using primitive shapes only (ADVANCED USAGE).
const List< uint8_t > & cellTypes() const noexcept
The cell "types" (legacy: "CELL_TYPES").
bool is_hdf() const noexcept
Test for hdf content type.
const labelList & vertOffsets() const noexcept
The "offsets" into the connectivity list vertLabels().
bool empty() const noexcept
True if no cellTypes are populated.
vtuCells(const polyMesh &mesh, const vtk::outputOptions opts, const bool decompose=false)
Construct from components, create output information immediately.
const labelList & faceOffsets() const noexcept
The "facesoffset" or the "FaceOffsets".
const labelList & polyFaceOffsets() const noexcept
Offsets into the polyhedral face ids (HDF only).
void addPointCellLabels(const labelUList &cellIds)
Define which additional cell-centres are to be used (ADVANCED!).
void renumberPoints(const labelUList &mapping)
Renumber point ids to account for subset meshes.
void operator=(const vtuCells &)=delete
No copy assignment.
vtuCells(const polyMesh &mesh, const enum contentType output=contentType::XML, const bool decompose=false)
Construct from components, create output information immediately.
void reset(const polyMesh &mesh)
Create the geometry using the previously requested output and decomposition types.
const labelUList & pointMap() const noexcept
The mesh point ids [FUTURE USE].
label size() const noexcept
The size of populated cellTypes (the number of cells).
void renumberCells(const labelUList &mapping)
Renumber cell ids to account for subset meshes.
bool useCellMap() const noexcept
The cellMap is non-identity for a SUBSET_MESH or when there are decomposed cells.
bool decomposeRequested() const noexcept
Query the polyhedral decompose requested flag.
const labelList & cellMap() const noexcept
The mesh cell ids for all cells (regular and decomposed).
enum contentType content() const noexcept
The output content type.
tmp< Field< PointType > > points(const polyMesh &mesh) const
Return the mesh points, possibly with cell centres for addPointCellLabels().
const labelList & vertLabels() const noexcept
The cell "connectivity" (legacy: "CELLS").
const labelList & polyFaceIds() const
Face ids per polyhedral cell (HDF only).
vtuCells(const vtk::outputOptions opts, const bool decompose=false)
Construct from components.
void clear()
Reset all sizes to zero.
const labelList & faceLabels() const noexcept
The polyhedral "faces" or "FaceConnectivity".
vtuCells(const vtuCells &)=delete
No copy construct.
bool usePointMap() const noexcept
The pointMap is available and non-identity [FUTURE USE].
vtuCells(const enum contentType output=contentType::XML, const bool decompose=false)
Default construct (XML format, no polyhedral decomposition).
Sizing descriptions and routines for transcribing an OpenFOAM volume mesh into a VTK unstructured gri...
bool decompose() const noexcept
Query the decompose flag (normally off).
contentType
Types of content that the storage may represent.
Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
List< label > labelList
A List of labels.
vector point
Point is a vector.
UList< label > labelUList
A UList of labels.