File-Writer for Vtk timeseries .vtu files.
More...
#include <dune/vtk/vtktimeserieswriter.hh>
|
template<class... Args, disableCopyMove< Self, Args... > = 0> |
| VtkTimeseriesWriter (Args &&... args) |
| Constructor, stores the gridView.
|
|
| ~VtkTimeseriesWriter () |
| Remove all written intermediate files and remove temporary directory.
|
|
void | writeTimestep (double time, std::string const &fn, std::optional< std::string > tmpDir={}, bool writeCollection=true) const |
| Write the attached data to the file.
|
|
virtual std::string | write (std::string const &fn, std::optional< std::string > dir={}) const override |
| Writes all timesteps to single timeseries file.
|
|
template<class Function , class... Args> |
VtkTimeseriesWriter & | addPointData (Function const &fct, Args &&... args) |
| Attach point data to the writer,.
|
|
template<class Function , class... Args> |
VtkTimeseriesWriter & | addCellData (Function const &fct, Args &&... args) |
| Attach cell data to the writer,.
|
|
template<class
VtkWriter>
class Dune::VtkTimeseriesWriter< VtkWriter >
File-Writer for Vtk timeseries .vtu files.
- Template Parameters
-
◆ HasWriteTimeseriesParallelFile
◆ HasWriteTimeseriesSerialFile
◆ pos_type
◆ Self
◆ VtkTimeseriesWriter()
template<class... Args, disableCopyMove<
Self, Args... > = 0>
Constructor, stores the gridView.
◆ ~VtkTimeseriesWriter()
Remove all written intermediate files and remove temporary directory.
◆ 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
- VtkFunction for possible arguments
◆ write()
Writes all timesteps to single timeseries file.
Create a timeseries file with all timesteps written by writeTimestep.
- Parameters
-
fn | Filename of the Timeseries file. May contain a directory and any file extension. |
dir | The optional parameter specifies the directory of the partition files. |
- Returns
- File name of the actual written file
Implements Dune::Vtk::FileWriter.
◆ writeTimestep()
template<class W >
void Dune::VtkTimeseriesWriter< W >::writeTimestep |
( |
double |
time, |
|
|
std::string const & |
fn, |
|
|
std::optional< std::string > |
tmpDir = {} , |
|
|
bool |
writeCollection = true |
|
) |
| const |
Write the attached data to the file.
Create intermediate files for the data associated to the current timestep time
.
- Parameters
-
time | The time value of the written data |
fn | Filename of the file to write to. Only the base part (without dir and extentsion) is used to write the intermediate file into a tmp directory. |
tmpDir | If the directory is given, it is used as tmp dir, otherwise /tmp. |
writeCollection | Create a timeseries file directly |
◆ blocks_
◆ filenameMesh_
◆ initialized_
◆ timesteps_
◆ tmpDir_
◆ vtkWriter_
The documentation for this class was generated from the following files: