Go to the documentation of this file.
35 #ifndef ensightCells_H
36 #define ensightCells_H
75 static constexpr
int nTypes = 5;
84 inline static const char*
key(
const elemType etype);
103 inline label add(
const elemType etype, label
id);
110 template<
class Addressing>
114 label meshPointMapppings
124 static void writePolysConnectivity
134 static void writeShapeConnectivity
labelRange range(const elemType etype) const
Processor-local offset/size of element type.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
static const char * key(const elemType etype)
The ensight element name for the specified 'Cell' type.
void sort()
Sort element lists numerically.
label uniqueMeshPoints(const polyMesh &mesh, labelList &uniqueMeshPointLabels, bool parallel) const
Globally unique mesh points. Required when writing point fields.
Mesh consisting of general polyhedral cells.
static const char * elemNames[nTypes]
The ensight 'Cell' element type names.
virtual void writeDict(Ostream &os, const bool full=false) const
Specialized Ensight output with extra geometry file header.
static constexpr int nTypes
Number of 'Cell' element types (5)
Map< label > meshPointMap(const polyMesh &mesh) const
Mesh point map.
ensightCells()
Default construct, with part index 0.
A range or interval of labels defined by a start and a size.
label total() const
The global size of all element types.
const labelList & cellIds() const
Processor-local cell ids of all elements.
Sorting/classification of cells (3D) into corresponding ensight element types.
virtual void write(ensightGeoFile &os, const polyMesh &mesh, bool parallel) const
Write geometry, using a mesh reference (serial only)
OBJstream os(runTime.globalPath()/outputName)
void decrCellIds(const label off)
Decrease face ids by specified offset value.
label size() const noexcept
Processor-local size of all elements.
elemType
Supported ensight 'Cell' element types.
virtual ~ensightCells()=default
Destructor.
Base class for ensightCells, ensightFaces, ensightOutputSurfaces.
TypeName("ensightCells")
Declare type-name, virtual type (with debug switch)
void clearOut()
Clear any demand-driven data.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void incrCellIds(const label off)
Increase cell ids by specified offset value.
void classify(const polyMesh &mesh)
Classify cell types and set the element lists.
FixedList< label, nTypes > sizes() const
Processor-local sizes per element type.
void reduce()
Sum element counts across all processes.
void clear()
Set addressable sizes to zero, free up addressing memory.
const FixedList< label, nTypes > & totals() const
The global sizes for each element type.