#include <rocky_contact_scalars.hpp>
Inherits ScalarsModel< rocky20::BaseContactScalarsController >.
Public Member Functions
Detailed Description
During the setup phase of a module, anIRockyContactScalarsModel object allows users to add new contact scalars, find contact scalars created in other modules, or activate contact scalars known to Rocky. Contact scalars are special variables attached to contacts that store per-contact values preserved between time iterations during a simulation.
Member Function Documentation
add() [1/2]
data_type
for storing custom values during a simulation, preserving them between time iterations.
Parameters
Returns
The index that will uniquely identify the scalar variable during the execution of the simulation.
add() [2/2]
double
for storing custom values during a simulation, preserving them between time iterations.
Parameters
Returns
The index that will uniquely identify the scalar variable during the execution of the simulation.
enable_previous_moment_vector()
enable_storage_is_sliding_marker()
IRockyContact::get_is_sliding_marker method.
enable_storage_normal_adhesion_force()
IRockyContact::get_normal_adhesion_force method.
enable_storage_normal_relative_velocity()
IRockyContact::calculate_relative_velocity method, since that calculation may be expensive. When its storage has been enabled, the value of the normal relative velocity component can be accessed by using the IRockyContact::get_normal_relative_velocity method.
enable_storage_previous_normal_vector()
IRockyContact::get_previous_normal_vector method. By comparing this vector to the current normal unit vector, a custom module will be able to determine if a change on the contact’s normal direction has occurred between iterations. The Rocky solver will correct the orientation of this vector automatically if the contact topology is altered because of an internal reorganization of the array of contacts (a regular contact scalar will not be corrected in such an event).
enable_storage_sliding_distance()
IRockyContact::get_sliding_distance method.
enable_storage_tangential_adhesion_force()
IRockyContact::get_tangential_adhesion_force method.
enable_storage_tangential_contact_force()
IRockyContact::get_tangential_contact_force method.
enable_storage_tangential_relative_velocity()
IRockyContact::calculate_relative_velocity method, since that calculation may be expensive. When its storage has been enabled, the value of the tangential relative velocity vector can be accessed by using the IRockyContact::get_tangential_relative_velocity method.
enable_variable_dynamic_friction_coefficient()
IRockyContact::set_dynamic_friction_coefficient method.
enable_variable_restitution_coefficient()
IRockyContact::set_restitution_coefficient method. In this case, that value will override the constant values specified for this property through the Rocky UI.
enable_variable_static_friction_coefficient()
IRockyContact::set_static_friction_coefficient method.
find()
Returns
The index that uniquely identifies the wanted scalar if it was actually found. It returns -1 otherwise.
mark_scalar_as_history_dependent()
reset()
set_dimension()
IRockyModel object.
Parameters