Free rotation of a rigid body

I couldn’t get Blender’s physics engine to simulate this correctly, so I wrote a python script to solve for the body rotation, angular velocity and momentum vectors.

Is this project for studies purpose or illustrating a course of some kind?

This was done to show the instability of free rotation on the intermediate principal axis also known as the “intermediate axis theorem”

The video given in this post was really amazing.