Ocean mechanical energy is quite different from ocean thermal energy. Even though the sun affects all ocean activity, tides are driven primarily by the gravitational pull of the moon, and waves are driven primarily by the winds. As a result, tides and waves are intermittent sources of energy, while ocean thermal energy is fairly constant.