55 template <
class Function>
65 auto vsDescription = makeVariableSetDescription(
66 makeSpaceList(&f.space()),
69 auto fs = vsDescription.variableSet();
91 : base(basename), pvd((basename+
".pvd").c_str()), count(0), options(options_)
93 pvd <<
"<?xml version=\"1.0\"?>\n"
94 <<
"<VTKFile type=\"Collection\" version=\"0.1\" byte_order=\"" << VTKWriterDetail::vtkEndianness() <<
"\">\n"
101 template <
class VariableSet>
107 pvd <<
" <DataSet timestep=\"" << time <<
"\" file=\"" << fname <<
".vtu\" />\n";
113 pvd <<
" </Collection>\n"
Function is the interface for evaluatable functions .
void add(double time, VariableSet const &vars)
Adds frame with values given by vars at time time to the series.
TimeSeriesVTKWriter(std::string const &basename, IoOptions options_=ioOptions_default)
A class for storing a heterogeneous collection of FunctionSpaceElement s.
std::string paddedString(int n, int places=3)
creates a zero-padded string representation of the given number
void writeVTK(Function const &f, std::string const &filename, IoOptions options, std::string fname)
Writes a single finite element function to a VTK file.
Output of mesh and solution for visualization software.
IoOptions ioOptions_default
Helper class for specifying the number of components of a variable.
options for VTK/AMIRA output
Helper class for specifying the FE space index of a variable.
A class defining elementary information about a single variable.
Variables and their descriptions.