NetDEM v1.0
Loading...
Searching...
No Matches
breakage_analysis_pd.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "modifier.hpp"
4#include "particle_group.hpp"
6
7namespace netdem {
8
18public:
21
26
35 void SetRootPath(std::string const &root_path);
36
45 void SetExecuteByTime(double interval);
46
55 void SetExecuteByCycles(double interval);
56
57 Modifier *Clone() const override;
58
59 void Init(Simulation *sim) override;
60
61 void Execute() override;
62
63 void Update() override;
64
65private:
67 std::string root_path{"tmp/out/"};
68
70 bool excute_by_cycles{true};
71
73 int cycle_interval{0}, cycle_previous{0};
74
76 double time_interval{0}, time_previous{0};
77
86 bool CheckIfToExecute();
87};
88
89} // namespace netdem
A modifier class for performing breakage analysis on particles.
Definition breakage_analysis_pd.hpp:17
void SetExecuteByCycles(double interval)
Sets the cycle interval for executing the modifier.
Definition breakage_analysis_pd.cpp:29
PeriDigmDEMCoupler pd_dem_coupler
The PeriDigmDEMCoupler used to interface with a DEM simulation.
Definition breakage_analysis_pd.hpp:20
Modifier * Clone() const override
Clones the current Modifier instance.
Definition breakage_analysis_pd.cpp:34
BreakageAnalysisPD()
Default constructor.
Definition breakage_analysis_pd.cpp:11
void Update() override
Updates the Modifier instance.
Definition breakage_analysis_pd.cpp:134
void Init(Simulation *sim) override
Initializes the Modifier instance.
Definition breakage_analysis_pd.cpp:38
void SetRootPath(std::string const &root_path)
Sets the root output path for breakage analysis results.
Definition breakage_analysis_pd.cpp:18
void Execute() override
Executes the Modifier instance.
Definition breakage_analysis_pd.cpp:40
void SetExecuteByTime(double interval)
Sets the time interval for executing the modifier.
Definition breakage_analysis_pd.cpp:24
An interface class used to modify a DEM simulation.
Definition modifier.hpp:18
Simulation * sim
Definition modifier.hpp:23
A class used to group particles in a DEM simulation.
Definition particle_group.hpp:16
A class representing a coupling between a discrete element method (DEM) simulation and a peridynamic ...
Definition peridigm_dem_coupler.hpp:24
Class for managing a DEM simulation.
Definition simulation.hpp:21
Definition bond_entry.hpp:7