A VTK output module to simplify writing dumux simulation data to VTK format. More...
#include <dumux/io/pointcloudvtkwriter.hh>
A VTK output module to simplify writing dumux simulation data to VTK format.
Handles the output of scalar and vector fields to VTK formatted file for multiple variables and timesteps. Certain predefined fields can be registered on problem / model initialization and/or be turned on/off using the designated properties. Additionally non-standardized scalar and vector fields can be added to the writer manually.
Public Types | |
using | ScalarFunction = VTKFunction< std::vector< Scalar > > |
using | VectorFunction = VTKFunction< std::vector< DimWorldVector > > |
Public Member Functions | |
PointCloudVtkWriter (const std::vector< GlobalPosition > &coordinates) | |
void | write (const std::string &name, Dune::VTK::OutputType type=Dune::VTK::ascii) |
Create an output file. More... | |
void | pwrite (const std::string &name, const std::string &path, const std::string &extendpath, Dune::VTK::OutputType type=Dune::VTK::ascii) |
Create an output file in parallel. More... | |
void | addPointData (const std::vector< Scalar > &v, const std::string &name) |
Add a vector of scalar data that live on arbitrary points to the visualization. More... | |
void | addPointData (const std::vector< DimWorldVector > &v, const std::string &name) |
Add a vector of vector data that live on arbitrary points to the visualization. More... | |
void | clear () |
Clears the data lists. More... | |
std::string | getSerialPieceName (const std::string &name, const std::string &path) const |
Return name of a serial header file. More... | |
std::string | getParallelHeaderName (const std::string &name, const std::string &path, int commSize) const |
Return name of a parallel header file. More... | |
using Dumux::PointCloudVtkWriter< Scalar, GlobalPosition >::ScalarFunction = VTKFunction<std::vector<Scalar> > |
using Dumux::PointCloudVtkWriter< Scalar, GlobalPosition >::VectorFunction = VTKFunction<std::vector<DimWorldVector> > |
|
inline |
|
inline |
Add a vector of vector data that live on arbitrary points to the visualization.
v | The vector containing the data |
name | The name of the data set |
|
inline |
Add a vector of scalar data that live on arbitrary points to the visualization.
v | The vector containing the data |
name | The name of the data set |
|
inline |
Clears the data lists.
|
inline |
Return name of a parallel header file.
name | Base name of the VTK output. This should be without any directory parts and without a filename extension. |
path | Directory part of the resulting header name. May be empty, in which case the resulting name will not have a directory part. If non-empty, may or may not have a trailing '/'. If a trailing slash is missing, one is appended implicitly. |
commSize | Number of processes writing a parallel vtk output. |
|
inline |
Return name of a serial header file.
name | Base name of the VTK output. This should be without any directory parts and without a filename extension. |
path | Directory part of the resulting header name. May be empty, in which case the resulting name will not have a directory part. If non-empty, may or may not have a trailing '/'. If a trailing slash is missing, one is appended implicitly. |
|
inline |
Create an output file in parallel.
name | Base name of the output files. This should not contain any directory part and not filename extensions. It will be used both for each processes piece as well as the parallel collection file |
path | Directory where to put the parallel collection (.pvtu/.pvtp) file. If it is relative, it is taken relative to the current directory |
extendpath | Directory where to put the piece file (.vtu/.vtp) of this process. If it is relative, it is taken relative to the directory denoted by path |
type | How to encode the data in the file |
|
inline |
Create an output file.
name | The base name |
type | The output type |