    

 ## On this page

  

 

 # IRockyAdhesionOutputData Struct Reference

 Last update: 17.07.2025 

`#include <<a class="el" href="rocky__contact__output__data__api_8hpp_source.xhtml">rocky_contact_output_data_api.hpp</a>>`

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

ROCKY\_FUNCTIONS void [set\_normal\_force](structIRockyAdhesionOutputData.xhtml#ad7c2fa5fb68f60dfa44d4f24efa06c01) (double value) ROCKY\_FUNCTIONS void [set\_tangential\_force](structIRockyAdhesionOutputData.xhtml#a99e185831e9028fe03fde885059767d0) (double3 value) <a id="details" name="details"></a>## Detailed Description

`<a class="el" href="structIRockyAdhesionOutputData.xhtml">IRockyAdhesionOutputData</a>` is an interface to define some property values related to an adhesive contact in a custom adhesion model. The values defined through this interface include the normal and tangential components of the adhesion force.



## Member Function Documentation

<a id="ad7c2fa5fb68f60dfa44d4f24efa06c01" name="ad7c2fa5fb68f60dfa44d4f24efa06c01"></a>## [◆ ](#ad7c2fa5fb68f60dfa44d4f24efa06c01)set\_normal\_force()

 ROCKY\_FUNCTIONS void IRockyAdhesionOutputData::set\_normal\_force  ( double  *value*) 

This method sets the value of the normal component of the adhesion force calculated by a customadhesion model. Rocky will sum this force to both entities associated to the contact (two particles or a particle and a geometry triangle) using the appropriate signs. Please note that since an adhesion force is attractive, normally it must be defined with a negative sign (i.e. its orientation must be opposite to the normal component of the contact force).Parameters valueThe normal component of the adhesive force just calculated using a custom adhesion model. 



<a id="a99e185831e9028fe03fde885059767d0" name="a99e185831e9028fe03fde885059767d0"></a>## [◆ ](#a99e185831e9028fe03fde885059767d0)set\_tangential\_force()

 ROCKY\_FUNCTIONS void IRockyAdhesionOutputData::set\_tangential\_force  ( double3  *value*) 

This method can be used to set the value of the tangential component of the adhesion force calculated by a custom adhesion model. Rocky will sum this force to both entities associated to the contact (two particles or a particle and a geometry triangle) using the appropriate signs. The use of this function is optional, since only in specific cases (like in a liquid bridge model) an adhesion model will need to specify a tangential force component.Parameters valueThe tangential component of the adhesive force expressed in Cartesian coordinates.