A generic outline for dynamic modeling of ocean wave and tidal current energy conversion systems