dynamics and energetics of tides