#include <rocky_pair_scalars.hpp>
Inherits ScalarsModel< rocky20::PairScalarsController >.
Public Member Functions
Detailed Description
AnIRockyPairScalarsModel object allows users to create and configure custom pair scalars. Pair scalars are special variables with a value attached to every combination of two particle groups and each combination of a particle group and a geometry. Their typical use is the accumulation of collision data for inter-group collision statistics, but they can be used in any other application in which it is necessary to associate values to such combination pairs.
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.
find()
Returns
The index that uniquely identifies the wanted scalar if it was actually found. It returns -1 otherwise.
get_statistics_accumulator_array()
IRockyStatisticsAccumulator objects currently stored in a given scalar. The size of this array will be the number of combinations between particle groups plus the number of combinations between particle groups and geometries in a project.
Parameters
get_statistics_adder_array()
IRockyStatisticsAdder objects currently stored in a given scalar. The size of this array will be the number of combinations between particle groups plus the number of combinations between particle groups and geometries in a project.
Parameters
reset()
set_dimension()
IRockyModel object.
Parameters