4#ifndef lethe_particle_point_line_force_h
5#define lethe_particle_point_line_force_h
10#include <deal.II/base/point.h>
11#include <deal.II/base/tensor.h>
13#include <deal.II/particles/particle_iterator.h>
29template <
int dim,
typename PropertiesIndex>
48 *particle_point_pairs_in_contact,
51 std::vector<Tensor<1, 3>> &force);
66 *particle_line_pairs_in_contact,
69 std::vector<Tensor<1, 3>> &force);
85 &particle_point_pairs_in_contact,
86 std::vector<Tensor<1, 3>> &displacement);
102 &particle_line_pairs_in_contact,
103 std::vector<Tensor<1, 3>> &displacement);
141 const Point<3> &particle_location,
142 const Point<3> &contact_point,
143 std::vector<Tensor<1, 3>> &displacement);
156 const Point<3> &point_a,
157 const Point<3> &point_b);
void add_shift_displacement(const Particles::ParticleIterator< dim > &particle, const Point< 3 > &particle_location, const Point< 3 > &contact_point, std::vector< Tensor< 1, 3 > > &displacement)
Add the displacement that separates a particle from the boundary point or line it overlaps to the dis...
void calculate_particle_line_contact_force(const typename DEM::dem_data_structures< dim >::particle_line_in_contact *particle_line_pairs_in_contact, const Parameters::Lagrangian::LagrangianPhysicalProperties &physical_properties, std::vector< Tensor< 1, 3 > > &force)
Calculate of the particle-line contact force using non-linear (Hertzian) model.
void calculate_particle_point_shift_displacement(const typename DEM::dem_data_structures< dim >::particle_point_in_contact &particle_point_pairs_in_contact, std::vector< Tensor< 1, 3 > > &displacement)
Calculate the displacements that separate the particles from the boundary points they overlap....
Point< 3 > find_projection_point(const Point< 3 > &point_p, const Point< 3 > &point_a, const Point< 3 > &point_b)
This private function is used to find the projection of point_p on a line with beginning and ending v...
unsigned int get_number_of_contacts() const
Return the number of particle-point and particle-line contacts that occurred in the present pseudo-ti...
unsigned int n_contacts
Number of particle-point and particle-line contacts in the present pseudo-time step when using the pa...
void calculate_particle_point_contact_force(const typename DEM::dem_data_structures< dim >::particle_point_in_contact *particle_point_pairs_in_contact, const Parameters::Lagrangian::LagrangianPhysicalProperties &physical_properties, std::vector< Tensor< 1, 3 > > &force)
Calculate of the particle-point contact force using non-linear (Hertzian) model.
void reset_number_of_contacts()
Reset the counter of number of contacts for the next pseudo-time step.
void calculate_particle_line_shift_displacement(const typename DEM::dem_data_structures< dim >::particle_line_in_contact &particle_line_pairs_in_contact, std::vector< Tensor< 1, 3 > > &displacement)
Calculate the displacements that separate the particles from the boundary lines they overlap....
std::unordered_map< types::particle_index, particle_line_contact_info< dim > > particle_line_in_contact
std::unordered_map< types::particle_index, particle_point_contact_info< dim > > particle_point_in_contact
Physical properties of particles, walls, and interstitial gas for Lagrangian (DEM) simulations.