15 template <
class VtkWriter>
23 template <
class... Args,
24 disableCopyMove<
Self,Args...> = 0>
43 void writeTimestep (
double time, std::string
const& fn, std::optional<std::string> dir = {},
44 bool writeCollection =
true)
const;
53 virtual std::string
write (std::string
const& fn, std::optional<std::string> dir = {})
const override;
56 template <
class Function,
class... Args>
64 template <
class Function,
class... Args>
73 void writeFile (std::ofstream& out)
const;
80 mutable std::vector<std::pair<double, std::string>>
timesteps_;
FormatTypes
Type used for representing the output format.
Definition: types.hh:21
DataTypes
Definition: types.hh:52
Definition: filewriter.hh:11
File-Writer for ParaView .pvd files.
Definition: pvdwriter.hh:18
Vtk::DataTypes datatype_
Definition: pvdwriter.hh:78
void writeTimestep(double time, std::string const &fn, std::optional< std::string > dir={}, bool writeCollection=true) const
Write the attached data to the file.
Definition: pvdwriter.impl.hh:13
virtual std::string write(std::string const &fn, std::optional< std::string > dir={}) const override
Writes collection of timesteps to .pvd file.
Definition: pvdwriter.impl.hh:53
void writeFile(std::ofstream &out) const
Write a series of vtk files in a .pvd ParaView Data file.
Definition: pvdwriter.impl.hh:82
VtkWriter vtkWriter_
Definition: pvdwriter.hh:76
PvdWriter & addPointData(Function const &fct, Args &&... args)
Attach point data to the writer,.
Definition: pvdwriter.hh:57
std::vector< std::pair< double, std::string > > timesteps_
Definition: pvdwriter.hh:80
PvdWriter & addCellData(Function const &fct, Args &&... args)
Attach cell data to the writer,.
Definition: pvdwriter.hh:65
Vtk::FormatTypes format_
Definition: pvdwriter.hh:77
PvdWriter(Args &&... args)
Constructor, creates a VtkWriter with constructor arguments forwarded.
Definition: pvdwriter.hh:25
Default choice of VTK Writer for several grid types.
Definition: vtkwriter.hh:40
Vtk::DataTypes getDatatype() const
Definition: vtkwriterinterface.hh:248
VtkWriterInterface & addPointData(Function &&fct, Args &&... args)
Attach point data to the writer.
Definition: vtkwriterinterface.hh:106
VtkWriterInterface & addCellData(Function &&fct, Args &&... args)
Attach cell data to the writer.
Definition: vtkwriterinterface.hh:124
Vtk::FormatTypes getFormat() const
Definition: vtkwriterinterface.hh:242