    

 ## On this page

  

 

 # IRockyMaterialInteraction Struct Reference

 Last update: 17.07.2025 

`#include <<a class="el" href="rocky__material__api_8hpp_source.xhtml">rocky_material_api.hpp</a>>`

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

ROCKY\_FUNCTIONS double [get\_restitution\_coefficient](structIRockyMaterialInteraction.xhtml#a83c3e5bc364c65dfc9ff275e345d369c) () const ROCKY\_FUNCTIONS double [get\_minimum\_restitution\_coefficient](structIRockyMaterialInteraction.xhtml#a897ea40cf65b252af203bd1e9b9a3855) () const ROCKY\_FUNCTIONS double [get\_static\_friction\_coefficient](structIRockyMaterialInteraction.xhtml#a4daf7d4586429504ce237697b7a7659f) () const ROCKY\_FUNCTIONS double [get\_dynamic\_friction\_coefficient](structIRockyMaterialInteraction.xhtml#ae9ce701837e46ca374d260c7b828dac7) () const ROCKY\_FUNCTIONS double [get\_stiffness\_multiplier](structIRockyMaterialInteraction.xhtml#af0f10152e6cba7d896304a45ed822fa8) () const ROCKY\_FUNCTIONS double [get\_tangential\_stiffness\_ratio](structIRockyMaterialInteraction.xhtml#a766d1bbd19828566927faadc683b4242) () const <a id="details" name="details"></a>## Detailed Description

`<a class="el" href="structIRockyMaterialInteraction.xhtml">IRockyMaterialInteraction</a>` 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

<a id="ae9ce701837e46ca374d260c7b828dac7" name="ae9ce701837e46ca374d260c7b828dac7"></a>## [◆ ](#ae9ce701837e46ca374d260c7b828dac7)get\_dynamic\_friction\_coefficient()

 ROCKY\_FUNCTIONS double IRockyMaterialInteraction::get\_dynamic\_friction\_coefficient  ( )  const

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



<a id="a897ea40cf65b252af203bd1e9b9a3855" name="a897ea40cf65b252af203bd1e9b9a3855"></a>## [◆ ](#a897ea40cf65b252af203bd1e9b9a3855)get\_minimum\_restitution\_coefficient()

 ROCKY\_FUNCTIONS double IRockyMaterialInteraction::get\_minimum\_restitution\_coefficient  ( )  const

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



<a id="a83c3e5bc364c65dfc9ff275e345d369c" name="a83c3e5bc364c65dfc9ff275e345d369c"></a>## [◆ ](#a83c3e5bc364c65dfc9ff275e345d369c)get\_restitution\_coefficient()

 ROCKY\_FUNCTIONS double IRockyMaterialInteraction::get\_restitution\_coefficient  ( )  const

ReturnsThe value of the coefficient of restitution, which indirectly specifies the amount of energy dissipation in a normal collision.AttentionThe 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. 



<a id="a4daf7d4586429504ce237697b7a7659f" name="a4daf7d4586429504ce237697b7a7659f"></a>## [◆ ](#a4daf7d4586429504ce237697b7a7659f)get\_static\_friction\_coefficient()

 ROCKY\_FUNCTIONS double IRockyMaterialInteraction::get\_static\_friction\_coefficient  ( )  const

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



<a id="af0f10152e6cba7d896304a45ed822fa8" name="af0f10152e6cba7d896304a45ed822fa8"></a>## [◆ ](#af0f10152e6cba7d896304a45ed822fa8)get\_stiffness\_multiplier()

 ROCKY\_FUNCTIONS double IRockyMaterialInteraction::get\_stiffness\_multiplier  ( )  const

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



<a id="a766d1bbd19828566927faadc683b4242" name="a766d1bbd19828566927faadc683b4242"></a>## [◆ ](#a766d1bbd19828566927faadc683b4242)get\_tangential\_stiffness\_ratio()

 ROCKY\_FUNCTIONS double IRockyMaterialInteraction::get\_tangential\_stiffness\_ratio  ( )  const

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