PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
pvdCollectionWriter.h
Go to the documentation of this file.
1/*
2 * -------------------------------------------
3 * Copyright (c) 2021 - 2026 Prashant K. Jha
4 * -------------------------------------------
5 * PeriDEM https://github.com/prashjha/PeriDEM
6 *
7 * Distributed under the Boost Software License, Version 1.0. (See accompanying
8 * file LICENSE)
9 */
10
11#ifndef RW_PVD_COLLECTION_WRITER_H
12#define RW_PVD_COLLECTION_WRITER_H
13
14#include <string>
15#include <utility>
16#include <vector>
17
18namespace rw {
19
22 std::string name;
23 std::string type = "Float64";
25};
26
34 const std::string &pvd_path,
35 const std::vector<std::pair<double, std::string>> &time_and_vtu_relative_path);
36
45 const std::string &pvtu_path,
46 const std::vector<std::string> &piece_vtu_relative_paths,
47 const std::vector<PvtuPointArray> &point_arrays = {});
48
49} // namespace rw
50
51#endif
Collection of methods and database related to reading and writing.
void writePvdCollectionFile(const std::string &pvd_path, const std::vector< std::pair< double, std::string > > &time_and_vtu_relative_path)
Write a ParaView VTK collection (.pvd) that lists VTU files with timesteps.
void writePvtuCollectionFile(const std::string &pvtu_path, const std::vector< std::string > &piece_vtu_relative_paths, const std::vector< PvtuPointArray > &point_arrays)
Write a ParaView parallel VTU (.pvtu) that lists per-rank .vtu pieces.
std::string type
VTK XML type, e.g. Float64.