spring
- class granoo3.lib.spring
Bases:
granoo3.lib.bond
a mechanical spring that links two elements
Methods Summary
elastic_energy
(arg1)compute the current elastic energy stored in the spring
get_direction
(arg1)get the current direction of the spring.
get_stiffness
(arg1)get the stiffness value
new
(arg1, arg2)build new object
set_stiffness
(arg1, arg2)Methods Documentation
- elastic_energy((spring)arg1) float[STATIC]
compute the current elastic energy stored in the spring
- get_direction((spring)arg1) vector[STATIC]
get the current direction of the spring. The direction is along the two centers of the connected elements
- get_stiffness((spring)arg1) float[STATIC]
get the stiffness value
- set_stiffness((spring)arg1, (float)arg2) None[STATIC]