Waves on a flat torus (square lattice)