NetDEM v1.0
|
A class for solving point-point bonds between particles. More...
#include <bond_solver_pp.hpp>
Public Member Functions | |
BondSolverPP () | |
BondSolverPP (Particle *const p1, Particle *const p2) | |
void | ResolveInit (ContactPP *const cnt, double timestep) |
void | ResolveUpdate (ContactPP *const cnt, double timestep) |
void | ResolveInit (BondGeometries *const cnt_geoms, Vec3d const &bond_pos, Vec3d const &bond_dir_n, double bond_radius) |
void | ResolveUpdate (BondGeometries *const cnt_geoms, double timestep) |
void | Init (Particle *const p1, Particle *const p2) |
Public Attributes | |
Particle * | particle_1 {nullptr} |
Particle * | particle_2 {nullptr} |
A class for solving point-point bonds between particles.
This class performs initialization and updates for point-point contacts associated with a pair of particles connected by a bond. It can also perform initialization and updates for bonds that are not associated with a contact.
BondSolverPP::BondSolverPP | ( | ) |
Default constructor for the BondSolverPP
class.
Constructor for the BondSolverPP
class that initializes particles.
p1 | A pointer to the first particle. |
p2 | A pointer to the second particle. |
Initializes the particles associated with this bond.
p1 | A pointer to the first particle. |
p2 | A pointer to the second particle. |
void BondSolverPP::ResolveInit | ( | BondGeometries *const | cnt_geoms, |
Vec3d const & | bond_pos, | ||
Vec3d const & | bond_dir_n, | ||
double | bond_radius ) |
Initializes the solver for a bond that is not associated with a contact.
cnt_geoms | A pointer to the bond geometries. |
bond_pos | The position of the bond. |
bond_dir_n | The normal direction of the bond. |
bond_radius | The radius of the bond. |
void BondSolverPP::ResolveInit | ( | ContactPP *const | cnt, |
double | timestep ) |
Initializes the solver for a given point-point contact.
cnt | A pointer to the point-point contact. |
timestep | The simulation time step. |
void BondSolverPP::ResolveUpdate | ( | BondGeometries *const | cnt_geoms, |
double | timestep ) |
Updates the solver for a bond that is not associated with a contact.
cnt_geoms | A pointer to the bond geometries. |
timestep | The simulation time step. |
void BondSolverPP::ResolveUpdate | ( | ContactPP *const | cnt, |
double | timestep ) |
Updates the solver for a given point-point contact.
cnt | A pointer to the point-point contact. |
timestep | The simulation time step. |
Particle* netdem::BondSolverPP::particle_1 {nullptr} |
A pointer to the first particle associated with this bond.
Particle* netdem::BondSolverPP::particle_2 {nullptr} |
A pointer to the second particle associated with this bond.