44 partsList_.transfer(ioList);
63 partsList_.setSize(nPart);
72 nZoneCells += cZone.
size();
110 unzoned[idList[i]] = idList[i];
119 unzoned[nUnzoned] = i;
142 if (patch.
size() && !isA<processorPolyPatch>(patch))
155 partsList_.setSize(nPart);
167 if (partsList_[partI].isCellData())
169 partsList_[partI].renumber(origCellId);
173 partsList_[partI].renumber(origFaceId);
187 partsList_[partI].writeGeometry(os);
196 partsList_[partI].writeSummary(os);
206 os <<
nl << partsList_.size()
212 os <<
nl << partsList_[i];
219 os.
check(
"ensightParts::writeData(Ostream&)");
227 const bool useFaceData,
236 ? partsList_[partI].isFaceData()
237 : partsList_[partI].isCellData()
240 partsList_[partI].writeScalarField(os, field, perNode);
252 const bool useFaceData,
261 ? partsList_[partI].isFaceData()
262 : partsList_[partI].isCellData()
265 partsList_[partI].writeVectorField
268 field0, field1, field2,
284 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.
Named list of cell indices representing a sub-set of the mesh.
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.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Mesh consisting of general polyhedral cells.
const cellZoneList & cellZones() const
Return cell zones.
A patch is a list of labels that address the faces in the global face list.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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.