#include <rocky_contact_output_data_api.hpp>
Public Member Functions
Detailed Description
IRockyContactOutputData is an interface to define some property values related to a contact, which are needed during the calculation steps of a custom contact model. The values defined through this interface can include normal and tangential forces, and impact energy.
Each set method present in this interface is intended to be used at a different calculation step of the contact model:
-
Normal contact force calculation within the code associated to the
ROCKY_PLUGIN_NORMAL_FORCE_ON_CONTACTShook: -
Tangential contact force calculation within the code associated to the
ROCKY_PLUGIN_TANGENTIAL_FORCE_ON_CONTACTShook: -
Impact energy calculation within the code associated to the
ROCKY_PLUGIN_IMPACT_ENERGY_ON_CONTACTShook:
Member Function Documentation
get_normal_force()
ROCKY_PLUGIN_NORMAL_FORCE_ON_CONTACTS in a custom implementation). If called before the moment when the normal force is set for the current contact in the current iteration, the value returned is undetermined.
get_normal_relative_velocity()
get_tangential_force()
ROCKY_PLUGIN_TANGENTIAL_FORCE_ON_CONTACTS in a custom implementation). If called before the moment when the tangential force is set for the current contact in the current iteration, the value returned is undetermined.
get_tangential_relative_velocity()
set_home_impact_energy()
ROCKY_PLUGIN_IMPACT_ENERGY_ON_CONTACTS, since this hook is the one designed for calculating and setting the impact energy values. Using it outside this hook can lead to undefined behavior.
Parameters
set_home_moment()
ROCKY_PLUGIN_ROLLING_RESISTANCE_ON_CONTACTS, as this hook is designed specifically to be used by a module implementing a custom rolling resistance model, to calculate and set the rolling resistance moments acting on the particles at a contact. Using this method outside that hook can lead to undefined behavior.
Parameters
set_near_impact_energy()
ROCKY_PLUGIN_IMPACT_ENERGY_ON_CONTACTS, since this hook is the one designed for calculating and setting the impact energy values. Using it outside this hook can lead to undefined behavior.
Parameters
set_near_moment()
ROCKY_PLUGIN_ROLLING_RESISTANCE_ON_CONTACTS, as this hook is designed specifically to be used by a module implementing a custom rolling resistance model, to calculate and set the rolling resistance moments acting on the particles at a contact. Using this method outside that hook can lead to undefined behavior.
Parameters
set_normal_force()
ROCKY_PLUGIN_NORMAL_FORCE_ON_CONTACTS, since this hook is meant to be used to calculate and set the normal force component for the contact. Using it outside this hook can lead to undefined behavior.
Parameters
set_rolling_dissipated_power()
set_sliding()
ROCKY_PLUGIN_TANGENTIAL_FORCE_ON_CONTACTS, since this hook is meant to be used to calculate and set the tangential force component for the contact. Using it outside this hook can lead to undefined behavior. Not defining the sliding status of the contact inside the hook can also lead to unexpected results.
Parameters
set_tangential_force()
ROCKY_PLUGIN_TANGENTIAL_FORCE_ON_CONTACTS, since this hook is meant to be used to calculate and set the tangential force component for the contact. Using it outside this hook can lead to undefined behavior.
Parameters