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

A class for solving point-wall bonds between a particle and a wall. More...

#include <bond_solver_pw.hpp>

Public Member Functions

 BondSolverPW ()
 
 BondSolverPW (Particle *const p, Wall *const w)
 
void ResolveInit (ContactPW *const cnt, double timestep)
 
void ResolveUpdate (ContactPW *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 p, Wall *const w)
 

Public Attributes

Particleparticle {nullptr}
 
Wallwall {nullptr}
 

Detailed Description

A class for solving point-wall bonds between a particle and a wall.

This class performs initialization and updates for point-wall contacts associated with a particle connected to a wall by a bond. It can also perform initialization and updates for bonds that are not associated with a contact.

Constructor & Destructor Documentation

◆ BondSolverPW() [1/2]

BondSolverPW::BondSolverPW ( )

Default constructor for the BondSolverPW class.

◆ BondSolverPW() [2/2]

BondSolverPW::BondSolverPW ( Particle *const p,
Wall *const w )

Constructor for the BondSolverPW class that initializes particles and walls.

Parameters
pA pointer to the particle.
wA pointer to the wall.

Member Function Documentation

◆ Init()

void BondSolverPW::Init ( Particle *const p,
Wall *const w )

Initializes the particle and wall associated with this bond.

Parameters
pA pointer to the particle.
wA pointer to the wall.

◆ ResolveInit() [1/2]

void BondSolverPW::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 BondSolverPW::ResolveInit ( ContactPW *const cnt,
double timestep )

Initializes the solver for a given point-wall contact.

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

◆ ResolveUpdate() [1/2]

void BondSolverPW::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 BondSolverPW::ResolveUpdate ( ContactPW *const cnt,
double timestep )

Updates the solver for a given point-wall contact.

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

Member Data Documentation

◆ particle

Particle* netdem::BondSolverPW::particle {nullptr}

A pointer to the particle associated with this bond.

◆ wall

Wall* netdem::BondSolverPW::wall {nullptr}

A pointer to the wall associated with this bond.


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