Skip to main content
#include <rocky_timestep_api.h> An IRockyAdhesiveDistanceData 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 inherits all public methods of the class IRockyInteractionCalculationsData. Inherits from:

Members

Public functions

Function set_adhesive_distance

This method sets a value of the adhesive distance per material interaction,: for a custom adhesive force model. Parameters:
  • 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.
Parameters:
  • int home_index
  • int near_index
  • double adhesive_distance
Return type: void