A class used to solve collisions between a particle and a triangle.
More...
#include <solver_sphere_triangle.hpp>
A class used to solve collisions between a particle and a triangle.
The SolverSphereTriangle class is used to solve collisions between a particle and a triangle in a particle-wall collision detection system.
◆ SolverSphereTriangle() [1/2]
SolverSphereTriangle::SolverSphereTriangle |
( |
| ) |
|
◆ SolverSphereTriangle() [2/2]
SolverSphereTriangle::SolverSphereTriangle |
( |
Particle *const | p, |
|
|
Wall *const | w ) |
Constructor for SolverSphereTriangle class.
- Parameters
-
p | A pointer to the particle involved in the collision. |
w | A pointer to the wall involved in the collision. |
◆ Clone()
◆ Detect()
bool SolverSphereTriangle::Detect |
( |
| ) |
|
|
overridevirtual |
Detects if there is a collision between the particle and the wall.
- Returns
- True if there is a collision, false otherwise.
Implements netdem::CollisionSolverPW.
◆ Init()
void SolverSphereTriangle::Init |
( |
Particle *const | p, |
|
|
Wall *const | w ) |
|
overridevirtual |
Initializes the SolverSphereTriangle instance with the given particles and walls.
- Parameters
-
p | A pointer to the particle involved in the collision. |
w | A pointer to the wall involved in the collision. |
Reimplemented from netdem::CollisionSolverPW.
◆ ResolveInit() [1/2]
void SolverSphereTriangle::ResolveInit |
( |
CollisionGeometries *const | cnt_geoms, |
|
|
double | timestep ) |
Resolves the collision between the particle and the wall 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 SolverSphereTriangle::ResolveInit |
( |
ContactPW *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::CollisionSolverPW.
◆ ResolveUpdate() [1/2]
void SolverSphereTriangle::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 SolverSphereTriangle::ResolveUpdate |
( |
ContactPW *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::CollisionSolverPW.
The documentation for this class was generated from the following files: