IRockyDeviceModel includes auxiliary functions that are available only during the execution of a simulation. Hooks such as ROCKY_PLUGIN_PRE_FORCE…, ROCKY_PLUGIN_POST_FORCE…, and ROCKY_PLUGIN_PRE_MOVE…, provide an IRockyDeviceModel object as a parameter.
Members
- get_current_time
- get_geometry_scalars
- get_gravity
- get_pair_scalars
- get_particle_cloud_point
- get_timestep
- set_gravity
Public functions
Function get_timestep
Function get_current_time
Function get_gravity
double3 value representing the current gravity acceleration vector in Cartesian Coordinates.
Return type: ROCKY_FUNCTIONS double3
Function set_gravity
- gravity: A
double3value representing the gravity acceleration vector in Cartesian Coordinates.
- const double3 & gravity
Function get_particle_cloud_point
- point_cloud_index: The index that uniquely identifies a point cloud dataset.
- particle: A
IRockyParticlewhose position is used to determine the nearest cloud point.
IRockyParticleCloudPoint object, which can be used to get cloud point values of the nearest point to the particle passed as argument. For more information about point clouds, please refer to the Rocky User Manual.
Parameters:
- int point_cloud_index
- const IRockyParticle & particle
Function get_pair_scalars
IRockyPairScalars object, that gives access to all pair scalars defined in a project.
Parameters:
- pair_index: The index that identifies a specific pair of particle groups or a pair formed by a particle group and a geometry.
- int pair_index
Function get_geometry_scalars
IRockyGeometryScalars object, that gives access to all geometry scalars defined in a project.
Parameters:
- geometry_index: The index that identifies a specific geometry within a Rocky project.
- int geometry_index