A Nonlinear Spectral Model for Gravity Waves Generation and Propagation in a Bounded Domain