36 #ifndef VTKMESHWRITER_HPP_
37 #define VTKMESHWRITER_HPP_
41 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the strstream deprecated warning for now (gcc4.3)
42 #include <vtkDoubleArray.h>
43 #include <vtkCellData.h>
44 #include <vtkPointData.h>
46 #include <vtkTriangle.h>
48 #include <vtkUnstructuredGrid.h>
49 #include <vtkUnstructuredGridWriter.h>
50 #include <vtkXMLUnstructuredGridWriter.h>
51 #include <vtkXMLPUnstructuredGridWriter.h>
53 #include <vtkDataCompressor.h>
54 #include "AbstractTetrahedralMeshWriter.hpp"
55 #include "Version.hpp"
61 template<
unsigned SPACE_DIM>
70 template <
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
119 VtkMeshWriter(
const std::string& rDirectory,
const std::string& rBaseName,
const bool& rCleanDirectory=
true);
134 void AddCellData(std::string name, std::vector<double> data);
143 void AddCellData(std::string name, std::vector<c_vector<double, SPACE_DIM> > data);
153 void AddTensorCellData(std::string name, std::vector<c_vector<
double,SPACE_DIM*(SPACE_DIM+1)/2> > data);
162 void AddTensorCellData(std::string name, std::vector<c_matrix<double,SPACE_DIM,SPACE_DIM> > data);
172 void AddPointData(std::string name, std::vector<double> data);
181 void AddPointData(std::string name, std::vector<c_vector<double, SPACE_DIM> > data);
190 void AddTensorPointData(std::string name, std::vector<c_matrix<double,SPACE_DIM,SPACE_DIM> > data);
213 bool keepOriginalElementIndexing=
true);
vtkUnstructuredGrid * mpVtkUnstructedMesh
void SetParallelFiles(AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh)
void AddCellData(std::string name, std::vector< double > data)
void AddProvenance(std::string fileName)
void WriteFilesUsingMesh(AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, bool keepOriginalElementIndexing=true)
void AddTensorCellData(std::string name, std::vector< c_vector< double, SPACE_DIM *(SPACE_DIM+1)/2 > > data)
void AddTensorPointData(std::string name, std::vector< c_matrix< double, SPACE_DIM, SPACE_DIM > > data)
std::vector< std::vector< unsigned > > mNodesToReceivePerProcess
NodesOnlyMesh< SPACE_DIM > * mpNodesOnlyMesh
std::vector< std::vector< unsigned > > mNodesToSendPerProcess
std::map< unsigned, unsigned > mGlobalToNodeIndexMap
VtkMeshWriter(const std::string &rDirectory, const std::string &rBaseName, const bool &rCleanDirectory=true)
void AddPointData(std::string name, std::vector< double > data)