Introduction

The DTS technology has been increasingly accepted for the permanent downhole monitoring of horizontal wells given their increasing ability to register even the smallest temperature changes (less than 0.1 °C) in fluid wellbore behavior (Yoshioka et al. 2005b). The temperature log performed by DTS tool helps reservoir operators to get real-time temperature data and determine how to optimize reservoir productions. The real-time temperature profiles given by DTS tools is hoped to be able to aid in the identification of different producing fluids (oil, water and gas), locations of undesired water breakthrough, gas entry, tubing leakage and productive or non-productive zones along a horizontal wellbore (Wang et al. 2010). In order to better interpret wellbore temperature data, wellbore fluid thermal behavior (temperature, pressure and velocity) reliable prediction models are critical and the analysis of the fundamental factors that lead to such behaviors are essential to explain and identify different production conditions.

Several temperature prediction models for both vertical and horizontal flow have been proposed over the years (Ayala and Dong 2015) mainly for pipeline and tubing conditions. As for multi-phase fluids thermal models, three types of models are commonly used by the petroleum industry to model the impact of multiphase fluid on wellbores—homogeneous, drift-flux and mechanistic. The fundamental assumption in the homogeneous model is that fluids in the system are perfectly mixed so that there is no slip between each phase, hence forming a homogeneous mixture (Hasan and Kabir 2002). Treated as a single-phase fluid, the two-phase fluid is considered to have one velocity-mixture velocity. Fluid properties can be represented by mixture properties. In previous work (Yoshioka et al. 2005b), a homogeneous model has been successfully applied in industry to interpret wellbore fluid thermal behavior. The homogeneous model with slip considered between two phases is named the drift-flux model. To allow for the slip between two phases, empirical parameters are needed to estimate the volume fraction of each phase. Compared to the homogeneous model, a drift-flux model is not only capable of capturing the two-phase in situ volume fraction, but also capable of considering different flow patterns, which gives more reliable and realistic wellbore velocity, pressure and temperature profiles. Therefore, drift-flux model is used in many reservoir simulators (Shi et al. 2005). Mechanistic models are the most accurate among these three models for consideration of the detailed physics of each flow pattern. However, at some flow-pattern transitions, the mechanistic model can cause discontinuities of pressure drop or holdup, resulting in a convergence problem (Shi et al. 2005). Zuber and Findlay (1965) proposed a general drift-flux method to predict average volumetric concentration in vertical two-phase flow systems. Velocity and concentration profiles are generated by considering the effects of the relative velocity between two phases and a non-uniform flow. França and Lahey (1992) applied drift-flux techniques in horizontal air/water two-phase flows. Their model is able to predict and correct experiment data in various flow regimes. Hasan and Kabir (1999) applied a drift-flux approach and developed a simplified model for an oil–water flow in vertical and deviated wellbores. After investigating three flow patterns, a single expression for calculating drift-flux velocity was developed. Shi et al. (2005) proposed a drift-flux model of water/gas and oil/water two-phase flow in wellbores ranging from vertical to near-horizontal. The model used experimental data from a large diameter pipe to determine drift-flux parameters. Hapanowicz (2008) tested the accuracy of available drift-flux models in evaluating the slip between water and oil phases in a horizontal pipe. A flow pattern determination method was proposed for implementing the drift-flux model. Based on previous work, Choi et al. (2012) developed a drift-flux closure relationship to estimate phase holdup in gas–liquid pipe flow. The correlation gave satisfactory prediction of phase holdup over a wide range of flow patterns and wellbore inclination conditions. Hasan and Kabir (1988b) presented a mechanistic model for multi-phase flow in vertical wells. The model is able to predict flow patterns, void fractions and pressure drops of vertical wellbore fluid. They also presented a similar mechanistic model that can be applied in deviated wells (Hasan and Kabir 1988a). Petalas and Aziz (1998) proposed a mechanistic model for multi-phase flow in pipe. New empirical correlations were developed for liquid–gas flow in different flow patterns, along with solution procedures. Ouyang and Aziz (2000) published a homogeneous model for gas–liquid flow in horizontal wells. In their pressure gradient equation, an accelerational pressure gradient caused by wall influx/outflux and fluid expansion is considered. Yoshioka et al. (2005a, b) proposed a homogeneous model for oil–water flow and drift-flux model regarding oil–gas flow in wellbore temperature prediction models.

In this study, on the basis of the single-phase η s-driven model developed in our previous work (Ayala and Dong 2015), two-phase flow wellbore thermal models (oil–water and oil–gas) are presented in both homogeneous and drift-flux forms. A perforated wellbore completion type is implemented in the models by considering heat conduction between reservoir and wellbore fluids. Case studies including oil–water and oil–gas flow in horizontal wellbore systems are conducted, together with detailed interpretation of fluids thermal behaviors.

Prediction models

Single-phase and two-phase homogeneous model

The single-phase thermal response of horizontal wellbores for steady-state conditions is given by (Ayala and Dong 2015):

$$\frac{{{\text{d}}T}}{{{\text{d}}x}} = \frac{\varGamma }{{\rho uC_{\text{p}} }}\left[ {\left( {h^{*} - h} \right) + \frac{{\left( {u^{2} + u^{*2} } \right)}}{2}} \right] + \frac{{2\left( {1 - \gamma } \right)}}{{r\rho uC_{\text{p}} }}U\left( {T^{*} - T} \right) - \frac{1}{{\rho C_{\text{p}} }}F_{\text{w}} + \eta_{\text{s}} \frac{{{\text{d}}p}}{{{\text{d}}x}},$$
(1)

where Γ is radio mass influx \(\left( {\frac{\text{lbm}}{{{\text{ft}}^{ 3} {\text{s}}}}} \right)\), γ is pipe open ratio (Yoshioka et al. 2005b) and U is overall heat transfer coefficient (BTU/ft2 hr F). This equation shows that wellbore temperature behavior is prescribed by the combination effect of energy exchange, friction and fluid’s isentropic expansion.

For two-phase flow, the homogeneous model can be used if the no-slip between phases assumption is valid. Because of the no-slip assumption of the homogeneous model, the volume fraction of each phase can be directly evaluated by the ratio of the flowrate of one phase to the total volumetric flowrate. For such two-phase homogeneous conditions, Eq. (1) would still apply by treating the two phases as a pseudo-single phase with average properties. Appendix A provides the definition of applicable two-phase variables. In homogeneous oil–gas flow, the liquid holdup is estimated as

$$y_{\text{O}} = \frac{{q_{\text{O}} }}{{q_{\text{O}} + q_{\text{G}} }}$$
(2)

The fluid of each phase is transported at same velocity, which is mixture velocity:

$$u_{\text{m}} = u_{\text{SO}} + u_{\text{SG}}$$
(3)

The steady-state momentum balance equation for the homogeneous model also uses the single-phase version evaluated using mixture properties:

$$\frac{{{\text{d}}\left( {\rho_{\text{m}} u_{\text{m}}^{ 2} } \right)}}{{{\text{d}}x}} + \frac{{{\text{d}}p}}{{{\text{d}}x}} = F_{\text{w}} + F_{\text{g}} ,$$
(4)

where

$$F_{\text{w}} = \frac{{f_{\text{m}} \rho_{\text{m}} u_{\text{m}}^{ 2} }}{2d}$$
(5)
$$F_{\text{g}} = \rho_{\text{m}} g{ \sin }\theta$$
(6)

In the homogeneous model, mixture density ρ m is given by

$$\rho_{\text{m}} = y_{\text{O}} \rho_{\text{O}} + y_{\text{G}} \rho_{\text{G}} ,$$
(7)

where f m is the mixture Moody friction factor. For its calculation, the mixture Reynolds number is calculated as

$$Re_{\text{m}} = \frac{{\rho_{\text{m}} u_{\text{m}} d}}{{\mu_{\text{m}} }},$$
(8)

in which the mixture viscosity is given as

$$\mu_{\text{m}} = y_{\text{O}} \mu_{\text{O}} + y_{\text{G}} \mu_{\text{G}}$$
(9)

For oil–water flow, the equations to calculate volume fraction of each phase and the mixture properties become similar to Eqs. (2) to (9) by replacing the subscript ‘G’ (gas) to ‘W’ (water).

For homogeneous two-phase flow, Eq. (1) can be written for each phase as

$$y_{i} \rho_{i} u_{\text{m}} C_{{{\text{p}}_{i} }} \frac{{{\text{d}}T_{i} }}{{{\text{d}}x}} = \varGamma_{i} \left[ {\left( {h_{i}^{*} - h_{i} } \right) + \frac{{\left( {u_{\text{m}}^{ 2} + u^{*2}_{i} } \right)}}{2}} \right] + \frac{{2\left( {1 - \gamma } \right)}}{r}Q_{i} - y_{i} u_{\text{m}} F_{\text{w}} + y_{i} \rho_{i} u_{\text{m}} C_{{{\text{p}}_{i} }} \eta_{{{\text{s}}_{i} }} \frac{{{\text{d}}p_{i} }}{{{\text{d}}x}}$$
(10)

Adding the thermal equations for the each phase, and assuming that each phase has same pressure and temperature at the same segment of the wellbore, the final form of the temperature equation becomes

$$\begin{aligned} \frac{{{\text{d}}T}}{{{\text{d}}x}} = & \frac{{\mathop \sum \nolimits_{i} \varGamma_{i} }}{{u_{\text{m}} \mathop \sum \nolimits_{i} y_{i} \rho_{i} C_{{{\text{p}}_{i} }} }}\left[ {\left( {h_{i}^{*} - h_{i} } \right) + \frac{{\left( {u_{\text{m}}^{2} + u_{i}^{2} } \right)}}{2}} \right] + \frac{{2\left( {1 - \gamma } \right)}}{{ru_{\text{m}} \mathop \sum \nolimits_{i} y_{i} \rho_{i} C_{{{\text{p}}_{i} }} }}U\left( {T^{*} - T} \right) \\ & - \frac{1}{{\mathop \sum \nolimits_{i} y_{i} \rho_{i} C_{{{\text{p}}_{i} }} }}F_{\text{w}} + \frac{{\mathop \sum \nolimits_{i} y_{i} \rho_{i} C_{{{\text{p}}_{i} }} \eta_{{{\text{s}}_{i} }} }}{{\mathop \sum \nolimits_{i} y_{i} \rho_{i} C_{{{\text{p}}_{i} }} }}\frac{{{\text{d}}p}}{{{\text{d}}x}} \\ \end{aligned}$$
(11)

Two-phase model: drift-flux model

In a drift-flux model, slip between phases is considered. Because of the non-uniform velocity profiles, one phase of two-phase flow is transported at a higher velocity than the other phase. For oil–gas two-phase flow, gas tends to have a higher velocity than oil; while for the water–oil flow, it depends on whether the flow pattern is O/W (oil phase dispersed in water phase) or W/O (water phase dispersed in oil phase). A dispersed phase has a higher velocity than the continuous phase. Compared to the homogeneous model, the evaluation of holdup (in situ volume fraction) of each phase in drift-flux model comes from an empirical correlation based on experiments.

Two mechanisms are considered in the oil–gas two-phase flow drift-flux model. First, there are non-uniform velocity and phase distribution profiles over the cross section of the wellbore. In the center of a wellbore, gas tends to have the highest concentration, with the highest local mixture velocity, so the average gas velocity is higher than that of oil. Second, due to a buoyancy effect in vertical wells, gas has the tendency to rise vertically through oil (Shi et al. 2005). The drift-flux model for the oil–gas phase can be expressed as

$$u_{\text{G}} = C_{\text{o}} u_{\text{m}} + u_{\text{D}} ,$$
(12)

where C o is the profile parameter (distribution coefficient) that describes the velocity effect and concentration profiles; u D is the drift-flux velocity, which represents the buoyancy effect and C o varies between 1.0 and 1.2 and is estimated by Choi et al. (2012) in their proposed model as

$$C_{\text{o}} = \frac{2}{{1 + \left( {{{Re_{\text{m}} } \mathord{\left/ {\vphantom {{Re_{\text{m}} } {1000}}} \right. \kern-0pt} {1000}}} \right)^{2} }} + \frac{{1.2 - 0.2\sqrt {{{\rho_{\text{G}} } \mathord{\left/ {\vphantom {{\rho_{\text{G}} } {\rho_{\text{O}} }}} \right. \kern-0pt} {\rho_{\text{O}} }}} \left( {1 - \exp \left( { - 18y_{\text{G}} } \right)} \right)}}{{1 + \left( {{{1000} \mathord{\left/ {\vphantom {{1000} {Re_{\text{m}} }}} \right. \kern-0pt} {Re_{\text{m}} }}} \right)^{2} }}$$
(13)

Choi et al. (2012) also presented a modified model to calculate the drift velocity, including the inclination effect:

$$u_{\text{D}} = A\cos \theta + B\left( {\frac{{g\tau_{{{\text{O}} - {\text{G}}}} \left| {\Delta \rho } \right|}}{{\rho_{\text{O}}^{2} }}} \right)^{0.25} \sin \theta .$$
(14)

A = 0.0246, B = 1.606 where \(\left| {\Delta \rho } \right|\) is the absolute value of the density difference between the oil and gas phases, τ O–G is surface tension between oil and gas phases. With the gas velocity calculated by drift-flux model, volume fractions of gas phase and liquid phase can be evaluated as

$$y_{\text{G}} = \frac{{u_{\text{SG}} }}{{u_{\text{G}} }}$$
(15)
$$y_{\text{O}} = \frac{{u_{\text{SO}} }}{{u_{\text{O}} }} = 1 - y_{\text{G}}$$
(16)

In water–oil flow, two types of flow system are considered: W/O and O/W. The determination of flow pattern is based on the boundary line in generalized flow patterns mapped by Hapanowicz (2008), written as

$$g_{\text{O}} = 1.3525g_{\text{W}}^{0.812} ,$$
(17)

where g O, g W are the apparent mass flux of oil and water, expressed as

$$g = \frac{{\dot{m}}}{A},$$
(18)

where \(\dot{m}\) is the mass flowrate, written as

$$\dot{m} = q \times \rho$$
(19)

To determine the flow pattern of oil–water flow system, g O and g W are calculated, respectively. If \(g_{\text{O}} > 1. 3 5 2 5g_{\text{W}}^{0.812}\), the flow pattern of the system is considered as W/O; otherwise, the flow pattern of the system is considered as O/W.

The drift-flux model of the liquid–liquid flow system given by Hapanowicz (2008) is

$$u_{\text{d}} = C_{\text{d}} u_{\text{m}} + u_{\text{D}} ,$$
(20)

where subscript d denotes dispersion phase.

The determination of the profile parameter \(C_{\text{d}}\) and the drift velocity of the dispersion phase u D are given by the following relationship (Dix 1971):

$$C_{\text{d}} = X_{\text{d}} \left[ {1 + \left( {\frac{1}{{X_{\text{d}} }} - 1} \right)^{{\left( {\frac{{\rho_{{_{\text{d}} }} }}{{\rho_{\text{c}} }}} \right)^{0.1} }} } \right]$$
(21)
$$u_{\text{D}} = 2.9\left( {\frac{{g\tau_{{{\text{O}} - {\text{W}}}} \left| {\Delta \rho } \right|}}{{\rho_{\text{c}}^{2} }}} \right)^{0.25}$$
(22)

Firoozabadi and Ramey’s (1988) correlation is used in calculating the surface tension (τ O–W) between oil and water phases. \(X_{\text{d}}\) is the apparent volume fraction of the dispersion phase determined by the flowrate of the two-phase flow:

$$X_{\text{d}} = \frac{{q_{\text{d}} }}{{q_{\text{d}} + q_{\text{c}} }},$$
(23)

where subscript c denotes a continuous phase.

In our application of oil–water drift-flux model, we assume the flow pattern is W/O to have continuous pressure and temperature profiles. Oil and liquid holdup can be calculated as follows:

$$y_{\text{W}} = \frac{{u_{\text{SW}} }}{{u_{\text{W}} }}$$
(24)
$$y_{\text{O}} = \frac{{u_{\text{SO}} }}{{u_{\text{O}} }} = 1 - y_{\text{W}}$$
(25)

The pressure (momentum) equation for each phase i in a multi-phase environment can be written as (Ayala and Adewumi 2003; Ayala and Alp 2008):

$$\frac{{{\text{d}}\left( {y_{i} \rho_{i} u_{i}^{2} } \right)}}{{{\text{d}}x}} + y_{i} \frac{{{\text{d}}p}}{{{\text{d}}x}} = y_{i} F_{{{\text{w}}_{i} }} + y_{i} F_{{{\text{g}}_{i} }} ,$$
(26)

where

$$F_{{{\text{w}}_{i} }} = \frac{{f_{{M_{i} }} \rho_{i} u_{i}^{2} }}{{2d_{\text{e}} g_{\text{c}} }}$$
(27)

and d e is phase wetted equivalent diameter (Ayala and Adewumi 2003; Ayala and Alp 2008). By adding the pressure equations for each of the phases, we obtain

$$\frac{{{\text{d}}\left( {\mathop \sum \nolimits y_{i} \rho_{i} u_{i}^{2} } \right)}}{{{\text{d}}x}} + \frac{{{\text{d}}p}}{{{\text{d}}x}} = \mathop \sum \nolimits y_{i} F_{{{\text{w}}_{i} }} + \mathop \sum \nolimits y_{i} F_{{{\text{g}}_{i} }}$$
(28)

The temperature equation at steady state for each phase i becomes

$$y_{i} \rho_{i} u_{i} C_{{{\text{p}}_{i} }} \frac{{{\text{d}}T_{i} }}{{{\text{d}}x}} = \varGamma_{i} \left[ {\left( {h_{i}^{*} - h_{i} } \right) + \frac{{\left( {u_{i}^{2} + u_{i}^{*2} } \right)}}{2}} \right] + \frac{{2\left( {1 - \gamma } \right)}}{r}Q_{i} - y_{i} u_{i} F_{{{\text{w}}_{i} }} + y_{i} \rho_{i} u_{i} C_{{{\text{p}}_{i} }} \eta_{{{\text{s}}_{i} }} \frac{{{\text{d}}p_{i} }}{{{\text{d}}x}}$$
(29)

By adding all thermal equations for each individual phase, and assuming the same local pressure and temperature for each phase, the final form of the temperature equation for the drift-flux model becomes:

$$\begin{aligned} \frac{{{\text{d}}T}}{{{\text{d}}x}} = & \frac{{\mathop \sum \nolimits_{i} \varGamma_{i} }}{{\mathop \sum \nolimits_{i} y_{i} \rho_{i} u_{i} C_{{{\text{p}}_{i} }} }}\left[ {\left( {h_{i}^{*} - h_{i} } \right) + \frac{{\left( {u_{i}^{2} + u_{i}^{*2} } \right)}}{2}} \right] + \frac{{2\left( {1 - \gamma } \right)}}{{r\mathop \sum \nolimits_{i} y_{i} \rho_{i} u_{i} C_{{{\text{p}}_{i} }} }}U\left( {T^{*} - T} \right) \\ & - \frac{{\mathop \sum \nolimits_{i} y_{i} u_{i} }}{{\mathop \sum \nolimits_{i} y_{i} \rho_{i} u_{i} C_{{{\text{p}}_{i} }} }}F_{{{\text{w}}_{i} }} + \frac{{\mathop \sum \nolimits_{i} y_{i} \rho_{i} u_{i} C_{{{\text{p}}_{i} }} \eta_{{{\text{s}}_{i} }} }}{{\mathop \sum \nolimits_{i} y_{i} \rho_{i} u_{i} C_{{{\text{p}}_{i} }} }}\frac{{{\text{d}}p}}{{{\text{d}}x}} \\ \end{aligned}$$
(30)

The solution procedure of two-phase flow system is given in Appendix B.

Case study

A sensitivity study of the proposed two-phase flow model in several scenarios is conducted. Both homogeneous and drift-flux models have been applied in both oil–water and oil–gas flows. In the oil–water flow cases, a thermal effect of water entry on wellbore is discussed; while in the oil–gas flow cases, another thermal effect of an oil–gas mixture production at different gas flow rates is analyzed. An openhole wellbore condition is initially applied in the case study. A perforated wellbore type is also applied in oil–gas flow case to compare the sensitivity of thermal response between two wellbore types. Tables 1, 2 give the openhole wellbore description and fluids compositions. For consistency purposes, reservoir pressure and temperature for all the cases were taken with the values of 3900 psia and 190 °F, respectively.

Table 1 Openhole wellbore descriptions
Table 2 Fluid compositions

Oil–water flow problem

In the oil–water flow system, we specify oil and water productions along the wellbore. Water entered the wellbore at different locations including toe, middle and heel of wellbores. The inflow fluid in this case is either oil or water. The oil and water flowrate specifications under study are shown in Figs. 1, 2, 3.

Fig. 1
figure 1

Oil and water production along wellbore-water entered at toe

Fig. 2
figure 2

Oil and water production along wellbore-water entered at middle

Fig. 3
figure 3

Oil and water production along wellbore-water entered at heel

Homogeneous model results

The homogeneous oil–water flow model is initially applied in the openhole wellbore condition. Figure 4 gives water holdup profiles in three cases. When water enters at the toe of the wellbore, its holdup is first maintained at 1 because there is no oil production during that time. As oil production begins, water’s cumulative production does not change and its holdup begins to decrease. When water enters wellbore at the middle and heel of wellbore, its holdup is zero until it begins to produce. When fluid reaches the heel of the wellbore, the water holdup is the same in all three cases, i.e., about 0.24. Figure 5 shows pressure responses in all three cases with comparison of a single-phase oil case. Compared to single-phase oil flow pressure response, the pressure profiles of two-phase cases are continuous and have no obvious differences. Therefore, one could not recognize the entry of water using pressure response profiles alone.

Fig. 4
figure 4

Water holdup-homogeneous model

Fig. 5
figure 5

Pressure profiles at different water entry locations-homogeneous model

Figures 6, 7, 8 present temperature responses in all three cases with comparisons of the single-phase cases. When water enters the wellbore at different locations, different temperature responses are observed from Figs. 6, 7, 8. The temperature profile begins to deviate from the single-phase fluid case at the location where water enters the wellbore. In order to show the detailed thermal behavior of single-phase oil and oil–water case, Fig. 9 is plotted to give the overall temperature contribution of the two cases (single-phase oil and oil–water flow with water enters at toe). Compared to single-phase oil case, oil–water flow is less heated by the friction effect and less cooled by the isentropic coefficient. The combination of three factors result in a smaller temperature increment compared to single-phase oil case, in which the water entry could be detected. Therefore, temperature response profiles in wellbore flow may be utilized to interpret the water entry phenomenon during production.

Fig. 6
figure 6

Temperature profile comparison for water entered at toe-homogeneous model

Fig. 7
figure 7

Temperature response comparison for water entered at middle-homogeneous model

Fig. 8
figure 8

Temperature response comparison for water entered at heel-homogeneous model

Fig. 9
figure 9

Comparison of overall temperature contribution between single-phase oil and oil–water flow cases

Drift-flux model results

The main difference between the drift-flux model and the homogeneous model is that the drift-flux model considers slip in evaluating phase holdup and velocity. In oil–water flow, to make each thermal profile in continuous format, we assume that the flow pattern in the flow system is W/O, which means that the water phase is dispersed in the continuous oil phase. Water holdup profiles are given in Fig. 10. Compared to the water holdup calculated by the homogeneous model in Figs. 4, 10 has a similar trend of water holdup. Figure 11 is generated to show the difference between these two results.

Fig. 10
figure 10

Water holdup-oil–water drift-flux model

Fig. 11
figure 11

Comparison of water holdup in two models

Let us consider the entry of water at the mid-section depicted in Fig. 11. It is shown that the homogeneous model over-predicts the water holdup along the wellbore, compared to the drift-flux model. That is because the two models utilize different algorithms in calculating the phase holdup. In the homogeneous model, the phase holdup is calculated directly by the cumulative production of each phase, whereas in the drift-flux model, the phase holdup is calculated by drift-flux correlations. The result of the velocity profile for the middle location case is in Fig. 12. V o and V w in the figure give the velocity profiles of oil and water phase, respectively. V m is the mixture velocity of the two-phase flow calculated in the homogeneous model.

Fig. 12
figure 12

Velocity profile for water in toe location-oil–water

Figure 12 shows that the dispersed water phase travels at a higher velocity than the oil phase along the wellbore, while the mixture velocity has a value between the oil and water velocities. The velocity profiles obey one basic assumption of drift-flux model—one phase is transported at a higher speed than another phase. Pressure profiles in each case are generated by the drift-flux model as shown in Fig. 13. Similar to the pressure profiles in the homogeneous model, pressure profiles are almost overlapped with each other. So, one could not detect the water entry effect and water location from pressure profiles. Figures 14, 15, 16 give the temperature profiles of each case relative to the single-phase oil case. There are similar phenomena in temperature profiles generated by the drift-flux model compared to the homogeneous model. Temperature of two-phase flow deviates from that of single-phase flow predictions at the location where water begins to enter.

Fig. 13
figure 13

Pressure profiles at different water entry locations–oil–water drift-flux model

Fig. 14
figure 14

Temperature profile comparison for water entered at toe-drift-flux model

Fig. 15
figure 15

Temperature profile comparison for water entered at middle-drift-flux model

Fig. 16
figure 16

Temperature profile comparison for water entered at heel-drift-flux model

Figure 17 gives the comparison of temperature profiles of two models with water entering wellbore at the toe. It is shown that the temperature change in the drift-flux model is larger than that of the homogeneous model. Therefore, the homogeneous model tends to under-predict wellbore thermal behavior compared to the drift-flux model.

Fig. 17
figure 17

Temperature comparison of two models with water entering at toe-oil–water drift-flux model

Oil–gas flow problem

In following oil–gas two-phase flow problem, the thermal effect of gas appearance during oil production is discussed. We assume that gas enters the oil production zone at each segment of the wellbore and is mixed with oil during production. Gas enters the wellbore at different flowrates in three cases. The cumulative productions of oil and gas phase are shown in Fig. 18. With the same oil production, gas flowrates are specified in three types—high, medium and low.

Fig. 18
figure 18

Oil and gas phase production

Homogeneous model results

Similarly, we first show the result of the homogeneous model in the openhole wellbore type. Gas holdup is given in Fig. 19. Since gas enters the wellbore simultaneously at each segment, the cumulative production of gas makes its holdup increase from toe to heel. The larger the gas flowrate, the higher the holdup gas phase will be. Figure 20 shows pressure profiles in three cases. With the same oil flowrate, the largest gas flowrate case results in the largest pressure drop, then the medium and low gas flowrates.

Fig. 19
figure 19

Gas holdup-homogeneous model

Fig. 20
figure 20

Pressure profiles in different gas flowrate-homogeneous model

Figure 21 shows the temperature profiles in three cases. It is interesting to find that in three cases, from toe to heel, temperature first increases then decreases due to the effect of gas entry. As demonstrated in the single-phase case study, oil is heated while gas is cooled along the wellbore. When the two-phase flows come together, the fluid mixture at the first half of the wellbore experiences heating like the oil phase; then it is cooled like the gas phase. Since a higher gas flowrate leads to a larger pressure drop, the oil–gas mixture in the largest gas production has the largest range of temperature changes. Due to the cooling effect in the gas phase, it is easy to diagnose entry of the gas during oil production from its temperature profile. Figure 22 shows the comparison of overall temperature contributions between two cases (single-phase oil and oil–gas flow with highest gas rate). It is observed that compared to single-phase case, oil–gas flow experiences more frictional heating and isentropic cooling. The energy exchange cools the flow at the same time. The combination of three factors gives a different thermal behavior of oil–gas flow compared to single-phase oil flow.

Fig. 21
figure 21

Temperature profiles in different gas flowrate-homogeneous model

Fig. 22
figure 22

Comparison of overall temperature contribution between single-phase oil and oil–gas flow cases

Drift-flux model results

In the drift-flux model, the gas holdup is evaluated with drift-flux techniques in Fig. 23. Hold-up trends for the drift-flux model are similar to those shown by the homogeneous model in Fig. 19.

Fig. 23
figure 23

Gas holdup-oil–gas drift-flux model

Figure 24 is given to compare the difference between holdup results in the two models. As illustrated, when slip is considered in the drift-flux model, the gas holdup becomes smaller compared with the homogeneous case. Again, this is caused by different algorithms in evaluating phase holdup, and the homogeneous model tends to over-predict the gas holdup. The velocity profile in the high gas flowrate case is given in Fig. 25. As expected, due to the slip between the two phases, the gas phase has a higher velocity than that of the oil phase, and the mixture velocity in homogeneous model is also between two velocity profiles. Figures 26, 27 present pressure and temperature profiles in the drift-flux model. The pressure and temperature profiles have similar trends compared to those in the homogeneous model shown in Figs. 20, 21.

Fig. 24
figure 24

Comparison of gas holdup in two model

Fig. 25
figure 25

Velocity profile in high gas flowrate case-oil–gas drift-flux model

Fig. 26
figure 26

Velocity profile in high gas flowrate case-oil–gas drift flux model

Fig. 27
figure 27

Temperature profiles in different gas flowrate-oil–gas drift-flux model

Figure 28 gives the temperature profile comparison between two models in the high flowrate case. As is shown, the temperature change of the drift-flux model is larger than that of the homogeneous model. Using different protocols to solve thermal response between two models, the homogeneous model tends to under-predict temperature change compared to the drift-flux model.

Fig. 28
figure 28

Temperature comparison of two models with high gas flowrate

Well completion effect

The results discussed so far for the two-phase flow are in openhole wellbore type. For thermal model in an openhole wellbore, the pipe’s open ratio \(\gamma\) is 1, so that energy exchange only appears in the mass exchange part. In this case, we introduce heat conduction into our model for a perforated wellbore type and compare the result with the openhole wellbores. Appendix C shows the development of overall heat transfer coefficient calculations. Fluid and perforated wellbore properties are given in Table 3 (Yoshioka et al. 2005a). A perforated wellbore type has been applied in the same oil–gas flow case. Pressure and temperature results are generated by the drift-flux model.

Table 3 Perforated wellbore description and fluid properties (Yoshioka et al. 2005a)

Figure 29 shows pressure profiles in three oil–gas cases. Similar profiles can be found compared to the openhole case in Fig. 26. However, due to smaller roughness of the wellbore, the pressure drop of perforated wellbore fluid in the figure is relatively smaller than that of the openhole wellbore fluid. Figure 30 gives temperature profiles in this case. Temperature change in a perforated wellbore is not as significant as that in an openhole wellbore. Two reasons can be considered for this fact. First, the smaller pressure drop weakens the effect of the isentropic thermal coefficient, leading to the wellbore fluid being less cooled. Second, the heat conduction from reservoir to wellbore always has an opposite effect in determining the overall trend of temperature change. For example, in this case, the first half of the wellbore from toe to the middle is being heated, while the heat conduction cools the wellbore fluid because the reservoir temperature is lower; the remaining half of the wellbore from middle to heel is being cooled while heat conduction heats the wellbore because the reservoir temperature is higher. Combination of these two factors results in a non-sensitive thermal response of a perforated wellbore fluid.

Fig. 29
figure 29

Pressure profiles in perforated wellbores-oil–gas drift-flux model

Fig. 30
figure 30

Temperature profiles in perforated wellbores-oil–gas drift-flux model

Concluding remarks

Based on our studies on two-phase flow wellbore fluids systems, it is shown that the η s-driven model can be implemented to analyze two-phase wellbore flow thermal behaviors during the production of oil, gas and water. The Entry of the undesired phases including water and gas can be detected via the temperature profiles. For perforated wellbores, the thermal response is not as sensitive as in the openhole case. Results show that our models (homogeneous and drift-flux) can be applied to effectively predict and interpret wellbore fluid thermal behaviors at steady state. Further experiments are needed to test the performance of the two types of models. The proposed models can be further developed for transient flow conditions to analyze the early time regime. In addition, to match field data, the reservoir model is necessary to be coupled with the wellbore model to generate more realistic flowrate, reservoir pressure and temperature as inputs before calculating the wellbore temperature profile. Also, flash calculation can be applied in every block of the wellbore in an oil–gas two-phase flow system to have a more accurate evaluation of gas entry effect and a better estimation of oil and gas production on the surface.