Page 1 of 1

Missing Joint Powers and Moments

Posted: Thu Nov 07, 2024 8:53 am
by bkperrin
Hello,

I am currently running planar jumping simulations with a fairly simple model. I am hoping to look at joint powers, however I've found that only the most proximal (hip) and distal (MTP joint) joints have any information. The rest of the joints are simply flat-lined at zero for the entirety of the jump despite the fact that kinematics are about as expected. Could you provide some insight into how these values are calculated and how the relate to joint accelerations (as they don't appear to match in this case)? Are there any possible fixes that you can think of for this?

Thank you so much for all of your help, I really appreciate it!

Re: Missing Joint Powers and Moments

Posted: Thu Nov 07, 2024 9:07 am
by tgeijten
Are you using an OpenSim model or a Hyfydy model?

Re: Missing Joint Powers and Moments

Posted: Thu Nov 07, 2024 9:40 am
by bkperrin
I'm using an OpenSim4 model.

Re: Missing Joint Powers and Moments

Posted: Mon Nov 11, 2024 2:50 am
by tgeijten
I looked into it, but I'm using the standard OpenSim API to compute the moment, moment arm and dof velocity. Is the moment, moment_arm or dof velocity also zero in your data?

Re: Missing Joint Powers and Moments

Posted: Mon Nov 11, 2024 12:46 pm
by bkperrin
Moments for every joint besides the hip and MTP joint are zero.

There are not many relevant moment arms in the output, as nearly all are listed for joints that the muscle does not cross (e.g., hamstring moment arm about the ankle). This felt strange, however I can't tell if it's the source of the issue or an effect of it.

The dof velocities however, are non-zero and look about how I would expect them to. I would be happy to share any of the outputs/code if that would help.

Re: Missing Joint Powers and Moments

Posted: Tue Nov 12, 2024 3:56 am
by tgeijten
It seems like an issue with OpenSim, since I'm directly calling their API to compute the muscle moment arm:

https://github.com/tgeijten/scone-core/ ... 4.cpp#L166

This is beyond my reach, unfortunately. For in-dept support with regards to the simulation engine, please consider using Hyfydy:

https://scone.software/doku.php?id=hyfydy

Re: Missing Joint Powers and Moments

Posted: Tue Nov 12, 2024 9:08 am
by bkperrin
I will look into that, thank you for you help!