NetDEM v1.0
|
An interface class used to modify a DEM simulation. More...
#include <modifier.hpp>
Public Member Functions | |
Modifier () | |
Default constructor for Modifier class. | |
virtual Modifier * | Clone () const |
Clones the current Modifier instance. | |
virtual void | Init (Simulation *sim) |
Initializes the Modifier instance. | |
virtual void | Enable () |
Enables the Modifier instance. | |
virtual void | Disable () |
Disables the Modifier instance. | |
virtual void | Execute () |
Executes the Modifier instance. | |
virtual void | Update () |
Updates the Modifier instance. | |
virtual | ~Modifier () |
Destructor for Modifier class. | |
Public Attributes | |
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} |
An interface class used to modify a DEM simulation.
The Modifier class allows for the addition of various features to a DEM simulation, such as the effects of gravity, data dumping, and scene rendering.
netdem::Modifier::Modifier | ( | ) |
Default constructor for Modifier class.
|
virtual |
Destructor for Modifier class.
|
virtual |
Clones the current Modifier instance.
Reimplemented in netdem::BreakageAnalysis, netdem::BreakageAnalysisPD, netdem::DataDumper, netdem::DeformationAnalysis, netdem::ExternalForce, netdem::Gravity, netdem::MembraneWall, netdem::ParticleEnergyEvaluator, netdem::ParticleGroup, netdem::ParticleMotionControl, netdem::ParticleStressEvaluator, netdem::UnbalancedForceRatioEvaluator, netdem::WallGroup, netdem::WallMotionControl, netdem::WallMotionIntegrator, and netdem::WallServoControl.
|
virtual |
Disables the Modifier instance.
|
virtual |
Enables the Modifier instance.
|
virtual |
Executes the Modifier instance.
This function is called during the specified cycle point of the DEM solver.
Reimplemented in netdem::BreakageAnalysis, netdem::BreakageAnalysisPD, netdem::DataDumper, netdem::DeformationAnalysis, netdem::ExternalForce, netdem::Gravity, netdem::MembraneWall, netdem::ParticleEnergyEvaluator, netdem::ParticleGroup, netdem::ParticleMotionControl, netdem::ParticleStressEvaluator, netdem::UnbalancedForceRatioEvaluator, netdem::WallGroup, netdem::WallMotionControl, netdem::WallMotionIntegrator, and netdem::WallServoControl.
|
virtual |
Initializes the Modifier instance.
sim | Pointer to the current simulation object. |
Reimplemented in netdem::BreakageAnalysis, netdem::BreakageAnalysisPD, netdem::DataDumper, netdem::DeformationAnalysis, netdem::Gravity, and netdem::MembraneWall.
|
virtual |
Updates the Modifier instance.
This function is called at each time step of the simulation.
Reimplemented in netdem::BreakageAnalysis, netdem::BreakageAnalysisPD, netdem::DeformationAnalysis, netdem::ExternalForce, netdem::ParticleEnergyEvaluator, netdem::ParticleGroup, netdem::ParticleMotionControl, netdem::ParticleStressEvaluator, netdem::WallGroup, and netdem::WallServoControl.
DEMSolver::CyclePoint netdem::Modifier::cycle_point {DEMSolver::CyclePoint::pre} |
bool netdem::Modifier::enable_logging {true} |
std::string netdem::Modifier::label {"default"} |
Scene* netdem::Modifier::scene {nullptr} |
Simulation* netdem::Modifier::sim {nullptr} |
bool netdem::Modifier::update_with_scene {false} |