problem with Millard muscle

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Kevin Tanghe
Posts: 36
Joined: Mon Sep 22, 2014 6:54 am

problem with Millard muscle

Post by Kevin Tanghe » Fri Nov 28, 2014 1:14 pm

Hi,

I'm having a problem with Millard2012EquilibriumMuscle. When I compute the tendon force at activation 1 for e.g. the rectus femoris I get maximal tendon force of 120 N. When I change the muscles to Thelen2003Muscle, the maximal tendon force gets a maximal value of 920 N, which seems more reasonable.

I did the test with the gait2392_simbody model, with the normal.mot motion file of the tutorial. I did the computation both in the plotter of OpenSim and in the Matlab interface. Both gave the same result.

Does anyone knows what seems to be the problem here?

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: problem with Millard muscle

Post by jimmy d » Mon Dec 01, 2014 6:06 pm

Hi Kevin,

I did some digging and we figured out that its a known bug in the Millard model. Its been fixed on our development branch but it will still be seen in 3.2.

Essentially, the Millard muscle ignores the activation (from state) when you call equilibrate. Rather it sets the muscle activation to whatever the muscle models default activation is. If the default activation is 0.05, that's what get's used.

You can test this by changing the default activation of the rec fem to 1 and plotting the tendon force again.

If you wanted to to this in matlab, you would just update the default activation of the muscle once.

Hope that helps,
-james

POST REPLY