NetDEM v1.0
|
A class used to apply gravity to particles in a DEM simulation. More...
#include <gravity.hpp>
Public Member Functions | |
Gravity () | |
Default constructor for Gravity class. | |
Modifier * | Clone () const override |
Clones the current Gravity instance. | |
void | Init (Simulation *sim) override |
Initializes the Gravity instance. | |
void | Execute () override |
Executes the Gravity instance. | |
Public Member Functions inherited from netdem::Modifier | |
Modifier () | |
Default constructor for Modifier class. | |
virtual void | Enable () |
Enables the Modifier instance. | |
virtual void | Disable () |
Disables the Modifier instance. | |
virtual void | Update () |
Updates the Modifier instance. | |
virtual | ~Modifier () |
Destructor for Modifier class. | |
Additional Inherited Members | |
Public Attributes inherited from netdem::Modifier | |
std::string | label {"default"} |
DEMSolver::CyclePoint | cycle_point {DEMSolver::CyclePoint::pre} |
Simulation * | sim {nullptr} |
Scene * | scene {nullptr} |
bool | update_with_scene {false} |
bool | enable_logging {true} |
A class used to apply gravity to particles in a DEM simulation.
netdem::Gravity::Gravity | ( | ) |
Default constructor for Gravity class.
|
overridevirtual |
Clones the current Gravity instance.
Reimplemented from netdem::Modifier.
|
overridevirtual |
Executes the Gravity instance.
Gravity is applied to each particle's total force.
Reimplemented from netdem::Modifier.
|
overridevirtual |
Initializes the Gravity instance.
sim | Pointer to the current simulation object. |
Reimplemented from netdem::Modifier.