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
5
namespace
netdem
{
6
18
class
ContactForces
{
19
public
:
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
netdem::ContactForces
A class representing the contact forces and moments arising from a contact interaction.
Definition
contact_forces.hpp:18
netdem::ContactForces::fc_n
double fc_n
Definition
contact_forces.hpp:22
netdem::ContactForces::Clear
void Clear()
Definition
contact_forces.hpp:57
netdem::ContactForces::fd_s
double fd_s
Definition
contact_forces.hpp:30
netdem::ContactForces::mc_t
double mc_t
Definition
contact_forces.hpp:26
netdem::ContactForces::md_s
double md_s
Definition
contact_forces.hpp:34
netdem::ContactForces::force
Vec3d force
Definition
contact_forces.hpp:37
netdem::ContactForces::force_n
Vec3d force_n
Definition
contact_forces.hpp:43
netdem::ContactForces::mc_s
double mc_s
Definition
contact_forces.hpp:26
netdem::ContactForces::mc_n
double mc_n
Definition
contact_forces.hpp:26
netdem::ContactForces::md_n
double md_n
Definition
contact_forces.hpp:34
netdem::ContactForces::fd_t
double fd_t
Definition
contact_forces.hpp:30
netdem::ContactForces::force_t
Vec3d force_t
Definition
contact_forces.hpp:46
netdem::ContactForces::md_t
double md_t
Definition
contact_forces.hpp:34
netdem::ContactForces::fc_s
double fc_s
Definition
contact_forces.hpp:22
netdem::ContactForces::moment
Vec3d moment
Definition
contact_forces.hpp:40
netdem::ContactForces::fd_n
double fd_n
Definition
contact_forces.hpp:30
netdem::ContactForces::fc_t
double fc_t
Definition
contact_forces.hpp:22
netdem::ContactForces::moment_t
Vec3d moment_t
Definition
contact_forces.hpp:52
netdem::ContactForces::moment_n
Vec3d moment_n
Definition
contact_forces.hpp:49
mini_map.hpp
netdem
Definition
bond_entry.hpp:7
netdem::Vec3d
std::array< double, 3 > Vec3d
Definition
utils_macros.hpp:18
netdem
src
dem
contact_forces.hpp
Generated by
1.12.0