Rigid Body Simulator Calculator

Explore rotational motion with torque and inertia. Choose shape moments or enter principal inertias directly. Get orientation, momentum, and energy tables for deeper analysis.

Inputs

Choose geometry or enter principal moments.
Assumes principal axes through the center.
Used only for shape-based inertia.
Smaller dt improves stability and accuracy.
Table spacing; not the integration step.
RK4 is smoother for many cases.

Example Data Table

Scenario Body m (kg) Dimensions (m) τ (N·m) ω0 (rad/s) dt, T (s) Expected behavior
Free precession Block 2.0 L=0.40, W=0.20, H=0.10 (0, 0, 0) (0, 3, 0) 0.01, 3 ω shifts due to asymmetric inertia.
Spin-up Cylinder 1.5 r=0.08, h=0.20 (0, 0, 0.15) (0, 0, 2) 0.005, 2 Yaw accelerates with τz applied.
Stable sphere Sphere 1.0 r=0.10 (0.05, 0, 0) (0, 0, 0) 0.01, 2 All axes behave similarly for equal inertia.

Formula Used

This simulator assumes the rigid body rotates about its principal axes. The inertia tensor is diagonal, with principal moments Ix, Iy, and Iz.

Euler’s rotational equations for constant applied torque τ are:

Orientation is updated using a unit quaternion q with:

q̇ = 0.5 · q ⊗ [0, ω]

Angular momentum and energy are reported as: L = Iω and E = 0.5 (Ix ωx² + Iy ωy² + Iz ωz²).

How to Use This Calculator

  1. Choose an inertia source. Use shape mode for quick estimates.
  2. Enter mass and dimensions, or enter Ix, Iy, Iz directly.
  3. Set the torque components you want to apply.
  4. Provide initial angular velocity and initial orientation angles.
  5. Pick dt and duration. Smaller dt improves accuracy.
  6. Select RK4 for smoother results in many cases.
  7. Click Simulate. Results appear above this form.
  8. Use Download CSV or Download PDF for exports.