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

# IRockyMaterialInteraction Struct Reference

`#include <rocky_material_api.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| ROCKY\_FUNCTIONS double | [get\_restitution\_coefficient](#a83c3e5bc364c65dfc9ff275e345d369c) () const |
| ROCKY\_FUNCTIONS double | [get\_minimum\_restitution\_coefficient](#a897ea40cf65b252af203bd1e9b9a3855) () const |
| ROCKY\_FUNCTIONS double | [get\_static\_friction\_coefficient](#a4daf7d4586429504ce237697b7a7659f) () const |
| ROCKY\_FUNCTIONS double | [get\_dynamic\_friction\_coefficient](#ae9ce701837e46ca374d260c7b828dac7) () const |
| ROCKY\_FUNCTIONS double | [get\_stiffness\_multiplier](#af0f10152e6cba7d896304a45ed822fa8) () const |
| ROCKY\_FUNCTIONS double | [get\_tangential\_stiffness\_ratio](#a766d1bbd19828566927faadc683b4242) () const |

## Detailed Description

[`IRockyMaterialInteraction`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyMaterialInteraction) is an interface for the internal material interaction object, which gives access to values of the physical properties associated to contacts involving combinations of two materials. The values of all those properties are dimensionless values.

## Member Function Documentation

### get\_dynamic\_friction\_coefficient()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyMaterialInteraction::get_dynamic_friction_coefficient() const
```

**Returns**

The value of the dynamic coefficient of friction, which is used in tangential force models when there exists tangential relative motion between two contacting entities.

### get\_minimum\_restitution\_coefficient()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyMaterialInteraction::get_minimum_restitution_coefficient() const
```

**Returns**

The value of the minimum restitution coefficient set by a module implementing a variable restitution coefficient model. This value can be used to estimate the stable timestep for a custom contact model. If the given project does not include a module that implements a variable restitution coefficient model, the constant value specified through the Rocky UI will be returned.

### get\_restitution\_coefficient()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyMaterialInteraction::get_restitution_coefficient() const
```

**Returns**

The value of the coefficient of restitution, which indirectly specifies the amount of energy dissipation in a normal collision.

> [!WARNING]
>
> The value returned by this function is always the one prescribed through the Rocky UI, therefore, it is not affected by changes introduced by a module implementing a variable restitution coefficient model.

### get\_static\_friction\_coefficient()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyMaterialInteraction::get_static_friction_coefficient() const
```

**Returns**

The value of the static coefficient of friction, which is used in tangential force models when there is no tangential relative motion between two contacting entities.

### get\_stiffness\_multiplier()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyMaterialInteraction::get_stiffness_multiplier() const
```

**Returns**

The value of the stiffness multiplier, which is used to increase the stiffness in collisions in order to prevent large overlap values.

### get\_tangential\_stiffness\_ratio()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyMaterialInteraction::get_tangential_stiffness_ratio() const
```

**Returns**

The value of the tangential stiffness ratio, which is used in tangential force models to relate the tangential stiffness to the normal stiffness at a contact between two contacting entities.
