-
Elias Pipping authored
This can be used in conjunction with paraview to interpolate data from an unstructured, fine grid (on which plotting a vector field would lead to a mess) onto a structured, coarser grid using the 'Resample with DataSet' filter.
Elias Pipping authoredThis can be used in conjunction with paraview to interpolate data from an unstructured, fine grid (on which plotting a vector field would lead to a mess) onto a structured, coarser grid using the 'Resample with DataSet' filter.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
vtk.hh 555 B
#ifndef SRC_VTK_HH
#define SRC_VTK_HH
#include <string>
template <class VertexBasis, class CellBasis> class MyVTKWriter {
CellBasis const &cellBasis;
VertexBasis const &vertexBasis;
std::string const prefix;
public:
MyVTKWriter(CellBasis const &cellBasis, VertexBasis const &vertexBasis,
std::string prefix);
template <class Vector, class ScalarVector>
void write(size_t record, Vector const &u, Vector const &v,
ScalarVector const &alpha, ScalarVector const &stress) const;
void writeGrid() const;
};
#endif