35#ifndef FIELDUTILS_OUTPUTVTK
36#define FIELDUTILS_OUTPUTVTK
42#include <vtkSmartPointer.h>
43#include <vtkUnstructuredGrid.h>
99 po::variables_map &vm);
103 po::variables_map &vm, std::string &filename,
104 vtkSmartPointer<vtkUnstructuredGrid> &vtkMesh);
111 po::variables_map &vm, std::string &filename,
112 vtkSmartPointer<vtkUnstructuredGrid> &vtkMesh);
116 std::string &filename);
119 void WriteVTK(vtkDataObject *vtkMesh, std::string &filename,
120 po::variables_map &vm);
Converter from fld to vtk.
Converter from fld to vtk.
vtkSmartPointer< vtkUnstructuredGrid > OutputFromExpLowOrder()
Prepare low order VTK output.
void AddFieldDataToVTKHighOrder(po::variables_map &vm, std::string &filename, vtkSmartPointer< vtkUnstructuredGrid > &vtkMesh)
Add field data to high order Lagrange VTK output.
void OutputFromExpLowOrderMultiBlock(po::variables_map &vm, std::string &filename)
Prepare low order multi-block VTK output & add field data.
OutputVtk(FieldSharedPtr f)
vtkSmartPointer< vtkUnstructuredGrid > m_vtkMesh
Cache file for unstructured grid VTK mesh data.
void v_OutputFromExp(po::variables_map &vm) final
Write from m_exp to output file.
void v_OutputFromPts(po::variables_map &vm) final
Write from pts to output file.
vtkUnstructuredGrid * GetVtkGrid()
bool m_extraPlane
Flag if extra plane in case of fourier expansion in homogeneous dir.
int m_numPlanes
Number of planes if homogeneous.
std::string v_GetModuleName() final
void v_OutputFromData(po::variables_map &vm) final
Write from data to output file.
void AddFieldDataToVTKLowOrder(po::variables_map &vm, std::string &filename, vtkSmartPointer< vtkUnstructuredGrid > &vtkMesh)
Add field data to low order VTK output.
void WriteVTK(vtkDataObject *vtkMesh, std::string &filename, po::variables_map &vm)
Write VTK file using.
vtkSmartPointer< vtkUnstructuredGrid > OutputFromExpHighOrder(po::variables_map &vm)
Prepare high order Lagrange VTK output.
static ModuleKey m_className
~OutputVtk() final=default
bool m_cachedMesh
Flag if mesh has been cached.
static std::shared_ptr< Module > create(const FieldSharedPtr &f)
Creates an instance of this class.
void WritePVtu(po::variables_map &vm)
Write the parallel .pvtu file.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey