The one‐dimensional shallow water equations with transparent boundary conditions