2D Wave Equation

Controls:

Click and drag to move around

Shift click to rotate

Scroll to zoom

1 finger to rotate, 2 to move and zoom

Select a Function

Select a Topology

Choose Your Own Adventure

(write a Javascript equation using \( x, y \in [0, 2\pi]\))


FPS:

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.