Phase 03 · 18 lessons

Numerical Methods & Scientific Computing

Numerical methods and scientific computing at the level of a first course in numerical analysis plus an introduction to computational engineering, taught through aerospace problems and organised around one idea: error. Every method is introduced with its error model (truncation, rounding, stability, convergence order), every implementation is written from scratch in NumPy and checked against that model with a convergence study, every result carries an error estimate, and SciPy is called afterwards as the oracle, with a reason given for why the library is still what you call in practice. By the end you can implement and analyse root finders, interpolants and splines, quadrature and finite differences, ODE integrators (explicit, adaptive, implicit and symplectic), direct and iterative linear solvers, Newton for nonlinear systems, finite-difference, finite-volume and finite-element discretisations, unconstrained and constrained optimisers, a small multidisciplinary optimisation with coupled derivatives, Monte Carlo and polynomial-chaos uncertainty propagation, and a verification study by the method of manufactured solutions, with a tested Python module for each. There are no physical experiments in this phase; every lesson's part 4 is a computational experiment (a convergence, stability or cost study), and any synthetic data is labelled as synthetic wherever it appears.

Lessons

  1. P03.01computational Floating Point & Numerical Error Build it: Catastrophic cancellation demo
  2. P03.02computational Root Finding Build it: Newton, secant, bisection; solve Kepler's equation
  3. P03.03computational Interpolation & Splines Build it: Atmospheric table interpolator
  4. P03.04computational Numerical Differentiation & Integration Build it: Simpson, Gauss quadrature
  5. P03.05computational ODE Integrators I: Euler to RK4 Build it: RK4 from scratch
  6. P03.06computational ODE Integrators II: Adaptive & Stiff Build it: RK45 with step control, implicit Euler
  7. P03.07computational Symplectic Integrators Build it: Energy-conserving orbit propagation
  8. P03.08computational Direct Linear Solvers Build it: LU, Cholesky from scratch
  9. P03.09computational Iterative & Sparse Solvers Build it: Conjugate gradient on a 2D Poisson problem
  10. P03.10computational Nonlinear Systems Build it: Newton–Raphson for trim
  11. P03.11computational Finite Differences for PDEs Build it: 1D heat equation, stability analysis
  12. P03.12computational Finite Volume Methods Build it: 1D advection with upwinding
  13. P03.13computational Finite Element Basics Build it: 1D bar FEM solver
  14. P03.14computational Unconstrained Optimization Build it: BFGS from scratch
  15. P03.15computational Constrained Optimization Build it: SQP for a sizing problem
  16. P03.16computational Multidisciplinary Design Optimization Build it: Wing aero-structural MDO (NumPy/SciPy; OpenMDAO as an optional extension)
  17. P03.17computational Uncertainty Quantification Build it: Monte Carlo and polynomial chaos
  18. P03.18computational Verification & Validation Build it: Method of manufactured solutions

Phase exam and mini-project: assessments/phase-03/. The verification study by the method of manufactured solutions from lesson 18, applied to your own lesson 11 or lesson 12 solver, is the mini-project.

References: references/phase-03.md. Every required reading is free.

Running the code: from the repo root, pytest curriculum/phase-03/lesson-NN- tests your starter/main.py; AEFS_IMPL=solution pytest curriculum/phase-03/lesson-NN- runs the same tests against the reference solution.

This page on GitHub