Page 1 of 1

Simple Question: Non-linear torsional spring with CoordinateLimitForce?

Posted: Fri Feb 26, 2021 4:21 am
by laevae
Hi everyone,

Currently, I am trying to create a model of a body with a prosthetic leg that has actuators in the knee and a spring in the ankle.

The issue is: I need to implement a torsional spring in the prosthetic ankle. I used one of the basic tutorials of opensim to implement a CoordinateLimitForce in the ankle. This has a 'upper stiffness' and a 'lower stiffness'.

However, I need to implement a torsional spring that has non-linear characteristics. I already have a data sheet with all the torques of the ankle spring related to the ankle angle.

So my question: How can I best implement a torsional spring with non-linear stiffness?

Thank you in advance.

Re: Simple Question: Non-linear torsional spring with CoordinateLimitForce?

Posted: Thu Mar 04, 2021 11:28 am
by ongcf
Depending on your exact needs, you might want to look at ExpressionBasedBushingForce first and see if that works for you:
https://simtk.org/api_docs/opensim/api_ ... Force.html