Skip to main content
#include <rocky_particle_api.hpp> 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.

Members

Public functions

Function 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. Return type: double

Function get_original_volume

Returns: The volume of the particle at the moment it enters a simulation. Return type: double

Function get_particle_group_index

Returns: The index that identifies internally the particle group to which the particle belongs. Return type: int

Function 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. Return type: double

Function get_original_size

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

Function 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. Return type: void

Function get_scalars

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

Function get_breakage_scalars

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