Simulation of fluid sloshing in a tank using the SPH and Pendulum methods