#include <rocky_particle_api.hpp>
Public Member Functions
Detailed Description
IRockyParticleHost 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. The main difference in relation to IRockyParticle is that all IRockyParticleHost’s property and variable values have their original dimensions as defined within the project, and its data resides within host memory (DRAM).
Member Function Documentation
get_assembly_part_material()
Returns
An
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.
get_centroid_position()
get_cgm_scale_factor()
get_equivalent_diameter()
get_material()
IRockyMaterial object that gives access to the values of physical properties associated to the material from which the particle is made.
get_material_index()
get_number_of_assembly_parts()
get_original_mass()
get_original_solid_volume()
get_original_volume function.
get_original_volume()
get_particle_group_index()
get_release_time()
get_scalars()
IRockyParticleScalars object, that gives access to all particle scalars variables defined in the project.
get_size()
get_tag()
IRockyParticleHost 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.
is_assembly()
is_element()
is_released()
true value if the particle was released into the simulation domain, false otherwise.