NetDEM v1.0
Loading...
Searching...
No Matches
particle_energy_evaluator.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "modifier.hpp"
4#include "particle.hpp"
5#include "particle_group.hpp"
6#include <cstdarg>
7
8namespace netdem {
9
20
28public:
30
35
43
52
58 Modifier *Clone() const override;
59
66 void Execute() override;
67
77 Vec3d gravity_coef);
78
85 void Update() override;
86};
87
88} // namespace netdem
An interface class used to modify a DEM simulation.
Definition modifier.hpp:18
A class used to evaluate the energy of particles in a DEM simulation.
Definition particle_energy_evaluator.hpp:27
void Execute() override
Executes the ParticleEnergyEvaluator instance.
Definition particle_energy_evaluator.cpp:69
VecXT< ParticleEnergy > particle_energy_list
Definition particle_energy_evaluator.hpp:29
ParticleEnergy GetEnergy()
Calculates the energy for all particles in the particle list.
Definition particle_energy_evaluator.cpp:17
void Update() override
Updates the ParticleEnergyEvaluator instance.
Definition particle_energy_evaluator.cpp:109
Modifier * Clone() const override
Clones the current ParticleEnergyEvaluator instance.
Definition particle_energy_evaluator.cpp:65
ParticleEnergyEvaluator()
Default constructor for ParticleEnergyEvaluator class.
Definition particle_energy_evaluator.cpp:11
A class used to group particles in a DEM simulation.
Definition particle_group.hpp:16
Definition particle.hpp:26
Definition bond_entry.hpp:7
std::vector< T > VecXT
Definition utils_macros.hpp:31
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18
A struct used to hold energy information about a particle.
Definition particle_energy_evaluator.hpp:16
double kinetic
Definition particle_energy_evaluator.hpp:17
double rotational
Definition particle_energy_evaluator.hpp:18
double translational
Definition particle_energy_evaluator.hpp:17
double total
Definition particle_energy_evaluator.hpp:17
double gravitational
Definition particle_energy_evaluator.hpp:17