NetDEM v1.0
Loading...
Searching...
No Matches
contact_forces.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "mini_map.hpp"
4
5namespace netdem {
6
19public:
22 double fc_n{0}, fc_s{0}, fc_t{0};
23
26 double mc_n{0}, mc_s{0}, mc_t{0};
27
30 double fd_n{0}, fd_s{0}, fd_t{0};
31
34 double md_n{0}, md_s{0}, md_t{0};
35
37 Vec3d force{0, 0, 0};
38
40 Vec3d moment{0, 0, 0};
41
43 Vec3d force_n{0, 0, 0};
44
46 Vec3d force_t{0, 0, 0};
47
49 Vec3d moment_n{0, 0, 0};
50
52 Vec3d moment_t{0, 0, 0};
53
57 void Clear() {
58 fc_n = 0;
59 fc_s = 0;
60 fc_t = 0;
61
62 mc_n = 0;
63 mc_s = 0;
64 mc_t = 0;
65
66 fd_n = 0;
67 fd_s = 0;
68 fd_t = 0;
69
70 md_n = 0;
71 md_s = 0;
72 md_t = 0;
73
74 force[0] = 0;
75 force[1] = 0;
76 force[2] = 0;
77
78 moment[0] = 0;
79 moment[1] = 0;
80 moment[2] = 0;
81
82 force_n[0] = 0;
83 force_n[1] = 0;
84 force_n[2] = 0;
85
86 force_t[0] = 0;
87 force_t[1] = 0;
88 force_t[2] = 0;
89
90 moment_n[0] = 0;
91 moment_n[1] = 0;
92 moment_n[2] = 0;
93
94 moment_t[0] = 0;
95 moment_t[1] = 0;
96 moment_t[2] = 0;
97 }
98};
99
100} // namespace netdem
A class representing the contact forces and moments arising from a contact interaction.
Definition contact_forces.hpp:18
double fc_n
Definition contact_forces.hpp:22
void Clear()
Definition contact_forces.hpp:57
double fd_s
Definition contact_forces.hpp:30
double mc_t
Definition contact_forces.hpp:26
double md_s
Definition contact_forces.hpp:34
Vec3d force
Definition contact_forces.hpp:37
Vec3d force_n
Definition contact_forces.hpp:43
double mc_s
Definition contact_forces.hpp:26
double mc_n
Definition contact_forces.hpp:26
double md_n
Definition contact_forces.hpp:34
double fd_t
Definition contact_forces.hpp:30
Vec3d force_t
Definition contact_forces.hpp:46
double md_t
Definition contact_forces.hpp:34
double fc_s
Definition contact_forces.hpp:22
Vec3d moment
Definition contact_forces.hpp:40
double fd_n
Definition contact_forces.hpp:30
double fc_t
Definition contact_forces.hpp:22
Vec3d moment_t
Definition contact_forces.hpp:52
Vec3d moment_n
Definition contact_forces.hpp:49
Definition bond_entry.hpp:7
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18