Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
particle_point_line_fine_search.h File Reference
Include dependency graph for particle_point_line_fine_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, typename PropertiesIndex>
void particle_point_fine_search (const typename DEM::dem_data_structures< dim >::particle_point_candidates &particle_point_contact_candidates, const double neighborhood_threshold, typename DEM::dem_data_structures< dim >::particle_point_in_contact &particle_point_pairs_in_contact)
template<int dim, typename PropertiesIndex>
void particle_line_fine_search (const typename DEM::dem_data_structures< dim >::particle_line_candidates &particle_line_contact_candidates, const double neighborhood_threshold, typename DEM::dem_data_structures< dim >::particle_line_in_contact &particle_line_pairs_in_contact)
Point< 3 > find_projection_point (const Point< 3 > &point_p, const Point< 3 > &point_a, const Point< 3 > &point_b)

Function Documentation

◆ find_projection_point()

Point< 3 > find_projection_point ( const Point< 3 > & point_p,
const Point< 3 > & point_a,
const Point< 3 > & point_b )
inline

This private function is used to find the projection of point_p on a line with beginning and ending vertices of point_a and point_b, respectively.

Parameters
point_pA point which is going to be projected on the line
point_aBeginning point of the line
point_bEnding point of the line
Returns
The projection of point_p on the line (from point_a to point_b)

Definition at line 138 of file particle_point_line_fine_search.cc.

◆ particle_line_fine_search()

template<int dim, typename PropertiesIndex>
void particle_line_fine_search ( const typename DEM::dem_data_structures< dim >::particle_line_candidates & particle_line_contact_candidates,
const double neighborhood_threshold,
typename DEM::dem_data_structures< dim >::particle_line_in_contact & particle_line_pairs_in_contact )

Iterate over a map of tuples (particle_line_contact_candidates) to see if the particle-line pairs are in contact or not. If they are in contact, the normal overlap, normal vector of contact and contact normal relative velocity are stored in a map which is the output of this function.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
PropertiesIndexIndex of the properties used within the ParticleHandler.
Parameters
particle_line_contact_candidatesThe output of particle-line broad search which shows contact pair candidates.
neighborhood_thresholdA value which defines the neighbor particles.
particle_line_pairs_in_contactA map which contains all the required information (normal overlap, normal vector and contact normal relative velocity) for calculation of particle-line contact force.

Definition at line 78 of file particle_point_line_fine_search.cc.

References find_projection_point(), particle_line_contact_info< dim >::particle, point_nd_to_3d(), particle_line_contact_info< dim >::point_one, and particle_line_contact_info< dim >::point_two.

◆ particle_point_fine_search()

template<int dim, typename PropertiesIndex>
void particle_point_fine_search ( const typename DEM::dem_data_structures< dim >::particle_point_candidates & particle_point_contact_candidates,
const double neighborhood_threshold,
typename DEM::dem_data_structures< dim >::particle_point_in_contact & particle_point_pairs_in_contact )

Iterate over a map of pairs (particle_point_contact_candidates) to see if the particle-point pairs are in contact or not. If they are in contact, the normal overlap, normal vector of contact and contact normal relative velocity are stored in a map which is the output of this function.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
PropertiesIndexIndex of the properties used within the ParticleHandler.
Parameters
particle_point_contact_candidatesThe output of particle-point broad search which shows contact pair candidates.
neighborhood_thresholdA value which defines the neighbor particles.
particle_point_pairs_in_contactA map which contains all the required information (normal overlap, normal vector and contact normal relative velocity) for calculation of particle-point contact force.

Definition at line 20 of file particle_point_line_fine_search.cc.

References particle_point_contact_info< dim >::particle, particle_point_contact_info< dim >::point, and point_nd_to_3d().