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.
Members
- find_point_cloud
- find_point_cloud_property
- get_contact_data_recorder
- get_current_time
- get_curve_collections
- get_device_id
- get_energy_factor
- get_force_factor
- get_geometry_name
- get_geometry_scalars
- get_gravity
- get_interactions_data
- get_joint_scalars
- 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
- get_particle_breakage_scalars
- get_particle_contact_scalars
- get_particle_group_name
- get_particle_scalars
- get_particle_transfer_scalars
- get_power_factor
- get_pressure_factor
- get_simulation_variables
- get_softening_factor
- get_temperature_factor
- get_time_factor
- get_timestep
- get_triangle_contact_scalars
- get_triangle_scalars
- get_viscosity_factor
- has_adhesion
- is_thermal_simulation
- set_adhesive_distance
- set_gravity
- set_minimum_restitution_coefficient
- set_point_cloud_property_dimension
- trigger_update_timestep
Public functions
Function get_gravity
double3 value representing the current gravity acceleration vector in Cartesian Coordinates.
Return type: double3
Function set_gravity
- gravity: A
double3value representing the gravity acceleration vector in Cartesian Coordinates.
- const double3 & gravity
Function get_softening_factor
Function get_timestep
Function 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.
!> Attention If timestep is set using the advanced parameters, the update timestep calculation will be ignored. Return type: void
Function is_thermal_simulation
Function has_adhesion
Function set_adhesive_distance
- home_index: The index of the first material in the material interaction.
- near_index: The index of the second material in the material interaction.
- adhesive_distance: The value of the adhesive distance for contacts involving entities with the specified combination of materials.
- int home_index
- int near_index
- double adhesive_distance
Function set_minimum_restitution_coefficient
- home_index: The index of the first material in the material interaction.
- near_index: The index of the second material in the material interaction.
- minimum_restitution: The minimum expected value for the restitution coefficient in a collision involving entities with the specified combination of materials.
- int home_index
- int near_index
- double minimum_restitution
Function get_interactions_data
This method iterates over all particles in the simulation, which may introduce significant overhead to the execution time if called frequently. Return type: IRockyInteractionCalculationsData
Function 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.
Return type: IRockyContactDataRecorder
Function get_number_of_particle_groups
Function get_number_of_particles
Function get_number_of_geometries
Function get_number_of_materials
Function get_number_of_material_interactions
Function get_geometry_name
geometry_index.
Parameters:
- int geometry_index
Function get_particle_group_name
particle_group_index.
Parameters:
- int particle_group_index
Function get_simulation_variables
IRockySimulationVariables object, which allows users to add new simulation variables during the setup of a module or access existing ones.
Return type: IRockySimulationVariables
Function 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.
Return type: IRockyParticleScalarsModel
Function 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.
Return type: IRockyParticleTransferScalarsModel
Function 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.
Return type: IRockyParticleBreakageScalarsModel
Function 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.
Return type: IRockyJointScalarsModel
Function 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.
Return type: IRockyPairScalarsModel
Function 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.
Return type: IRockyGeometryScalarsModel
Function 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.
Return type: IRockyTriangleScalarsModel
Function 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.
Return type: IRockyContactScalarsModel
Function 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.
Return type: IRockyContactScalarsModel
Function get_current_time
Function get_output_interval
Function get_number_of_active_particles
Function get_number_of_active_triangles
Function get_number_of_processes
Function get_number_of_devices
Function get_device_id
- int device_index
Function find_point_cloud
- name: The name given to the point cloud in the Rocky UI.
- const std::string & name
Function find_point_cloud_property
- point_cloud_index: The index that uniquely identifies the point cloud.
- property_name: The name given to the property in the file defining the point cloud.
- int point_cloud_index
- const std::string & property_name
Function set_point_cloud_property_dimension
IRockyModel object.
Parameters:
- point_cloud_index: The index that uniquely identifies the point cloud.
- property_index: The index that uniquely identifies the point cloud property.
- dimension: The appropriate dimensional factor for the point cloud property.
- int point_cloud_index
- int property_index
- double dimension
Function 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.
Return type: IRockyCurveCollectionData