Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
write_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 write_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 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)

Function Documentation

◆ write_checkpoint()

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

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_objectInsertion object
solid_objectsVector of solids objects used in DEM simulations
pcoutPrinting in parallel
mpi_communicator
checkpoint_controllerCheckpoint controller

Definition at line 16 of file write_checkpoint.cc.

References CheckpointControl::get_filename(), CheckpointControl::get_next_checkpoint_id(), Parameters::Lagrangian::LagrangianPostProcessing::lagrangian_post_processing_enabled, DEMSolverParameters< dim >::post_processing, PVDHandler::save(), and CheckpointControl::serialize().