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

A class representing a collision entry. More...

#include <collision_entry.hpp>

Public Member Functions

void UpdateForces (ContactPP *const cnt, double dt)
 
void UpdateForces (ContactPW *const cnt, double dt)
 
void UpdateLocalForces (ContactPP *const cnt, double dt)
 
void UpdateLocalForces (ContactPW *const cnt, double dt)
 
void UpdateGlobalForces ()
 

Public Attributes

CollisionGeometries cnt_geoms
 
ContactForces cnt_forces
 
ContactModelcnt_model {nullptr}
 

Detailed Description

A class representing a collision entry.

This class contains information about a collision between two objects, including the geometries associated with the contact and the forces acting on those geometries. It also includes a pointer to the contact model that was used to generate the contact.

Member Function Documentation

◆ UpdateForces() [1/2]

void CollisionEntry::UpdateForces ( ContactPP *const cnt,
double dt )

Updates the global forces acting on the contact for a point-point contact.

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

◆ UpdateForces() [2/2]

void CollisionEntry::UpdateForces ( ContactPW *const cnt,
double dt )

Updates the global forces acting on the contact for a point-wall contact.

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

◆ UpdateGlobalForces()

void CollisionEntry::UpdateGlobalForces ( )

Updates the global forces acting on all contacts associated with this entry.

◆ UpdateLocalForces() [1/2]

void CollisionEntry::UpdateLocalForces ( ContactPP *const cnt,
double dt )

Updates the local forces acting on the contact for a point-point contact.

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

◆ UpdateLocalForces() [2/2]

void CollisionEntry::UpdateLocalForces ( ContactPW *const cnt,
double dt )

Updates the local forces acting on the contact for a point-wall contact.

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

Member Data Documentation

◆ cnt_forces

ContactForces netdem::CollisionEntry::cnt_forces

The forces acting on the geometries associated with the contact.

◆ cnt_geoms

CollisionGeometries netdem::CollisionEntry::cnt_geoms

The geometries associated with the contact.

◆ cnt_model

ContactModel* netdem::CollisionEntry::cnt_model {nullptr}

A pointer to the contact model used to generate the contact.


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