Go to the documentation of this file.
67 partsList_.setSize(nPart);
76 nZoneCells += cZone.
size();
114 unzoned[idList[i]] = idList[i];
123 unzoned[nUnzoned] = i;
146 if (patch.size() && !isA<processorPolyPatch>(patch))
159 partsList_.setSize(nPart);
171 if (partsList_[partI].isCellData())
173 partsList_[partI].renumber(origCellId);
177 partsList_[partI].renumber(origFaceId);
191 partsList_[partI].writeGeometry(os);
200 partsList_[partI].writeSummary(os);
210 os <<
nl << partsList_.size()
216 os <<
nl << partsList_[i];
223 os.
check(
"ensightParts::writeData(Ostream&)");
231 const bool useFaceData,
240 ? partsList_[partI].isFaceData()
241 : partsList_[partI].isCellData()
244 partsList_[partI].writeScalarField(os, field, perNode);
256 const bool useFaceData,
265 ? partsList_[partI].isFaceData()
266 : partsList_[partI].isCellData()
269 partsList_[partI].writeVectorField
272 field0, field1, field2,
288 parts.writeGeometry(os);
A collection of several ensightPart elements.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void writeData(Ostream &) const
Write the lists.
ensightParts(const ensightParts &)
Disallow default bitwise copy construct.
A PtrList of objects of type <T> with automated input and output.
#define forAll(list, i)
Loop across all elements in list.
void writeGeometry(ensightGeoFile &) const
Write the geometry.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
An implementation of ensightPart to hold volume mesh cells.
Mesh consisting of general polyhedral cells.
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.
~ensightParts()
Destructor.
Ostream & flush(Ostream &os)
Flush stream.
PtrList< ensightPart > partsList_
List of parts.
Specialized Ensight output with extra geometry file header.
bool set(const label) const
Is element set.
bool writeSummary(Ostream &) const
Write summary information about the objects.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A patch is a list of labels that address the faces in the global face list.
void writeScalarField(ensightFile &, const List< scalar > &field, const bool useFaceData=false, const bool perNode=false) const
Write (volume) scalar field.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
void renumber(const labelUList &origCellId, const labelUList &origFaceId)
Renumber elements.
void setSize(const label)
Reset size of List.
void recalculate(const polyMesh &)
Clear old information and construct anew from polyMesh.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const
Return the number of elements in the PtrList.
An implementation of ensightPart to hold volume mesh faces.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...