Page 1 of 1

Interpolating ligament curve during forward dynamics

Posted: Fri Jul 15, 2016 10:42 am
by clevasse
Hi,

So I've created a very simple model to better understand how the ligaments will run before I implement them into my more complicated shoulder model. My current model has a sphere of radius .5 with a mass of 2 dropping with the resting length of the ligament being .5 and the psca_force being 40 (therefore, making the max force be twice the weight of the object). My ligament is defied by the function y=x*20-40 from 1 to 1.5. However, during forward dynamics the object drops below the maximum length of .75 (1.5*.5), and begins to apply a much larger force. Is OpenSim interpolating this data? If so, what algorithm is it using?

Re: Interpolating ligament curve during forward dynamics

Posted: Sun Jul 17, 2016 9:14 am
by mitkof6
Hi,

It is difficult to figure out what is the problem if you don't provide the math for the ligament. Try to constrain the maximum integration step. It is possible that the integrator is taking large steps.

Re: Interpolating ligament curve during forward dynamics

Posted: Mon Jul 18, 2016 8:07 am
by clevasse
The ligament is defined as:

<PiecewiseLinearFunction name="force_length_curve">
<x> 0 0.1 0.699778 0.896321 0.96112 0.984873 1 1 1.0625 1.125 1.1875 1.25 1.3125 1.375 1.4375 1.5</x>
<y> 0 0 0 0.00150721 0 0 0 0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1</y>
</PiecewiseLinearFunction>