  For understanding the dissipation in a rotating flow when resonance occurs,
we study the rotating flow driven by the harmonic force in a periodic box. Both
the linear and nonlinear regimes are studied. The various parameters such as
the force amplitude $a$, the force frequency $\omega$, the force wavenumber
$k$, and the Ekman number $E$ are investigated. In the linear regime, the
dissipation at the resonant frequency scales as $E^{-1}k^{-2}$, and it is much
stronger than the dissipation at the non-resonant frequencies on the large
scales and at the low Ekman numbers. In the nonlinear regime, at the resonant
frequency the effective dissipation (dissipation normalised with the square of
force amplitude) is lower than in the linear regime and it decreases with the
increasing force amplitude. This nonlinear suppression effect is significant
near the resonant frequency but negligible far away from the resonant
frequency. Opposite to the linear regime, in the nonlinear regime at the
resonant frequency the lower Ekman number leads to the lower dissipation
because of the stronger nonlinear effect. This work implies that the previous
linear calculations overestimated the tidal dissipation, which is important for
understanding the tides in stars and giant planets.
