1. Three-phase flow from a reservoir discharing in the downhole well