The dynamics of tidal intrusion, retention, and removal of seawater in a bar-built estuary