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).
Members
- get_assembly_part_material
- get_centroid_position
- get_cgm_scale_factor
- get_equivalent_diameter
- get_material
- get_material_index
- get_number_of_assembly_parts
- get_original_mass
- get_original_solid_volume
- get_original_volume
- get_particle_group_index
- get_release_time
- get_scalars
- get_size
- get_tag
- is_assembly
- is_element
- is_released
Public functions
Function get_original_volume
Function get_original_solid_volume
get_original_volume function.
Return type: double
Function get_material_index
Function get_equivalent_diameter
Function get_material
IRockyMaterial object that gives access to the values of physical properties associated to the material from which the particle is made.
Return type: IRockyMaterial
Function get_centroid_position
Function get_original_mass
Function get_size
Function get_release_time
Function get_cgm_scale_factor
Function 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.
Return type: int
Function is_released
true value if the particle was released into the simulation domain, false otherwise.
Return type: bool
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
Function get_scalars
IRockyParticleScalars object, that gives access to all particle scalars variables defined in the project.
Return type: IRockyParticleScalars