A New Numerical Representation of Wave Energy Converters in a Spectral Wave Model