NetDEM v1.0
Loading...
Searching...
No Matches
netdem::BondSolverPP Class Reference

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

Particleparticle_1 {nullptr}
 
Particleparticle_2 {nullptr}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BondSolverPP() [1/2]

BondSolverPP::BondSolverPP ( )

Default constructor for the BondSolverPP class.

◆ BondSolverPP() [2/2]

BondSolverPP::BondSolverPP ( Particle *const p1,
Particle *const p2 )

Constructor for the BondSolverPP class that initializes particles.

Parameters
p1A pointer to the first particle.
p2A pointer to the second particle.

Member Function Documentation

◆ Init()

void BondSolverPP::Init ( Particle *const p1,
Particle *const p2 )

Initializes the particles associated with this bond.

Parameters
p1A pointer to the first particle.
p2A pointer to the second particle.

◆ ResolveInit() [1/2]

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.

Parameters
cnt_geomsA pointer to the bond geometries.
bond_posThe position of the bond.
bond_dir_nThe normal direction of the bond.
bond_radiusThe radius of the bond.

◆ ResolveInit() [2/2]

void BondSolverPP::ResolveInit ( ContactPP *const cnt,
double timestep )

Initializes the solver for a given point-point contact.

Parameters
cntA pointer to the point-point contact.
timestepThe simulation time step.

◆ ResolveUpdate() [1/2]

void BondSolverPP::ResolveUpdate ( BondGeometries *const cnt_geoms,
double timestep )

Updates the solver for a bond that is not associated with a contact.

Parameters
cnt_geomsA pointer to the bond geometries.
timestepThe simulation time step.

◆ ResolveUpdate() [2/2]

void BondSolverPP::ResolveUpdate ( ContactPP *const cnt,
double timestep )

Updates the solver for a given point-point contact.

Parameters
cntA pointer to the point-point contact.
timestepThe simulation time step.

Member Data Documentation

◆ particle_1

Particle* netdem::BondSolverPP::particle_1 {nullptr}

A pointer to the first particle associated with this bond.

◆ particle_2

Particle* netdem::BondSolverPP::particle_2 {nullptr}

A pointer to the second particle associated with this bond.


The documentation for this class was generated from the following files: