Propagation of viscous gravity currents inside confining boundaries: the effects of fluid rheology and channel geometry