81 nPoints = globalPointsPtr().totalSize();
119 face&
f = patchFaces[facei];
149 os << part.
name().c_str();
156 <<
':' << part.
total(etype);
A helper class for outputting values to Ostream.
void resize(const label len)
Adjust allocated size of list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of faces which address into the list of points.
const Map< label > & meshPointMap() const
Mesh point map.
const labelList & meshPoints() const
Return labelList of mesh points in patch.
const List< face_type > & localFaces() const
Return patch faces addressing into local point list.
A List with indirect addressing. Like IndirectList but does not store addressing.
void size(const label n)
Older name for setAddressableSize.
static bool & parRun() noexcept
Test if this a parallel run.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Sorting/classification of faces (2D) into corresponding ensight types.
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)
static const char * elemNames[nTypes]
The ensight 'Face' element type names.
elemType
Supported ensight 'Face' element types.
label total() const
The global size of all element types.
const boolList & flipMap() const
Processor-local flip-map of all elements.
Specialized Ensight output with extra geometry file header.
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.
virtual bool write()
Write the output fields.
autoPtr< globalIndex > mergePoints(labelList &pointToGlobal, labelList &uniquePoints) const
Helper for merging (collocated!) mesh point data.
Mesh consisting of general polyhedral cells.
virtual const faceList & faces() const
Return raw faces.
const globalMeshData & globalData() const
Return parallel info.
virtual const pointField & points() const
Return raw points.
OBJstream os(runTime.globalPath()/outputName)
void inplaceRenumber(const labelUList &oldToNew, IntListType &lists)
Inplace renumber the values (not the indices) of a list of lists.
void identity(labelUList &map, label start=0)
Set identity map with (map[i] == i)
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.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.