Page 1 of 1

how to get strain at different angle

Posted: Mon Oct 02, 2017 2:01 am
by sk_cool
Hi,

how to calculate strain at different angles for ligament in opensim , i have gone through Hang Xu model).So i want get plot data of strain.

Re: how to get strain at different angle

Posted: Mon Oct 02, 2017 11:30 pm
by mitkof6
Hi,

You must create your own analysis:

https://simtk-confluence.stanford.edu:8 ... n+Analysis

In the record(state) method you must calculate the length and rest length of each ligament and record the strain:

https://simtk.org/api_docs/opensim/api_ ... f3c0561827

Note that the state must be realized to position level prior to any calculation (in the record method).

Code: Select all

_model->realizePosition(state)
Best