30#include <deal.II/base/tensor.h>
31#include <deal.II/base/timer.h>
33#include <deal.II/distributed/tria.h>
35#include <deal.II/fe/mapping_q.h>
37#include <deal.II/particles/particle_handler.h>
47template <
int dim,
typename PropertiesIndex>
95 inline std::function<void()>
103 std::shared_ptr<Integrator<dim, PropertiesIndex>>
394 std::shared_ptr<ParticleParticleContactForceBase<dim, PropertiesIndex>>
400 std::shared_ptr<ParticleWallContactForceBase<dim, PropertiesIndex>>
412 std::shared_ptr<ParticlesForceChainsBase<dim, PropertiesIndex>>
Class that stores all the completed collision events.
Manage the actions to be performed in the DEM solver and on the DEM part of the coupling CFD-DEM solv...
Handles all the parameters declared in the parameter handler file.
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.
std::function< bool()> load_balance_iteration_check_function
The pointer to the function that checks if a load balancing is required.
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.
Controls the name of output variables for the vtu.
Manages the load balancing (repartitioning), of the domain according to the computational load of the...
Class managing the ongoing collisions.
The PVDHandler class manages the storage of the information required to write pvd file....
Class where the outcomes of particle-particle interactions are stored.
Calculate the non-linear particle-point and particle-line contact force using the information obtaine...
Building patches of particle properties for visualization. This function is taken from Aspect and dea...
A simple container for storing basic statistical values.
DEM particle property definitions and output name management.
This namespace defines all the data containers and required operations on these containers for the DE...
std::vector< std::vector< std::pair< typename Triangulation< dim >::active_cell_iterator, typename Triangulation< dim - 1, dim >::active_cell_iterator > > > solid_surfaces_mesh_information
ankerl::unordered_dense::map< unsigned int, std::map< types::boundary_id, Tensor< 1, 3 > > > vector_on_boundary
ankerl::unordered_dense::map< global_face_id, std::pair< Tensor< 1, 3 >, Point< 3 > > > boundary_points_and_normal_vectors
std::unordered_multimap< types::global_cell_index, periodic_boundaries_cells_info_struct< dim > > periodic_boundaries_cells_info
std::vector< std::vector< std::pair< typename Triangulation< dim >::active_cell_iterator, typename Triangulation< dim, dim >::active_cell_iterator > > > solid_volumes_mesh_info