26 std::string
const& mesh_name)
const
33 std::forward_as_tuple(mesh_name),
34 std::forward_as_tuple(filename));
35 return p.first->second;
42 bool const compress_output,
int const data_mode)
44 DBUG(
"Writing output to '{:s}'.", file_name);
52 double const t,
int const timestep,
int const iteration,
56 iteration, converged);
69 std::string
const& mesh_name)
const
90 bool const converged)
const
93 iteration, converged) +
95 iteration, converged) +
100 std::string
const& mesh_name,
int const timestep,
double const t,
101 int const iteration,
bool const converged)
const
104 iteration, converged) +
109 std::set<std::string>
const& output_variables,
110 std::vector<std::reference_wrapper<const MeshLib::Mesh>>
const& meshes,
111 int const timestep,
double const t,
int const iteration,
112 bool const converged)
const
118 iteration, converged);
131 const int timestep,
const double t,
const int iteration,
132 bool const converged,
133 std::vector<std::reference_wrapper<const MeshLib::Mesh>>
const& meshes,
134 [[maybe_unused]] std::set<std::string>
const& output_variables)
const
136 for (
auto const& mesh : meshes)
139 outputMeshVtk(*
this, pvd_file, mesh, t, timestep, iteration, converged);
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
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, bool const converged)
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)