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

# IRockyAdhesiveDistanceData Class Reference

`#include <rocky_timestep_api.h>`

Inherits [IRockyInteractionCalculationsData](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md).

## Public Member Functions

| Type | Name |
| - | - |
| void | [set\_adhesive\_distance](#a7d103731c5133db24f461e91e24e2f7a) (int home\_index, int near\_index, double adhesive\_distance) |

> [accordion] Public Member Functions inherited from IRockyInteractionCalculationsData
>
> Public Member Functions inherited from [IRockyInteractionCalculationsData](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md)
>
> | Type | Name |
> | - | - |
> | int | [get\_number\_particle\_groups](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#ab5fb8e3d498bfc78f116eec7b53b22b8) () const |
> | int | [get\_particle\_material\_index](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#a700a3993ce6c50786c1323e0b91a7c3a) (int group\_index) const |
> | double | [get\_particle\_min\_sieve\_size](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#a1ce09b00f677c903a2d25426f8447300) (int group\_index) const |
> | double | [get\_particle\_max\_sieve\_size](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#ac12016128279790932537b32c1c7410d) (int group\_index) const |
> | double | [get\_particle\_min\_mass](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#a641adbab81c6c430aa1b0eae6eff29f4) (int group\_index) const |
> | int | [get\_number\_geometry\_materials](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#a986da6321cca08d20d20dbd43962a74a) () const |
> | int | [get\_geometry\_material\_index](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#a05cb28a940233bc976b806a5893c639c) (int index) const |
> | [IRockyMaterial](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyMaterial.md) | [get\_material](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#a609eb08b9a568e07c35953bd616d9551) (int index) const |
> | int | [get\_material\_interaction\_index](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#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](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData.md#aeb94fd8ed1f75bd0523634285ad94e4d) (int home\_index, int near\_index) const |

## Detailed Description

An [`IRockyAdhesiveDistanceData`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyAdhesiveDistanceData) object provides data and utility methods needed to estimate and set appropriate values of adhesive distance per material interaction. The adhesive distance defines the upper limit for the activation of an adhesive contact between two particles or between a particle and a geometry. An adhesive contact only can exist when the effective gap distance between two entities is below the adhesive distance value stipulated for the corresponding material interaction. Therefore, no adhesive forces will be computed if that effective gap distance is larger than the specified adhesive distance. If a custom module does not implement a special adhesive distance calculation, Rocky will set the adhesive distances of all material interactions to a fixed value equal to 1 mm.

The class [`IRockyAdhesiveDistanceData`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyAdhesiveDistanceData) inherits all public methods of the class [`IRockyInteractionCalculationsData`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/classIRockyInteractionCalculationsData).

## Member Function Documentation

### set\_adhesive\_distance()

```cpp theme={null}
void IRockyAdhesiveDistanceData::set_adhesive_distance(
    int home_index,
    int near_index,
    double adhesive_distance
)
```

**This method sets a value of the adhesive distance per material interaction,**

for a custom adhesive force model.

**Parameters**

| Name | Description |
| - | - |
| home\_index | The index of the first material. |
| near\_index | The index of the second material. |
| adhesive\_distance | The value of the adhesive distance just calculated. |
