3 #include <spdlog/fmt/bundled/core.h>
10 const std::vector<Particle>& particles)
const {
11 auto file_name = params.
output_dir_path / fmt::format(
"MD_CHKPT_{:08d}.chkpt", iteration);
15 CheckPointFileType::ParticleData_type xsd_particles{};
17 xsd_particles.particle().reserve(particles.size());
19 for (
const Particle& particle : particles) {
23 CheckPointFileType checkpointfile(meta_data, xsd_particles);
25 std::ofstream file(file_name);
26 CheckPoint(file, checkpointfile);
const std::filesystem::path writeFile(const SimulationParams ¶ms, size_t iteration, const std::vector< Particle > &particles) const override
Writes the data of the given ParticleContainer to a .vtu file.
static ParticleType convertToParticle(const Particle &particle)
Class to represent a particle.
Contains all parameters needed to run a simulation.
double delta_t
Time step of a single simulation iteration.
std::filesystem::path output_dir_path
Path to the directory in which to save the simulation output.
std::filesystem::path input_file_path
Path to the input file of the simulation.
std::size_t input_file_hash
Hash of the input file of the simulation.
double end_time
End time of the simulation.