52 #ifndef Foam_ensightFaces_H 53 #define Foam_ensightFaces_H 91 static constexpr
int nTypes = 3;
125 inline label add(
const elemType etype, label
id,
bool flip=
false);
281 Ostream& operator<<(Ostream&, const InfoProxy<ensightFaces>&);
const FixedList< label, nTypes > & totals() const
The global sizes for each element type.
void clear()
Set addressable sizes to zero, free up addressing memory.
label total() const noexcept
Same as totalSize.
static const char * elemNames[nTypes]
The ensight 'Face' element type names.
A face is a list of labels corresponding to mesh vertices.
FixedList< label, nTypes > sizes() const
Processor-local sizes per element type.
A range or interval of labels defined by a start and a size.
label size() const noexcept
Processor-local size of all elements.
A variant of ensightFile (Ensight writing) that includes the extra geometry file header information...
labelRange range(const elemType etype) const
Processor-local offset/size of element type.
Sorting/classification of faces (2D) into corresponding ensight types.
const labelList & faceOrder() const noexcept
Processor-local face order (where applicable)
void clearOut()
Clear any demand-driven data.
bool usesFlipMap() const
True for non-zero flip-map that spans the addresses.
void reduce()
Sum element counts across all processes.
label totalSize() const noexcept
The global size of all element types.
void classify(const UList< face > &faces)
Classify the face types and set the element lists.
virtual void write(ensightGeoFile &os, const polyMesh &mesh, bool parallel) const
Write geometry, using a mesh reference No beginGeometry() marker.
ensightFaces()
Default construct, with part index 0.
virtual ~ensightFaces()=default
Destructor.
label uniqueMeshPoints(const polyMesh &mesh, labelList &uniqueMeshPointLabels, bool parallel) const
Globally unique mesh points. Required when writing point fields.
const boolList & flipMap() const
Processor-local flip-map of all elements.
const labelList & faceIds() const noexcept
Processor-local face ids of all elements.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Base class for ensightCells, ensightFaces, ensightOutputSurfaces.
OBJstream os(runTime.globalPath()/outputName)
void decrFaceIds(const label off)
Decrease face ids by specified offset value.
static constexpr int nTypes
Number of 'Face' element types (3)
InfoProxy< ensightFaces > info() const noexcept
Return info proxy, used to print information to a stream.
static const char * key(const elemType etype) noexcept
The ensight element name for the specified 'Face' type.
elemType
Supported ensight 'Face' element types.
TypeName("ensightFaces")
Declare type-name, virtual type (with debug switch)
A helper class for outputting values to Ostream.
void sort()
Inplace sort element lists numerically.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Mesh consisting of general polyhedral cells.
void incrFaceIds(const label off)
Increase face ids by specified offset value.
virtual void writeDict(Ostream &os, const bool full=false) const
Write information about the object as a dictionary, optionally write all element addresses.