Electrical design for ocean wave and tidal energy systems