Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
read_checkpoint.h File Reference
#include <core/pvd_handler.h>
#include <core/serial_solid.h>
#include <dem/dem_solver_parameters.h>
#include <dem/insertion.h>
#include <deal.II/base/timer.h>
#include <deal.II/distributed/tria.h>
Include dependency graph for read_checkpoint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<int dim, typename PropertiesIndex>
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)

Function Documentation

◆ read_checkpoint()

template<int dim, typename PropertiesIndex>
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.

Parameters
computing_timerDem timer
parametersInput DEM parameters in the parameter handler file
simulation_controlSimulation control
particles_pvdhandlerPVD handler
grid_pvdhandlerPVD handler for post-processing
triangulationTriangulation
particle_handlerParticle handler
insertion_objectShared pointer of Insertion type.
solid_surfacesVector of solids surfaces used in DEM simulations
checkpoint_controllerCheckpoint controller

Definition at line 18 of file read_checkpoint.cc.

References check_file_exists(), CheckpointControl::deserialize(), DEMActionManager::get_action_manager(), CheckpointControl::get_filename(), CheckpointControl::get_next_checkpoint_id(), Parameters::Lagrangian::LagrangianPostProcessing::lagrangian_post_processing_enabled, DEMSolverParameters< dim >::post_processing, and PVDHandler::read().