Go to the documentation of this file.
36 void Foam::ensightCells::writePolysConnectivity
40 const ensightCells& part,
47 const label nTotal = part.total(etype);
55 const IntRange<int> senders =
83 for (
const int proci : senders)
114 os.writeLabels(send);
117 for (
const int proci : senders)
122 os.writeLabels(recv);
151 for (
const int proci : senders)
190 void Foam::ensightCells::writeShapeConnectivity
193 const polyMesh&
mesh,
195 const ensightCells& part,
203 <<
"Called for ensight NFACED cell. Programming error\n"
207 const label nTotal = part.total(etype);
216 const IntRange<int> senders =
241 for (
const int proci : senders)
265 const polyMesh&
mesh,
269 const ensightCells& part = *
this;
283 uniqueMeshPointLabels,
293 UIndirectList<point>(
mesh.
points(), uniqueMeshPointLabels),
304 writePolysConnectivity
315 writeShapeConnectivity
List< label > labelList
A List of labels.
virtual const pointField & points() const
static constexpr int masterNo() noexcept
label index() const noexcept
virtual const fileName & name() const
static const char * key(const elemType etype)
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.
static bool master(const label communicator=worldComm)
virtual Ostream & write(const char c)
labelList getPolysNPointsPerFace(const polyMesh &mesh, const labelUList &addr)
Mesh consisting of general polyhedral cells.
Specialized Ensight output with extra geometry file header.
static rangeType subProcs(const label communicator=worldComm)
static constexpr int nTypes
List< cell > cellList
A List of cells.
Sorting/classification of cells (3D) into corresponding ensight element types.
virtual void write(ensightGeoFile &os, const polyMesh &mesh, bool parallel) const
void inplaceRenumber(const labelUList &oldToNew, IntListType &lists)
OBJstream os(runTime.globalPath()/outputName)
const string & name() const noexcept
virtual Ostream & writeKeyword(const keyType &kw)
const cellShapeList & cellShapes() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
labelList getPolysNFaces(const polyMesh &mesh, const labelUList &addr)
List< face > faceList
A List of faces.
static bool & parRun() noexcept
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A List with indirect addressing.
void writePolysPoints(ensightGeoFile &os, const cellUList &meshCells, const labelUList &addr, const faceUList &meshFaces, const labelUList &faceOwner)
UList< label > labelUList
A UList of labels.
void writeCellShapes(ensightGeoFile &os, const UList< cellShape > &shapes)
bool writeCoordinates(ensightGeoFile &os, const label partId, const word &partName, const label nPoints, const FieldContainer< Foam::point > &fld, bool parallel)