☔ Raindrops
Live demo
Section titled “Live demo”🎯 Solving the wave equation using a finite difference method for implementing the Laplace operator/solver
🧠 Inspired by this example from Recreational Mathematics with Python
🔗 Related to pool with moving obstacle demo
🐍 Also available in VPython as raindrop_waves.py, but significantly slower!
Structure of the program
Section titled “Structure of the program”DiscreteScalarField ↓LaplaceOperator (FDM stencil) ↓WaveEquationSolver (explicit time stepping) ↓ScalarFieldSurface (visualization)