TactivergeLite

Lite / Independent Engineering Research / Week 7

Week 7: Numerical integration

Term 1: Advanced Engineering Mathematics

This week you will

Lessons

  1. Euler, semi-implicit Euler and RK4 · about 50 min
    Simulate a frictionless spring with Euler's method and it gains energy from nowhere. Is the physics wrong, or the arithmetic?
  2. Local and global error, and the convergence study · about 50 min
    Halve the step and RK4's error drops about sixteen times. How can you prove that from your own code, not from a textbook?
  3. Stability regions and stiffness · about 45 min
    The fast part of your model died out in a millisecond, yet your simulation still crawls along in microsecond steps. Why?
← Week 6Week 8 →