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,
63 iteration, converged);
76 std::string
const& mesh_name)
const
85 std::string suffix,
bool const compression)
86 : directory(directory),
87 prefix(std::move(prefix)),
88 suffix(std::move(suffix)),
89 compression(compression)
97 bool const converged)
const
100 iteration, converged) +
102 iteration, converged) +
107 std::string
const& mesh_name,
int const timestep,
double const t,
108 int const iteration,
bool const converged)
const
111 iteration, converged) +
116 std::set<std::string>
const& output_variables,
117 std::vector<std::reference_wrapper<const MeshLib::Mesh>>
const& meshes,
118 int const timestep,
double const t,
int const iteration,
119 bool const converged)
const
125 iteration, converged);
138 const int timestep,
const double t,
const int iteration,
139 bool const converged,
140 std::vector<std::reference_wrapper<const MeshLib::Mesh>>
const& meshes,
141 [[maybe_unused]] std::set<std::string>
const& output_variables)
const
143 for (
auto const& mesh : meshes)
146 outputMeshVtk(*
this, pvd_file, mesh, t, timestep, iteration, converged);
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, 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)