|
dune-vtk 2.12
|
Loading...
Searching...
No Matches
Dune::Vtk::TimeseriesWriter< VtkWriter > Class Template Reference
File-Writer for Vtk timeseries .vtu files. More...
#include <dune/vtk/timeserieswriter.hh>
Inheritance diagram for Dune::Vtk::TimeseriesWriter< VtkWriter >:

Public Member Functions | |
| template<class... Args, disableCopyMove< Self, Args... > = 0> | |
| TimeseriesWriter (Args &&... args) | |
| Constructor, stores the gridView. | |
| ~TimeseriesWriter () | |
| 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> | |
| TimeseriesWriter & | addPointData (Function const &fct, Args &&... args) |
| Attach point data to the writer,. | |
| template<class Function , class... Args> | |
| TimeseriesWriter & | addCellData (Function const &fct, Args &&... args) |
| Attach cell data to the writer,. | |
Protected Types | |
| using | Self = TimeseriesWriter |
| using | pos_type = typename std::ostream::pos_type |
| template<class W > | |
| using | HasWriteTimeseriesSerialFile = decltype(&W::writeTimeseriesSerialFile) |
| template<class W > | |
| using | HasWriteTimeseriesParallelFile = decltype(&W::writeTimeseriesParallelFile) |
Protected Attributes | |
| VtkWriter | vtkWriter_ |
| Vtk::Path | tmpDir_ |
| bool | initialized_ = false |
| std::vector< std::uint64_t > | blocks_ |
| std::string | filenameMesh_ |
| std::vector< std::pair< double, std::string > > | timesteps_ |
Detailed Description
template<class VtkWriter>
class Dune::Vtk::TimeseriesWriter< VtkWriter >
class Dune::Vtk::TimeseriesWriter< VtkWriter >
File-Writer for Vtk timeseries .vtu files.
- Template Parameters
-
VtkWriter Type of a FileWriter derived from VtkWriterBase that additionally supports writeTimeseriesSerialFile() and writeTimeseriesParallelFile(), e.g. VtkUnstructuredGridWriter.
Member Typedef Documentation
◆ HasWriteTimeseriesParallelFile
template<class VtkWriter >
template<class W >
|
protected |
◆ HasWriteTimeseriesSerialFile
template<class VtkWriter >
template<class W >
|
protected |
◆ pos_type
template<class VtkWriter >
|
protected |
◆ Self
template<class VtkWriter >
|
protected |
Constructor & Destructor Documentation
◆ TimeseriesWriter()
template<class VtkWriter >
template<class... Args, disableCopyMove< Self, Args... > = 0>
|
inline |
Constructor, stores the gridView.
◆ ~TimeseriesWriter()
template<class W >
| Dune::Vtk::TimeseriesWriter< W >::~TimeseriesWriter | ( | ) |
Remove all written intermediate files and remove temporary directory.
Member Function Documentation
◆ addCellData()
template<class VtkWriter >
template<class Function , class... Args>
|
inline |
Attach cell data to the writer,.
- See also
- Vtk::GridFunction for possible arguments
◆ addPointData()
template<class VtkWriter >
template<class Function , class... Args>
|
inline |
Attach point data to the writer,.
- See also
- Vtk::GridFunction for possible arguments
◆ write()
template<class W >
|
overridevirtual |
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::Vtk::TimeseriesWriter< 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
Member Data Documentation
◆ blocks_
template<class VtkWriter >
|
mutableprotected |
◆ filenameMesh_
template<class VtkWriter >
|
mutableprotected |
◆ initialized_
template<class VtkWriter >
|
mutableprotected |
◆ timesteps_
template<class VtkWriter >
|
mutableprotected |
◆ tmpDir_
template<class VtkWriter >
|
protected |
◆ vtkWriter_
template<class VtkWriter >
|
protected |
The documentation for this class was generated from the following files:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8