IRockyParticle is an interface for the internal particle object in Rocky. A particle object is the code representation of an individual particle in a Rocky simulation. It has several access methods to particle-related properties, as well as particle scalars, which are special variables that store values per particle that are preserved between time iterations. Values of particle scalars can be displayed in a 3D window as any other built-in particle property in Rocky. All property and variable values made available through IRockyParticle are dimensionless.
Members
- add_force
- add_moment
- add_to_contacts_search
- disable_related_particle_contacts
- disable_related_triangle_contacts
- enable_related_particle_contacts
- enable_related_triangle_contacts
- get_assembly_part_material
- get_breakage_scalars
- get_centroid_position
- get_cgm_scale_factor
- get_equivalent_diameter
- get_gravity
- get_impact_energy
- get_mass
- get_material
- get_material_index
- get_moment_of_inertia
- get_number_of_assembly_parts
- get_orientation_axis_angle
- get_orientation_quaternion
- get_original_mass
- get_particle_group_index
- get_poisson_ratio
- get_release_time
- get_resultant_force
- get_resultant_moment
- get_rolling_resistance_coefficient
- get_rotational_velocity
- get_scalars
- get_scalars
- get_size
- get_solid_volume
- get_specific_heat
- get_sphericity
- get_strength
- get_surface_area
- get_tag
- get_thermal_conductivity
- get_transfer_scalars
- get_translational_velocity
- get_volume
- is_assembly
- is_element
- remove
- remove_from_contacts_search
- set_frozen
- set_poisson_ratio
- set_specific_heat
- set_thermal_conductivity
Public functions
Function get_material
IRockyMaterial object that gives access to the values of physical properties associated to the material from which the particle is made.
!> Attention Invoking this method on assembly particles results on undefined behavior, as assembly particles may have multiple materials. Prefer to use
IRockyParticle::get_assembly_part_material instead.
Return type: ROCKY_FUNCTIONS IRockyMaterial
Function get_centroid_position
Function get_mass
Function get_original_mass
Function get_size
Function get_release_time
Function get_cgm_scale_factor
Function get_volume
Function get_solid_volume
get_volume function.
Return type: ROCKY_FUNCTIONS double
Function get_surface_area
Function get_equivalent_diameter
Function get_sphericity
formula {"type":"element","name":"formula","attributes":{"id":"0"},"children":[{"type":"text","text":"$A_s$"}]} to formula {"type":"element","name":"formula","attributes":{"id":"1"},"children":[{"type":"text","text":"$A_p$"}]}, where formula {"type":"element","name":"formula","attributes":{"id":"0"},"children":[{"type":"text","text":"$A_s$"}]} is the surface area of a sphere with the same volume as the particle, whereas formula {"type":"element","name":"formula","attributes":{"id":"1"},"children":[{"type":"text","text":"$A_p$"}]} is the surface area of the particle itself. In general terms, the sphericity measures how closely the particle’s actual shape resembles the shape of a perfect sphere.
Return type: ROCKY_FUNCTIONS double
Function get_translational_velocity
Function get_rotational_velocity
Function get_impact_energy
This value will be available only if an instantaneous breakage model is enabled in the simulation. Return type: ROCKY_FUNCTIONS double
Function get_strength
Function get_gravity
Function get_particle_group_index
Function get_material_index
Function get_rolling_resistance_coefficient
Function get_orientation_axis_angle
Function get_orientation_quaternion
formula {"type":"element","name":"formula","attributes":{"id":"2"},"children":[{"type":"text","text":"$(q_r, q_i, q_j, q_k)$"}]}.
Return type: ROCKY_FUNCTIONS double4
Function get_resultant_force
The force of gravity acting on the particle is not included in this resultant force. Return type: ROCKY_FUNCTIONS double3
Function get_resultant_moment
Function get_thermal_conductivity
Function set_thermal_conductivity
- value: The thermal conductivity to be set.
- double value
Function get_poisson_ratio
Function set_poisson_ratio
- value: The Poisson’s ratio to be set.
- double value
Function get_specific_heat
Function get_tag
IRockyParticle object represents an element of a custom fiber. The values of those tags must be specified in the column labeled “tag” in the csv file that defines the geometry of a custom fiber. All elements that arise from the subdivision of a given segment inherit the tag value assigned to that segment. If tags are not defined for a custom fiber or if this function is used with particles which are not elements of a custom fiber, this function will return -1.
Return type: ROCKY_FUNCTIONS int
Function set_specific_heat
- value: The specific heat to be set.
- double value
Function get_scalars
IRockyParticleScalars object, that gives access to all particle scalars variables defined in the project.
Return type: ROCKY_FUNCTIONS IRockyParticleScalars
Function get_scalars
IRockyParticleScalars object, that gives access to all particle scalars variables defined in the project.
Return type: ROCKY_FUNCTIONS const IRockyParticleScalars
Function get_transfer_scalars
IRockyParticleTransferScalars object, that gives access to all particle transfer scalars variables defined in the project.
Return type: ROCKY_FUNCTIONS IRockyParticleTransferScalars
Function get_breakage_scalars
IRockyParticleBreakageScalars object, that gives access to all particle breakage scalars variables defined in the project.
Return type: ROCKY_FUNCTIONS IRockyParticleBreakageScalars
Function remove
Function add_force
- force: The custom force vector in Cartesian coordinates.
- const double3 & force
Function add_moment
- moment: The custom moment vector in Cartesian coordinates.
- const double3 & moment
Function set_frozen
true, the solution of the motion equations for this particle are skipped afterwards.
Parameters:
- frozen: True if the particle should be frozen, false otherwise.
- bool frozen
Function disable_related_particle_contacts
Function enable_related_particle_contacts
IRockyParticle::disable_related_particle_contacts
Return type: ROCKY_FUNCTIONS void
Function disable_related_triangle_contacts
Function enable_related_triangle_contacts
Function get_moment_of_inertia
Function is_element
Function is_assembly
Function get_number_of_assembly_parts
Function get_assembly_part_material
- part_id: The index of an assembly part.
IRockyMaterial object that gives access to the values of physical properties associated to the material from which the assembly part referent to part_id is made.
Parameters:
- size_t part_id