NetDEM v1.0
Loading...
Searching...
No Matches
particle_data_gpu.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace netdem {
6
18 int32_t id; // at byte offset 0
19 int32_t shape_id; // at byte offset 4
20 int32_t enable_bound_aabb; // at byte offset 8
21 int32_t need_update_linked_list; // at byte offset 12
22
23 int32_t material_type; // at byte offset 16
24 float density; // at byte offset 20
25 float damp_viscous; // at byte offset 24
26 float damp_numerical; // at byte offset 28
27
28 float bound_min[3]; // at byte offset 32
29 float padding1; // at byte offset 44
30 float bound_max[3]; // at byte offset 48
31 float margin; // at byte offset 60
32
33 float bound_disp[3]; // at byte offset 64
34 float padding2; // at byte offset 76
35
36 float pos[3]; // at byte offset 80
37 float padding3; // at byte offset 92
38 float quaternion[4]; // at byte offset 96
39 float vel[3]; // at byte offset 112
40 float padding4; // at byte offset 124
41
42 float spin[3]; // at byte offset 128
43 float padding5; // at byte offset 140
44 float vel_m0p5[3]; // at byte offset 144
45 float padding6; // at byte offset 156
46 float spin_principal[3]; // at byte offset 160
47 float padding7; // at byte offset 172
48
49 float force[3]; // at byte offset 176
50 float padding8; // at byte offset 188
51 float moment[3]; // at byte offset 192
52 float padding9; // at byte offset 204
53};
54
55static_assert(sizeof(ParticleDataGPU) % 16 == 0);
56
57} // namespace netdem
Definition bond_entry.hpp:7
A struct defining the particle data for MPI communication.
Definition particle_data_gpu.hpp:17
float vel[3]
Definition particle_data_gpu.hpp:39
float margin
Definition particle_data_gpu.hpp:31
float moment[3]
Definition particle_data_gpu.hpp:51
int32_t shape_id
Definition particle_data_gpu.hpp:19
int32_t id
Definition particle_data_gpu.hpp:18
float bound_min[3]
Definition particle_data_gpu.hpp:28
float padding1
Definition particle_data_gpu.hpp:29
float bound_disp[3]
Definition particle_data_gpu.hpp:33
float vel_m0p5[3]
Definition particle_data_gpu.hpp:44
float damp_numerical
Definition particle_data_gpu.hpp:26
int32_t need_update_linked_list
Definition particle_data_gpu.hpp:21
float damp_viscous
Definition particle_data_gpu.hpp:25
float padding7
Definition particle_data_gpu.hpp:47
float force[3]
Definition particle_data_gpu.hpp:49
float padding5
Definition particle_data_gpu.hpp:43
int32_t enable_bound_aabb
Definition particle_data_gpu.hpp:20
float spin[3]
Definition particle_data_gpu.hpp:42
int32_t material_type
Definition particle_data_gpu.hpp:23
float quaternion[4]
Definition particle_data_gpu.hpp:38
float padding6
Definition particle_data_gpu.hpp:45
float pos[3]
Definition particle_data_gpu.hpp:36
float padding3
Definition particle_data_gpu.hpp:37
float bound_max[3]
Definition particle_data_gpu.hpp:30
float density
Definition particle_data_gpu.hpp:24
float padding4
Definition particle_data_gpu.hpp:40
float padding8
Definition particle_data_gpu.hpp:50
float padding9
Definition particle_data_gpu.hpp:52
float spin_principal[3]
Definition particle_data_gpu.hpp:46
float padding2
Definition particle_data_gpu.hpp:34