A class used to add motion control to particles in a DEM simulation.
More...
#include <particle_motion_control.hpp>
|
| | ParticleMotionControl () |
| | Default constructor for ParticleMotionControl class.
|
| |
| void | SetFixed (int id) |
| | Sets the particle to have a fixed position.
|
| |
| void | SetFixRotation (int id) |
| | Sets the particle to have a fixed rotation.
|
| |
| void | SetLinearSpin (int id, double spin_x, double spin_y, double spin_z) |
| |
| void | SetLinearVelocity (int id, double xa, double xb, double ya, double yb, double za, double zb) |
| | Sets the particle to have a linear velocity.
|
| |
| void | SetSinVelocity (int id, double x_amplit, double x_freq, double x_phase, double y_amplit, double y_freq, double y_phase, double z_amplit, double z_freq, double z_phase) |
| | Sets the particle to have a sinusoidal velocity.
|
| |
| void | SyncToAllProcessors () |
| | Synchronizes the particle motion across all processors in the simulation.
|
| |
| void | Clear () |
| | Clears all particles from the ParticleMotionControl instance.
|
| |
| Modifier * | Clone () const override |
| | Clones the current ParticleMotionControl instance.
|
| |
| void | Execute () override |
| | Executes the ParticleMotionControl instance at the beginning of a DEM cycle.
|
| |
| void | Update () override |
| | Updates the ParticleMotionControl instance.
|
| |
| | Modifier () |
| | Default constructor for Modifier class.
|
| |
| virtual void | Init (Simulation *sim) |
| | Initializes the Modifier instance.
|
| |
| virtual void | Enable () |
| | Enables the Modifier instance.
|
| |
| virtual void | Disable () |
| | Disables the Modifier instance.
|
| |
| virtual | ~Modifier () |
| | Destructor for Modifier class.
|
| |
A class used to add motion control to particles in a DEM simulation.
The ParticleMotionControl class is used to add various types of motion to particles, including fixed, linear velocity, and sinusoidal velocity.
◆ ParticleMotionControl()
| netdem::ParticleMotionControl::ParticleMotionControl |
( |
| ) |
|
◆ Clear()
| void netdem::ParticleMotionControl::Clear |
( |
| ) |
|
◆ Clone()
| Modifier * netdem::ParticleMotionControl::Clone |
( |
| ) |
const |
|
overridevirtual |
◆ Execute()
| void netdem::ParticleMotionControl::Execute |
( |
| ) |
|
|
overridevirtual |
◆ SetFixed()
| void netdem::ParticleMotionControl::SetFixed |
( |
int | id | ) |
|
Sets the particle to have a fixed position.
- Parameters
-
| id | The ID of the particle to set as fixed. |
◆ SetFixRotation()
| void netdem::ParticleMotionControl::SetFixRotation |
( |
int | id | ) |
|
Sets the particle to have a fixed rotation.
- Parameters
-
| id | The ID of the particle to set as fixed. |
◆ SetLinearSpin()
| void netdem::ParticleMotionControl::SetLinearSpin |
( |
int | id, |
|
|
double | spin_x, |
|
|
double | spin_y, |
|
|
double | spin_z ) |
◆ SetLinearVelocity()
| void netdem::ParticleMotionControl::SetLinearVelocity |
( |
int | id, |
|
|
double | xa, |
|
|
double | xb, |
|
|
double | ya, |
|
|
double | yb, |
|
|
double | za, |
|
|
double | zb ) |
Sets the particle to have a linear velocity.
- Parameters
-
| id | The ID of the particle to set the linear velocity for. |
| xa | The x component of the start point of the linear velocity. |
| xb | The x component of the end point of the linear velocity. |
| ya | The y component of the start point of the linear velocity. |
| yb | The y component of the end point of the linear velocity. |
| za | The z component of the start point of the linear velocity. |
| zb | The z component of the end point of the linear velocity. |
◆ SetSinVelocity()
| void netdem::ParticleMotionControl::SetSinVelocity |
( |
int | id, |
|
|
double | x_amplit, |
|
|
double | x_freq, |
|
|
double | x_phase, |
|
|
double | y_amplit, |
|
|
double | y_freq, |
|
|
double | y_phase, |
|
|
double | z_amplit, |
|
|
double | z_freq, |
|
|
double | z_phase ) |
Sets the particle to have a sinusoidal velocity.
- Parameters
-
| id | The ID of the particle to set the sinusoidal velocity for. |
| x_amplit | The amplitude of the x component of the sinusoidal velocity. |
| x_freq | The frequency of the x component of the sinusoidal velocity. |
| x_phase | The phase of the x component of the sinusoidal velocity. |
| y_amplit | The amplitude of the y component of the sinusoidal velocity. |
| y_freq | The frequency of the y component of the sinusoidal velocity. |
| y_phase | The phase of the y component of the sinusoidal velocity. |
| z_amplit | The amplitude of the z component of the sinusoidal velocity. |
| z_freq | The frequency of the z component of the sinusoidal velocity. |
| z_phase | The phase of the z component of the sinusoidal velocity. |
◆ SyncToAllProcessors()
| void netdem::ParticleMotionControl::SyncToAllProcessors |
( |
| ) |
|
Synchronizes the particle motion across all processors in the simulation.
◆ Update()
| void netdem::ParticleMotionControl::Update |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: