KineticsKit.springs
index
KineticsKit.springs.py

 
Modules
            
math
visual

 
Classes
            
_Spring
CylinderSpring
DoubleHelixSpring
RubberSpring
SingleHelixSpring

 
class CylinderSpring(_Spring)
      Visual representation of a spring using multiple cylinders.
 
  
__init__(self, m0, m1, k, l0=None, damping=None, radius1=None, radius2=None, segments=2, color=(0.80000000000000004, 0.80000000000000004, 0.20000000000000001), **keywords)
calcDampingForce(self)
Calculate the damping force.
calcSpringForce(self)
Calculate the spring force.
update(self)
Update the visual representation of the spring.

 
class DoubleHelixSpring(_Spring)
      Visual representation of a spring using a double helix.
 
  
__init__(self, m0, m1, k, l0=None, damping=None, radius=None, coils=2, wireradius=None, spc=10, color=(0.80000000000000004, 0.80000000000000004, 0.20000000000000001), **keywords)
calcDampingForce(self)
Calculate the damping force.
calcSpringForce(self)
Calculate the spring force.
update(self)
Update the visual representation of the spring.

 
class RubberSpring(_Spring)
      Visual representation of a spring using a single cylinder with variable radius.
 
  
__init__(self, m0, m1, k, l0=None, damping=None, radius=None, color=(0.80000000000000004, 0.20000000000000001, 0.80000000000000004), **keywords)
calcDampingForce(self)
Calculate the damping force.
calcSpringForce(self)
Calculate the spring force.
update(self)
Update the visual representation of the spring.

 
class SingleHelixSpring(_Spring)
      Visual representation of a spring using a single helix.
Problematic, because the up-vector is not treated at all.
 
  
__init__(self, m0, m1, k, l0=None, damping=None, radius=None, coils=4, wireradius=None, spc=10, color=(0.80000000000000004, 0.80000000000000004, 0.20000000000000001), **keywords)
Construct a single helix spring.
calcDampingForce(self)
Calculate the damping force.
calcSpringForce(self)
Calculate the spring force.
update(self)
Update the visual representation of the spring.

 
class _Spring
      Physical model of a spring.
 
  
__init__(self, m0, m1, k, l0=None, damping=None)
Construct a spring.
calcDampingForce(self)
Calculate the damping force.
calcSpringForce(self)
Calculate the spring force.

 
Data
             __file__ = 'C:\\Python24\\lib\\site-packages\\KineticsKit\\springs.pyc'
__name__ = 'KineticsKit.springs'