Trebuchet

This is the famous medieval siege engine. The main beam (L=L1 + L2) is connected to a counterweight, M, and a projectile, m. After setting parameters, click the fire button to launch the projectile. The projectile is released when the angle ψ reaches ψR. Click on the diagrams for detailed geometry. The maximum distance thrown, xp, is recorded in the table for each session. The simulation is derived using Lagrangian Mechanics - a very cool way to work out complicated mechanics problems. A detailed derivation is found HERE. This formulation is unique in that trebuchet recoil is included. This made the derivation somewhat more complicated, so the equations were developed with the aid of SageMath - a symbolic manipulator.

This is a work in process - subject to random updates. Currently using Euler integration, will update to include symplectic and 4th order Runge-Kutta at a later time.

For further stress relief - destroy the castle. Get those guys. Hint: Increase M, decrease ψR and θ0.

M (kg)
m (kg)
L1 (m)
L2 (m)
Lm (m)
θ0 (deg)
dt (s)

ψR (deg)

Graph

Output 1
Output 2
Output 3

Distance Record for this Session

L1 (m)L2 (m)M (kg)m (kg)Lm (m)θ0 (deg) ψR (deg)xm (m)Castle Integrity (%)Efficiency (%)
00000000 100%0%

Click on an image to enlarge