Hello,
I'm trying to create an additional TFL muscle to my gait model. Although I know how to transfer the actual one, I might not be able to add a new muscle to the model.
Could someone tell me where I can find the necessary tools in OpenSim to do so?
Thanks!
creating a new muscle
- Thomas Uchida
- Posts: 1790
- Joined: Wed May 16, 2012 11:40 am
Re: creating a new muscle
A starting point is the example in the README.md file, which you can see by visiting the GitHub page (https://github.com/opensim-org/opensim-core) and scrolling down to the "Simple example" section. The code is provided in C++ as well as Python and Matlab (expand the sections below the reporter output table).
- Ayman Habib
- Posts: 2239
- Joined: Fri Apr 01, 2005 12:24 pm
Re: creating a new muscle
Hello,
If you're not comfortable with programming in the environments suggested by Thomas, you may do the editing in the model's xml file (keep backup, this will be model file format dependent) or in the scripting shell of the application. If you give us more details/context we can help you further.
Best regards,
-Ayman
If you're not comfortable with programming in the environments suggested by Thomas, you may do the editing in the model's xml file (keep backup, this will be model file format dependent) or in the scripting shell of the application. If you give us more details/context we can help you further.
Best regards,
-Ayman
Re: creating a new muscle
Hi,
Thanks for the help!
May you explain me furthermore how I know the new values in the .xml file for tendon-slack-length and optimal-fiber-length as well as pennetration-angle-at-optimal? Because my aim is to add a new TFL that is shortened and transfered to the femur head as insertion point. Or how can I estimate if not calculate the new plug in values?
Again, thanks in advance!
Thanks for the help!
May you explain me furthermore how I know the new values in the .xml file for tendon-slack-length and optimal-fiber-length as well as pennetration-angle-at-optimal? Because my aim is to add a new TFL that is shortened and transfered to the femur head as insertion point. Or how can I estimate if not calculate the new plug in values?
Again, thanks in advance!