A class used to group particles in a DEM simulation.
More...
#include <particle_group.hpp>
A class used to group particles in a DEM simulation.
The ParticleGroup class is used to group particles together for various operations, such as setting their velocity or spin properties.
◆ ParticleGroup()
netdem::ParticleGroup::ParticleGroup |
( |
| ) |
|
◆ AddParticle() [1/3]
void netdem::ParticleGroup::AddParticle |
( |
const std::initializer_list< int > & | ids | ) |
|
Adds multiple particles to the group.
- Parameters
-
ids | A vector of particle IDs to add. |
◆ AddParticle() [2/3]
void netdem::ParticleGroup::AddParticle |
( |
const VecXT< int > & | ids | ) |
|
Adds multiple particles to the group.
- Parameters
-
ids | A vector of particle IDs to add. |
◆ AddParticle() [3/3]
void netdem::ParticleGroup::AddParticle |
( |
int | id | ) |
|
Adds a particle to the group.
- Parameters
-
id | The ID of the particle to add. |
◆ Clear()
void netdem::ParticleGroup::Clear |
( |
| ) |
|
Clears all particles from the group.
◆ Clone()
Modifier * netdem::ParticleGroup::Clone |
( |
| ) |
const |
|
overridevirtual |
◆ Execute()
void netdem::ParticleGroup::Execute |
( |
| ) |
|
|
overridevirtual |
◆ GetParticles()
VecXT< Particle * > const & netdem::ParticleGroup::GetParticles |
( |
| ) |
|
◆ RemoveParticle() [1/3]
void netdem::ParticleGroup::RemoveParticle |
( |
const std::initializer_list< int > & | ids | ) |
|
Removes multiple particles from the group.
- Parameters
-
ids | A vector of particle IDs to remove. |
◆ RemoveParticle() [2/3]
void netdem::ParticleGroup::RemoveParticle |
( |
const VecXT< int > & | ids | ) |
|
Removes multiple particles from the group.
- Parameters
-
ids | A vector of particle IDs to remove. |
◆ RemoveParticle() [3/3]
void netdem::ParticleGroup::RemoveParticle |
( |
int | id | ) |
|
Removes a particle from the group.
- Parameters
-
id | The ID of the particle to remove. |
◆ SetParticle() [1/3]
void netdem::ParticleGroup::SetParticle |
( |
const std::initializer_list< int > & | ids | ) |
|
Sets multiple particles to the group.
- Parameters
-
ids | A vector of particle IDs to add. |
◆ SetParticle() [2/3]
void netdem::ParticleGroup::SetParticle |
( |
const VecXT< int > & | ids | ) |
|
Sets multiple particles to the group.
- Parameters
-
ids | A vector of particle IDs to add. |
◆ SetParticle() [3/3]
void netdem::ParticleGroup::SetParticle |
( |
int | id | ) |
|
Sets a particle to the group.
- Parameters
-
id | The ID of the particle to add. |
◆ SetParticleFromScene()
void netdem::ParticleGroup::SetParticleFromScene |
( |
| ) |
|
◆ Update()
void netdem::ParticleGroup::Update |
( |
| ) |
|
|
overridevirtual |
◆ particle_id_list
std::unordered_set<int> netdem::ParticleGroup::particle_id_list |
|
protected |
The list of particle IDs.
◆ particle_list
◆ use_particles_in_scene
bool netdem::ParticleGroup::use_particles_in_scene {false} |
A flag indicating whether to group all particle in the scene.
The documentation for this class was generated from the following files:
- /Users/lzhshou/Documents/Research/myProjects/apaam/repo/netdem/src/modifier/particle_group.hpp
- /Users/lzhshou/Documents/Research/myProjects/apaam/repo/netdem/src/modifier/particle_group.cpp