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.
how to get strain at different angle
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: how to get strain at different angle
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).
Best
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)