Wellbore Flow
Last updated
Last updated
Description
Wellbore simulation was based on the T2WELL (Pan, et al. 2010). There are several versions of T2WELL for different EOS modules. In TOUGH4, wellbore simulation is generalized for any EOS modules and fully integrated into the simulator.
The approach we use for describing wellbore flow is based on the drift-flux model (DFM) (Shi et al., 2005) for transient two-phase non-isothermal flow. Conservation equations for mass, momentum and energy under different flow regimes in the wellbore are solved numerically while wellbore heat transmission is handled semi-analytically. The discussion of these equations can be found in. The current model is designed for simulation of single- and two-phase flows of water-gas mixtures. Three-phase flow is simplified by combining "gas" and "non-aqueous" phases as a single gas phase in solving the velocities of wellbore flow. The conventional approach for calculating the mixture velocity in the drift-flux model (DFM) is often based on the steady-state pressure loss equation for wellbore flow (Brill and Mukherjee, 1999). To improve simulation performance in well-bore flow processes involving high fluxes, we have extended the DFM to include the transient terms of the momentum conservation equations in calculating the velocity from the pressure gradient.
In solving the mass and energy balance equations, the mass and energy flux terms need to be calculated at each Newtonian iteration from the most recently updated primary variables. Within the wellbore at each iteration, we calculate the mixture velocity using equation (4-45) first, and then calculate the gas velocity (Eq. 4-46). As for marching in time, the momentum conservation equation (Eq. 4-48) is solved semi-explicitly as
(7-38)
where, the superscripts n and n+1 indicate the previous and current time levels, respectively; is the time-step size, and DR is the total driving force given by
(7-39)
Normally, the pressure gradient caused by elevation change contributes from 80 to 95% of the total pressure gradient and the friction loss represents 5 to 20%, whereas the acceleration component is normally negligible and can become significant only if a compressible phase exists at relatively low pressures (Brill and Mukhmerjee, 1999). Therefore, the solution of Eq. 7-38 is more like an implicit formulation considering the above-normal pressure gradient components.
When the system reaches a steady state, Eq. 4-48 will be reduced to the pressure loss equation by
(7-40)
With the velocities calculated from the above equations, the fluid and heat fluxes between two adjacent well nodes, which are needed in calculation of mass/energy balances, can be obtained by
mass flux:
(7-41)
The total heat flux along the connection of nodes i and j, including advective and radial heat conduction terms, may be evaluated by
(7-42)
and heat loss/gain by lateral wellbore heat transmission is given by
(7-43)
where α is the thermal dispersivity of the surrounding formation.
In evaluating the flow terms in Eqs. 7-41 and 7-42, subscript ij + 1/2 is used to denote a proper averaging or weighting of advective mass transport or heat transfer properties at the interface or along the connection between two blocks or nodes i and j (j = i - 1 or i + 1). In addition, fully upstream weighting should be used in Eqs. 7-41 and 7-42 for numerical stability. With the calculated fluxes, the same discrete nonlinear equations (Eqn. 5-7) as other non-wellbore elements are used for mass balance calculation.
Input requirements
In a MPI parallel simulation with multiple wellbores, domain decomposition requires that all elements belong to a single well must be assigned to the same CPU. In order to distinguish the wells, it is required that the first three characters of the rock names for each well must be same (This is required only when you are using MPI for parallel simulation).
For "Elem1Elem2" well-well connection, ISOT=:
4 flow from Elem2 to Elem1 only, no flow from Elem1 to Elem2.
5 flow from Elem1 to Elem2 only, no flow from Elem2 to Elem1.
For "Elem1Elem2" well-formation connection, ISO=:
4 gas phase flow only, no liquid phase flow.
5 liquid phase flow only, no gas phase flow.
6 flow from Elem2 to Elem1 only, no flow from Elem1 to Elem2.
-1 ,-2,-3 no fluid flow in this connection, but heat transfer is accounted between Elem1 to Elem2.
IE(26) Checks whether wellbore flow turns direction.
0: off.
1: on.
IE(27) Selects calculation method for thermal conductance along wellbore (for wellbore simulation only)
0: no special treatment, in the same way as in porous media.
1: ignore the conductive heat flow.
2: consider conduction in well wall only.
3: Fully consider conduction in fluids and well wall.
IE(28) Accounts for mist flow (wellbore simulation only).
0: on.
1: off.
IE(52) Use the maximum change of primary variables as Newton iteration convergence criteria. This option is very sensitive to convergence behavior of wellbore simulation.
>=0: Turn off (default is off for wellbore simulation)
IE(62) For a well-formation connection, if IE(62)>0, d1 or d2 at the wellbore side will be set to be 0.0. This option could be sensitive for the heat exchange between wellbore and formation.
IE(64) For preventing oscillatory phase transitions. A larger IE(64) value represents that, once the system transitions to a different phase, it becomes more difficult to revert to the original phase condition. It can be in the range 1-10. Default IE(64)=2.
IE(65) Adding small artificial friction at near zero velocity condition to gain numerical stable condition.
0: on.
1: off.
IE(66) Two versions of function are implemented in TOUGH4 for calculating the heat loss through wellbore using analytical solution. The function is sensitive to the convergence for some non-isothermal simulations. User may select different version to achieve best performance.
0: Using (Ramey, 1962), including short time solution.
1: Using (Ramey, 1962), not including short time solution.
IE(67) Two versions of function are implemented in TOUGH4 for calculating the acceleration loss in a well. This function is sensitive to the convergence for some simulations. User may select different version to achieve best performance.
0: Newer version.
1: Older version.
where is the lateral area between wellbore and surrounding formation; is thermal conductivity (or overall heat transfer coefficient) of wellbore/formation; is ambient temperature; and f(t) is Ramey’s well heat loss function (Ramey 1962):
(7-44)
To evoke a wellbore simulation, users need to input well parameters through keyword "" and also need to turn on the wellbore simulation through keyword "", by setting parameter hWBM in record MODDE.3 to TRUE. In addition, the domain (rock) name for the wellbore cells must start with the letter "w" or "x", where "w" indicates normal (open) wellbore cells whereas "x" indicates the special wellbore cells either filled with porous medium or consisting of a bundle of smaller tubes. Wellbore cells are identified by the first character of their rock name ("w" or "x"). Multiple wellbores or multiple branches of a wellbore are allowed. The first cell of each wellbore must have a cell name starting with the character "#" or "*". The wellhead section must always be defined as the first wellbore cell.
T2WELL requires input of several parameters through keyword "SELEC" which is not allowed in TOUGH4 as it may conflict with input of some EOS modules. Input for these parameters must use keyword "WELLB". In T2WELL, input of some parameters for a specific wellbore section is through assigning special values to a ROCK associated to the section. This may not work anymore. Any parameters for a well section need to be inputted through "WELLB". For details, users may refer to "". The original l may also be very helpful.
In wellbore simulations , the "ISOT" (see data section ) is borrowed for defining some special flow conditions.
In T2WELL simulation, user-specified perimeter of a pipe section (two well-element connection) can be inputted through parameter "sigx" in "" data section, which is used to account for the additional pressure loss due to complicated geometry (e.g., elbow, joint, and other non-straight pipe) by assigning a larger value. This input method is still acceptable, if the parameter "perimeter" (in data Record ) is 0.0 for the both elements of the connection. For such a case, radiative heat transfer will be neglected for the well elements (sigx= 0.0). We suggest use "WELLB" for the input of user-specified perimeter of pipes.
Several options controlled by IE array may be useful in wellbore simulation. Some of these options may help in improving the model convergence behavior. Their inputs are through keyword . Followings are a list of most often used options in wellbore simulations:
<0: Turn on (see for details). Wellbore simulation may require tight criteria.