Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
particle_point_line_broad_search.h File Reference
#include <dem/adaptive_sparse_contacts.h>
#include <dem/contact_info.h>
#include <dem/data_containers.h>
#include <deal.II/particles/particle_iterator.h>
Include dependency graph for particle_point_line_broad_search.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<int dim>
void find_particle_point_contact_pairs (const Particles::ParticleHandler< dim > &particle_handler, const std::unordered_map< std::string, cell_point_info< dim > > &boundary_cells_with_points, typename DEM::dem_data_structures< dim >::particle_point_candidates &particle_point_contact_candidates)
template<int dim, typename PropertiesIndex>
void find_particle_point_contact_pairs (const Particles::ParticleHandler< dim > &particle_handler, const std::unordered_map< std::string, cell_point_info< dim > > &boundary_cells_with_points, typename DEM::dem_data_structures< dim >::particle_point_candidates &particle_point_contact_candidates, const AdaptiveSparseContacts< dim, PropertiesIndex > &sparse_contacts_object)
template<int dim>
void find_particle_line_contact_pairs (const Particles::ParticleHandler< dim > &particle_handler, const std::unordered_map< std::string, cell_line_info< dim > > &boundary_cells_with_lines, typename DEM::dem_data_structures< dim >::particle_line_candidates &particle_line_contact_candidates)
template<int dim, typename PropertiesIndex>
void find_particle_line_contact_pairs (const Particles::ParticleHandler< dim > &particle_handler, const std::unordered_map< std::string, cell_line_info< dim > > &boundary_cells_with_lines, typename DEM::dem_data_structures< dim >::particle_line_candidates &particle_line_contact_candidates, const AdaptiveSparseContacts< dim, PropertiesIndex > &sparse_contacts_object)

Function Documentation

◆ find_particle_line_contact_pairs() [1/2]

template<int dim>
void find_particle_line_contact_pairs ( const Particles::ParticleHandler< dim > & particle_handler,
const std::unordered_map< std::string, cell_line_info< dim > > & boundary_cells_with_lines,
typename DEM::dem_data_structures< dim >::particle_line_candidates & particle_line_contact_candidates )

Find a map of tuples (tuple of particle and the locations of beginning and ending vertices of the boundary lines) which shows the candidate particle-line collision pairs. These collision pairs will be investigated in the fine search to check if they are in contact or not.

Parameters
particle_handlerParticle handler of particles located in boundary cells.
boundary_cells_with_linesA container of cells which are located at boundaries with only one line.
particle_line_contact_candidatesEach element of map (tuple) contains a particle and the locations of beginning and ending vertices of the boundary lines.

Definition at line 126 of file particle_point_line_broad_search.cc.

References cell_line_info< dim >::cell, cell_line_info< dim >::point_one, and cell_line_info< dim >::point_two.

◆ find_particle_line_contact_pairs() [2/2]

template<int dim, typename PropertiesIndex>
void find_particle_line_contact_pairs ( const Particles::ParticleHandler< dim > & particle_handler,
const std::unordered_map< std::string, cell_line_info< dim > > & boundary_cells_with_lines,
typename DEM::dem_data_structures< dim >::particle_line_candidates & particle_line_contact_candidates,
const AdaptiveSparseContacts< dim, PropertiesIndex > & sparse_contacts_object )

Find a map of tuples (tuple of particle and the locations of beginning and ending vertices of the boundary lines) which shows the candidate particle-line collision pairs. These collision pairs will be investigated in the fine search to check if they are in contact or not.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
PropertiesIndexIndex of the properties used within the ParticleHandler.
Parameters
particle_handlerParticle handler of particles located in boundary cells.
boundary_cells_with_linesA container of cells which are located at boundaries with only one line.
particle_line_contact_candidatesEach element of map (tuple) contains a particle and the locations of beginning and ending vertices of the boundary lines.
sparse_contacts_objectThe Adaptive Sparse Contacts for mobility status checks.

Definition at line 176 of file particle_point_line_broad_search.cc.

References cell_line_info< dim >::cell, AdaptiveSparseContacts< dim, PropertiesIndex >::check_cell_mobility(), AdaptiveSparseContacts< dim, PropertiesIndex >::mobile, cell_line_info< dim >::point_one, and cell_line_info< dim >::point_two.

◆ find_particle_point_contact_pairs() [1/2]

template<int dim>
void find_particle_point_contact_pairs ( const Particles::ParticleHandler< dim > & particle_handler,
const std::unordered_map< std::string, cell_point_info< dim > > & boundary_cells_with_points,
typename DEM::dem_data_structures< dim >::particle_point_candidates & particle_point_contact_candidates )

Find a map of pairs (pair of particle and the boundary vertex location) which shows the candidate particle-point collision pairs. These collision pairs will be investigated in the fine search to check if they are in contact or not.

Parameters
particle_handlerParticle handler of particles located in boundary cells.
boundary_cells_with_pointsA container of cells which are located at boundaries with only one vertex.
particle_point_contact_candidatesThe map of particle-point pairs. Each element of map (pair) contains a contact pair particle located near boundaries with vertices and the vertex location.

Definition at line 14 of file particle_point_line_broad_search.cc.

References cell_point_info< dim >::cell, and cell_point_info< dim >::point.

◆ find_particle_point_contact_pairs() [2/2]

template<int dim, typename PropertiesIndex>
void find_particle_point_contact_pairs ( const Particles::ParticleHandler< dim > & particle_handler,
const std::unordered_map< std::string, cell_point_info< dim > > & boundary_cells_with_points,
typename DEM::dem_data_structures< dim >::particle_point_candidates & particle_point_contact_candidates,
const AdaptiveSparseContacts< dim, PropertiesIndex > & sparse_contacts_object )

Find a map of pairs (pair of particle and the boundary vertex location) which shows the candidate particle-point collision pairs. These collision pairs will be investigated in the fine search to check if they are in contact or not.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
PropertiesIndexIndex of the properties used within the ParticleHandler.
Parameters
particle_handlerParticle handler of particles located in boundary cells.
boundary_cells_with_pointsA container of cells which are located at boundaries with only one vertex.
particle_point_contact_candidatesThe map of particle-point pairs. Each element of map (pair) contains a contact pair particle located near boundaries with vertices and the vertex location.
sparse_contacts_objectThe Adaptive Sparse Contacts for mobility status checks.

Definition at line 65 of file particle_point_line_broad_search.cc.

References cell_point_info< dim >::cell, AdaptiveSparseContacts< dim, PropertiesIndex >::check_cell_mobility(), AdaptiveSparseContacts< dim, PropertiesIndex >::mobile, and cell_point_info< dim >::point.