Numerical analysis of sloshing problem