Bookkeeping for vtkUnstructuredGrid. More...
Public Member Functions | |
vtkSmartPointer< vtkPoints > | points (const fvMesh &mesh) const |
The vtk points for the mesh (and decomposition) More... | |
vtkSmartPointer< vtkPoints > | points (const fvMesh &mesh, const labelUList &pointMap) const |
vtkSmartPointer< vtkUnstructuredGrid > | internal (const fvMesh &mesh, const bool decompPoly=false) |
Internal mesh as vtkUnstructuredGrid. More... | |
template<class Type > | |
vtkSmartPointer< vtkFloatArray > | convertField (const DimensionedField< Type, volMesh > &fld) const |
Convert internal volume field (CellData) More... | |
template<class Type > | |
vtkSmartPointer< vtkFloatArray > | convertField (const GeometricField< Type, fvPatchField, volMesh > &fld) const |
Convert internal volume field (CellData) More... | |
![]() | |
uint64_t | nPoints () const |
Number of points associated with the geometry. More... | |
void | clearGeom () |
Clear geometry and dataset. More... | |
vtkSmartPointer< dataType > | getCopy () const |
Return a shallow copy of vtkgeom for manipulation. More... | |
void | reuse () |
Make a shallow copy of vtkgeom into dataset. More... | |
void | set (vtkSmartPointer< dataType > geom) |
Set the geometry and make a shallow copy to dataset. More... | |
void | PrintSelf (std::ostream &os) const |
Report basic information to output. More... | |
![]() | |
foamVtkMeshMaps ()=default | |
Default construct: zero-sized, no reserved sizes. More... | |
const labelList & | cellMap () const noexcept |
Original cell ids for all cells (regular and decomposed). More... | |
DynamicList< label > & | cellMap () noexcept |
Write access to original cell ids. More... | |
const labelList & | pointMap () const noexcept |
Point labels for subsetted meshes. More... | |
DynamicList< label > & | pointMap () noexcept |
Write access to point labels for subsetted meshes. More... | |
const labelList & | additionalIds () const noexcept |
Any additional (user) labels. More... | |
DynamicList< label > & | additionalIds () noexcept |
Write access to additional (user) labels. More... | |
void | clear () |
Clear sizing. More... | |
void | renumberCells (const labelUList &mapping) |
void | renumberPoints (const labelUList &mapping) |
Renumber point ids (pointMap) to account for subset meshes. More... | |
Static Public Member Functions | |
template<class Type > | |
static vtkSmartPointer< vtkFloatArray > | convertField (const DimensionedField< Type, volMesh > &fld, const vtuAdaptor &vtuData) |
Convert internal volume field (CellData) More... | |
template<class Type > | |
static vtkSmartPointer< vtkFloatArray > | convertField (const GeometricField< Type, fvPatchField, volMesh > &fld, const vtuAdaptor &vtuData) |
Convert internal volume field (CellData) More... | |
Additional Inherited Members | |
![]() | |
typedef vtkUnstructuredGrid | dataType |
![]() | |
vtkSmartPointer< dataType > | vtkgeom |
The geometry, without any cell/point data. More... | |
vtkSmartPointer< dataType > | dataset |
The shallow-copy of geometry, plus additional data. More... | |
Bookkeeping for vtkUnstructuredGrid.
A low-level backend adaptor for converting OpenFOAM volume meshes/fields to VTK internal representation. The output is a single piece vtkUnstructuredGrid dataset. Multiblock composition is done by the caller.
Definition at line 73 of file foamVtkVtuAdaptor.H.
|
inline |
The vtk points for the mesh (and decomposition)
Definition at line 32 of file foamVtkVtuAdaptorI.H.
References mesh, Foam::New(), p, and UList< T >::size().
|
inline |
The vtk points for the mesh (and decomposition) using the provided pointMap
Definition at line 66 of file foamVtkVtuAdaptorI.H.
References mesh, Foam::New(), and UList< T >::size().
|
inline |
Internal mesh as vtkUnstructuredGrid.
Calling this automatically populates the sizing and vtk::Caching
Definition at line 101 of file foamVtkVtuAdaptorI.H.
References Foam::vtk::Tools::asUList(), cells, cellTypes, mesh, Foam::New(), vtuSizing::nFieldCells(), Foam::output(), points, vtuSizing::populateInternal(), UList< T >::size(), and vtuSizing::sizeOf().
|
static |
Convert internal volume field (CellData)
Definition at line 39 of file foamVtkVtuAdaptorTemplates.C.
References foamVtkMeshMaps::cellMap(), fld, Foam::vtk::Tools::foamToVtkTuple(), Foam::New(), and UList< T >::size().
|
static |
Convert internal volume field (CellData)
Definition at line 76 of file foamVtkVtuAdaptorTemplates.C.
References fld.
vtkSmartPointer< vtkFloatArray > convertField | ( | const DimensionedField< Type, volMesh > & | fld | ) | const |
Convert internal volume field (CellData)
Definition at line 88 of file foamVtkVtuAdaptorTemplates.C.
References fld.
vtkSmartPointer< vtkFloatArray > convertField | ( | const GeometricField< Type, fvPatchField, volMesh > & | fld | ) | const |
Convert internal volume field (CellData)
Definition at line 99 of file foamVtkVtuAdaptorTemplates.C.
References fld.