gravity wave in 2d cartesian coordinate version 1.1