6#include "../data/PatchData.h"
12#include <vtkImageData.h>
13#include <vtkSmartPointer.h>
14#include <vtkUnstructuredGrid.h>
30 class PeanoTextPatchFileReader;
37 VTUWriter(
const std::string& directory,
const std::string& outputFileWithoutExtention);
87 static int xyzToIndex(
int x,
int y,
int z,
int verticesPerAxis);
A patch is a square or cube in the domain.
Represents one variable that is subsequently attached to the patches of a file.
const std::string & _outputFileWithoutExtension
const std::string & _directory
VTUWriter(const std::string &directory, const std::string &outputFileWithoutExtention)
static tarch::logging::Log _log
Meta file write.
virtual ~VTUWriter() override
static int xyzToIndex(int x, int y, int z, int verticesPerAxis)
Helper function that we use extensively when we map a patch within one cell onto an unstructured grid...
virtual void writeFile(const convert::data::Variable &variable, const std::vector< convert::data::PatchData > &data) override
Our writers write only one variable at a time even though the Peano file format can hold multiple var...