numerical simulation of gravity wave responses in a stratified fluid