44 partsList_.transfer(ioList);
68 partsList_.setSize(nPart);
77 nZoneCells += cZone.
size();
104 else if (mesh.
nCells() > nZoneCells)
115 unzoned[idList[i]] = idList[i];
124 unzoned[nUnzoned] = i;
147 if (patch.
size() && !isA<processorPolyPatch>(patch))
160 partsList_.setSize(nPart);
172 if (partsList_[partI].isCellData())
174 partsList_[partI].renumber(origCellId);
178 partsList_[partI].renumber(origFaceId);
192 partsList_[partI].writeGeometry(os);
201 partsList_[partI].writeSummary(os);
211 os <<
nl << partsList_.size()
217 os <<
nl << partsList_[i];
224 os.
check(
"ensightParts::writeData(Ostream&)");
232 const bool useFaceData,
241 ? partsList_[partI].isFaceData()
242 : partsList_[partI].isCellData()
245 partsList_[partI].writeScalarField(os, field, perNode);
257 const bool useFaceData,
266 ? partsList_[partI].isFaceData()
267 : partsList_[partI].isCellData()
270 partsList_[partI].writeVectorField
273 field0, field1, field2,
289 parts.writeGeometry(os);
#define forAll(list, i)
Loop across all elements in list.
A PtrList of objects of type <Type> with automated input and output.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool set(const label) const
Is element set.
label size() const
Return the number of elements in the UList.
label size() const
Return the number of elements in the UPtrList.
Ensight output with specialised write() for strings, integers and floats. Correctly handles binary wr...
Specialised Ensight output with extra geometry file header.
An implementation of ensightPart to hold volume mesh cells.
An implementation of ensightPart to hold volume mesh faces.
A collection of several ensightPart elements.
void renumber(const labelUList &origCellId, const labelUList &origFaceId)
Renumber elements.
void recalculate(const polyMesh &)
Clear old information and construct anew from polyMesh.
bool writeSummary(Ostream &) const
Write summary information about the objects.
ensightParts(const polyMesh &)
Construct from polyMesh.
void writeScalarField(ensightFile &, const List< scalar > &field, const bool useFaceData=false, const bool perNode=false) const
Write (volume) scalar field.
void writeGeometry(ensightGeoFile &) const
Write the geometry.
~ensightParts()
Destructor.
void writeData(Ostream &) const
Write the lists.
void writeVectorField(ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2, const bool useFaceData=false, const bool perNode=false) const
Write (volume) vector field components.
Mesh consisting of general polyhedral cells.
const cellZoneList & cellZones() const
Return cell zones.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & flush(Ostream &os)
Flush stream.