IRockyContactScalarsModel 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.
Inherits from:
- ScalarsModel< rocky20::BaseContactScalarsController >
Members
- add
- add
- enable_previous_moment_vector
- enable_storage_is_sliding_marker
- enable_storage_normal_adhesion_force
- enable_storage_normal_relative_velocity
- enable_storage_previous_normal_vector
- enable_storage_sliding_distance
- enable_storage_tangential_adhesion_force
- enable_storage_tangential_contact_force
- enable_storage_tangential_relative_velocity
- enable_variable_dynamic_friction_coefficient
- enable_variable_restitution_coefficient
- enable_variable_static_friction_coefficient
- find
- mark_scalar_as_history_dependent
- reset
- set_dimension
Public functions
Function find
- name: The name given to the scalar at the moment of its creation.
- const char * name
Function reset
- scalar_index: The index attributed to the scalar variable at the moment of its creation.
- int scalar_index
Function set_dimension
IRockyModel object.
Parameters:
- scalar_index: The index attributed to the scalar variable at the moment of its creation.
- dimension_factor: The appropriate dimensional factor for the scalar variable.
- int scalar_index
- double dimension_factor
Function add
double:
for storing custom values during a simulation, preserving them between time iterations.
Parameters:
- name: The name given to the scalar variable. The purpose of this name is twofold. First, it enables to find this scalar variable from other module, in order to share their values. Second, if the scalar variable can be displayed in a 3D window as a property, this name will identify it in the Rocky UI.
- unit: A string specifying the unit in S.I. associated to the scalar variable.
- output: Enables/disables the storage in disk at output times, for the visualization and post-processing of the scalar values.
- const char * name
- const char * unit
- bool output = true
Function add
data_type:
for storing custom values during a simulation, preserving them between time iterations.
Parameters:
- name: The name given to the scalar variable. The purpose of this name is twofold. First, it enables to find this scalar variable from other module, in order to share their values. Second, if the scalar variable can be displayed in a 3D window as a property, this name will identify it in the Rocky UI.
- unit: A string specifying the unit in S.I. associated to the scalar variable.
- output: Enables/disables the storage in disk at output times, for the visualization and post-processing of the scalar values.
- const char * name
- const char * unit
- bool output
Function enable_variable_dynamic_friction_coefficient
IRockyContact::set_dynamic_friction_coefficient method.
Return type: void
Function enable_variable_static_friction_coefficient
IRockyContact::set_static_friction_coefficient method.
Return type: void
Function 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.
Return type: void
Function enable_storage_sliding_distance
IRockyContact::get_sliding_distance method.
Return type: void
Function enable_storage_is_sliding_marker
IRockyContact::get_is_sliding_marker method.
Return type: void
Function enable_storage_tangential_contact_force
IRockyContact::get_tangential_contact_force method.
Return type: void
Function 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.
Return type: void
Function 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.
Return type: void
Function enable_storage_normal_adhesion_force
IRockyContact::get_normal_adhesion_force method.
Return type: void
Function enable_storage_tangential_adhesion_force
IRockyContact::get_tangential_adhesion_force method.
Return type: void
Function 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).
Return type: void
Function enable_previous_moment_vector
Function mark_scalar_as_history_dependent
- scalar_index: The index that identifies the specific contact scalar that must be marked as dependent on history. Only particle-to-particle contact scalars of type
double3are able to be marked with this method. Any other scalar type will not be affected by contact reversals.
- int scalar_index