NetDEM v1.0
Loading...
Searching...
No Matches
netdem::ParticleData Struct Reference

A struct defining the particle data for MPI communication. More...

#include <particle_data.hpp>

Public Attributes

int id {0}
 < The unique identifier for the particle.
 
int shape_id {0}
 The bounding box and margin for the particle's shape.
 
double bound_min [3] {0, 0, 0}
 
double bound_max [3] {0, 0, 0}
 
double margin {0}
 
double bound_disp [3] {0, 0, 0}
 The material type identifier for the particle.
 
int material_type {0}
 The density of the particle.
 
double density {2650}
 The global damping coefficient for the particle.
 
double damp_viscous {0}
 
double damp_numerical {0}
 The position and orientation of the particle.
 
double pos [3] {0, 0, 0}
 
double quaternion [4] {1, 0, 0, 0}
 The velocity and angular velocity of the particle.
 
double vel [3] {0, 0, 0}
 
double spin [3] {0, 0, 0}
 Additional velocity and angular velocity vectors used in calculations.
 
double vel_m0p5 [3] {0, 0, 0}
 
double spin_principal [3] {0, 0, 0}
 The force and torque acting on the particle.
 
double force [3] {0, 0, 0}
 
double moment [3] {0, 0, 0}
 
bool enable_bound_aabb {false}
 
bool need_update_linked_list {true}
 

Detailed Description

A struct defining the particle data for MPI communication.

The ParticleData struct contains all properties of the Particle class except for pointers or references, as these cannot be exchanged between processes due to addressing rules and memory space limitations.

For information on the meanings of the properties, please refer to the Particle class defined in particle.hpp.

Member Data Documentation

◆ bound_disp

double netdem::ParticleData::bound_disp[3] {0, 0, 0}

The material type identifier for the particle.

◆ bound_max

double netdem::ParticleData::bound_max[3] {0, 0, 0}

◆ bound_min

double netdem::ParticleData::bound_min[3] {0, 0, 0}

◆ damp_numerical

double netdem::ParticleData::damp_numerical {0}

The position and orientation of the particle.

◆ damp_viscous

double netdem::ParticleData::damp_viscous {0}

◆ density

double netdem::ParticleData::density {2650}

The global damping coefficient for the particle.

◆ enable_bound_aabb

bool netdem::ParticleData::enable_bound_aabb {false}

A flag indicating whether the particle needs to be updated in the linked list.

◆ force

double netdem::ParticleData::force[3] {0, 0, 0}

◆ id

int netdem::ParticleData::id {0}

< The unique identifier for the particle.

The identifier for the particle's shape.

◆ margin

double netdem::ParticleData::margin {0}

The displacement from the particle's center of mass to the center of the bounding box.

◆ material_type

int netdem::ParticleData::material_type {0}

The density of the particle.

◆ moment

double netdem::ParticleData::moment[3] {0, 0, 0}

Flags indicating whether rotation and bounding box calculations are enabled for the particle.

◆ need_update_linked_list

bool netdem::ParticleData::need_update_linked_list {true}

◆ pos

double netdem::ParticleData::pos[3] {0, 0, 0}

◆ quaternion

double netdem::ParticleData::quaternion[4] {1, 0, 0, 0}

The velocity and angular velocity of the particle.

◆ shape_id

int netdem::ParticleData::shape_id {0}

The bounding box and margin for the particle's shape.

◆ spin

double netdem::ParticleData::spin[3] {0, 0, 0}

Additional velocity and angular velocity vectors used in calculations.

◆ spin_principal

double netdem::ParticleData::spin_principal[3] {0, 0, 0}

The force and torque acting on the particle.

◆ vel

double netdem::ParticleData::vel[3] {0, 0, 0}

◆ vel_m0p5

double netdem::ParticleData::vel_m0p5[3] {0, 0, 0}

The documentation for this struct was generated from the following file: