Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
write_checkpoint.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2021, 2023-2025 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_write_checkpoint_h
5#define lethe_write_checkpoint_h
6
7#include <core/pvd_handler.h>
8#include <core/serial_solid.h>
9
11#include <dem/insertion.h>
12
13#include <deal.II/base/timer.h>
14
15#include <deal.II/distributed/tria.h>
16
17/**
18 * @brief Write_checkpoint Write a DEM simulation checkpointing to allow for DEM
19 * simulation restart.
20 *
21 * @param computing_timer Dem timer
22 * @param parameters Input DEM parameters in the parameter handler file
23 * @param simulation_control Simulation control
24 * @param particles_pvdhandler PVD handler
25 * @param grid_pvdhandler PVD handler for post-processing
26 * @param triangulation Triangulation
27 * @param particle_handler Particle handler
28 * @param insertion_object Insertion object
29 * @param solid_objects Vector of solids objects used in DEM simulations
30 * @param pcout Printing in parallel
31 * @param mpi_communicator
32 * @param checkpoint_controller Checkpoint controller
33 */
34template <int dim, typename PropertiesIndex>
35void
37 TimerOutput &computing_timer,
38 const DEMSolverParameters<dim> &parameters,
39 std::shared_ptr<SimulationControl> &simulation_control,
40 PVDHandler &particles_pvdhandler,
41 PVDHandler &grid_pvdhandler,
42 parallel::distributed::Triangulation<dim> &triangulation,
43 Particles::ParticleHandler<dim> &particle_handler,
44 std::shared_ptr<Insertion<dim, PropertiesIndex>> &insertion_object,
45 std::vector<std::shared_ptr<SerialSolid<dim - 1, dim>>> &solid_objects,
46 const ConditionalOStream &pcout,
47 MPI_Comm &mpi_communicator,
48 const CheckpointControl &checkpoint_controller);
49
50#endif
Handles all the parameters declared in the parameter handler file.
Base interface for classes that carry out the insertion of particles in the system.
Definition insertion.h:33
The PVDHandler class manages the storage of the information required to write pvd file....
Definition pvd_handler.h:17
void write_checkpoint(TimerOutput &computing_timer, const DEMSolverParameters< dim > &parameters, std::shared_ptr< SimulationControl > &simulation_control, PVDHandler &particles_pvdhandler, PVDHandler &grid_pvdhandler, parallel::distributed::Triangulation< dim > &triangulation, Particles::ParticleHandler< dim > &particle_handler, std::shared_ptr< Insertion< dim, PropertiesIndex > > &insertion_object, std::vector< std::shared_ptr< SerialSolid< dim - 1, dim > > > &solid_objects, const ConditionalOStream &pcout, MPI_Comm &mpi_communicator, const CheckpointControl &checkpoint_controller)
Write_checkpoint Write a DEM simulation checkpointing to allow for DEM simulation restart.