Appendix A. Acidic Gas Annular Flow Model
Mass and Momentum Conservation Equations
The solubility is calculated using the equation of state method proposed by (Hao et al., 2022; Xiangrui et al., 2023).
where:
is the molar concentration of gas
i in the liquid phase,,,,
;
is the mole fraction of gas
i in the gas phase, dimensionless;
P is the absolute pressure, MPa;
T is the absolute temperature, K;
is the chemical potential of gas
i in the liquid phase;
is the chemical potential of gas
i in the gas phase;
R is the molar gas constant, with a value of
;
is the fugacity coefficient, dimensionless;
is the activity coefficient, dimensionless.
A physical model, as shown in Figure A-1, is established. Taking the upward flow direction in the annulus as the positive direction, a differential segment dz is analyzed, with a cross-sectional area of A.
Figure 1.
Mass conservation cell physical model.
Figure 1.
Mass conservation cell physical model.
According to the law of mass conservation: Influx Gas + Formation-Generated Gas + Gas Released from Drilling Fluid − Outflow Gas = Total Change. The terms are detailed in
Table A1.
Table A1.
Mass components of dz cell.
Table A1.
Mass components of dz cell.
| Gas Mass Inflow at the Lower Surface |
|
| Gas Mass Generated by Formation within the Differential Element |
|
| Gas Mass Released from Drilling Fluid within the Differential Element |
|
| Free Gas Mass Outflow at the Upper Surface |
|
| Total Change within the Differential Element |
|
Where: A is the cross-sectional area of the annulus, m2; is the density of free gas, ; is the upward velocity of free gas,; is the volume fraction of free gas, dimensionless; is the mass of gas generated by the reservoir per unit depth per unit time,; is the upward velocity of the liquid phase, ; is the volume fraction of the liquid phase, dimensionless; is the solubility of gas in the drilling fluid,; is the density of gas under standard conditions, .
The continuity equation for the mixed acidic gas is:
Similarly, the continuity equation for the liquid phase is:
where:
ρl is the density of the liquid phase,
.
According to the law of momentum conservation, the combined effects of fluid weight, acceleration, viscous friction between the fluid and the wellbore wall, and momentum exchange between the mixed acidic gas and the drilling fluid within the differential element are balanced, yielding the total momentum equation:
where:
Fr is the annular frictional pressure drop
, MPa.
Auxiliary Equations and boundary conditions(1) Drift Flux Model Physical Equation:
where:
C0 the gas distribution coefficient, dimensionless;
vrg is the gas-phase drift velocity, m/s.
(2) Gas Phase Equation of State:
In this equation, Z is the compressibility factor, dimensionless.
(3) Flow Pattern Identification and Friction Calculation:
The flow pattern identification and friction calculation formulas used in this study are shown in
Table A2. The specific derivation process and calculation of relevant parameters are introduced in the studies by(Hasan and Kabir, 1988; Hasan and Kabir, 1992).
Table A2.
Flow pattern discriminant and friction calculation formula.
Table A2.
Flow pattern discriminant and friction calculation formula.
| Flow Pattern |
Identification Criterion |
Friction Calculation |
| Single-phase Flow |
Influx gas completely dissolved |
|
| Bubble Flow |
|
|
| Slug Flow |
|
|
| Churn Flow |
|
| Annular Flow |
|
|
Where: is the apparent velocity of the gas phase, m/s; is the apparent velocity of the liquid phase, m/s; is the bubble rise limit velocity, m/s; is the gas-liquid surface tension, N/m;
(4) Acidic Natural Gas Compressibility Factor
The method used when the pressure is less than 35 MPa and greater than or equal to 35 MPa is shown in
Table A3.
Table A3.
Calculation formula of compression coefficient of acid natural gas.
Table A3.
Calculation formula of compression coefficient of acid natural gas.
| Pressure |
The calculation formulas |
|
|
|
|
|
|
Where: is the critical temperature of the gas, K; is the critical pressure of the gas, MPa; is the pseudo-critical temperature of the gas, K; is the pseudo-critical pressure of the gas, MPa; is the pseudo-critical density of the gas, kg/m3.
The initial conditions refer to the fluid flow state and pressure distribution in the annulus at the initial moment. When there is no acidic gas invasion into the annulus at
t=0, the fluid in the annulus is a single-phase flow. The flow state and pressure distribution in the annulus at any given time are determined by the boundary conditions. The initial conditions and boundary conditions are shown in
Table A4.
Table A4.
Initial and boundary conditions.
Table A4.
Initial and boundary conditions.
| Initial Conditions |
Boundary Conditions |
|
|
Where: P(t, N) is the pressure at the wellhead node, MPa.
Appendix B. Derivation of Governing Equations for Model Solution
- (1)
Single-Phase Gas Blowout Model
Considering a single bubble representation of gas in a riser, the pressure in the gas relates to the gas volume as:
where:
Mg is the gas mass and
Cg(T) is the sound velocity of the gas, depending on temperature
T.
Consider a control volume covering the gas bubble and an incompressible liquid column above. Setting the liquid velocity equal to the head of the gas bubble, we can employ a momentum balance the gas and liquid of the control volume to get:
where:
hg is the distance of the bubble head to the top of the riser, m;
Pg is the pressure in the gas bubble (assumed uniform), MPa;
Pb is the applied back-pressure (equal to atmospheric when no riser gas handler is used), MPa;
g is the acceleration of gravity, m/s
2.
Expressing the gas volume rate of change as the difference in velocity between the bubble head
vG and tail
Cm we get the system of equations.
And the closure relations:
where:
Q0 is the flowrate into the bottom of the riser.
We note that the mode associated with the acceleration, equation (B-1), would be expected to have a large eigenvalue (meaning it tends rapidly to its equilibrium) due to acceleration terms tending to be small is such a context. The consequence is that the system may become stiff, and some care must be taken in implementation. Immediate equilibrium could be imposed on (B-1) to avoid this, and without expecting significant loss of accuracy, however, we will avoid doing this as the resulting expression becomes quite involved.
Finally, using
to denote the position of the tail of the gas bubble, we can write the pressure at the BOP as:
- (2)
Grid Division.
The spatial domain is divided using a fixed-step grid division method. The step size and total number of spatial grids in the defined domain are given by:
where: .
For the time domain, non-uniform step sizes can be used by dividing the spatial grid step size by the current grid fluid velocity. The step size for each time grid and the total number of time grids are given by:
where: .
- (3)
The difference equation
Difference equation for the gas phase continuity equation:
Difference equation for the liquid phase continuity equation:
Momentum equation
The difference format for the momentum equation is:
where:
- (4)
Boundary conditions
The discretization of the initial conditions and boundary conditions is shown in
Table A5.
Table A5.
Dispersion of initial conditions and boundary conditions.
Table A5.
Dispersion of initial conditions and boundary conditions.
| Dispersion of initial conditions |
boundary conditions |
|
|