![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <particle_point_line_contact_force.h>
Public Member Functions | |
| ParticlePointLineForce () | |
| 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) |
| 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) |
| 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) |
| 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) |
| unsigned int | get_number_of_contacts () const |
| void | reset_number_of_contacts () |
Private Member Functions | |
| 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) |
| Point< 3 > | find_projection_point (const Point< 3 > &point_p, const Point< 3 > &point_a, const Point< 3 > &point_b) |
Private Attributes | |
| unsigned int | n_contacts = 0 |
Calculate the non-linear particle-point and particle-line contact force using the information obtained from the fine search and physical properties of particles and walls. Since the inputs and the calculation method of particle-point and particle-line contact forces are similar, we only used one function for both tasks.
| dim | An integer that denotes the number of spatial dimensions. |
| PropertiesIndex | Index of the properties used within the ParticleHandler. |
Definition at line 30 of file particle_point_line_contact_force.h.
|
default |
|
private |
Add the displacement that separates a particle from the boundary point or line it overlaps to the displacement of the particle. The displacement is along the normal from the closest point of the boundary to the particle center and is slightly larger than the normal overlap, as in the particle-wall shift model.
| [in] | particle | Iterator of the particle in contact. |
| [in] | particle_location | Location of the particle center in 3D. |
| [in] | contact_point | Point of the boundary point or line that is the closest to the particle center. |
| [in,out] | displacement | Displacement of each local particle. |
Definition at line 319 of file particle_point_line_contact_force.cc.
References n_contacts.
| void ParticlePointLineForce< dim, PropertiesIndex >::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.
| particle_line_pairs_in_contact | Required information for calculation of the particle-line contact force |
| physical_properties | DEM physical_properties declared in the .prm file |
| force | Force acting on particles |
Definition at line 133 of file particle_point_line_contact_force.cc.
References find_projection_point(), point_nd_to_3d(), Parameters::Lagrangian::LagrangianPhysicalProperties::poisson_ratio_wall, Parameters::Lagrangian::LagrangianPhysicalProperties::restitution_coefficient_wall, and Parameters::Lagrangian::LagrangianPhysicalProperties::youngs_modulus_wall.
| void ParticlePointLineForce< dim, PropertiesIndex >::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. This "contact force" model is used by the packed insertion method.
| [in] | particle_line_pairs_in_contact | Required information for calculation of the particle-line contacts. |
| [in,out] | displacement | Displacement of each local particle. The displacement of each particle-line contact is added to the entry of its particle. |
Definition at line 284 of file particle_point_line_contact_force.cc.
References add_shift_displacement(), find_projection_point(), and point_nd_to_3d().
| void ParticlePointLineForce< dim, PropertiesIndex >::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.
| particle_point_pairs_in_contact | Required information for calculation of the particle-point contact force |
| physical_properties | DEM physical_properties declared in the .prm file |
| force | Force acting on particles |
Definition at line 19 of file particle_point_line_contact_force.cc.
References point_nd_to_3d(), Parameters::Lagrangian::LagrangianPhysicalProperties::poisson_ratio_wall, Parameters::Lagrangian::LagrangianPhysicalProperties::restitution_coefficient_wall, and Parameters::Lagrangian::LagrangianPhysicalProperties::youngs_modulus_wall.
| void ParticlePointLineForce< dim, PropertiesIndex >::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. This "contact force" model is used by the packed insertion method.
| [in] | particle_point_pairs_in_contact | Required information for calculation of the particle-point contacts. |
| [in,out] | displacement | Displacement of each local particle. The displacement of each particle-point contact is added to the entry of its particle. |
Definition at line 256 of file particle_point_line_contact_force.cc.
References add_shift_displacement(), and point_nd_to_3d().
|
private |
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.
| point_p | A point which is going to be projected on the line |
| point_a | Beginning point of the line |
| point_b | Ending point of the line |
Definition at line 347 of file particle_point_line_contact_force.cc.
|
inline |
Return the number of particle-point and particle-line contacts that occurred in the present pseudo-time step when using the packed insertion method.
Definition at line 111 of file particle_point_line_contact_force.h.
References n_contacts.
|
inline |
Reset the counter of number of contacts for the next pseudo-time step.
Definition at line 120 of file particle_point_line_contact_force.h.
References n_contacts.
|
private |
Number of particle-point and particle-line contacts in the present pseudo-time step when using the packed insertion method.
Definition at line 163 of file particle_point_line_contact_force.h.