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

A modifier class for performing breakage analysis on particles. More...

#include <breakage_analysis.hpp>

Inheritance diagram for netdem::BreakageAnalysis:
netdem::ParticleGroup netdem::Modifier

Public Member Functions

 BreakageAnalysis ()
 Default constructor.
 
ModifierClone () const override
 Clones the current Modifier instance.
 
void Init (Simulation *sim) override
 Initializes the Modifier instance.
 
bool CheckBreakage (Particle *p_ptr)
 
VecXT< DEMFragmentExecuteBreakage (Particle *p_ptr)
 
void Execute () override
 Executes the Modifier instance.
 
void Update () override
 Updates the Modifier instance.
 
- Public Member Functions inherited from netdem::ParticleGroup
 ParticleGroup ()
 Default constructor for ParticleGroup class.
 
VecXT< Particle * > const & GetParticles ()
 Get the particles.
 
void AddParticle (int id)
 Adds a particle to the group.
 
void RemoveParticle (int id)
 Removes a particle from the group.
 
void AddParticle (const VecXT< int > &ids)
 Adds multiple particles to the group.
 
void RemoveParticle (const VecXT< int > &ids)
 Removes multiple particles from the group.
 
void AddParticle (const std::initializer_list< int > &ids)
 Adds multiple particles to the group.
 
void RemoveParticle (const std::initializer_list< int > &ids)
 Removes multiple particles from the group.
 
void SetParticle (int id)
 Sets a particle to the group.
 
void SetParticle (const VecXT< int > &ids)
 Sets multiple particles to the group.
 
void SetParticle (const std::initializer_list< int > &ids)
 Sets multiple particles to the group.
 
void SetParticleFromScene ()
 Sets the particles to all the particles in the scene scene.
 
void Clear ()
 Clears all particles from the group.
 
ModifierClone () const override
 Clones the current ParticleGroup instance.
 
void Execute () override
 Executes the ParticleGroup instance.
 
void Update () override
 Updates the ParticleGroup 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 ~Modifier ()
 Destructor for Modifier class.
 

Public Attributes

double strength {1.0e3}
 
double min_breakable_size {1.0}
 
double min_ignore_size {0.1}
 
- Public Attributes inherited from netdem::ParticleGroup
bool use_particles_in_scene {false}
 A flag indicating whether to group all particle in the scene.
 
- 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}
 

Additional Inherited Members

- Protected Attributes inherited from netdem::ParticleGroup
std::unordered_set< int > particle_id_list
 The list of particle IDs.
 
VecXT< Particle * > particle_list
 The list of particles.
 

Detailed Description

A modifier class for performing breakage analysis on particles.

The BreakageAnalysis class is a modifier class that performs breakage analysis on the specified particles.

Constructor & Destructor Documentation

◆ BreakageAnalysis()

netdem::BreakageAnalysis::BreakageAnalysis ( )

Default constructor.

Member Function Documentation

◆ CheckBreakage()

bool netdem::BreakageAnalysis::CheckBreakage ( Particle * p_ptr)

◆ Clone()

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

Clones the current Modifier instance.

Returns
A pointer to the cloned Modifier instance.

Reimplemented from netdem::Modifier.

◆ Execute()

void netdem::BreakageAnalysis::Execute ( )
overridevirtual

Executes the Modifier instance.

This function is called during the specified cycle point of the DEM solver.

Reimplemented from netdem::Modifier.

◆ ExecuteBreakage()

VecXT< DEMFragment > netdem::BreakageAnalysis::ExecuteBreakage ( Particle * p_ptr)

◆ Init()

void netdem::BreakageAnalysis::Init ( Simulation * sim)
overridevirtual

Initializes the Modifier instance.

Parameters
simPointer to the current simulation object.

Reimplemented from netdem::Modifier.

◆ Update()

void netdem::BreakageAnalysis::Update ( )
overridevirtual

Updates the Modifier instance.

This function is called at each time step of the simulation.

Reimplemented from netdem::Modifier.

Member Data Documentation

◆ min_breakable_size

double netdem::BreakageAnalysis::min_breakable_size {1.0}

◆ min_ignore_size

double netdem::BreakageAnalysis::min_ignore_size {0.1}

◆ strength

double netdem::BreakageAnalysis::strength {1.0e3}

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