A numerical tool for modelling oscillating wave surge converter with nonlinear mechanical constraints