GWsim: a code to simulate gravitational waves propagating in a potential well — arXiv2