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;
128 unzoned.setSize(nUnzoned);
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);
void writeGeometry(ensightGeoFile &) const
Write the geometry.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ensight output with specialised write() for strings, integers and floats. Correctly handles binary wr...
void writeScalarField(ensightFile &, const List< scalar > &field, const bool useFaceData=false, const bool perNode=false) const
Write (volume) scalar field.
void recalculate(const polyMesh &)
Clear old information and construct anew from polyMesh.
#define forAll(list, i)
Loop across all elements in list.
A collection of several ensightPart elements.
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.
const meshCellZones & cellZones() const
Return cell zones.
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.
Specialised Ensight output with extra geometry file header.
An implementation of ensightPart to hold volume mesh cells.
void writeData(Ostream &) const
Write the lists.
~ensightParts()
Destructor.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
ensightParts(const polyMesh &)
Construct from polyMesh.
bool writeSummary(Ostream &) const
Write summary information about the objects.
label size() const
Return the number of elements in the UPtrList.
A PtrList of objects of type <T> with automated input and output.
Ostream & flush(Ostream &os)
Flush stream.
void renumber(const labelUList &origCellId, const labelUList &origFaceId)
Renumber elements.
An implementation of ensightPart to hold volume mesh faces.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...