Page 1 of 1

Input Forces

Posted: Wed Jan 18, 2017 1:24 pm
by xiangyang5136
Hi,

I'm trying to add a force that created by a specific muscle "string" to my model by MATLAB code (or maybe C++). Would you please tell me is there a tutorial that can show me the processes?

Best,
Xiang

Re: Input Forces

Posted: Thu Jan 19, 2017 4:46 pm
by tkuchida
Would you please clarify what you're trying to do? Are you trying to programmatically add an OpenSim muscle to an existing model (e.g., add a Thelen2003Muscle to a model using a Matlab script)? Are you trying to implement an entirely new type of muscle model? Are you trying to apply muscle forces that are computed before a simulation is run? Please have a look through the examples and tutorials in the documentation on Confluence (http://simtk-confluence.stanford.edu:80 ... +Tutorials); perhaps you will find what you're looking for.