Skip to main content
#include <rocky_particle_api.hpp>

Public Member Functions

Detailed Description

IRockyBreakableParticle is an interface for particles enabled to break through instantaneous breakage during a simulation. It may used for the initialization of IRockyParticleBreakageScalars that custom instantaneous breakage and/or fragment size distribution models may need.

Member Function Documentation

get_breakage_scalars()

Returns An IRockyParticleBreakageScalars object, that gives access to all particle breakage scalars variables defined in the project.

get_minimum_fragment_size()

Returns The minimum size that a fragment generated at a breakage event of the particle can have. Please refer to the DEM Technical Manual for more information about how this parameter is defined.

get_original_size()

Returns The value of the particle’s size at the moment it enters a simulation.

get_original_volume()

Returns The volume of the particle at the moment it enters a simulation.

get_particle_group_index()

Returns The index that identifies internally the particle group to which the particle belongs.

get_scalars()

Returns An IRockyParticleScalars object, that gives access to all particle scalars variables defined in the project.

get_strength()

Returns A random value between 0 and 1 assigned to a particle at the time of generation. This value can be related to the breakage probability in a custom instantaneous breakage model.

set_as_unbreakable()

If this method is called during breakage initialization, the particle will be marked to be ignored at all instantaneous breakage-related procedures during the simulation.