#include <rocky_api.h>
Public Member Functions
Detailed Description
IRockyModel includes auxiliary functions for setting up a custom module. Most of the preprocessing methods (such as ROCKY_PLUGIN_SETUP, ROCKY_PLUGIN_INITIALIZE, ROCKY_PLUGIN_NON_DIMENSIONALIZE, etc) provide an IRockyModel object as an argument.
Member Function Documentation
find_point_cloud()
Returns
The index that uniquely identifies the wanted point cloud, if it was actually found. It returns -1 otherwise.
find_point_cloud_property()
Returns
The index that uniquely identifies the wanted point cloud property, if it was actually found. It returns -1 otherwise.
get_contact_data_recorder()
IRockyContactDataRecorder object which allows a module to configure which physical magnitudes the internal contact data recorder will record for use in statistics processing later on.
get_current_time()
get_curve_collections()
IRockyCurveCollectionData object which allows to create and manage custom time curves and/or custom cross-plot curves that can be displayed in the Rocky UI.
get_device_id()
get_energy_factor()
get_force_factor()
get_geometry_name()
geometry_index.
get_geometry_scalars()
IRockyGeometryScalarsModel object, which allows users to add new boundary scalars during a setup of a module. Boundary scalars are special variables that associate values to all geometries within a project.
get_geometry_type()
btReceivingConveyor = 1btFeedConveyor = 2btCustom = 3btInlet = 4
Parameters
get_interactions_data()
get_joint_scalars()
IRockyJointScalarsModel object, which allows users to add new joint scalars during a setup of a module. Joint scalars are special variables attached to joints in flexible particles that are able to store values that are preserved between time iterations.
get_length_factor()
get_mass_factor()
get_number_of_active_particles()
get_number_of_active_triangles()
get_number_of_devices()
get_number_of_geometries()
get_number_of_material_interactions()
get_number_of_materials()
get_number_of_particle_groups()
get_number_of_particles()
get_number_of_processes()
get_output_interval()
get_pair_scalars()
IRockyPairScalarsModel object, which allows users to add new pair scalars during a setup of a module. Pair scalars are special variables that associate values to all combinations of particle groups and combinations of particle groups and geometries within a project.
get_particle_breakage_scalars()
IRockyParticleBreakageScalarsModel object, which allows users to add new particle breakage scalars or activate particle breakage scalars known to Rocky during the setup of a module. Particle breakage scalars are special particle scalars used in conjunction with instantaneous breakage models, in order to transfer values calculated at a breakage event to the point at which the fragments size distribution is determined.
get_particle_contact_scalars()
IRockyContactScalarsModel object, which allows users to add new (particle-to-particle) contact scalars during the setup phase of a module. Contact scalars are special variables attached to contacts that are able to store values that are preserved between time iterations.For handling scalars related to particle-to-triangle contacts, please consult the
IRockyModel::get_triangle_contact_scalars method.
get_particle_group_name()
particle_group_index.
get_particle_scalars()
IRockyParticleScalarsModel object, which allows users to add new particle scalars or activate particle scalars known to Rocky during the setup of a module. Particle scalars are special variables attached to particles that are able to store values per particle that are preserved between time iterations.
get_particle_transfer_scalars()
IRockyParticleTransferScalarsModel object, which allows users to add new particle transfer scalars or activate particle transfer scalars known to Rocky during the setup of a module. Particle transfer scalars are special particle scalars whose values are reset automatically to zero at the beginning of a new time iteration. Their typical use is the accumulation of values from all contacts or joints associated to a particle or an element at a given time iteration.
get_pressure_factor()
get_softening_factor()
get_temperature_factor()
get_time_factor()
get_timestep()
get_triangle_contact_scalars()
IRockyContactScalarsModel object, which allows users to add new (particle-to-triangle) contact scalars during the setup phase of a module. Contact scalars are special variables attached to contacts that are able to store values that are preserved between time iterations.For handling scalars for particle-to-particle contacts, please consult the
IRockyModel::get_particle_contact_scalars method.
get_triangle_scalars()
IRockyTriangleScalarsModel object, which allows users to add new triangle scalars during a setup of a module. Triangle scalars are special variables attached to geometry triangles that are able to store values that are preserved between time iterations.
has_adhesion()
is_thermal_simulation()
set_adhesive_distance()
set_minimum_restitution_coefficient()
set_point_cloud_property_dimension()
IRockyModel object.
Parameters
trigger_update_timestep()
ROCKY_PLUGIN_COMPUTE_TIMESTEP method it will be called during the update process, changing the solver timestep if the new computed timestep is smaller than the current one.