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.
virtual const fileName & name() const override
Read/write access to the name of the stream.
constexpr char nl
The newline '\n' character (0x0a)
A variant of ensightFile (Ensight writing) that includes the extra geometry file header information...
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.
void resize_nocopy(const label len)
Adjust allocated size of list without necessarily.
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.
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
virtual void write(ensightGeoFile &os, const polyMesh &mesh, bool parallel) const
Write geometry, using a mesh reference No beginGeometry() marker.
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)
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.
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.