A finite element model for tidal and residual circulation (Q299180)