> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IRockyInteractionCalculationsData Class Reference

`#include <rocky_timestep_api.h>`

Inherited by [IRockyAdhesiveDistanceData](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyAdhesiveDistanceData.md), and [IRockyTimestepData](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyTimestepData.md).

## Public Member Functions

| Type | Name |
| - | - |
| int | [get\_number\_particle\_groups](#ab5fb8e3d498bfc78f116eec7b53b22b8) () const |
| int | [get\_particle\_material\_index](#a700a3993ce6c50786c1323e0b91a7c3a) (int group\_index) const |
| double | [get\_particle\_min\_sieve\_size](#a1ce09b00f677c903a2d25426f8447300) (int group\_index) const |
| double | [get\_particle\_max\_sieve\_size](#ac12016128279790932537b32c1c7410d) (int group\_index) const |
| double | [get\_particle\_min\_mass](#a641adbab81c6c430aa1b0eae6eff29f4) (int group\_index) const |
| int | [get\_number\_geometry\_materials](#a986da6321cca08d20d20dbd43962a74a) () const |
| int | [get\_geometry\_material\_index](#a05cb28a940233bc976b806a5893c639c) (int index) const |
| [IRockyMaterial](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyMaterial.md) | [get\_material](#a609eb08b9a568e07c35953bd616d9551) (int index) const |
| int | [get\_material\_interaction\_index](#a1cf7ad2b906aa2f033494b390522bbb3) (int home\_index, int near\_index) const |
| [IRockyMaterialInteraction](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyMaterialInteraction.md) | [get\_material\_interaction](#aeb94fd8ed1f75bd0523634285ad94e4d) (int home\_index, int near\_index) const |

## Detailed Description

[`IRockyInteractionCalculationsData`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData) 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`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData) is a non-instantiable class, only derived classes can be used through Rocky API.

## Member Function Documentation

### get\_geometry\_material\_index()

```cpp theme={null}
int IRockyInteractionCalculationsData::get_geometry_material_index(int index) const
```

**Returns**

The internal index in Rocky that identifies a material.

**Parameters**

| Name | Description |
| - | - |
| index | The index of a geometry material in a loop over all materials associated to geometries in a project. |

### get\_material()

```cpp theme={null}
IRockyMaterial IRockyInteractionCalculationsData::get_material(int index) const
```

**Returns**

An [`IRockyMaterial`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyMaterial) object that gives access to the property values associated to a given material.

**Parameters**

| Name | Description |
| - | - |
| index | The internal index in Rocky that identifies a material. |

### get\_material\_interaction()

```cpp theme={null}
IRockyMaterialInteraction IRockyInteractionCalculationsData::get_material_interaction(
    int home_index,
    int near_index
) const
```

**Returns**

An [`IRockyMaterialInteraction`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyMaterialInteraction) object that gives access to the property values associated to a given material interaction.

**Parameters**

| Name | Description |
| - | - |
| home\_index | The index of the first material. |
| near\_index | The index of the second material. |

### get\_material\_interaction\_index()

```cpp theme={null}
int IRockyInteractionCalculationsData::get_material_interaction_index(
    int home_index,
    int near_index
) const
```

**Returns**

The internal index in Rocky that identifies a material interaction.

**Parameters**

| Name | Description |
| - | - |
| home\_index | The index of the first material. |
| near\_index | The index of the second material. |

### get\_number\_geometry\_materials()

```cpp theme={null}
int IRockyInteractionCalculationsData::get_number_geometry_materials() const
```

**Returns**

The total number of different materials associated to the geometries or boundaries in a project.

### get\_number\_particle\_groups()

```cpp theme={null}
int IRockyInteractionCalculationsData::get_number_particle_groups() const
```

**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.

### get\_particle\_material\_index()

```cpp theme={null}
int IRockyInteractionCalculationsData::get_particle_material_index(int group_index) const
```

**Returns**

The index that uniquely identifies internally in Rocky the material associated with a particle group.

**Parameters**

| Name | Description |
| - | - |
| group\_index | The index that identifies internally a particle group in Rocky. |

### get\_particle\_max\_sieve\_size()

```cpp theme={null}
double IRockyInteractionCalculationsData::get_particle_max_sieve_size(int group_index) const
```

**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**

| Name | Description |
| - | - |
| group\_index | The index that identifies internally a particle group in Rocky. |

### get\_particle\_min\_mass()

```cpp theme={null}
double IRockyInteractionCalculationsData::get_particle_min_mass(int group_index) const
```

**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**

| Name | Description |
| - | - |
| group\_index | The index that identifies internally a particle group in Rocky. |

### get\_particle\_min\_sieve\_size()

```cpp theme={null}
double IRockyInteractionCalculationsData::get_particle_min_sieve_size(int group_index) const
```

**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**

| Name | Description |
| - | - |
| group\_index | The index that identifies internally a particle group in Rocky. |
