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)
283 uniqueMeshPointLabels,
304 writePolysConnectivity
315 writeShapeConnectivity
List< label > labelList
A List of labels.
virtual const pointField & points() const
Return raw points.
static constexpr int masterNo() noexcept
Process index of the master (always 0)
label index() const noexcept
The index in a list (0-based)
static const char * key(const elemType etype)
The ensight element name for the specified 'Cell' type.
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.
static bool master(const label communicator=worldComm)
Am I the master process.
virtual Ostream & write(const char c)
Write character.
labelList getPolysNPointsPerFace(const polyMesh &mesh, const labelUList &addr)
The number of points for each face of the poly elements.
Mesh consisting of general polyhedral cells.
Specialized Ensight output with extra geometry file header.
static rangeType subProcs(const label communicator=worldComm)
Range of process indices for sub-processes.
static constexpr int nTypes
Number of 'Cell' element types (5)
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
Write geometry, using a mesh reference (serial only)
void inplaceRenumber(const labelUList &oldToNew, IntListType &lists)
Inplace renumber the values (not the indices) of a list of lists.
OBJstream os(runTime.globalPath()/outputName)
const string & name() const noexcept
The part name or description.
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
const cellShapeList & cellShapes() const
Return cell shapes.
errorManipArg< error, int > exit(error &err, const int errNo=1)
elemType
Supported ensight 'Cell' element types.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
labelList getPolysNFaces(const polyMesh &mesh, const labelUList &addr)
The number of faces per poly element.
List< face > faceList
A List of faces.
static bool & parRun() noexcept
Test if this a parallel run.
A List with indirect addressing.
void writePolysPoints(ensightGeoFile &os, const cellUList &meshCells, const labelUList &addr, const faceUList &meshFaces, const labelUList &faceOwner)
Write the point ids per poly element.
UList< label > labelUList
A UList of labels.
void writeCellShapes(ensightGeoFile &os, const UList< cellShape > &shapes)
Write cell connectivity via cell shapes.
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.