33 std::string
const& mesh_name)
const
40 std::forward_as_tuple(mesh_name),
41 std::forward_as_tuple(filename));
42 return p.first->second;
49 bool const compress_output,
int const data_mode)
51 DBUG(
"Writing output to '{:s}'.", file_name);
59 double const t,
int const timestep,
int const iteration)
75 std::string
const& mesh_name)
const
84 std::string suffix,
bool const compression)
85 : directory(directory),
86 prefix(std::move(prefix)),
87 suffix(std::move(suffix)),
88 compression(compression)
95 int const iteration)
const
105 std::string
const& mesh_name,
int const timestep,
double const t,
106 int const iteration)
const
114 std::set<std::string>
const& output_variables,
115 std::vector<std::reference_wrapper<const MeshLib::Mesh>>
const& meshes,
116 int const timestep,
double const t,
int const iteration)
const
135 const int timestep,
const double t,
const int iteration,
136 std::vector<std::reference_wrapper<const MeshLib::Mesh>>
const& meshes,
137 [[maybe_unused]] std::set<std::string>
const& output_variables)
const
139 for (
auto const& mesh : meshes)
142 outputMeshVtk(*
this, pvd_file, mesh, t, timestep, iteration);
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Implementation of the VtuInterface class.
XdmfWriter which create contiguous data for geometry and topology and writes this and all attributes ...
void addVTUFile(std::string const &vtu_fname, double timestep)
Add a VTU file to this PVD file.
Reads and writes VtkXMLUnstructuredGrid-files (vtu) to and from OGS data structures....
bool writeToFile(std::filesystem::path const &file_path)
const std::string getName() const
Get name of the mesh.
std::string constructFormattedFileName(std::string const &format_specification, std::string const &mesh_name, int const timestep, double const t, int const iteration)
std::string joinPaths(std::string const &pathA, std::string const &pathB)
void outputMeshVtk(std::string const &file_name, MeshLib::Mesh const &mesh, bool const compress_output, int const data_mode)