A class used to solve collisions between two spheres.
More...
#include <solver_sphere_sphere.hpp>
A class used to solve collisions between two spheres.
The SolverSphereSphere class is used to solve collisions between two spheres in a particle-particle collision detection system.
◆ SolverSphereSphere() [1/2]
netdem::SolverSphereSphere::SolverSphereSphere |
( |
| ) |
|
◆ SolverSphereSphere() [2/2]
netdem::SolverSphereSphere::SolverSphereSphere |
( |
Particle *const | p1, |
|
|
Particle *const | p2 ) |
Constructor for SolverSphereSphere class.
- Parameters
-
p1 | A pointer to the first particle involved in the collision. |
p2 | A pointer to the second particle involved in the collision. |
◆ Clone()
◆ Detect()
bool netdem::SolverSphereSphere::Detect |
( |
| ) |
|
|
overridevirtual |
Detects if there is a collision between the two particles.
- Returns
- True if there is a collision, false otherwise.
Implements netdem::CollisionSolverPP.
◆ Init()
void netdem::SolverSphereSphere::Init |
( |
Particle *const | p1, |
|
|
Particle *const | p2 ) |
|
overridevirtual |
Initializes the SolverSphereSphere instance with the given particles.
- Parameters
-
p1 | A pointer to the first particle involved in the collision. |
p2 | A pointer to the second particle involved in the collision. |
Reimplemented from netdem::CollisionSolverPP.
◆ ResolveInit() [1/2]
void netdem::SolverSphereSphere::ResolveInit |
( |
CollisionGeometries *const | cnt_geoms, |
|
|
double | timestep ) |
Resolves the collision between the two particles based on the initial contact geometries and timestep.
- Parameters
-
cnt_geoms | A pointer to the contact geometries object. |
timestep | The timestep to use for resolving the collision. |
◆ ResolveInit() [2/2]
void netdem::SolverSphereSphere::ResolveInit |
( |
ContactPP *const | cnt, |
|
|
double | timestep ) |
|
overridevirtual |
Resolves the collision based on the initial contact information and timestep.
- Parameters
-
cnt | A pointer to the contact information object. |
timestep | The timestep to use for resolving the collision. |
Implements netdem::CollisionSolverPP.
◆ ResolveUpdate() [1/2]
void netdem::SolverSphereSphere::ResolveUpdate |
( |
CollisionGeometries *const | cnt_geoms, |
|
|
double | timestep ) |
Updates the contact geometries object and resolves the collision based on the updated information and timestep.
- Parameters
-
cnt_geoms | A pointer to the contact geometries object. |
timestep | The timestep to use for resolving the collision. |
◆ ResolveUpdate() [2/2]
void netdem::SolverSphereSphere::ResolveUpdate |
( |
ContactPP *const | cnt, |
|
|
double | timestep ) |
|
overridevirtual |
Updates the contact information object and resolves the collision based on the updated information and timestep.
- Parameters
-
cnt | A pointer to the contact information object. |
timestep | The timestep to use for resolving the collision. |
Implements netdem::CollisionSolverPP.
The documentation for this class was generated from the following files: