OGS
|
Definition at line 59 of file OutputFormat.h.
#include <OutputFormat.h>
Public Member Functions | |
OutputVTKFormat (std::string const &directory, std::string prefix, std::string suffix, bool const compression, int const data_mode) | |
void | outputMeshes (const int timestep, const double t, const int iteration, std::vector< std::reference_wrapper< const MeshLib::Mesh > > const &meshes, std::set< std::string > const &output_variables) const override |
MeshLib::IO::PVDFile & | findOrCreatePVDFile (std::string const &mesh_name) const |
std::string | constructFilename (std::string const &mesh_name, int const timestep, double const t, int const iteration) const override |
std::string | constructPVDName (std::string const &mesh_name) const |
Public Member Functions inherited from ProcessLib::OutputFormat | |
OutputFormat (std::string const &directory, std::string prefix, std::string suffix, bool const compression) | |
virtual | ~OutputFormat ()=default |
OutputFormat (OutputFormat const &other)=delete | |
OutputFormat (OutputFormat &&other)=default | |
OutputFormat & | operator= (OutputFormat &other)=delete |
OutputFormat & | operator= (OutputFormat &&other)=default |
Public Attributes | |
int | data_mode |
std::map< std::string, MeshLib::IO::PVDFile > | mesh_name_to_pvd_file |
Holds the PVD files associated with the meshes. | |
Public Attributes inherited from ProcessLib::OutputFormat | |
std::string | directory |
std::string | prefix |
std::string | suffix |
bool | compression |
Enables or disables zlib-compression of the output files. | |
|
inline |
Definition at line 61 of file OutputFormat.h.
|
overridevirtual |
Implements ProcessLib::OutputFormat.
Definition at line 92 of file OutputFormat.cpp.
References BaseLib::constructFormattedFileName(), ProcessLib::OutputFormat::prefix, and ProcessLib::OutputFormat::suffix.
Referenced by ProcessLib::outputMeshVtk().
std::string ProcessLib::OutputVTKFormat::constructPVDName | ( | std::string const & | mesh_name | ) | const |
Definition at line 74 of file OutputFormat.cpp.
References BaseLib::constructFormattedFileName(), ProcessLib::OutputFormat::directory, BaseLib::joinPaths(), and ProcessLib::OutputFormat::prefix.
Referenced by findOrCreatePVDFile().
MeshLib::IO::PVDFile & ProcessLib::OutputVTKFormat::findOrCreatePVDFile | ( | std::string const & | mesh_name | ) | const |
Get a reference to the PVDFile corresponding to the given filename
mesh_name | the name of the mesh the PVD file is searched for |
Definition at line 32 of file OutputFormat.cpp.
References constructPVDName(), and mesh_name_to_pvd_file.
Referenced by outputMeshes().
|
overridevirtual |
Implements ProcessLib::OutputFormat.
Definition at line 134 of file OutputFormat.cpp.
References findOrCreatePVDFile(), and ProcessLib::outputMeshVtk().
int ProcessLib::OutputVTKFormat::data_mode |
Chooses vtk's data mode for output following the enumeration given in the vtkXMLWriter: {Ascii, Binary, Appended}. See vtkXMLWriter documentation http://www.vtk.org/doc/nightly/html/classvtkXMLWriter.html
Definition at line 79 of file OutputFormat.h.
Referenced by ProcessLib::Output::doOutputNonlinearIteration(), and ProcessLib::outputMeshVtk().
|
mutable |
Holds the PVD files associated with the meshes.
Definition at line 82 of file OutputFormat.h.
Referenced by findOrCreatePVDFile().