Hamiltonian-consistent discretisation of wave equations by F.P.H. van Beckum