Skip to main content
#include <rocky_timestep_api.h> IRockyInteractionCalculationsData gives access to data and methods needed for calculations related to materials, material interactions and particle groups, during the setup phase of a module. IRockyInteractionCalculationsData is a non-instantiable class, only derived classes can be used through Rocky API. Inherited by:

Members

Public functions

Function get_number_particle_groups

Returns: The total number of particle groups defined in the project. A particle group is a category of particles with the same shape and material. Return type: int

Function get_particle_material_index

Returns: The index that uniquely identifies internally in Rocky the material associated with a particle group. Parameters:
  • group_index: The index that identifies internally a particle group in Rocky.
Parameters:
  • int group_index
Return type: int

Function get_particle_min_sieve_size

Returns: The sieve size of the smallest particle in a particle group. Zero is returned if no particles belonging to the particle group are actually injected into the simulation. Parameters:
  • group_index: The index that identifies internally a particle group in Rocky.
Parameters:
  • int group_index
Return type: double

Function get_particle_max_sieve_size

Returns: The sieve size of the largest particle in a particle group. Zero is returned if no particles belonging to the particle group are actually injected into the simulation. Parameters:
  • group_index: The index that identifies internally a particle group in Rocky.
Parameters:
  • int group_index
Return type: double

Function get_particle_min_mass

Returns: The mass of the smallest particle in a particle group. Zero is returned if no particles belonging to the particle group are actually injected into the simulation. Parameters:
  • group_index: The index that identifies internally a particle group in Rocky.
Parameters:
  • int group_index
Return type: double

Function get_number_geometry_materials

Returns: The total number of different materials associated to the geometries or boundaries in a project. Return type: int

Function get_geometry_material_index

Returns: The internal index in Rocky that identifies a material. Parameters:
  • index: The index of a geometry material in a loop over all materials associated to geometries in a project.
Parameters:
  • int index
Return type: int

Function get_material

Returns: An IRockyMaterial object that gives access to the property values associated to a given material. Parameters:
  • index: The internal index in Rocky that identifies a material.
Parameters:
  • int index
Return type: IRockyMaterial

Function get_material_interaction_index

Returns: The internal index in Rocky that identifies a material interaction. Parameters:
  • home_index: The index of the first material.
  • near_index: The index of the second material.
Parameters:
  • int home_index
  • int near_index
Return type: int

Function get_material_interaction

Returns: An IRockyMaterialInteraction object that gives access to the property values associated to a given material interaction. Parameters:
  • home_index: The index of the first material.
  • near_index: The index of the second material.
Parameters:
  • int home_index
  • int near_index
Return type: IRockyMaterialInteraction