☔ Raindrops
🎯 Solving the wave equation using a finite difference method for implementing the Laplace operator/solver
🧠 Inspired by this example from Recreational Mathematics with Python
🐍 Also available in VPython as raindrop_waves.py, but significantly slower!
👉 Wave equation with velocity-based damping:
Where is the height of water, the velocity, and the damping coefficient.
Live demo
Section titled “Live demo”Structure of the program
Section titled “Structure of the program”DiscreteScalarField ↓LaplaceOperator (FDM stencil) ↓WaveEquationSolver (explicit time stepping) ↓ScalarFieldSurface (visualization)