Multibody Dynamics Calculator

Model interacting bodies with clear, editable parameter groups. Solve accelerations numerically, tracking momentum and energy. Download tables, validate setups, and share repeatable results today.

Calculator Inputs
Responsive input grid: 3 columns on large screens, 2 on smaller, 1 on mobile.
Units are user-defined. Keep them consistent.

Choose the multibody system you want to evaluate.
N-body Settings
Use 1 for normalized units, or SI value if desired.
Prevents singular forces at very small separations.
Controls preview and CSV density via downsampling.

Body Parameters
Set mass, initial position (x,y), and velocity (vx,vy). Only the first N bodies are used.
Body 1
m, x, y, vx, vy
Body 2
m, x, y, vx, vy
Body 3
m, x, y, vx, vy
Body 4
m, x, y, vx, vy
Body 5
m, x, y, vx, vy
Body 6
m, x, y, vx, vy
Reset
Example Data Table
Use these as starting points. Keep units consistent throughout your inputs.
N-body example (normalized units)
Bodymxyvxvy
11-100.30.1
2110-0.30.1
3101.50-0.2
Suggested settings: G=1, eps=0.001, T=10, dt=0.01, RK4.
Double pendulum example (SI-like)
m1m2L1L2gtheta1theta2
1111 9.8112060
Suggested settings: omega1=0, omega2=0, T=10, dt=0.01, RK4.
Formula Used
Gravitational N-body (2D)
Each body i accelerates due to all other bodies j.
  • Relative displacement: r_ij = (x_j - x_i, y_j - y_i)
  • Softened distance: |r_ij| = sqrt((dx)^2 + (dy)^2 + eps^2)
  • Acceleration: a_i = Σ_{j≠i} G m_j r_ij / |r_ij|^3
  • Energy: KE = Σ 1/2 m v^2, PE = -Σ_{i<j} G m_i m_j / |r_ij|
Double Pendulum (planar)
Two coupled rotational degrees of freedom, solved with standard Lagrange-derived equations.
  • State: (theta1, theta2, omega1, omega2)
  • Derivatives: dtheta/dt = omega and domega/dt = alpha(theta, omega)
  • Numerical integration: Semi-implicit Euler or fourth-order Runge-Kutta.
  • Energy is computed from link endpoint velocities and heights.
Tip: Smaller time steps improve stability, especially for chaotic motion.
How to Use This Calculator
  1. Select a model: N-body gravity or double pendulum.
  2. Enter consistent units for all parameters.
  3. Choose duration, time step, and an integration method.
  4. Provide initial conditions for bodies or angles.
  5. Press Calculate to view results above the form.
  6. Use Download CSV/PDF to export your computed dataset.

Related Calculators

markov chain monte carlometropolis monte carlokinetic monte carlodiscrete element methodconjugate heat transferquantum monte carlostiff ode solveradaptive mesh refinementparticle in celldissipative particle dynamics

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.