Modeling and Testing of a Pendulum Wave Energy Converter