NetDEM v1.0
Loading...
Searching...
No Matches
collision_geometries.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "utils_math.hpp"
4
5namespace netdem {
6
16public:
20 Vec3d pos{0, 0, 0};
21
25 Vec3d dir_n{1, 0, 0};
26
30 Vec3d dir_s{0, 1, 0}, dir_t{0, 0, 1};
31
35 Vec3d branch_1{1, 0, 0};
36
40 Vec3d branch_2{1, 0, 0};
41
45 double len_n{0};
46
50 double dlen_n{0};
51
55 double dlen_s{0}, dlen_t{0};
56
60 double dtheta_n{0};
61
65 double dtheta_s{0}, dtheta_t{0};
66
70 double radius_1{1};
71
75 double radius_2{1};
76
80 bool active{true};
81
86 bool node_2to1{true};
87
91 int node_id{0};
92
97 double node_dist{0};
98
102 double vol{0};
103
107 double sn{0};
108};
109
110} // namespace netdem
A class representing the geometries associated with a collision.
Definition collision_geometries.hpp:15
double dtheta_t
Definition collision_geometries.hpp:65
int node_id
Definition collision_geometries.hpp:91
double dlen_t
Definition collision_geometries.hpp:55
double node_dist
Definition collision_geometries.hpp:97
bool active
Definition collision_geometries.hpp:80
double dlen_s
Definition collision_geometries.hpp:55
bool node_2to1
Definition collision_geometries.hpp:86
double dlen_n
Definition collision_geometries.hpp:50
Vec3d branch_1
Definition collision_geometries.hpp:35
double len_n
Definition collision_geometries.hpp:45
double dtheta_s
Definition collision_geometries.hpp:65
Vec3d branch_2
Definition collision_geometries.hpp:40
Vec3d dir_t
Definition collision_geometries.hpp:30
double dtheta_n
Definition collision_geometries.hpp:60
double sn
Definition collision_geometries.hpp:107
Vec3d dir_n
Definition collision_geometries.hpp:25
double vol
Definition collision_geometries.hpp:102
Vec3d dir_s
Definition collision_geometries.hpp:30
Vec3d pos
Definition collision_geometries.hpp:20
double radius_2
Definition collision_geometries.hpp:75
double radius_1
Definition collision_geometries.hpp:70
Definition bond_entry.hpp:7
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18