Numerical integrator vs textbook equation
Drop a ball, tune the surface and air, then compare the measured rebound with the ideal prediction.
Numerical integrator vs textbook equation
Awaiting the first impact
Mechanical energy plus recorded losses
Restitution is within the textbook passive bound
The model uses upward position y and velocity v. Gravity acts downward. Quadratic drag points opposite the velocity:
Here ρ is air density, Cᵈ is the drag coefficient and A = π(d/2)² is the ball's frontal area. The coefficient is recomputed from mass and diameter whenever a control changes.
A short collision is represented by an instantaneous change in velocity. The coefficient of restitution compares the speed immediately after impact with the speed immediately before it:
The rebound-height formula assumes no air drag and a level, stationary surface. With drag enabled, the measured rebound is lower because some mechanical energy is transferred to the air.
The equations are advanced with a fixed 1/360-second step using fourth-order Runge–Kutta integration. A crossing is refined within the step before applying the impact rule. Drag work and collision losses are accumulated in an energy ledger.
This is a simplified sphere model. It omits spin, lift, deformation, sound, temperature changes, surface texture and changes in drag coefficient with flow conditions. Air density is fixed at 1.20 kg/m³, a textbook approximation for air near room temperature. The drawn ball is scaled for visibility; the equations use SI units.
This is an independent educational simulation and is not affiliated with a ball manufacturer or sporting organisation.