Dynamics of lava flows