Analytical solutions for two-regime well flow problems