Skip to content

☔ Raindrops

JavaScriptThree.js
Source

🎯 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!

DiscreteScalarField
↓
LaplaceOperator (FDM stencil)
↓
WaveEquationSolver (explicit time stepping)
↓
ScalarFieldSurface (visualization)