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

A class representing the geometries associated with a collision. More...

#include <collision_geometries.hpp>

Public Attributes

Vec3d pos {0, 0, 0}
 
Vec3d dir_n {1, 0, 0}
 
Vec3d dir_s {0, 1, 0}
 
Vec3d dir_t {0, 0, 1}
 
Vec3d branch_1 {1, 0, 0}
 
Vec3d branch_2 {1, 0, 0}
 
double len_n {0}
 
double dlen_n {0}
 
double dlen_s {0}
 
double dlen_t {0}
 
double dtheta_n {0}
 
double dtheta_s {0}
 
double dtheta_t {0}
 
double radius_1 {1}
 
double radius_2 {1}
 
bool active {true}
 
bool node_2to1 {true}
 
int node_id {0}
 
double node_dist {0}
 
double vol {0}
 
double sn {0}
 

Detailed Description

A class representing the geometries associated with a collision.

This class contains information about the position, orientation, and size of the contact surface associated with a collision. It also includes additional fields for tracking the state of the contact and for use with specific contact models.

Examples
0_demo_erosion_issue.cpp.

Member Data Documentation

◆ active

bool netdem::CollisionGeometries::active {true}

Whether the contact associated with this geometry is active.

◆ branch_1

Vec3d netdem::CollisionGeometries::branch_1 {1, 0, 0}

The direction of the first branch of the contact surface.

◆ branch_2

Vec3d netdem::CollisionGeometries::branch_2 {1, 0, 0}

The direction of the second branch of the contact surface.

◆ dir_n

Vec3d netdem::CollisionGeometries::dir_n {1, 0, 0}

The normal direction of the contact surface.

◆ dir_s

Vec3d netdem::CollisionGeometries::dir_s {0, 1, 0}

The tangential directions of the contact surface.

◆ dir_t

Vec3d netdem::CollisionGeometries::dir_t {0, 0, 1}

◆ dlen_n

double netdem::CollisionGeometries::dlen_n {0}

The change in length of the normal segment of the contact surface.

◆ dlen_s

double netdem::CollisionGeometries::dlen_s {0}

The change in length of the tangential segments of the contact surface.

◆ dlen_t

double netdem::CollisionGeometries::dlen_t {0}

◆ dtheta_n

double netdem::CollisionGeometries::dtheta_n {0}

The change in angle of the normal segment of the contact surface.

◆ dtheta_s

double netdem::CollisionGeometries::dtheta_s {0}

The change in angle of the tangential segments of the contact surface.

◆ dtheta_t

double netdem::CollisionGeometries::dtheta_t {0}

◆ len_n

double netdem::CollisionGeometries::len_n {0}

The length of the normal segment of the contact surface.

◆ node_2to1

bool netdem::CollisionGeometries::node_2to1 {true}

Whether considering object 1 as base particle and object 2 as the intruding particle for the SDF solver.

◆ node_dist

double netdem::CollisionGeometries::node_dist {0}

The distance to the node associated with the contact (for node-based solvers).

◆ node_id

int netdem::CollisionGeometries::node_id {0}

The ID of the node associated with the contact (for node-based solvers).

◆ pos

Vec3d netdem::CollisionGeometries::pos {0, 0, 0}

The position of the contact surface.

◆ radius_1

double netdem::CollisionGeometries::radius_1 {1}

The radius of the first branch of the contact surface.

◆ radius_2

double netdem::CollisionGeometries::radius_2 {1}

The radius of the second branch of the contact surface.

◆ sn

double netdem::CollisionGeometries::sn {0}

The surface area of the contact region.

◆ vol

double netdem::CollisionGeometries::vol {0}

The volume of the contact region.


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