NetDEM v1.0
Loading...
Searching...
No Matches
gravity.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "modifier.hpp"
4
5namespace netdem {
6
10class Gravity : public Modifier {
11public:
15 Gravity();
16
22 Modifier *Clone() const override;
23
29 void Init(Simulation *sim) override;
30
36 void Execute() override;
37};
38
39} // namespace netdem
A class used to apply gravity to particles in a DEM simulation.
Definition gravity.hpp:10
Modifier * Clone() const override
Clones the current Gravity instance.
Definition gravity.cpp:12
void Init(Simulation *sim) override
Initializes the Gravity instance.
Definition gravity.cpp:14
void Execute() override
Executes the Gravity instance.
Definition gravity.cpp:16
Gravity()
Default constructor for Gravity class.
Definition gravity.cpp:7
An interface class used to modify a DEM simulation.
Definition modifier.hpp:18
Simulation * sim
Definition modifier.hpp:23
Class for managing a DEM simulation.
Definition simulation.hpp:21
Definition bond_entry.hpp:7