Page 1 of 1

How to get the kinetic energy from the .trc data within 2 seconds?

Posted: Thu Dec 30, 2021 1:46 am
by chengjinzhi
hello,

Now I have the .trc data when the person is being sit-to-stand.I just only want to get the kinetic energy about the period from starting

anteversion to start standing with 2 seconds.

I used the Analyze tool(BodyKinematics) of the ik solution and I can get the velocity of COM.

I have an idea that I can get a rough inertia moment I and then use the formula: E=1/2*I*w^2.But the result is not accurate.

Any advice will help, thanks in advance.

Re: How to get the kinetic energy from the .trc data within 2 seconds?

Posted: Thu Dec 30, 2021 8:40 am
by tkuchida
You could try collecting the "kinetic_energy" output from the model (https://simtk.org/api_docs/opensim/api_ ... f7d7e72fd9)---for example, by attaching an OutputReporter (https://simtk.org/api_docs/opensim/api_ ... orter.html). Alternatively, you could write a script to call the "calcKineticEnergy()" method (https://simtk.org/api_docs/opensim/api_ ... f6f3d9f73b) yourself at each time step of interest.