A class used to solve collisions between a sphere and a plane.
More...
#include <solver_sphere_plane.hpp>
A class used to solve collisions between a sphere and a plane.
The SolverSpherePlane class is used to solve collisions between a sphere and a plane in a particle-wall collision detection system.
◆ SolverSpherePlane() [1/2]
netdem::SolverSpherePlane::SolverSpherePlane |
( |
| ) |
|
◆ SolverSpherePlane() [2/2]
netdem::SolverSpherePlane::SolverSpherePlane |
( |
Particle *const | p, |
|
|
Wall *const | w ) |
Constructor for SolverSpherePlane 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 netdem::SolverSpherePlane::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 netdem::SolverSpherePlane::Init |
( |
Particle *const | p, |
|
|
Wall *const | w ) |
|
overridevirtual |
Initializes the SolverSpherePlane 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 netdem::SolverSpherePlane::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 netdem::SolverSpherePlane::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 netdem::SolverSpherePlane::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::SolverSpherePlane::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: