PHYSICS · Subjective · Fermi University Physics · Computational Physics · Research software practice, verification and validation · Simulating classical dynamical systems
Computational Physics, Ch A workspace that can be rerun next year
Problem
Chapter 1's drag-free explicit Euler integrator updates height y and downward speed v by vn+1=vn+gΔt,yn+1=yn−vnΔt, from v0=0 and a stated y0, with conserved quantity per unit mass En=21vn2+gyn. A lunar lander's uncontrolled fall is simulated using the Moon's surface gravity g=1.62ms−2, dropped from y0=300m and followed to t=15s, while it is still well above the surface.
(a) Using the fact that a single Euler step changes E by exactly 21g2(Δt)2 regardless of the speed at that step, show that the fractional energy drift after time t is ΔE/E0=gΔtt/(2y0).
(b) Evaluate this fractional drift, as a percentage, at Δt=0.2s and at Δt=0.025s.
(c) State the ratio of the two drifts and compare it with the ratio of the two step sizes.