Eddy viscosity and tidal cycles in a shallow sea