Skip to main content
#include <rocky_contact_data_recorder_api.h>

Public Member Functions

Detailed Description

IRockyContactDataRecorder is an interface to the internal entity that records relevant collision data during the contact calculations. The data is stored in contact scalars in order to make it available to collision statistics modules for later processing. The methods in IRockyContactDataRecorder allows a custom module to enable the physical magnitudes that must be recorded and to retrieve the indices of the contact scalars in which they will be stored.

Member Function Documentation

enable_contact_scalar()

This method allows a module to select which physical magnitudes associated to a collision must be recorded into contact scalars. The magnitudes available for recording are listed below. For a description of how these magnitudes are computed internally, please refer to the DEM Technical Manual. Parameters

get_contact_scalar_index()

Returns The index that identifies a specific contact scalar where collision data will be stored. This index will be available only after the setup phase has concluded. Parameters