Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
read_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_read_checkpoint_h
5#define lethe_read_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 Read a DEM simulation checkpoint, allowing the simulation to restart
19 * from where it stopped.
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 Shared pointer of Insertion type.
29 * @param solid_surfaces Vector of solids surfaces used in DEM simulations
30 * @param checkpoint_controller Checkpoint controller
31 */
32template <int dim, typename PropertiesIndex>
33void
35 TimerOutput &computing_timer,
36 const DEMSolverParameters<dim> &parameters,
37 std::shared_ptr<SimulationControl> &simulation_control,
38 PVDHandler &particles_pvdhandler,
39 PVDHandler &grid_pvdhandler,
40 parallel::distributed::Triangulation<dim> &triangulation,
41 Particles::ParticleHandler<dim> &particle_handler,
42 std::shared_ptr<Insertion<dim, PropertiesIndex>> &insertion_object,
43 std::vector<std::shared_ptr<SerialSolid<dim - 1, dim>>> &solid_surfaces,
44 CheckpointControl &checkpoint_controller);
45
46#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 read_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_surfaces, CheckpointControl &checkpoint_controller)
Read a DEM simulation checkpoint, allowing the simulation to restart from where it stopped.