Impact dynamics of mud flows against rigid walls