NetDEM v1.0
Loading...
Searching...
No Matches
breakage_analysis.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "dem_fragment.hpp"
4#include "modifier.hpp"
5#include "particle_group.hpp"
6
7namespace netdem {
8
16public:
17 double strength{1.0e3}, min_breakable_size{1.0}, min_ignore_size{0.1};
18
23
24 Modifier *Clone() const override;
25
26 void Init(Simulation *sim) override;
27
28 bool CheckBreakage(Particle *p_ptr);
29
30 VecXT<DEMFragment> ExecuteBreakage(Particle *p_ptr);
31
32 void Execute() override;
33
34 void Update() override;
35};
36
37} // namespace netdem
A modifier class for performing breakage analysis on particles.
Definition breakage_analysis.hpp:15
void Init(Simulation *sim) override
Initializes the Modifier instance.
Definition breakage_analysis.cpp:20
bool CheckBreakage(Particle *p_ptr)
Definition breakage_analysis.cpp:22
Modifier * Clone() const override
Clones the current Modifier instance.
Definition breakage_analysis.cpp:16
void Update() override
Updates the Modifier instance.
Definition breakage_analysis.cpp:284
VecXT< DEMFragment > ExecuteBreakage(Particle *p_ptr)
Definition breakage_analysis.cpp:48
BreakageAnalysis()
Default constructor.
Definition breakage_analysis.cpp:11
double min_ignore_size
Definition breakage_analysis.hpp:17
void Execute() override
Executes the Modifier instance.
Definition breakage_analysis.cpp:211
double strength
Definition breakage_analysis.hpp:17
double min_breakable_size
Definition breakage_analysis.hpp:17
Modifier()
Default constructor for Modifier class.
Definition modifier.cpp:7
Simulation * sim
Definition modifier.hpp:23
A class used to group particles in a DEM simulation.
Definition particle_group.hpp:16
Definition bond_entry.hpp:7
std::vector< T > VecXT
Definition utils_macros.hpp:31