Search found 13 matches

by Wentao Li
Thu Nov 11, 2021 12:37 pm
Forum: OpenSim
Topic: CMC stuck at time 0 without error
Replies: 0
Views: 157

CMC stuck at time 0 without error

I'm running a standard CMC analysis, which got stuck at at the beigining without any error. I'm looking for some ideas that I can start with to check my model and setup files. This problem is for Opensim 4.2, and the same setup files worked great for CMC of other subjects.
by Wentao Li
Fri Jan 17, 2020 2:28 pm
Forum: OpenSim
Topic: How to apply experiment force for a certain duration?
Replies: 2
Views: 212

How to apply experiment force for a certain duration?

Hi, I have some problems running RRA. The right ankle twists arbitrarily at the end of gait during its swing phase. I cannot fix it by increasing the weight. Now I'm considering if the problem is due to GRF applied. Since the experiment used several force plate, the former force plates that were pas...
by Wentao Li
Wed Jan 15, 2020 3:22 pm
Forum: OpenSim
Topic: How to avoid infinite muscle fiber velocity?
Replies: 2
Views: 210

Re: How to avoid infinite muscle fiber velocity?

flanker27 wrote:
Tue Dec 31, 2019 11:59 am
I've run into this issue as well and don't really know how to fix it, is there a tutorial for it? Thanks in advance and happy new year!
You should check muscle length of your model.
by Wentao Li
Thu Dec 05, 2019 4:52 pm
Forum: OpenSim
Topic: How to avoid infinite muscle fiber velocity?
Replies: 2
Views: 210

How to avoid infinite muscle fiber velocity?

I'm doing some optimization of walking, and find some muscle fiber velocity -inf.
Is there any way to avoid this?
by Wentao Li
Thu Nov 21, 2019 10:25 am
Forum: OpenSim
Topic: states order in State::getY()
Replies: 4
Views: 293

Re: states order in State::getY()

tkuchida wrote:
Thu Nov 21, 2019 9:55 am
Still not sure what you're trying to do, but there are some methods in OpenSim's Component interface that might be helpful:
Yes, it helps. I solved my problem. Thanks.
by Wentao Li
Thu Nov 21, 2019 9:36 am
Forum: OpenSim
Topic: states order in State::getY()
Replies: 4
Views: 293

Re: states order in State::getY()

It is generally advisable to get the values of state variables through the OpenSim API. For example, you can ask a Muscle for its fiber length using getFiberLength() ( https://simtk.org/api_docs/opensim/api_docs/classOpenSim_1_1Muscle.html#a4510134e2be56db618adb061455143e8 ). It would be helpful to...
by Wentao Li
Wed Nov 20, 2019 10:46 pm
Forum: OpenSim
Topic: states order in State::getY()
Replies: 4
Views: 293

states order in State::getY()

I'm confused about the states' order when I use State::getY() or similar methods. I found Y=Q+U+Z, but the states' orders inside Q,U,Z are hard to know. Is there a method to output states' name with the same sequence order of Y? I tried Component::getStateVariableNames. It can output same states as ...
by Wentao Li
Wed Nov 20, 2019 10:35 pm
Forum: OpenSim
Topic: Matlab mex cannot include Opensim.h
Replies: 10
Views: 1081

Re: Matlab mex cannot include Opensim.h

Maybe you haven't provided the include dir when compiling with mex. The compiler must know the location of the OpenSim.h file directory. This is typically provided with the -I argument. https://stackoverflow.com/questions/6767844/asking-mex-to-use-several-directories-for-include-files#6768067 https...
by Wentao Li
Fri Nov 15, 2019 1:54 pm
Forum: OpenSim
Topic: Matlab mex cannot include Opensim.h
Replies: 10
Views: 1081

Re: Matlab mex cannot include Opensim.h

Thanks for your reply. I agree with you, and I checked with VS 15 and 17 that are used by Opensim 4.0, but neither works. I still cannot figure out the problem. But luckily I can use other methods to continue my work.
by Wentao Li
Sat Nov 09, 2019 10:30 pm
Forum: OpenSim
Topic: Matlab mex cannot include Opensim.h
Replies: 10
Views: 1081

Re: Matlab mex cannot include Opensim.h

jimmy wrote:
Sat Nov 09, 2019 6:01 pm
The file contains a character that cannot be represented in the current code page (936).
https://stackoverflow.com/questions/105 ... in-unicode
Thank you! It does help to remove the warning, but the errors still remain.