support_shape
- class granoo3.lib.support_shape
Bases:
granoo3.lib.ground
class that model a perfect shape that contains discrete_element
Methods Summary
attach_to
(arg1, arg2, arg3, arg4)attach the current support_shape to a discrete_element_set
get
(arg1)return the support shape with the given id
is_attached
(arg1)tell if the support shape is attached to a discrete_element_set
set_density
(arg1, arg2)set the density of the discrete element.
update
(arg1)update the shape length, position and orientation related to the displacements of the attached discrete elements
volume
(arg1)return volume of the shape
volume_fraction
(arg1)return the volume fraction.
Methods Documentation
- attach_to((support_shape)arg1, (discrete_element_set)arg2, (bool)arg3, (float)arg4) None[STATIC]
attach the current support_shape to a discrete_element_set
- static get((str)arg1) support_shape[STATIC]
return the support shape with the given id
- is_attached((support_shape)arg1) bool[STATIC]
tell if the support shape is attached to a discrete_element_set
- set_density((support_shape)arg1, (float)arg2) float[STATIC]
set the density of the discrete element. Note the volume fraction is applied here to mimic continuous media
- update((support_shape)arg1) None[STATIC]
update the shape length, position and orientation related to the displacements of the attached discrete elements
- volume((support_shape)arg1) float[STATIC]
return volume of the shape
- volume_fraction((support_shape)arg1) float[STATIC]
return the volume fraction. this is the sum of discrete element volume divided by the volume of the support shape