A VTK output module to simplify writing dumux simulation data to VTK format. More...
#include <dumux/io/vtkoutputmodule.hh>
A VTK output module to simplify writing dumux simulation data to VTK format.
Public Types | |
using | Field = Vtk::template Field< GridView > |
the type of Field that can be added to this writer More... | |
Public Member Functions | |
VtkOutputModuleBase (const GridGeometry &gridGeometry, const std::string &name, const std::string ¶mGroup="", Dune::VTK::DataMode dm=Dune::VTK::conforming, bool verbose=true) | |
virtual | ~VtkOutputModuleBase ()=default |
const std::string & | paramGroup () const |
the parameter group for getting parameter from the parameter tree More... | |
template<typename Vector > | |
void | addField (const Vector &v, const std::string &name, Vtk::FieldType fieldType=Vtk::FieldType::automatic) |
Add a scalar or vector valued vtk field. More... | |
template<typename Vector > | |
void | addField (const Vector &v, const std::string &name, Dumux::Vtk::Precision precision, Vtk::FieldType fieldType=Vtk::FieldType::automatic) |
Add a scalar or vector valued vtk field. More... | |
void | addField (Field &&field) |
Add a scalar or vector valued vtk field. More... | |
void | write (double time, Dune::VTK::OutputType type=Dune::VTK::ascii) |
Protected Member Functions | |
const GridGeometry & | gridGeometry () const |
bool | verbose () const |
const std::string & | name () const |
Dune::VTK::DataMode | dataMode () const |
Dumux::Vtk::Precision | precision () const |
Dune::VTKWriter< GridView > & | writer () |
Dune::VTKSequenceWriter< GridView > & | sequenceWriter () |
const std::vector< Field > & | fields () const |
using Dumux::VtkOutputModuleBase< GridGeometry >::Field = Vtk::template Field<GridView> |
the type of Field that can be added to this writer
|
inline |
|
virtualdefault |
|
inline |
Add a scalar or vector valued vtk field.
v | The field to be added. Can be any indexable container. Its value type can be a number or itself an indexable container. |
name | The name of the field |
fieldType | The type of the field. This determines whether the values are associated with vertices or elements. By default, the method automatically deduces the correct type for the given input. |
precision | The output precision of this field (see Dune::VTK::Precision) |
|
inline |
Add a scalar or vector valued vtk field.
v | The field to be added. Can be any indexable container. Its value type can be a number or itself an indexable container. |
name | The name of the field |
fieldType | The type of the field. This determines whether the values are associated with vertices or elements. By default, the method automatically deduces the correct type for the given input. |
|
inline |
Add a scalar or vector valued vtk field.
field | The parameters passed on to the field constructor |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
the parameter group for getting parameter from the parameter tree
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Write the data for this timestep to file in four steps (1) We assemble all registered variable fields (2) We register them with the vtk writer (3) The writer writes the output for us (4) Clear the writer for the next time step
output
|
inlineprotected |