The numerical simulation of hydrodynamic wave loading on different types of offshore structures is important to predict forces on and water motion around these structures. This paper presents a numerical study of two-phase flow over a sloping bottom with the presence of breaking waves. The details of the numerical model, an improved Volume Of Fluid (iVOF) method, are presented in the paper. The program has been developed initially to study the sloshing of liquid fuel in satellites. This micro-gravity environment requires a very accurate and robust description of the free surface. Later, the numerical model has been used for calculations of green water loading and the analysis of anti-roll and sloshing tanks, including the coupling with ship motions.