#include <rocky_particle_scalars.hpp>
Inherits ScalarsModel< rocky20::ParticleBreakageScalarsController >.
Public Member Functions
Detailed Description
AnIRockyParticleBreakageScalarsModel allows users to add new particle breakage scalars, find particle breakage scalars created in other modules or activate particle breakage scalars known to Rocky, during the setup stage of a module. Particle breakage scalars are special particle scalars which can be used to transfer data from the point where the instantaneous breakage criterion is evaluated (at the ROCKY_PLUGIN_COMPUTE_INSTANTANEOUS_BREAKAGE hook) to the point where the fragment size distribution is calculated (at the ROCKY_PLUGIN_COMPUTE_FRAGMENTS_SIZE_DISTRIBUTION hook). A typical use is to store the value of the parameter, which is calculated at the moment a particle breaks and is used for calculating the resulting fragment size distribution. However, users can employ these scalars to store whichever parameter that links the breakage criterion with the fragment size distribution in their models.
Member Function Documentation
add()
double
for storing custom values during a simulation, preserving them between time iterations.
Parameters
Returns
The index that will uniquely identify the scalar variable during the execution of the simulation.
enable_t10()
find()
Returns
The index that uniquely identifies the wanted scalar if it was actually found. It returns -1 otherwise.
reset()
set_dimension()
IRockyModel object.
Parameters