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 formula {"type":"element","name":"formula","attributes":{"id":"3"},"children":[{"type":"text","text":"$t_{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.
Inherits from:
- ScalarsModel< rocky20::ParticleBreakageScalarsController >
Members
Public functions
Function enable_t10
Function find
- name: The name given to the scalar at the moment of its creation.
- const char * name
Function add
double:
for storing custom values during a simulation, preserving them between time iterations.
Parameters:
- name: The name given to the scalar variable. The purpose of this name is twofold. First, it enables to find this scalar variable from other module, in order to share their values. Second, if the scalar variable can be displayed in a 3D window as a property, this name will identify it in the Rocky UI.
- unit: A string specifying the unit in S.I. associated to the scalar variable.
- output: Enables/disables the storage in disk at output times, for the visualization and post-processing of the scalar values.
- const char * name
- const char * unit
- bool output = true
Function reset
- scalar_index: The index attributed to the scalar variable at the moment of its creation.
- int scalar_index
Function set_dimension
IRockyModel object.
Parameters:
- scalar_index: The index attributed to the scalar variable at the moment of its creation.
- dimension_factor: The appropriate dimensional factor for the scalar variable.
- int scalar_index
- double dimension_factor