73 mesh.globalData().mergePoints
81 nPoints = globalPointsPtr().totalSize();
89 uniqueMeshPointLabels =
pp.meshPoints();
119 face&
f = patchFaces[facei];
147 const auto& part = *iproxy;
149 os << part.
name().c_str();
156 <<
':' << part.total(etype);
static const char * elemNames[nTypes]
The ensight 'Face' element type names.
A face is a list of labels corresponding to mesh vertices.
void resize(const label len)
Adjust allocated size of list.
constexpr char nl
The newline '\n' character (0x0a)
Specialized Ensight output with extra geometry file header.
static bool & parRun() noexcept
Test if this a parallel run.
Sorting/classification of faces (2D) into corresponding ensight types.
void writeFaceConnectivityPresorted(ensightGeoFile &os, const ensightFaces &part, const faceUList &faces, bool parallel)
Write the presorted face connectivity for the part.
bool usesFlipMap() const
True for non-zero flip-map that spans the addresses.
#define forAll(list, i)
Loop across all elements in list.
void inplaceRenumber(const labelUList &oldToNew, IntListType &lists)
Inplace renumber the values (not the indices) of a list of lists.
A list of faces which address into the list of points.
const string & name() const noexcept
The part name or description.
virtual void write(ensightGeoFile &os, const polyMesh &mesh, bool parallel) const
Write geometry, using a mesh reference.
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...
OBJstream os(runTime.globalPath()/outputName)
static constexpr int nTypes
Number of 'Face' element types (3)
label index() const noexcept
The index in a list (0-based)
virtual const fileName & name() const
Read/write access to the name of the stream.
elemType
Supported ensight 'Face' element types.
A helper class for outputting values to Ostream.
A List with indirect addressing. Like IndirectList but does not store addressing. ...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
void identity(labelUList &map, label start=0)
Set identity map with (map[i] == i)
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
bool writeCoordinates(ensightGeoFile &os, const label partId, const word &partName, const label nPoints, const FieldContainer< Foam::point > &fld, bool parallel)
Write coordinates (component-wise) for the given part.