How to export ligament length from opensim directly?

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
tang yunqi
Posts: 1
Joined: Mon Oct 09, 2017 7:12 pm

How to export ligament length from opensim directly?

Post by tang yunqi » Wed Feb 24, 2021 8:17 am

Hello, everyone. I have add some custom ligaments in the foot model. Now I want to get ligament length to calculate ligament strain during one gait cycle. However, I don't know how to export ligament length from opensim.Is there anyone can you help me? Thanks a lot.
Attachments
foot ligaments.jpg
foot ligaments.jpg (47.57 KiB) Viewed 448 times

Tags:

User avatar
Colin Smith
Posts: 53
Joined: Fri Feb 24, 2012 11:50 am

Re: How to export ligament length from opensim directly?

Post by Colin Smith » Mon Mar 01, 2021 4:27 am

https://simtk.org/frs/?group_id=91

If you install the OpenSim 4.2 beta, there is a new component called the Blankevoort1991Ligament. This component has an output called "length"

You can find an example of the xml structure here (or in Help->XML Browser in OpenSim 4.2 GUI):
https://github.com/clnsmith/opensim-jam ... sim#L10444

Here is a doxygen page since I don't think there is one published online for 4.2 yet.
https://github.com/clnsmith/opensim-jam ... oxygen.pdf

User avatar
Colin Smith
Posts: 53
Joined: Fri Feb 24, 2012 11:50 am

Re: How to export ligament length from opensim directly?

Post by Colin Smith » Mon Mar 01, 2021 4:29 am

If you are using the existing Ligament component, you can use the getLength (const SimTK::State &s) function.

https://simtk.org/api_docs/opensim/api_ ... ament.html

POST REPLY