Go to the documentation of this file.
35 #ifndef ensightCells_H
36 #define ensightCells_H
71 static constexpr
int nTypes = 5;
108 template<
class Addressing>
static const char * elemNames[5]
The ensight element type names.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
const labelUList & cellIds() const
Return the cell ids of all elements.
void sort()
Sort element lists numerically.
label index() const
The index in a list.
Mesh consisting of general polyhedral cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static constexpr int nTypes
Number of element types (5)
ensightCells()
Construct null, with part index 0.
static const char * key(const enum elemType)
Return the ensight element name for the specified type.
label total() const
The global number of all element types.
Sorting/classification of cells (3D) into corresponding ensight element types.
label operator[](const label i) const
Return id from linear list of addressing.
elemType
Addressable ensight element types.
label offset(const enum elemType what) const
Processor local starting offset of element type.
A 1D vector of objects of type <T> with a fixed length <N>.
label size() const
The processor local size of all elements.
void classify(const polyMesh &mesh)
Classify cell types and set the element lists.
FixedList< label, 5 > sizes() const
The processor local sizes per element type.
~ensightCells()=default
Destructor.
void reduce()
Sum element counts across all processes.
void clear()
Set addressable sizes to zero, free up addressing memory.
const FixedList< label, 5 > & totals() const
The global numbers per element type.