I am using a rotational spring to estimate the torsional load of a body attached to another. The stiffness used is relatively high (1e10). What i observe is that the torsional spring requires a minimum deformation to start reacting:
class MySpringTorque(chrono.TorqueFunctor):
rest_angle = 0
def __init__(self,stiffness,damping):
self.stiffness=stiffness
self.damping=damping
super(MySpringTorque, self).__init__()
def __call__( self, #
time, # current time
angle, # current length
vel, # current velocity (positive when extending)
link): # back-pointer to associated link
torque = -self.stiffness * (angle - self.rest_angle) - self.damping * vel
return torque