27#include <deal.II/base/table_handler.h>
29#include <deal.II/grid/grid_out.h>
38template <
int dim,
typename PropertiesIndex>
48 Triangulation<dim>::limit_level_difference_at_vertices)
54 TimerOutput::wall_times)
58 parameters.lagrangian_physical_properties.particle_type_number)
61template <
int dim,
typename PropertiesIndex>
73 "Simplex meshes are not supported by DEM simulations. Set 'simplex = false' in the mesh subsection."));
82 std::string output_dir_name =
parameters.simulation_control.output_folder;
88 if (stat(output_dir_name.c_str(), &buffer) != 0)
111 if (
parameters.model_parameters.sparse_particle_contacts)
114 parameters.model_parameters.granular_temperature_threshold,
115 parameters.model_parameters.solid_fraction_threshold,
116 parameters.model_parameters.advect_particles);
136 if (!
parameters.boundary_conditions.periodic_boundaries.empty())
138 parameters.boundary_conditions.periodic_boundaries);
148 if (
parameters.model_parameters.load_balance_method !=
155 parameters.model_parameters.disable_position_integration;
158template <
int dim,
typename PropertiesIndex>
170 std::pow(
parameters.model_parameters.neighborhood_threshold *
175template <
int dim,
typename PropertiesIndex>
180 for (
unsigned int i_solid = 0;
181 i_solid <
parameters.solid_objects->number_solid_surfaces;
185 this->
parameters.solid_objects->solid_surfaces[i_solid], i_solid));
188 for (
unsigned int i_solid = 0;
189 i_solid <
parameters.solid_objects->number_solid_volumes;
193 this->
parameters.solid_objects->solid_volumes[i_solid], i_solid));
207template <
int dim,
typename PropertiesIndex>
222 if (
parameters.insertion_info.insertion_method ==
225 pcout <<
"\nUsing packed insertion method. This method overrides the\n"
226 "regular contact model. Please consult the documentation for\n"
227 "information on how to appropriately use it.\n"
231 parameters.model_parameters.particle_particle_contact_force_model =
233 parameters.model_parameters.particle_wall_contact_force_method =
236 if (
parameters.model_parameters.sparse_particle_contacts)
253template <
int dim,
typename PropertiesIndex>
259 contact_detection_method =
260 parameters.model_parameters.contact_detection_method;
262 switch (contact_detection_method)
269 throw(std::runtime_error(
"Invalid contact detection method."));
273template <
int dim,
typename PropertiesIndex>
274std::shared_ptr<Integrator<dim, PropertiesIndex>>
279 parameters.model_parameters.integration_method;
281 switch (integration_method)
284 return std::make_shared<
287 return std::make_shared<
290 throw(std::runtime_error(
"Invalid integration method."));
294template <
int dim,
typename PropertiesIndex>
304 for (
unsigned int i_box = 0;
309 Triangulation<dim> box_to_refine;
313 for (
unsigned int i = 0;
318 pcout <<
"Initial refinement in box " << i_box <<
" - Step " << i + 1
338template <
int dim,
typename PropertiesIndex>
349 (
parameters.model_parameters.dynamic_contact_search_factor *
350 (
parameters.model_parameters.neighborhood_threshold - 1) *
360 if constexpr (dim == 2)
361 return 0.5 * std::numbers::sqrt2 *
363 if constexpr (dim == 3)
364 return std::numbers::inv_sqrt3 *
381 for (
const auto &pb_id :
392template <
int dim,
typename PropertiesIndex>
396 FE_Q<dim> background_fe(1);
408 IndexSet locally_relevant_dofs =
413 locally_relevant_dofs);
417 for (
auto const &[id0, periodic_boundary] :
418 parameters.boundary_conditions.periodic_boundaries)
424 if (id0 != periodic_boundary.neighbor_id)
425 DoFTools::make_periodicity_constraints(
428 periodic_boundary.neighbor_id,
429 periodic_boundary.direction,
439template <
int dim,
typename PropertiesIndex>
453 if (
parameters.model_parameters.load_balance_method ==
465 pcout <<
"-->Repartitioning triangulation" << std::endl;
485 parameters.boundary_conditions.outlet_boundaries,
487 parameters.mesh.expand_particle_wall_contact_search,
494 const auto average_minimum_maximum_cells =
498 const auto average_minimum_maximum_particles =
502 pcout <<
"Load balance finished " << std::endl;
504 <<
"Average, minimum and maximum number of particles on the processors are "
505 << average_minimum_maximum_particles.avg <<
" , "
506 << average_minimum_maximum_particles.min <<
" and "
507 << average_minimum_maximum_particles.max << std::endl;
508 pcout <<
"Minimum and maximum number of cells owned by the processors are "
509 << average_minimum_maximum_cells.min <<
" and "
510 << average_minimum_maximum_cells.max << std::endl;
515template <
int dim,
typename PropertiesIndex>
519 const bool parallel_update =
521 parameters.model_parameters.contact_detection_frequency) == 0;
531template <
int dim,
typename PropertiesIndex>
536 parameters.model_parameters.contact_detection_frequency) == 0)
540template <
int dim,
typename PropertiesIndex>
546 if (
parameters.insertion_info.insertion_frequency == 0)
550 parameters.insertion_info.insertion_frequency) == 1 ||
559template <
int dim,
typename PropertiesIndex>
570 if (
parameters.floating_walls.floating_walls_number > 0)
582 ->calculate_particle_solid_object_contact(
593 if (
parameters.insertion_info.insertion_method ==
597 .calculate_particle_point_shift_displacement(
600 if constexpr (dim == 3)
603 .calculate_particle_line_shift_displacement(
610 .calculate_particle_point_contact_force(
615 if constexpr (dim == 3)
618 .calculate_particle_line_contact_force(
626template <
int dim,
typename PropertiesIndex>
636 solid_object->move_solid_triangulation(
641 solid_object->move_solid_triangulation(
646template <
int dim,
typename PropertiesIndex>
661 solid_object->update_solid_temperature(
665 solid_object->update_solid_temperature(
670template <
int dim,
typename PropertiesIndex>
682template <
int dim,
typename PropertiesIndex>
699 for (
unsigned int i_solid = 0; i_solid <
solid_surfaces.size(); ++i_solid)
706 for (
unsigned int i_solid = 0; i_solid <
solid_volumes.size(); ++i_solid)
709 solid_volumes[i_solid]->map_solid_in_background_triangulation(
774template <
int dim,
typename PropertiesIndex>
803template <
int dim,
typename PropertiesIndex>
831template <
int dim,
typename PropertiesIndex>
838 this->
pcout << std::defaultfloat;
840 this->
pcout << std::scientific;
858 Vector<float> mobility_status(
triangulation.n_active_cells());
873 for (
unsigned int i = 0; i < subdomain.size(); ++i)
889 if (
parameters.forces_torques.calculate_force_torque)
892 parameters.forces_torques.force_torque_output_name,
901template <
int dim,
typename PropertiesIndex>
907 const std::string folder =
parameters.simulation_control.output_folder;
908 const std::string particles_solution_name =
912 const unsigned int group_files =
parameters.simulation_control.group_files;
922 particles_solution_name,
930 DataOutFaces<dim> data_out_faces;
938 data_out_faces.add_data_vector(boundary_id, boundary);
939 data_out_faces.build_patches();
968template <
int dim,
typename PropertiesIndex>
972 if (
parameters.post_processing.lagrangian_post_processing_enabled &&
988template <
int dim,
typename PropertiesIndex>
993 double number_of_list_built_since_last_log =
996 std::max(number_of_list_built_since_last_log,
contact_list.max);
998 std::min(number_of_list_built_since_last_log,
contact_list.min);
999 contact_list.total += number_of_list_built_since_last_log;
1028 TableHandler report;
1030 report.declare_column(
"Variable");
1031 report.declare_column(
"Min");
1032 report.declare_column(
"Max");
1033 report.declare_column(
"Average");
1034 report.declare_column(
"Total");
1051 report.set_scientific(
"Min",
true);
1052 report.set_scientific(
"Max",
true);
1053 report.set_scientific(
"Average",
true);
1054 report.set_scientific(
"Total",
true);
1056 report.write_text(std::cout, dealii::TableHandler::org_mode_table);
1062 this->
pcout << std::defaultfloat;
1064 this->
pcout << std::scientific;
1068template <
int dim,
typename PropertiesIndex>
1081 unsigned int number_of_particles =
1087 MOI.resize(number_of_particles);
1092 auto particle_properties = particle.get_properties();
1093 MOI[particle.get_local_index()] =
1094 0.1 * particle_properties[PropertiesIndex::mass] *
1095 particle_properties[PropertiesIndex::dp] *
1096 particle_properties[PropertiesIndex::dp];
1104template <
int dim,
typename PropertiesIndex>
1108 if (
parameters.insertion_info.insertion_method !=
1112 unsigned int number_of_pp_contact_on_proc =
1117 unsigned int number_of_pw_contact_on_proc =
1121 const unsigned int total_number_of_pp_contacts =
1124 const unsigned int total_number_of_pw_contacts =
1126 if (total_number_of_pp_contacts + total_number_of_pw_contacts == 0)
1128 pcout <<
"No contact detected. Exiting simulation." << std::endl;
1135 <<
"Total number of p-p contacts: " << total_number_of_pp_contacts
1137 <<
"Total number of p-w contacts: " << total_number_of_pw_contacts
1156template <
int dim,
typename PropertiesIndex>
1164 pcout <<
"Reading triangulation" << std::endl;
1170 parameters.boundary_conditions.periodic_boundaries);
1172 pcout << std::endl <<
"Finished reading triangulation" << std::endl;
1210 parameters.boundary_conditions.outlet_boundaries,
1212 parameters.mesh.expand_particle_wall_contact_search,
1256 std::vector<double>(
force.size()));
1300 if (
parameters.post_processing.particle_wall_collision_statistics)
1311 if (
parameters.forces_torques.calculate_force_torque)
1315 parameters.forces_torques.output_frequency ==
1317 (
parameters.forces_torques.force_torque_verbosity ==
1322 ->get_iteration_number()],
1324 ->get_iteration_number()]);
1367 if (
parameters.post_processing.particle_wall_collision_statistics)
BoundaryPostprocessor Post-processor class used to attach the boundary id to the faces when outputtin...
void set_sparse_contacts_disabled()
Disables the ASC.
static DEMActionManager * get_action_manager()
Getter of the unique instance of the DEMActionManager.
Handles all the parameters declared in the parameter handler file.
Solver using the soft-sphere model of the discrete element method (DEM) to simulate granular systems.
void setup_triangulation_dependent_parameters()
Set up the triangulation dependent parameters after the reading of the mesh and/or the simulation res...
dem_data_structures< dim >::boundary_points_and_normal_vectors updated_boundary_points_and_normal_vectors
The map of the point and normal vector of grid. Only used with grid motion.
void particle_wall_contact_force()
Calculates particles-wall contact forces.
void setup_functions_and_pointers()
Set up the pointers to the functions and classes according to the parameters.
Tensor< 1, 3 > g
The acceleration acting on the particles.
dem_data_structures< dim >::vector_on_boundary forces_boundary_information
The boundary information of the forces.
std::vector< double > MOI
The moment of inertia of particles.
DEM::ParticleProperties< dim, PropertiesIndex > properties_class
The properties of the DEM simulation.
void compute_contact_forces()
Calculate the particle-particle and the particle-wall contact forces and torques at the current posit...
ConditionalOStream pcout
The output stream used for the parallel simulation, only used by the process 0.
std::shared_ptr< Integrator< dim, PropertiesIndex > > set_integrator_type()
Set the integration method.
void setup_solid_objects()
Set up the solid object containers with serial objects. TODO: Modify this set up once the solid volum...
Particles::ParticleHandler< dim, dim > particle_handler
The particle handler that manages the particles.
dem_data_structures< dim >::vector_on_boundary torques_boundary_information
The torques boundary information.
void execute_contact_detection_and_search()
Check if a contact detection is required at the current iteration and, if it is, map the solid object...
void box_refine_mesh(const bool restart)
Refine the triangulation within the user-specified refinement boxes.
statistics contact_list
The storage of statistics about time and contact lists.
OngoingCollisionLog< dim > ongoing_collision_log
Class object to store the particle id, boundary id, velocity tensor, omega tensor and time of ongoing...
void solve()
Engine of the DEM solver. Calls all the necessary functions to set parameters, solve the simulation,...
ParticleInteractionOutcomes< PropertiesIndex > contact_outcome
Class object to store the vectors of force, torque and heat transfer rate applied to particles.
void setup_distribution_type()
Initialize the distribution type for the particles, and sets the maximum particle diameter and the ne...
PVDHandler particles_pvdhandler
The particle PVD handler.
AffineConstraints< double > background_constraints
The constraints for the background grid needed for the adaptive sparse.
const unsigned int this_mpi_process
The rank of the current MPI process.
DoFHandler< dim > background_dh
The background degree of freedom handler uses for parallel grid processing.
DEM::dem_data_structures< dim >::periodic_boundaries_cells_info periodic_boundaries_cells_information
The periodic boundaries cells information map. Only used with a simulation with periodic boundaries.
double smallest_solid_object_mapping_criterion
The smallest solid object mapping criterion. The value is .
AdaptiveSparseContacts< dim, PropertiesIndex > sparse_contacts_object
The object handling the adaptive sparse contacts (ASC). Only used with the ASC method.
BoundaryCellsInformation< dim > boundary_cell_object
The boundary cells object.
std::shared_ptr< ParticleWallContactForceBase< dim, PropertiesIndex > > particle_wall_contact_force_object
The particle-wall contact force object.
const unsigned int n_mpi_processes
The number of MPI processes used for the parallel simulation.
void synchronize_velocities()
Carry out the closing half velocity step of a staggered integration scheme, which synchronizes the ve...
double neighborhood_threshold_squared
The neighborhood threshold squared. .
std::function< void()> set_contact_search_iteration_function()
Set the iteration check function according to the chosen contact detection method.
std::shared_ptr< SimulationControl > simulation_control
The simulation control (DEM Transient).
void check_contact_search_iteration_constant()
Establish if this is a contact detection iteration using the constant contact detection frequency....
std::shared_ptr<::GridMotionBase< dim > > grid_motion_object
The grid motion object.
DEMSolverParameters< dim > parameters
The parameters of the DEM simulation.
Visualization< dim, PropertiesIndex > visualization_object
The visualization object.
std::shared_ptr< ParticleParticleContactForceBase< dim, PropertiesIndex > > particle_particle_contact_force_object
The particle-particle contact force object.
std::shared_ptr< ParticlesForceChainsBase< dim, PropertiesIndex > > particles_force_chains_object
The particle force chains post-processing object.
std::shared_ptr< Integrator< dim, PropertiesIndex > > integrator_object
The integrator object.
LagrangianLoadBalancing< dim, PropertiesIndex > load_balancing
The load balancing handler.
CompletedCollisionLog< dim > collision_event_log
Class object to store the complete collision events (start and end).
std::vector< std::shared_ptr< SerialSolid< dim - 1, dim > > > solid_surfaces
The container of the solid surfaces.
PVDHandler particles_pvdhandler_force_chains
The force chains PVD handler.
std::vector< Tensor< 1, 3 > > & torque
The vector of torque of particles.
DEMSolver(DEMSolverParameters< dim > dem_parameters)
void setup_parameters()
Set the parameters for the DEM simulation.
MappingQGeneric< dim > mapping
The polynomial mapping. The mapping is first order in DEM simulations.
void report_statistics()
Calculate statistics on the particles and report them to the terminal. This function is notably used ...
MPI_Comm mpi_communicator
The MPI communicator used for the parallel simulation.
void check_contact_search_iteration_dynamic()
Establish if this is a contact detection iteration using the maximal displacement of the particles....
std::vector< double > displacement
The displacement tracking of particles for the dynamic contact detection.
void insert_particles()
Check if particles have to be inserted at this iteration and perform it if necessary.
void setup_background_dofs()
Set up the background degree of freedom used for parallel grid output or mapping of periodic dofs whe...
CheckpointControl checkpoint_controller
The checkpoint controller of the DEM simulation.
void load_balance()
Check if a load balancing is required according to the load balancing method and perform it if necess...
double maximum_particle_diameter
The maximum particle diameter.
void update_temperature_solid_objects()
Update solid objects temperatures.
void move_solid_objects()
Move all solid objects.
std::vector< std::shared_ptr< SerialSolid< dim, dim > > > solid_volumes
The container of the solid volumes.
bool disable_position_integration
Disable position integration, useful for multiphysic simulations with a packed bed,...
std::vector< Tensor< 1, 3 > > & force
The vector of force of particles.
std::shared_ptr< Insertion< dim, PropertiesIndex > > insertion_object
The insertion object.
double smallest_contact_search_criterion
The contact search frequency criterion for the dynamic contact detection method. The value is the sma...
void write_output_results()
Generate VTU file with particles information for visualization.
DEMActionManager * action_manager
The action manager that manages the actions triggered by events.
std::function< void()> contact_detection_iteration_check_function
The pointer to the contact detection function that checks if a contact search is required.
dem_data_structures< dim >::solid_volumes_mesh_info solid_volumes_mesh_info
The vector of vector of pairs of the mapping of the background mesh to the solid volume.
std::vector< std::shared_ptr< Distribution > > size_distribution_object_container
The container of the distribution objects.
PeriodicBoundariesManipulator< dim > periodic_boundaries_object
The periodic boundaries manipulator. Only used with a simulation with periodic boundaries.
void finish_simulation()
Execute the last post-processing at the end of the simulation and output test results if necessary.
dem_data_structures< dim >::solid_surfaces_mesh_information solid_surfaces_mesh_info
The vector of vector of pairs of the mapping of the background mesh to the solid surface.
PVDHandler grid_pvdhandler
The grid PVD handler.
ParticlePointLineForce< dim, PropertiesIndex > particle_point_line_contact_force_object
The particle-point-line contact force object.
bool packed_insertion_report_and_status()
Hook for particular operations that are related to the packed insertion.
parallel::distributed::Triangulation< dim > triangulation
The distributed triangulation used for the DEM simulation.
void update_temperature_walls()
Update the temperatures of the walls of the grid.
void sort_particles_into_subdomains_and_cells()
Execute the sorting of particle into subdomains and cells, and reinitialize the containers dependent ...
TimerOutput computing_timer
The timer that keeps track of the time spent in some functions. Currently theses functions are: load ...
unsigned int contact_build_number
The counter to keep track of the number of contact search.
DEMContactManager< dim, PropertiesIndex > contact_manager
The manager of all the contact search operations.
void post_process_results()
Calculate average velocity and other post-processed quantities that need to be outputted to files.
Implementation of a classical explicit euler scheme for the integration of the particle motion....
static void apply_shift_displacement(Particles::ParticleHandler< dim > &particle_handler, const double max_displacement, ParticleInteractionOutcomes< PropertiesIndex > &contact_outcome, std::vector< double > &displacements)
Displace the locally owned particles by the displacements accumulated by the shift contact models.
Parameters controlling particle insertion in DEM simulations.
Numerical model parameters for DEM simulations.
@ none
No load-balancing will be performed.
IntegrationMethod
Time integration method for particle motion.
ContactDetectionMethod
Contact detection method used in the simulation.
Implementation of a classical velocity verlet scheme for the integration of the particle motion....
Building patches of particle properties for visualization. This function is taken from Aspect and dea...
void build_patches(Particles::ParticleHandler< dim > &particle_handler, const std::vector< std::pair< std::string, int > > &properties)
Build the patches of properties of particles for visualization.
A simple container for storing basic statistical values.
void create_output_folder(const std::string &dirname)
Creates the simulation output folder.
void announce_string(const ConditionalOStream &pcout, const std::string &expression, const char delimiter='-')
Prints a string and then adds a line above and below made with dashes containing as many dashes as th...
void add_statistics_to_table_handler(const std::string &variable, const statistics &stats, TableHandler &table)
Add statistical values to a TableHandler.
void report_cell_size_to_particle_diameter_ratio(const parallel::DistributedTriangulationBase< dim > &triangulation, const double maximum_particle_diameter, const ConditionalOStream &pcout, const MPI_Comm &mpi_communicator)
Reports the ratio between the minimum cell size and the maximum particle diameter.
void setup_distributions(const LagrangianPhysicalProperties &lpp, std::vector< std::shared_ptr< Distribution > > &size_distribution_object_container, double &maximum_particle_diameter, const unsigned int mpi_process_id, const ConditionalOStream &pcout)
void build_refinement_box_triangulation(const Parameters::Mesh< dim, spacedim > &box_mesh_parameters, Triangulation< dim, spacedim > &box_triangulation)
Build the triangulation which delimits a mesh refinement box.
void read_mesh_and_manifolds(parallel::DistributedTriangulationBase< dim, spacedim > &triangulation, const Parameters::Mesh< dim, spacedim > &mesh_parameters, const Parameters::Manifolds &manifolds_parameters, bool restart, const Parameters::PeriodicBoundaries &periodic_boundaries)
Completely sets up a mesh and its manifolds.
void write_post_processing_results(const parallel::distributed::Triangulation< dim > &triangulation, PVDHandler &grid_pvdhandler, const DoFHandler< dim > &background_dh, const Particles::ParticleHandler< dim > &particle_handler, const DEMSolverParameters< dim > &dem_parameters, const double current_time, const unsigned int step_number, const MPI_Comm &mpi_communicator, AdaptiveSparseContacts< dim, PropertiesIndex > &sparse_contacts_object)
Carries out writing the cell data of the domain.
void log_collision_data(const DEMSolverParameters< dim > ¶meters, typename DEM::dem_data_structures< dim >::particle_wall_in_contact &particle_wall_pairs_in_contact, const double current_time, OngoingCollisionLog< dim > &ongoing_collision_log, CompletedCollisionLog< dim > &collision_event_log)
Logs the particle-wall contact statistics.
void write_collision_stats(const DEMSolverParameters< dim > ¶meters, const CompletedCollisionLog< dim > &collision_event_log, const MPI_Comm &mpi_communicator)
Writes the collision statistics to a file.
void integrate_temperature(Particles::ParticleHandler< dim > &particle_handler, const double dt, std::vector< double > &heat_transfer_rate, const std::vector< double > &heat_source)
Implementation of an explicit euler time-stepping scheme for the integration of the particles' temper...
constexpr bool has_thermal_properties
Whether a properties index set carries thermal properties.
statistics calculate_granular_statistics(const Particles::ParticleHandler< dim > &particle_handler, const MPI_Comm &mpi_communicator)
Calculate statistics on a DEM ParticleHandler. At the moment, the following statistics are supported:
@ rotational_kinetic_energy
@ translational_kinetic_energy
void write_forces_torques_output_locally(std::map< unsigned int, Tensor< 1, 3 > > force_on_walls, std::map< unsigned int, Tensor< 1, 3 > > torque_on_walls)
write_forces_torques_output_locally Writes the results of force and torque calculations in the termin...
void write_forces_torques_output_results(const std::string &filename, const unsigned int output_frequency, const std::vector< unsigned int > &boundary_index, const double time_step, DEM::dem_data_structures< 3 >::vector_on_boundary &forces_boundary_information, DEM::dem_data_structures< 3 >::vector_on_boundary &torques_boundary_information)
write_forces_torques_output_results Writes the results of force and torque calculations in a file,...
void set_wall_temperature_time(const Parameters::Lagrangian::BCDEM &boundary_conditions, const double time)
Set the time of the temperature functions of the walls of the grid with a temperature boundary condit...
void read_checkpoint(TimerOutput &computing_timer, const DEMSolverParameters< dim > ¶meters, 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.
std::shared_ptr< Insertion< dim, PropertiesIndex > > set_insertion_type(std::vector< std::shared_ptr< Distribution > > &size_distribution_object_container, parallel::distributed::Triangulation< dim > &triangulation, DEMSolverParameters< dim > &dem_parameters, const double &maximum_particle_diameter)
Set up the particle insertion method for the simulation. Creates and configures the appropriate inser...
std::shared_ptr< ParticleParticleContactForceBase< dim, PropertiesIndex > > set_particle_particle_contact_force_model(const DEMSolverParameters< dim > &dem_parameters)
Return the particle-particle contact force model based on the spring-dashpot model and the rolling re...
std::shared_ptr< ParticlesForceChainsBase< dim, PropertiesIndex > > set_force_chains_contact_force_model(const DEMSolverParameters< dim > &dem_parameters)
Return the particle-particle contact force model based on the spring-dashpot model and the rolling re...
std::shared_ptr< ParticleWallContactForceBase< dim, PropertiesIndex > > set_particle_wall_contact_force_model(const DEMSolverParameters< dim > &dem_parameters)
Return the particle-wall contact force model based on the spring-dashpot model and the rolling resist...
void write_vtu_and_pvd(PVDHandler &pvd_handler, const DataOutInterface< dim, spacedim > &data_out, const std::string &folder, const std::string &file_prefix, const double time, const unsigned int iter, const unsigned int group_files, const MPI_Comm &mpi_communicator, const unsigned int digits=5)
Output the data out to "group_files" vtu files, with a pvtu file and a pvd to store the timing This f...
void write_boundaries_vtu(const DataOutFaces< dim > &data_out, const std::string &folder, const double time, const unsigned int iter, const MPI_Comm &mpi_communicator, const std::string &file_prefix=std::string("boundaries"), const unsigned int digits=5)
Output the Data Out Faces to a single vtu file This function outputs the DataOutFaces to a vtu file.
std::shared_ptr< std::vector< Mesh< dim, spacedim > > > refinement_boxes_meshes
unsigned int number_of_refinement_boxes
Number of boxes delimiting refinement regions.
std::vector< unsigned int > box_additional_refinements
Vector of additional refinement values of the different boxes.
void write_checkpoint(TimerOutput &computing_timer, const DEMSolverParameters< dim > ¶meters, 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.