73 mesh.globalData().mergePoints
81 nPoints = globalPointsPtr().totalSize();
89 uniqueMeshPointLabels =
pp.meshPoints();
119 face&
f = patchFaces[facei];
144 const InfoProxy<ensightFaces>& iproxy
147 const auto& part = *iproxy;
149 os << part.name().c_str();
156 <<
':' << part.total(etype);
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
A helper class for outputting values to Ostream.
void resize_nocopy(const label len)
Adjust allocated size of list without necessarily.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A List with indirect addressing. Like IndirectList but does not store addressing.
static bool & parRun() noexcept
Test if this a parallel run.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
bool usesFlipMap() const
True for non-zero flip-map that spans the addresses.
const labelList & faceIds() const noexcept
Processor-local face ids of all elements.
static constexpr int nTypes
Number of 'Face' element types (3).
virtual void write(ensightGeoFile &os, const polyMesh &mesh, bool parallel) const
Write geometry, using a mesh reference No beginGeometry() marker.
static const char * elemNames[nTypes]
The ensight 'Face' element type names.
elemType
Supported ensight 'Face' element types.
ensightFaces()
Default construct, with part index 0.
const boolList & flipMap() const
Processor-local flip-map of all elements.
A variant of ensightFile (Ensight writing) that includes the extra geometry file header information.
label index() const noexcept
The index in a list (0-based).
const string & name() const noexcept
The part name or description.
A face is a list of labels corresponding to mesh vertices.
Mesh consisting of general polyhedral cells.
OBJstream os(runTime.globalPath()/outputName)
void inplaceRenumber(const labelUList &oldToNew, IntListType &lists)
Inplace renumber the values (not the indices) of a list of lists.
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.
void writeFaceConnectivityPresorted(ensightGeoFile &os, const ensightFaces &part, const faceUList &faces, bool parallel)
Write the presorted face connectivity for the part.
List< label > labelList
A List of labels.
List< face > faceList
List of faces.
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...
List< bool > boolList
A List of bools.
PrimitivePatch< UIndirectList< face >, const pointField & > uindirectPrimitivePatch
A PrimitivePatch with UIndirectList for the faces, const reference for the point field.
vectorField pointField
pointField is a vectorField.
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.