Numerical simulation of sloshing flows with impact load