mvel in ForceVelocityCurve

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
michela gardi
Posts: 9
Joined: Wed Aug 25, 2021 5:14 am

mvel in ForceVelocityCurve

Post by michela gardi » Sat Sep 25, 2021 8:41 am

I have read the explanation of the parameters in the ForceVelocityCurve at https://simtk.org/api_docs/opensim/api_ ... Curve.html
apart from Vmax.
How and where is it defined?

User avatar
Thomas Uchida
Posts: 1787
Joined: Wed May 16, 2012 11:40 am

Re: mvel in ForceVelocityCurve

Post by Thomas Uchida » Sat Sep 25, 2021 1:42 pm

How and where is it defined?
It's defined the same way as other properties, but it's in the Muscle class (inherited by every muscle): https://simtk.org/api_docs/opensim/api_ ... 461669e7ee.

User avatar
michela gardi
Posts: 9
Joined: Wed Aug 25, 2021 5:14 am

Re: mvel in ForceVelocityCurve

Post by michela gardi » Sat Sep 25, 2021 3:16 pm

Thanks very much for the quick reply.
So it is the same for all muscles? Sorry if I am not expert: could you help me get the value in openSim ?

User avatar
Thomas Uchida
Posts: 1787
Joined: Wed May 16, 2012 11:40 am

Re: mvel in ForceVelocityCurve

Post by Thomas Uchida » Sun Sep 26, 2021 2:53 am

So it is the same for all muscles? Sorry if I am not expert: could you help me get the value in openSim ?
It's a property of each muscle, which means that the user can set the value. The default value is set on line 152 of Muscle.cpp here: https://github.com/opensim-org/opensim- ... e.cpp#L152 (specifically, it's 10.0 optimal-fiber-lengths per second). For example, a muscle whose optimal fiber length is 0.2 m will be able to generate nonzero active force up to a shortening velocity of 2 m/s.

POST REPLY