NetDEM v1.0
Loading...
Searching...
No Matches
netdem::Gravity Class Reference

A class used to apply gravity to particles in a DEM simulation. More...

#include <gravity.hpp>

Inheritance diagram for netdem::Gravity:
netdem::Modifier

Public Member Functions

 Gravity ()
 Default constructor for Gravity class.
 
ModifierClone () 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}
 
Simulationsim {nullptr}
 
Scenescene {nullptr}
 
bool update_with_scene {false}
 
bool enable_logging {true}
 

Detailed Description

Constructor & Destructor Documentation

◆ Gravity()

netdem::Gravity::Gravity ( )

Default constructor for Gravity class.

Member Function Documentation

◆ Clone()

Modifier * netdem::Gravity::Clone ( ) const
overridevirtual

Clones the current Gravity instance.

Returns
A pointer to the cloned Gravity instance.

Reimplemented from netdem::Modifier.

◆ Execute()

void netdem::Gravity::Execute ( )
overridevirtual

Executes the Gravity instance.

Gravity is applied to each particle's total force.

Reimplemented from netdem::Modifier.

◆ Init()


The documentation for this class was generated from the following files: