Skip to main content
#include <rocky_model_api.hpp>

Public Member Functions

Detailed Description

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.

Member Function Documentation

get_current_time()

Returns The value of the current time in the simulation.

get_geometry_scalars()

Returns An IRockyGeometryScalars object, that gives access to all geometry scalars defined in a project. Parameters

get_gravity()

This functions returns the current gravity acceleration in the simulation. Returns A double3 value representing the current gravity acceleration vector in Cartesian Coordinates.

get_pair_scalars()

Returns An IRockyPairScalars object, that gives access to all pair scalars defined in a project. Parameters

get_particle_cloud_point()

This function gets an auxiliary object that gives access to cloud point values of the nearest point to a given particle. Parameters Returns An 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.

get_timestep()

Returns The value of the simulation timestep.

set_gravity()

This function sets the gravity acceleration to be used globally in the simulation from that time onward. Parameters