Numerical modelling of wave penetration in ports