Go to the documentation of this file.
36 void Foam::ensightCells::writePolysConnectivity
40 const ensightCells& part,
51 const label nTotal = part.total(etype);
79 for (
int slave=1; slave < nSlaves; ++slave)
110 os.writeLabels(send);
113 for (
int slave=1; slave < nSlaves; ++slave)
118 os.writeLabels(recv);
147 for (
int slave=1; slave < nSlaves; ++slave)
187 void Foam::ensightCells::writeShapeConnectivity
190 const polyMesh&
mesh,
192 const ensightCells& part,
200 <<
"Called for ensight NFACED cell. Programming error\n"
208 const label nTotal = part.total(etype);
234 for (
int slave=1; slave < nSlaves; ++slave)
276 uniqueMeshPointLabels,
297 writePolysConnectivity
308 writeShapeConnectivity
List< label > labelList
A List of labels.
virtual const pointField & points() const
Return raw points.
label index() const
The index in a list (0-based)
static constexpr int masterNo() noexcept
Process index of the master.
const string & name() const
The part name or description.
static const char * key(const elemType etype)
The ensight element name for the specified 'Cell' type.
static label nProcs(const label communicator=0)
Number of processes in parallel run.
static bool & parRun()
Is this a parallel run?
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.
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 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.
const cellShapeList & cellShapes() const
Return cell shapes.
errorManipArg< error, int > exit(error &err, const int errNo=1)
static bool master(const label communicator=0)
Am I the master process.
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.
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.