Page 1 of 1
mvel in ForceVelocityCurve
Posted: Sat Sep 25, 2021 8:41 am
by michelagardi
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?
Re: mvel in ForceVelocityCurve
Posted: Sat Sep 25, 2021 1:42 pm
by tkuchida
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.
Re: mvel in ForceVelocityCurve
Posted: Sat Sep 25, 2021 3:16 pm
by michelagardi
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 ?
Re: mvel in ForceVelocityCurve
Posted: Sun Sep 26, 2021 2:53 am
by tkuchida
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.