4#ifndef lethe_particle_wall_broad_search_h
5#define lethe_particle_wall_broad_search_h
13#include <deal.II/particles/particle_handler.h>
39 &boundary_cells_information,
40 const Particles::ParticleHandler<dim> &particle_handler,
42 &particle_wall_contact_candidates);
65template <
int dim,
typename PropertiesIndex>
69 &boundary_cells_information,
70 const Particles::ParticleHandler<dim> &particle_handler,
72 &particle_wall_contact_candidates,
95 const std::unordered_map<
96 types::global_dof_index,
97 std::set<
typename Triangulation<dim>::active_cell_iterator>>
98 &boundary_cells_for_floating_walls,
99 const Particles::ParticleHandler<dim> &particle_handler,
101 const double simulation_time,
103 &particle_floating_wall_candidates);
127template <
int dim,
typename PropertiesIndex>
130 const std::unordered_map<
131 types::global_dof_index,
132 std::set<
typename Triangulation<dim>::active_cell_iterator>>
133 &boundary_cells_for_floating_walls,
134 const Particles::ParticleHandler<dim> &particle_handler,
136 const double simulation_time,
138 &particle_floating_wall_candidates,
160 &solid_surfaces_mesh_information,
161 const Particles::ParticleHandler<dim> &particle_handler,
163 &particle_floating_mesh_contact_candidates,
165 &cells_total_neighbor_list);
188template <
int dim,
typename PropertiesIndex>
192 &solid_surfaces_mesh_information,
193 const Particles::ParticleHandler<dim> &particle_handler,
195 &particle_floating_mesh_contact_candidates,
197 &cells_total_neighbor_list,
213 const typename Particles::ParticleHandler<
214 dim>::particle_iterator_range::iterator &particle_iterator,
217 &contact_pair_candidates)
220 const types::particle_index particle_id = particle_iterator->get_id();
221 auto candidates_container_it = contact_pair_candidates.find(particle_id);
225 if (candidates_container_it == contact_pair_candidates.end())
227 auto pair_it_bool = contact_pair_candidates.emplace(
229 ankerl::unordered_dense::map<
231 std::tuple<Particles::ParticleIterator<dim>,
236 candidates_container_it = pair_it_bool.first;
240 candidates_container_it->second.emplace(
242 std::make_tuple(particle_iterator,
259 const typename Particles::ParticleHandler<
260 dim>::particle_iterator_range::iterator &particle_iterator,
263 &contact_pair_candidates);
Parameters for floating walls in DEM simulations.
unsigned int global_face_id
Defined global face id as a type to ensure that we know what the structures use as index....
void find_particle_wall_contact_pairs(const std::map< int, boundary_cells_info_struct< dim > > &boundary_cells_information, const Particles::ParticleHandler< dim > &particle_handler, typename DEM::dem_data_structures< dim >::particle_wall_candidates &particle_wall_contact_candidates)
Finds unordered map of tuples (tuple of particle located in boundary cells, normal vector of the boun...
void find_particle_floating_wall_contact_pairs(const std::unordered_map< types::global_dof_index, std::set< typename Triangulation< dim >::active_cell_iterator > > &boundary_cells_for_floating_walls, const Particles::ParticleHandler< dim > &particle_handler, const Parameters::Lagrangian::FloatingWalls< dim > &floating_wall_properties, const double simulation_time, typename DEM::dem_data_structures< dim >::particle_floating_wall_candidates &particle_floating_wall_candidates)
Find a two-layered unordered map of particle iterators which shows the candidate particle-floating wa...
void particle_solid_surfaces_contact_search(const typename DEM::dem_data_structures< dim >::solid_surfaces_mesh_information &solid_surfaces_mesh_information, const Particles::ParticleHandler< dim > &particle_handler, typename DEM::dem_data_structures< dim >::particle_floating_mesh_candidates &particle_floating_mesh_contact_candidates, typename DEM::dem_data_structures< dim >::cells_total_neighbor_list &cells_total_neighbor_list)
Find a two-layered unordered map (particle_floating_mesh_contact_candidates) of particle iterators th...
void store_candidates(const typename Particles::ParticleHandler< dim >::particle_iterator_range::iterator &particle_iterator, const boundary_cells_info_struct< dim > &boundary_cells_content, typename DEM::dem_data_structures< dim >::particle_wall_candidates &contact_pair_candidates)
Store the candidate particle-wall contact pairs.
ankerl::unordered_dense::map< types::particle_index, std::unordered_map< global_face_id, Particles::ParticleIterator< dim > > > particle_floating_wall_candidates
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< types::global_cell_index, std::vector< typename Triangulation< dim >::active_cell_iterator > > cells_total_neighbor_list
std::vector< particle_floating_wall_from_mesh_candidates > particle_floating_mesh_candidates
ankerl::unordered_dense::map< types::particle_index, ankerl::unordered_dense::map< global_face_id, std::tuple< Particles::ParticleIterator< dim >, Tensor< 1, dim >, Point< dim >, global_face_id > > > particle_wall_candidates
Handle the information related to the boundary cells which will be used for particle-wall contact det...
unsigned int global_face_id
types::boundary_id boundary_id
Tensor< 1, dim > normal_vector
Point< dim > point_on_face