NetDEM v1.0
Loading...
Searching...
No Matches
bond_geometries.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "utils_math.hpp"
4
5namespace netdem {
6
12public:
16 Vec3d pos{0, 0, 0};
17
21 Vec3d dir_n{1, 0, 0};
22
26 Vec3d dir_s{0, 1, 0};
27
31 Vec3d dir_t{0, 0, 1};
32
36 Vec3d branch_1{1, 0, 0};
37
41 Vec3d branch_2{1, 0, 0};
42
46 Vec3d pos_ini{0, 0, 0};
47
51 Vec3d dir_n_ini{1, 0, 0};
52
56 Vec3d dir_s_ini{0, 1, 0};
57
61 Vec3d dir_t_ini{0, 0, 1};
62
66 Vec3d pos_1_ini{0, 0, 0};
67
71 Vec3d pos_2_ini{0, 0, 0};
72
77 Vec4d quat_1_ini{1, 0, 0, 0};
78
83 Vec4d quat_2_ini{1, 0, 0, 0};
84
88 double radius{0};
89
93 double len_n{0};
94
98 double len_s{0};
99
103 double len_t{0};
104
108 double dlen_n{0};
109
113 double dlen_s{0};
114
118 double dlen_t{0};
119
124 double theta_n{0};
125
129 double theta_s{0};
130
134 double theta_t{0};
135
140 double dtheta_n{0};
141
146 double dtheta_s{0};
147
152 double dtheta_t{0};
153
157 bool active{false};
158};
159
160} // namespace netdem
The BondGeometries class represents the geometrical properties of a bond.
Definition bond_geometries.hpp:11
Vec3d branch_1
Unit vector representing the direction of the first branch.
Definition bond_geometries.hpp:36
Vec3d pos
Position of the bond center of mass.
Definition bond_geometries.hpp:16
Vec3d dir_n
Unit vector pointing along the bond's north-south axis.
Definition bond_geometries.hpp:21
Vec3d pos_ini
Initial position of the bond center of mass.
Definition bond_geometries.hpp:46
double dlen_t
Length increment of the bond along the radial axis.
Definition bond_geometries.hpp:118
double theta_n
Angle between the bond's north-south axis and the x-axis (in radians).
Definition bond_geometries.hpp:124
Vec3d dir_s
Unit vector pointing along the bond's east-west axis.
Definition bond_geometries.hpp:26
bool active
Flag indicating whether the bond is currently active.
Definition bond_geometries.hpp:157
double dtheta_n
Angle increment between the bond's north-south axis and the x-axis (in radians).
Definition bond_geometries.hpp:140
Vec3d pos_2_ini
Initial position of the second particle in the bond.
Definition bond_geometries.hpp:71
double len_s
Length of the bond along the east-west axis.
Definition bond_geometries.hpp:98
Vec3d branch_2
Unit vector representing the direction of the second branch.
Definition bond_geometries.hpp:41
Vec3d pos_1_ini
Initial position of the first particle in the bond.
Definition bond_geometries.hpp:66
double dlen_s
Length increment of the bond along the east-west axis.
Definition bond_geometries.hpp:113
double dtheta_t
Angle increment between the bond's radial axis and the z-axis (in radians).
Definition bond_geometries.hpp:152
double radius
Radius of the bond.
Definition bond_geometries.hpp:88
Vec4d quat_2_ini
Initial quaternion representing the orientation of the second particle.
Definition bond_geometries.hpp:83
Vec3d dir_t_ini
Initial unit vector pointing along the bond's radial axis.
Definition bond_geometries.hpp:61
double len_t
Length of the bond along the radial axis.
Definition bond_geometries.hpp:103
double theta_s
Angle between the bond's east-west axis and the y-axis (in radians).
Definition bond_geometries.hpp:129
double len_n
Length of the bond along the north-south axis.
Definition bond_geometries.hpp:93
Vec3d dir_t
Unit vector pointing along the bond's radial axis.
Definition bond_geometries.hpp:31
Vec3d dir_n_ini
Initial unit vector pointing along the bond's north-south axis.
Definition bond_geometries.hpp:51
double dtheta_s
Angle increment between the bond's east-west axis and the y-axis (in radians).
Definition bond_geometries.hpp:146
double theta_t
Angle between the bond's radial axis and the z-axis (in radians).
Definition bond_geometries.hpp:134
double dlen_n
Length increment of the bond along the north-south axis.
Definition bond_geometries.hpp:108
Vec3d dir_s_ini
Initial unit vector pointing along the bond's east-west axis.
Definition bond_geometries.hpp:56
Vec4d quat_1_ini
Initial quaternion representing the orientation of the first particle.
Definition bond_geometries.hpp:77
Definition bond_entry.hpp:7
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18
std::array< double, 4 > Vec4d
Definition utils_macros.hpp:19