Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
read_checkpoint.cc File Reference
#include <core/checkpoint_control.h>
#include <core/utilities.h>
#include <dem/dem_action_manager.h>
#include <dem/read_checkpoint.h>
#include <boost/archive/text_iarchive.hpp>
#include <fstream>
Include dependency graph for read_checkpoint.cc:

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)
template void read_checkpoint (TimerOutput &computing_timer, const DEMSolverParameters< 2 > &parameters, std::shared_ptr< SimulationControl > &simulation_control, PVDHandler &particles_pvdhandler, PVDHandler &grid_pvdhandler, parallel::distributed::Triangulation< 2 > &triangulation, Particles::ParticleHandler< 2 > &particle_handler, std::shared_ptr< Insertion< 2, DEM::DEMProperties::PropertiesIndex > > &insertion_object, std::vector< std::shared_ptr< SerialSolid< 1, 2 > > > &solid_surfaces, CheckpointControl &checkpoint_controller)
template void read_checkpoint (TimerOutput &computing_timer, const DEMSolverParameters< 3 > &parameters, std::shared_ptr< SimulationControl > &simulation_control, PVDHandler &particles_pvdhandler, PVDHandler &grid_pvdhandler, parallel::distributed::Triangulation< 3 > &triangulation, Particles::ParticleHandler< 3 > &particle_handler, std::shared_ptr< Insertion< 3, DEM::DEMProperties::PropertiesIndex > > &insertion_object, std::vector< std::shared_ptr< SerialSolid< 2, 3 > > > &solid_surfaces, CheckpointControl &checkpoint_controller)
template void read_checkpoint (TimerOutput &computing_timer, const DEMSolverParameters< 2 > &parameters, std::shared_ptr< SimulationControl > &simulation_control, PVDHandler &particles_pvdhandler, PVDHandler &grid_pvdhandler, parallel::distributed::Triangulation< 2 > &triangulation, Particles::ParticleHandler< 2 > &particle_handler, std::shared_ptr< Insertion< 2, DEM::CFDDEMProperties::PropertiesIndex > > &insertion_object, std::vector< std::shared_ptr< SerialSolid< 1, 2 > > > &solid_surfaces, CheckpointControl &checkpoint_controller)
template void read_checkpoint (TimerOutput &computing_timer, const DEMSolverParameters< 3 > &parameters, std::shared_ptr< SimulationControl > &simulation_control, PVDHandler &particles_pvdhandler, PVDHandler &grid_pvdhandler, parallel::distributed::Triangulation< 3 > &triangulation, Particles::ParticleHandler< 3 > &particle_handler, std::shared_ptr< Insertion< 3, DEM::CFDDEMProperties::PropertiesIndex > > &insertion_object, std::vector< std::shared_ptr< SerialSolid< 2, 3 > > > &solid_surfaces, CheckpointControl &checkpoint_controller)
template void read_checkpoint (TimerOutput &computing_timer, const DEMSolverParameters< 2 > &parameters, std::shared_ptr< SimulationControl > &simulation_control, PVDHandler &particles_pvdhandler, PVDHandler &grid_pvdhandler, parallel::distributed::Triangulation< 2 > &triangulation, Particles::ParticleHandler< 2 > &particle_handler, std::shared_ptr< Insertion< 2, DEM::DEMMPProperties::PropertiesIndex > > &insertion_object, std::vector< std::shared_ptr< SerialSolid< 1, 2 > > > &solid_surfaces, CheckpointControl &checkpoint_controller)
template void read_checkpoint (TimerOutput &computing_timer, const DEMSolverParameters< 2 > &parameters, std::shared_ptr< SimulationControl > &simulation_control, PVDHandler &particles_pvdhandler, PVDHandler &grid_pvdhandler, parallel::distributed::Triangulation< 2 > &triangulation, Particles::ParticleHandler< 2 > &particle_handler, std::shared_ptr< Insertion< 2, DEM::CFDDEMMPProperties::PropertiesIndex > > &insertion_object, std::vector< std::shared_ptr< SerialSolid< 1, 2 > > > &solid_surfaces, CheckpointControl &checkpoint_controller)
template void read_checkpoint (TimerOutput &computing_timer, const DEMSolverParameters< 3 > &parameters, std::shared_ptr< SimulationControl > &simulation_control, PVDHandler &particles_pvdhandler, PVDHandler &grid_pvdhandler, parallel::distributed::Triangulation< 3 > &triangulation, Particles::ParticleHandler< 3 > &particle_handler, std::shared_ptr< Insertion< 3, DEM::DEMMPProperties::PropertiesIndex > > &insertion_object, std::vector< std::shared_ptr< SerialSolid< 2, 3 > > > &solid_surfaces, CheckpointControl &checkpoint_controller)
template void read_checkpoint (TimerOutput &computing_timer, const DEMSolverParameters< 3 > &parameters, std::shared_ptr< SimulationControl > &simulation_control, PVDHandler &particles_pvdhandler, PVDHandler &grid_pvdhandler, parallel::distributed::Triangulation< 3 > &triangulation, Particles::ParticleHandler< 3 > &particle_handler, std::shared_ptr< Insertion< 3, DEM::CFDDEMMPProperties::PropertiesIndex > > &insertion_object, std::vector< std::shared_ptr< SerialSolid< 2, 3 > > > &solid_surfaces, CheckpointControl &checkpoint_controller)

Function Documentation

◆ read_checkpoint() [1/9]

template void read_checkpoint ( TimerOutput & computing_timer,
const DEMSolverParameters< 2 > & parameters,
std::shared_ptr< SimulationControl > & simulation_control,
PVDHandler & particles_pvdhandler,
PVDHandler & grid_pvdhandler,
parallel::distributed::Triangulation< 2 > & triangulation,
Particles::ParticleHandler< 2 > & particle_handler,
std::shared_ptr< Insertion< 2, DEM::CFDDEMMPProperties::PropertiesIndex > > & insertion_object,
std::vector< std::shared_ptr< SerialSolid< 1, 2 > > > & solid_surfaces,
CheckpointControl & checkpoint_controller )

◆ read_checkpoint() [2/9]

template void read_checkpoint ( TimerOutput & computing_timer,
const DEMSolverParameters< 2 > & parameters,
std::shared_ptr< SimulationControl > & simulation_control,
PVDHandler & particles_pvdhandler,
PVDHandler & grid_pvdhandler,
parallel::distributed::Triangulation< 2 > & triangulation,
Particles::ParticleHandler< 2 > & particle_handler,
std::shared_ptr< Insertion< 2, DEM::CFDDEMProperties::PropertiesIndex > > & insertion_object,
std::vector< std::shared_ptr< SerialSolid< 1, 2 > > > & solid_surfaces,
CheckpointControl & checkpoint_controller )

◆ read_checkpoint() [3/9]

template void read_checkpoint ( TimerOutput & computing_timer,
const DEMSolverParameters< 2 > & parameters,
std::shared_ptr< SimulationControl > & simulation_control,
PVDHandler & particles_pvdhandler,
PVDHandler & grid_pvdhandler,
parallel::distributed::Triangulation< 2 > & triangulation,
Particles::ParticleHandler< 2 > & particle_handler,
std::shared_ptr< Insertion< 2, DEM::DEMMPProperties::PropertiesIndex > > & insertion_object,
std::vector< std::shared_ptr< SerialSolid< 1, 2 > > > & solid_surfaces,
CheckpointControl & checkpoint_controller )

◆ read_checkpoint() [4/9]

template void read_checkpoint ( TimerOutput & computing_timer,
const DEMSolverParameters< 2 > & parameters,
std::shared_ptr< SimulationControl > & simulation_control,
PVDHandler & particles_pvdhandler,
PVDHandler & grid_pvdhandler,
parallel::distributed::Triangulation< 2 > & triangulation,
Particles::ParticleHandler< 2 > & particle_handler,
std::shared_ptr< Insertion< 2, DEM::DEMProperties::PropertiesIndex > > & insertion_object,
std::vector< std::shared_ptr< SerialSolid< 1, 2 > > > & solid_surfaces,
CheckpointControl & checkpoint_controller )

◆ read_checkpoint() [5/9]

template void read_checkpoint ( TimerOutput & computing_timer,
const DEMSolverParameters< 3 > & parameters,
std::shared_ptr< SimulationControl > & simulation_control,
PVDHandler & particles_pvdhandler,
PVDHandler & grid_pvdhandler,
parallel::distributed::Triangulation< 3 > & triangulation,
Particles::ParticleHandler< 3 > & particle_handler,
std::shared_ptr< Insertion< 3, DEM::CFDDEMMPProperties::PropertiesIndex > > & insertion_object,
std::vector< std::shared_ptr< SerialSolid< 2, 3 > > > & solid_surfaces,
CheckpointControl & checkpoint_controller )

◆ read_checkpoint() [6/9]

template void read_checkpoint ( TimerOutput & computing_timer,
const DEMSolverParameters< 3 > & parameters,
std::shared_ptr< SimulationControl > & simulation_control,
PVDHandler & particles_pvdhandler,
PVDHandler & grid_pvdhandler,
parallel::distributed::Triangulation< 3 > & triangulation,
Particles::ParticleHandler< 3 > & particle_handler,
std::shared_ptr< Insertion< 3, DEM::CFDDEMProperties::PropertiesIndex > > & insertion_object,
std::vector< std::shared_ptr< SerialSolid< 2, 3 > > > & solid_surfaces,
CheckpointControl & checkpoint_controller )

◆ read_checkpoint() [7/9]

template void read_checkpoint ( TimerOutput & computing_timer,
const DEMSolverParameters< 3 > & parameters,
std::shared_ptr< SimulationControl > & simulation_control,
PVDHandler & particles_pvdhandler,
PVDHandler & grid_pvdhandler,
parallel::distributed::Triangulation< 3 > & triangulation,
Particles::ParticleHandler< 3 > & particle_handler,
std::shared_ptr< Insertion< 3, DEM::DEMMPProperties::PropertiesIndex > > & insertion_object,
std::vector< std::shared_ptr< SerialSolid< 2, 3 > > > & solid_surfaces,
CheckpointControl & checkpoint_controller )

◆ read_checkpoint() [8/9]

template void read_checkpoint ( TimerOutput & computing_timer,
const DEMSolverParameters< 3 > & parameters,
std::shared_ptr< SimulationControl > & simulation_control,
PVDHandler & particles_pvdhandler,
PVDHandler & grid_pvdhandler,
parallel::distributed::Triangulation< 3 > & triangulation,
Particles::ParticleHandler< 3 > & particle_handler,
std::shared_ptr< Insertion< 3, DEM::DEMProperties::PropertiesIndex > > & insertion_object,
std::vector< std::shared_ptr< SerialSolid< 2, 3 > > > & solid_surfaces,
CheckpointControl & checkpoint_controller )

◆ read_checkpoint() [9/9]

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().