Go to the documentation of this file.
44 ios_base::out|ios_base::binary)
49 const vtkTopo& topo = vMesh_.topo();
53 os_ <<
"DATASET UNSTRUCTURED_GRID" <<
std::endl;
67 os_ <<
"POINTS " << nTotPoints <<
" double" <<
std::endl;
74 forAll(addPointCellLabels, api)
90 forAll(vtkVertLabels, cellI)
92 nFaceVerts += vtkVertLabels[cellI].
size() + 1;
96 os_ <<
"CELLS " << vtkVertLabels.
size() <<
' ' << nFaceVerts <<
std::endl;
100 forAll(vtkVertLabels, cellI)
102 const labelList& vtkVerts = vtkVertLabels[cellI];
148 forAll(superCells, superCellI)
150 label origCellI = cMap[superCells[superCellI]];
161 forAll(superCells, superCellI)
163 label origCellI = superCells[superCellI];
virtual const pointField & points() const
Return raw points.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
const fileName & caseName() const
Return case name.
const labelListList & vertLabels() const
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
const cellList & cells() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
Encapsulation of VTK mesh data. Holds mesh or meshsubset and polyhedral-cell decomposition on it.
internalWriter(const vtkMesh &, const bool binary, const fileName &)
Construct from components.
const vtkTopo & topo() const
topology
const labelList & cellMap() const
Return cell map.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const labelList & superCells() const
Pre-declare SubField and related Field type.
const fvMeshSubset & subsetter() const
static void write(std::ostream &, const bool, DynamicList< floatScalar > &)
Write floats ascii or binary.
const labelList & cellTypes() const
Mesh data needed to do the Finite Volume discretisation.
Polyhedral cell decomposition for VTK.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
const fvMesh & mesh() const
Access either mesh or submesh.
void writeCellIDs()
Write cellIDs.
const vectorField & cellCentres() const
const labelList & addPointCellLabels() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool useSubMesh() const
Check if running subMesh.
const Time & time() const
Return the top-level database.
void size(const label)
Override size to be inconsistent with allocated storage.
timeIndices insert(timeIndex, timeDirs[timeI].value())
static const labelSphericalTensor labelI(1)
Identity labelTensor.