46#ifndef Foam_vtk_vtuAdaptor_H
47#define Foam_vtk_vtuAdaptor_H
55#include "vtkUnstructuredGrid.h"
56#include "vtkMultiBlockDataSet.h"
86 inline vtkSmartPointer<vtkPoints>
points
93 inline vtkSmartPointer<vtkPoints>
points
101 inline vtkSmartPointer<vtkUnstructuredGrid>
internal
104 const bool decompPoly =
false
112 static vtkSmartPointer<vtkFloatArray>
121 static vtkSmartPointer<vtkFloatArray>
131 vtkSmartPointer<vtkFloatArray>
139 vtkSmartPointer<vtkFloatArray>
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
Bookkeeping for mesh subsetting and/or polyhedral cell decomposition. Although the main use case is f...
const labelList & pointMap() const noexcept
Point labels for subsetted meshes.
Mesh data needed to do the Finite Volume discretisation.
Bookkeeping for vtkUnstructuredGrid.
static vtkSmartPointer< vtkFloatArray > convertField(const DimensionedField< Type, volMesh > &fld, const vtuAdaptor &vtuData)
Convert internal volume field (CellData)
vtkSmartPointer< vtkUnstructuredGrid > internal(const fvMesh &mesh, const bool decompPoly=false)
Internal mesh as vtkUnstructuredGrid.
Bookkeeping for internal caching.