An approximate nonlinear analysis of the stability of sloshing modes under transla- tional and rotational excitation