2D Wave Equation
A demo of the finite difference method for the 2D Wave Equation rendered with WebGL2.
The square topology has Dirichlet conditions (boundary fixed to 0), the torus does not.
Note the Torus has points that aren't equidistant so there will be some distortion. It is formed by wrapping a grid of \([0, 2\pi] \times [0, 2\pi]\) into the shape of a donut. This means the inner ring will have the same number of grid points as the outer ring.
View source for more info.