Presets
Playback
Parameters
Camera
Layers
Quality
Model check
The science
Model. The trebuchet is a two-degree-of-freedom Lagrangian system: the arm angle θ and the sling angle ψ. The arm (long side a = 4.5 m, short side b = 1.1 m, 120 kg, uniform) carries the counterweight M as a point mass at the short tip; the projectile m hangs on a massless rigid sling of length L from the long tip. With d = ψ − θ:
T = ½Ieffθ'² + ½m[a²θ'² + L²ψ'² + 2aLθ'ψ' cos d], Ieff = ma(a³+b³)/(3(a+b)) + Mb², V = (mag(a−b)/2 − Mgb + mga) sinθ + mgL sinψ. The coupled equations of motion follow from d/dt(∂L/∂q') − ∂L/∂q = 0 and are integrated with RK4 (step 0.4 ms).
Release. The release pin lets go of the sling when the projectile velocity first points at the chosen elevation angle; this is the control that decides the range. After that the projectile flies with gravity and quadratic air drag, m r'' = −mg − ½ρCdA|v|v (Cd = 0.47 for a sphere, a 0.32 m pumpkin).
Simplifications. No friction in the axle, rigid counterweight (a hinged one throws farther), a massless inextensible sling, no ground contact or sling slippage in the trough, uniform arm, still air, a spherical pumpkin. The sim reports the minimum sling tension and warns if it goes negative (the rigid-sling model would then fail). The energy bar shows how the potential energy of the falling counterweight is shared between the pumpkin and the moving arm.
Checks. (1) the energy T + V stays constant along the swing; (2) the Euler-Lagrange residual of both coordinates, with T written from the raw geometry, is zero along the trajectory; (3) the numerical vacuum flight agrees with the closed-form parabola; (4) the arm alone oscillates with the physical-pendulum period 2π√(Ieff/K). A harmless, family-friendly pumpkin-throwing contest: the target is a set of rings painted on the grass.