Modeling of propagation of internal gravity waves in gases