Effect of viscosity on sloshing in a rectangular tank with intermediate liquid depth