Go to the documentation of this file.
52 #ifndef ensightFaces_H
53 #define ensightFaces_H
90 static constexpr
int nTypes = 3;
99 static inline const char*
key(
const elemType etype);
124 inline label add(
const elemType etype, label
id,
bool flip=
false);
275 #include "ensightFacesI.H"
const labelList & faceIds() const noexcept
Processor-local face ids of all elements.
const boolList & flipMap() const
Processor-local flip-map of all elements.
void decrFaceIds(const label off)
Decrease face ids by specified offset value.
static constexpr int nTypes
Number of 'Face' element types (3)
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 'Face' type.
TypeName("ensightFaces")
Declare type-name, virtual type (with debug switch)
bool usesFlipMap() const
True for non-zero flip-map that spans the addresses.
void clearOut()
Clear any demand-driven data.
Sorting/classification of faces (2D) into corresponding ensight types.
virtual void writeDict(Ostream &os, const bool full=false) const
Mesh consisting of general polyhedral cells.
labelRange range(const elemType etype) const
Processor-local offset/size of element type.
virtual void write(ensightGeoFile &os, const polyMesh &mesh, bool parallel) const
Write geometry, using a mesh reference.
label total() const
The global size of all element types.
Specialized Ensight output with extra geometry file header.
virtual ~ensightFaces()=default
Destructor.
void reduce()
Sum element counts across all processes.
FixedList< label, nTypes > sizes() const
Processor-local sizes per element type.
A range or interval of labels defined by a start and a size.
OBJstream os(runTime.globalPath()/outputName)
const labelList & faceOrder() const noexcept
label size() const noexcept
Processor-local size of all elements.
ensightFaces()
Default construct, with part index 0.
label uniqueMeshPoints(const polyMesh &mesh, labelList &uniqueMeshPointLabels, bool parallel) const
const FixedList< label, nTypes > & totals() const
The global sizes for each element type.
void incrFaceIds(const label off)
Increase face ids by specified offset value.
elemType
Supported ensight 'Face' element types.
Base class for ensightCells, ensightFaces, ensightOutputSurfaces.
void clear()
Set addressable sizes to zero, free up addressing memory.
void sort()
Inplace sort element lists numerically.
static const char * elemNames[nTypes]
The ensight 'Face' element type names.
A face is a list of labels corresponding to mesh vertices.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void classify(const UList< face > &faces)
Classify the face types and set the element lists.