OpenFOAM solver for calculation internal gravity waves in a stratified fluid