File-Writer for ParaView .pvd files.
More...
#include <dune/vtk/pvdwriter.hh>
|
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...
|
|
|
void | writeFile (std::ofstream &out) const |
| Write a series of vtk files in a .pvd ParaView Data file. More...
|
|
template<class
VtkWriter>
class Dune::PvdWriter< VtkWriter >
File-Writer for ParaView .pvd files.
◆ PvdWriter()
template<class... Args, disableCopyMove<
Self, Args... > = 0>
Constructor, creates a VtkWriter with constructor arguments forwarded.
◆ addCellData()
template<class Function , class... Args>
Attach cell data to the writer,.
- See also
- Vtk::Function for possible arguments
◆ addPointData()
template<class Function , class... Args>
Attach point data to the writer,.
- See also
- Vtk::Function for possible arguments
◆ write()
template<class W >
std::string Dune::PvdWriter< W >::write |
( |
std::string const & |
fn, |
|
|
std::optional< std::string > |
dir = {} |
|
) |
| const |
|
overridevirtual |
Writes collection of timesteps to .pvd file.
- Parameters
-
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.
◆ writeFile()
Write a series of vtk files in a .pvd ParaView Data file.
◆ writeTimestep()
template<class W >
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
.
- Parameters
-
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 |
◆ datatype_
◆ format_
◆ timesteps_
◆ vtkWriter_
The documentation for this class was generated from the following files: