Rheology, eruption, and flow of three-phase magma