Title: Flow and clogging mechanisms in porous media with applications to dams