Skip to main content
#include <rocky_particle_scalars.hpp> Inherits ScalarsModel< rocky20::ParticleBreakageScalarsController >.

Public Member Functions

Detailed Description

An IRockyParticleBreakageScalarsModel 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 t10t_{10} 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()

This method creates a new scalar variable of type 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()

Enables a scalar known to Rocky that stores the t10 parameter value. A custom instantaneous breakage model that is intended to work along with built-in fragment size distribution models in Rocky must enable and calculate this scalar variable.

find()

This method searches for a scalar variable already created by other modules, in order to allow access to its values, or store new values on it, during the execution of the simulation. Parameters Returns The index that uniquely identifies the wanted scalar if it was actually found. It returns -1 otherwise.

reset()

This method resets to zero all values stored in a scalar variable. Parameters

set_dimension()

The purpose of this method is to associate a dimensional factor to a scalar variable. This factor will be used to nondimensionalize their values. For instance, if the scalar represents a force, a force dimensional factor must be associated through this method. Dimensional factors for the fundamental magnitudes are provided by functions of a IRockyModel object. Parameters