dune-vtk
0.2
|
File-Writer for ParaView .pvd files. More...
#include <dune/vtk/pvdwriter.hh>
Public Member Functions | |
template<class... Args, disableCopyMove< Self, Args... > = 0> | |
PvdWriter (Args &&... args) | |
Constructor, creates a VtkWriter with constructor arguments forwarded. More... | |
void | writeTimestep (double time, std::string const &fn, std::optional< std::string > dir={}, bool writeCollection=true) const |
Write the attached data to the file. More... | |
virtual std::string | write (std::string const &fn, std::optional< std::string > dir={}) const override |
Writes collection of timesteps to .pvd file. More... | |
template<class Function , class... Args> | |
PvdWriter & | addPointData (Function const &fct, Args &&... args) |
Attach point data to the writer,. More... | |
template<class Function , class... Args> | |
PvdWriter & | addCellData (Function const &fct, Args &&... args) |
Attach cell data to the writer,. More... | |
Protected Member Functions | |
void | writeFile (std::ofstream &out) const |
Write a series of vtk files in a .pvd ParaView Data file. More... | |
Protected Attributes | |
VtkWriter | vtkWriter_ |
Vtk::FormatTypes | format_ |
Vtk::DataTypes | datatype_ |
std::vector< std::pair< double, std::string > > | timesteps_ |
File-Writer for ParaView .pvd files.
|
inlineexplicit |
Constructor, creates a VtkWriter with constructor arguments forwarded.
|
inline |
Attach cell data to the writer,.
|
inline |
Attach point data to the writer,.
|
overridevirtual |
Writes collection of timesteps to .pvd file.
fn | The filename of the PVD file. May contain directory and any filename extension. |
dir | (Ignored) Timestep files are already written and their filenames are stored in timesteps_. |
Implements Dune::Vtk::FileWriter.
|
protected |
Write a series of vtk files in a .pvd ParaView Data file.
void Dune::PvdWriter< W >::writeTimestep | ( | double | time, |
std::string const & | fn, | ||
std::optional< std::string > | dir = {} , |
||
bool | writeCollection = true |
||
) | const |
Write the attached data to the file.
Create timestep files for the data associated to the current timestep time
.
time | The time value of the written data |
fn | Filename of the PVD file to write to. The base part is used to create filenames for the timestep files that are stored in timesteps_. May contain directory and any filename extension. |
dir | Specifies where to write the timestep files. |
writeCollection | Create a collection .pvd file directly |
|
protected |
|
protected |
|
mutableprotected |
|
protected |