1 Introduction

Compared with conventional fossil energy, natural gas is cleaner and plays an increasingly important role in human daily life [1, 2]. As an energy fuel, the demand for natural gas varies greatly in a year. Generally, the gas consumption in summer is small, but in winter, the use of natural gas increases significantly, even exceeding the supply capacity of natural gas, resulting in gas shortages in many large cities in winter [3, 4]. Therefore, the particularity of transportation and supply has become a bottleneck for the effective utilization of natural gas. Underground natural gas storage can effectively adjust the peak-valley difference of gas consumption, solve the problem of urban gas shortages, and facilitate a timely response to gas transmission pipeline emergencies. This type of storage plays an increasingly important role in the process of natural gas supply and demand [5].

The century of development history of underground gas storage shows that natural gas loss occurs in the process of injection production and is one of the inherent properties of gas storage [6,7,8]. Due to the water barrier, low sweep efficiency and serious gas channelling, a large amount of gas is lost during the injection and production process. For example, most sandstone underground gas storage in China exhibits gas loss phenomena [9,10,11]. However, through scientific operation and reasonable control, gas loss can be reduced, which can effectively reduce economic losses and safety risks [12,13,14]. There are usually two methods for reducing gas loss during the operation of underground gas storage. One is the design of reasonable control measures to reduce the loss of natural gas through the prediction and evaluation of the amount of natural gas loss and its trends to reduce the additional gas loss and improve the economic benefits [15, 16]. The other is the accurate prediction of the sealing capacity of faults and caprocks to obtain the amount of gas leaked through them in order to prevent major safety accidents caused by natural gas loss and ensure the safety of natural gas energy, life and property [17]. At present, the level of China’s research on gas loss in underground gas storage is low and is only in its infancy. The loss of natural gas can be evaluated only qualitatively, not quantitatively. The calculation index of natural gas loss can only be calculated by the cumulative injection-production balance difference of the gas reservoir, which is very inaccurate [18]. Some researchers use monitoring data and numerical simulation methods to calculate the leakage of gas storage, but this is only a prediction method, and it has not been used in for actual gas storage operations [19]. These qualitative evaluations of the amount of natural gas loss cannot meet the requirements for the evaluation of the safe operation of underground gas storage, so it is necessary to carry out a quantitative study of natural gas loss in gas storage [20].

The gas loss of underground natural gas storage is the total amount of natural gas lost in the process of injection and production, and the loss rate is the ratio of the amount of gas lost to the amount of gas injected [21]. Natural gas loss can be caused by geological factors and engineering factors. Geological factors include the caprock and fault sealing ability, spill point position, microscopic flow, diffusion and dissolution of gas molecules. Engineering factors include the casing sealing of injection and production wells, ground venting of the gas injection and production system, and amount of gas carried by the condensate in the production separator. Under certain circumstances, the possible leakage of ground pipelines and equipment and natural gas leakage caused by sudden accidents are included in this category [22]. The loss caused by engineering factors is relatively small and can be accurately read with a ground flow metre. Geological factors are the main factors leading to gas loss in gas storage. In addition, the changes in the fluid properties, reservoir deformation and microfractures during high-speed injection and production can lead to gas leakage [23, 24]. This paper mainly focuses on the quantitative evaluation of natural gas loss caused by geological factors.

The main purpose of this paper is to establish a mathematical model of macroscale gas loss in underground natural gas storage to quantitatively characterize the gas lost through faults and caprocks. Starting with the formation mechanism of natural gas loss, first, the influence of trap sealing, wellbore sealing and reservoir microseepage on gas loss is analysed in this paper to determine the gas loss mode of water-invasion sandstone underground gas storage. Then, with multiple cycles of injection-production data analysis of the actual underground gas storage, the relationship between gas leakage and dynamic parameters is regressed to establish a mathematical model of gas loss. Finally, the established model is used to quantitatively evaluate the loss of the selected gas storage to provide effective guidance for preventing gas loss and improving injection-production operation efficiency.

2 Innovation and Method

At present, there are gas losses in the injection and production process of most of China's underground gas storage. Some of the lost gas can be recovered, but most cannot, which increases the uncertainty of underground gas storage operation and results in a serious waste of gas resources. The main reason why gas loss cannot be recovered is that the types of loss are complex. It is difficult to describe them clearly and calculate their volume; therefore, it is impossible to effectively tap their potential. In this paper, based on a large number of analysis results of underground gas storage operation, combined with experimental data of injection-production seepage mechanisms, a theoretical model of inventory analysis and prediction is established to predict the natural gas loss under the interference of multiple factors. The model can be used to analyse the mode and type of gas leakage of underground gas storage reconstructed from abandoned gas reservoirs and to accurately calculate the gas loss during operation. Therefore, the model can effectively reduce the gas loss of underground gas storage, give early warnings of gas leakage risks, and improve the economic benefits and injection-production safety of underground gas storage. This method has been applied to many underground gas storage systems and has achieved good results.

3 The Gas Loss Mechanisms Related to Geological Factors

The loss mechanism of underground natural gas storage is divided into macroscopic displacement loss and microscopic flow loss [25]. The macroscopic displacement loss is mainly composed of the leakage caused by trap and wellbore seal failure and the loss caused by gas injection to the marginal low-permeability zone or water body. The microscopic flow loss is mainly caused by the dissolution of natural gas in formation water and remaining oil diffusion and the closed gas in micropore throats. This part of natural gas is not truly lost gas; it can be recovered during the gas storage operation process and can be defined as general natural gas loss [26].

3.1 Gas Loss Caused by Trap Seal Failure

There are three main ways for natural gas to diffuse and leak through caprock. First, gas molecules in the free state percolate out of the reservoir according to Darcy's law through unconsolidated areas in the caprock. Second, gas molecules dissolved in the pores of the capstone migrate under hydrodynamic conditions. Third, gas molecules diffuse and migrate through the pore space of the caprock layer. After a long time of accumulation and compaction, the possibility of gas migration through seepage is small, and the loss is mainly due to diffusion [27]. Although the diffusion rate is slow, the diffusion loss cannot be ignored during the 50-year cycle injection-production operation of gas storage (Fig. 1a). Trap faults play a decisive role in the lateral migration of fluids in the process of natural gas accumulation. In the process of gas reservoir development, as the formation pressure decreases, most of the faults are in a closed state [28]. However, after gas storage is rebuilt, due to the severe alternating loads during the periodical injection and production process, a large pressure difference is formed locally in the fault, and the sealing ability is gradually weakened, which may cause the fault to open and result in natural gas leakage (Fig. 1b). Leakage loss at the overflow point refers to the fact that the injected gas is rapidly directed to the nonpiston in the lower part of the structure and overflows from the structure when the gas rushes to the trap overflow point during the gas injection process of gas storage, affected by factors such as high gas injection pressure, limited structural trap height, and gentle structure. (Fig. 1c).

Fig. 1
figure 1

Leakage mechanism of the multicycle trap sealing failure of gas storage

3.2 Gas Loss Caused by Wellbore Sealing Failure

In the process of injection and production, gas storage wells experience severe alternating loads, which causes slight elastic deformation of the inner wall of the wellbore or surrounding rocks (Fig. 2). The long-term effect of this alternating stress leads to a series of problems, such as cement sheath rupture, casing thread leakage, and casing corrosion damage, which causes gas leakage from the wellbore. Leaked natural gas can enter the sand layer and water layer it passes through until it reaches the ground and is lost to the atmosphere. This not only results in the loss of natural gas but also causes environmental accidents and even safety accidents [29].

Fig. 2
figure 2

Microdeformation of the wellbore in underground gas storage during injection and production

3.3 Gas Loss Caused by Wellbore Sealing Failure

Under the action of the displacement pressure difference, part of the injected gas migrates to the well control external area, reservoir edge, low-permeability zone or gas–water transition zone and cannot always be recovered due to the limited well pattern control, small pressure gradient, and limited gas recovery time rate. This part of natural gas should be considered to be the loss of gas storage because from the operational and economic point of view, this part is excluded from the working gas, equivalent to the loss of natural gas [30]. The actual injection and production conditions of many underground gas storage facilities operating in eastern China show that the loss of this kind of natural gas accounts for approximately 5% of the entire working gas volume and has resulted in extensive economic losses.

Figure 3 shows the generation mechanism and occurrence state of lost gas in sandstone underground gas storage. Five injection and production wells in the gas reservoir are in normal operation. There is no obvious gas invasion in monitoring wells J2, J4 and J5 during the injection and production process of underground gas storage, but there is an obvious gas channelling phenomenon in J3 and J1. The main seepage direction of the fluid is from northwest to southeast, and a high permeability channel is formed in this area. In this channel, the most likely locations of lost gas include gas in physically isolated areas. If the bottom hole pressure (BHP) of well J1 changes little during gas production, this indicates that there is no pressure response in this area and that it is a lost gas accumulation area.

Fig. 3
figure 3

Gas loss during the injection-production process and displacement

3.4 Gas Loss Caused by Microscopic Dissolution and Diffusion

In gas storage that is converted from a water-containing gas reservoir or a gas-cap oil reservoir, the oil and water in the gas–water transition zone and the gas-oil transition zone are both undersaturated due to the influence of gas reservoir development or gas storage depressurization. During the gas injection process, natural gas molecules diffuse into the marginal waters or remaining oil. Due to the dissolution of natural gas in water and oil, the gas dissolves in the bound water and residual oil and is swept away, resulting in natural gas loss [31].

3.5 Gas Loss Caused by Microscopic Conditions

During the gas injection process, the gas at the top of the gas storage that is converted from a reservoir with edge water migrates downwards quickly, displacing the remaining oil and the edge water, thereby achieving the purpose of capacity expansion. Affected by factors such as the reservoir physical properties, capillary force, fluid type and wettability, injected gas flowing at a high speed forms a certain amount of water-entrained gas or oil-in-gas in the coexistence area of multiphase fluids. These gases have difficulty forming a continuous gas flow and cannot be produced during the gas production process, resulting in gas loss [32]. The visual displacement experiment of the glass etching model can intuitively reveal the interaction between fluids during the high-intensity injection-production process of underground gas storage. First, according to the pore characteristics, throat characteristics, clay mineral types and wettability of the core of the gas reservoir, the rock micropore structure model is established, and the pore and throat morphology are etched on the glass surface according to a computer model. Then, the three steps of water saturation, oil displacing water and water displacing oil are carried out. When the displacement efficiency is the same as that before the construction of underground gas storage, oil displacement stops, and the system is held until the fluid is stable; finally, gas injection and production experiments are carried out to observe the trend of the oil–gas-water triple-phase during and at the end of displacement. According to the experimental results, the types of lost gas are classified and characterized under microscopic conditions [33]. In the final state, part of the gas is blocked by oil to form lost gas, and the other part is blocked by water to form lost gas; both of these are microscale closed gases (Fig. 4).

Fig. 4
figure 4

Fluid distribution trend in the multicycle injection-production gas storage experiment

4 Mathematical Model for Natural Gas Loss Prediction

First, based on the production and monitoring data of the multiperiod injection and production of gas storage, this paper analyses the microseepage, solution diffusion, abnormal leakage and macrodisplacement in the process of gas storage injection and production in detail. Then, by means of gas reservoir engineering, physical experiments and numerical simulations, a mathematical model of natural gas loss evaluation in the process of the injection and production of underground gas storage is established to realize the quantitative evaluation of gas loss in underground gas storage.

4.1 Total Loss of Natural Gas

Based on the prediction method of the technical index of the gas storage inventory [34], the cushion capacity in a certain injection-production cycle of gas storage is calculated. The natural gas loss Qsh is the difference between the cushion capacity of the two cycles, and the ratio of the cushion change to periodic gas injection is the loss rate Esh(i).

$${{Q}_{sh}=G}_{min\left(i\right)-}{G}_{min\left(i-1\right)}$$
(1)
$${E}_{sh(i)}=\frac{{G}_{min\left(i\right)-}{G}_{min\left(i-1\right)}}{{Q}_{(i)}}$$
(2)

where

Qsh(i): Total loss at the i-th cycle, 108 m3; Esh: Microscopic loss rate of the physical simulation;

Qsh: Total loss, 108 m3; Gmin(i): Whole working gas capacity of the i-th cycle, 108 m3;

Q(i): Injection and production capacity of the i-th cycle, 108 m3.

4.2 Gas Loss Caused by Microscopic Conditions

Through the measurement of the relative permeability of multiple rounds of gas–water mutual flooding in the laboratory and the analysis of movable fluid nuclear magnetic resonance, the trends of bound water Swi(i) and residual gas saturation Sgr(i) during multiple rounds of gas–water mutual flooding are determined. Therefore, the efficiency of reservoir space utilization can be evaluated, and the microscale closed gas loss of natural gas can be calculated.

In cycle i, the gas storage pore space utilization rate EP(i) can be characterized as follows:

$${\mathrm{E}}_{\mathrm{p}(\mathrm{i})}=\frac{1-{\mathrm{S}}_{\mathrm{wi}(\mathrm{i})}-{\mathrm{S}}_{\mathrm{gr}(\mathrm{i})}}{1-{\mathrm{S}}_{\mathrm{wi}}}$$
(3)

where

Ep(i): The gas storage pore space utilization rate; Swi(i): Initial water saturation of the i-th cycle;

Sgr(i): Residual gas saturation of the i-th cycle; Swi: Initial water saturation.

According to the actual multiperiod gas injection-production dynamic data, the microscopic conditions of the gas loss Qws(i) in the i-th period are:

$${\mathrm{Q}}_{\mathrm{ws}(\mathrm{i})}={\mathrm{E}}_{\mathrm{p}(\mathrm{i})}*{\mathrm{Q}}_{\mathrm{in}}$$
(4)

where

Qws(i): Microscopic gas loss, 108 m3; Qin: Multicycle actual gas injection quantity, 108 m3.

4.3 Microscopic Dissolution Diffusion Loss

Using numerical simulation technology, a 3D fine geological model of gas storage can be established to describe the gas–water mutual flooding in the process of gas injection and production and to quantitatively describe the water volume Vw of the multiperiod gas–water transition zone and the remaining oil volume involved in dissolution and saturation Vo changes. The dissolved gas loss of natural gas in water and residual oil can be characterized as follows:

$${\mathrm{Q}}_{\mathrm{wr}(\mathrm{i})}=\frac{{\mathrm{V}}_{\mathrm{w}(\mathrm{i})}*{\mathrm{R}}_{\mathrm{w}}}{{\mathrm{B}}_{\mathrm{g}}}$$
(5)
$${\mathrm{Q}}_{\mathrm{wo}(\mathrm{i})}=\frac{{\mathrm{V}}_{\mathrm{o}(\mathrm{i})}*{\mathrm{R}}_{\mathrm{o}}}{{\mathrm{B}}_{\mathrm{g}}}$$
(6)

where

Qwr(i): Gas volume dissolved in water, m3; Vw(i): Water volume of the i-th cycle, m3;

Rw: Gas solubility in water, m3/m3; Qwo(i): Oil volume dissolved in water, m3;

Vo(i): Oil volume of the i-th cycle, m3; Ro: Oil solubility in water, m3/m3;

Bg: Gas volume coefficient, m3/m3.

The solubility Rw of natural gas in water and the secondary solubility saturation in the remaining oil are based on laboratory test results.

4.4 Caprock Diffusion Loss

The diffusion loss process of gas through the caprock can be characterized as a mathematical formula, but a reference surface needs to be selected [35]. According to the nature of underground gas storage, the caprock nearest to the gas reservoir can be selected as the reference surface, and then the process can be simplified (Fig. 5).

Fig. 5
figure 5

Multicycle caprock diffusion mechanism of gas storage

After the reference surface at the top is selected, the gas diffusion process can be simplified as a one-dimensional problem, and the formula is as follows:

$$\frac{\partial C}{\partial t}=D\frac{{\partial }^{2}C}{\partial {x}^{2}}$$
(7)
$$ C = 0~\;~0 < X < L,\;t = 0 $$
$$ C_{{|x = 0}} = C_{0} ~~\quad ~t > 0 $$
$$ C_{{|x = L}} = C_{1} \;~t > 0 $$

The above equation is solved, and the gas concentration due to diffusion at any point in the caprock layer is:

$$\mathrm{C}={C}_{0}+\frac{1}{L}\left({C}_{1}-{C}_{0}\right)X+\sum_{n=i}^{\infty }\frac{2}{n\pi }\left[{C}_{1}{\left(-1\right)}^{n}-{C}_{0}\right]sin\left(\frac{n\pi X}{L}\right){e}^{-{n}^{2}{\pi }^{2}Dt/{L}^{2}}$$
(8)

According to the diffusion geological model and boundary conditions, the amount of natural gas lost from the caprock can be simplified as follows:

$${Q}_{ck}=\frac{{C}_{0}Dt}{L}+\frac{2L{C}_{0}}{{\pi }^{2}}\sum_{n=1}^{\infty }\frac{1}{{n}^{2}}\left(1-{e}^{\frac{-{n}^{2}{\pi }^{2}Dt}{4{L}^{2}}}\right)$$
(9)

where

Qck: Gas diffusion per unit area of caprock, m3/m2; D: Diffusion coefficient, cm2/s;

C0: Initial hydrocarbon concentration, m3/m3; t: Diffusion time, s; L: Cover thickness, m.

The diffusion coefficient D in the equation can be obtained through actual measurement, and the diffusion time and caprock thickness can be obtained according to the actual geological conditions. The initial interface concentration C0 of the reservoir cap can be represented by the concentration of natural gas in the pore water of the caprock:

$${C}_{0}={C}_{g}\bullet \varphi $$
(10)

4.5 Abnormal Loss from Caprock and Faults

The monitoring systems of domestic gas storage currently built are relatively backward, lack monitoring data, and use imperfect evaluation methods for natural gas leakage losses. Research on the operation of gas storage at home and abroad has shown that the change rate of gas storage and the operation cycle exhibit exponential decreases (Fig. 6).

Fig. 6
figure 6

Variation curve of the air cushion gas loss rate of gas storage

Based on the inventory evaluation method of gas storage, the actual change rate of the cushion gas can be compared with the abnormal change in the theoretical curve, and the interpolation between them is the abnormal loss of natural gas. The formula is expressed as follows:

$${Q}_{l(i)}={Q}_{(i)}*\left({E}_{sh(i)n}-{E}_{sh(i)}\right)$$
(11)

where

Ql(i): Abnormal gas leakage of the i-th cycle, 104 m3.

4.6 Macroscopic Displacement Loss

In the process of high-speed and high-strength injection and production of gas storage, the control radius of the gas well is relatively small due to the limitation of the physical properties of the reservoir and the time rate of gas recovery. Therefore, the inventory in the uncontrolled area of gas wells cannot be converted into working gas, as it exists in gas storage in an unusable way. This gas is difficult to use under the current well pattern conditions, making it equivalent to the loss of natural gas from an operational management point of view. Generally, the reservoir heterogeneity in sandstone gas storage is very strong, and the well control radius of gas storage under high-speed injection and production is generally irregular. If the conventional gas reservoir engineering method is used to calculate the gas loss, the error would be large. In view of this, a new method to calculate the gas loss is proposed and used in this paper: the total amount control method. In the calculation process, the total loss Qsh is deducted from the results of Formulas (4), (5), (6), (9) and (11). The new formula can be expressed as follows:

$${Q}_{z}={Q}_{sh}-{Q}_{L}-{Q}_{ws}{-Q}_{ck}-{Q}_{wo}-{Q}_{wr}$$
(12)

where

Qz: Natural gas loss caused by gas injection, 104 m3.

5 Application Examples

5.1 Overview of the Application Area

A representative underground gas storage (BZNB underground gas storage) was selected as an example to calculate the loss of natural gas using this new method. This underground gas storage was reconstructed from an abandoned edge water gas reservoir in 2003. The burial depth of the BZNB underground gas storage is 2890 m, its original formation pressure is 30.5 MPa, its reservoir average permeability is approximately 100.7 × 10–3 µm2, and its average porosity is 17.4%. The designed reservoir capacity of the BZNB underground gas storage is 2.45 × 108 m3, and the designed operating pressure ranges from 13 MPa to 30.5 MPa. Since the construction of the reservoir, it has experienced 15 injection-production cycles, with a total of 7.81 × 108 m3 of gas injected and 6.77 × 108 m3 of gas produced.

5.2 Natural Gas Loss Calculation

The mathematical model of this paper is used to calculate the natural gas loss of the BZNB underground gas storage in multicycle operation. The calculation results are shown in Table 1.

Table 1 Statistical table of the prediction results of gas loss by multicycle geological factors

5.3 Natural Gas Loss Analysis

(1) Natural gas loss is an inherent attribute of gas storage and accompanies the entire life cycle. At the beginning of the construction of the gas storage, with the extrapolation of the gas flooding front, a large amount of injected gas enters the edges, the water areas, the low-permeability areas and the fine pore throats. These parts of natural gas stay in the reservoir in the form of unused inventory and cannot be recovered, resulting in the loss of natural gas. As gas storage transitions from a rapid expansion period to a stable or even stagnant expansion period, the natural gas loss rate decreases rapidly as a power function and stabilizes at approximately 1% without abnormal gas leakage (Fig. 7).

Fig. 7
figure 7

Multicycle loss rate and loss rate trend of H gas storage

(2) Macroscopic displacement loss is the main component of natural gas geological loss in gas storage. If there is no gas storage leakage, macrodisplacement loss mainly occurs in the gas storage capacity expansion period. As the injection-production well pattern is improved and the expansion speed slows, the loss decreases year by year. The amount of macroscopic displacement loss is relatively large, accounting for 98% to 99% of the total loss. The microscopic seepage loss is much lower, mainly due to the closed gas formed by the reservoir micropores, accounting for 1–2% (Fig. 8).

Fig. 8
figure 8

Composition and proportion of multicycle losses in BZNB underground gas storage

(3) There is some natural gas leakage through faults in BZNB underground gas storage, which has been verified by engineering verification methods. During the operation period from 2011 to 2012, the loss rate of BZNB underground gas storage increased significantly. Therefore, it is judged that it has abnormal trap leakage, and the periodic leakage volume is calculated to be 40–5800 × 104 m3 per cycle. Through the evaluation of the trap tightness, it is believed that fault L in the northwestern part of the gas reservoir may be open. Through the evaluation of the trap tightness, it is believed that the L fault in the northwestern part of the gas reservoir may be open.

The sampling test results of well BXZ-1 show that the gas in the well is injected dry gas, which is channelled through the fault gas. It is also verified that fault L is open; in addition, it can be seen from the pressure change pattern diagram (Fig. 9a) that the pressure changes on both sides of the fault during injection and production have a good correlation, indicating that the fault is very closed. During the period from 2015 to 2016, a new adjustment measure was implemented in this gas storage, that is, to reduce the gas injection intensity of the injection and production wells near fault L, control the injection pressure difference, and prevent gas leakage under high pressure. The pressure change pattern at this time (Fig. 9b) shows that the pressure change on both sides of the fault is significantly reduced, indicating that the amount of gas leaking through it has been reduced. The current gas leakage is only 12 × 104 m3 per cycle, and the rate has dropped to 7.7%. This result shows that by adjusting the injection-production parameters of the well, the gas loss through fault L can be controlled, which reduces most of the gas loss of BZNB underground gas storage, improving its operation efficiency.

Fig. 9
figure 9

Changes in pressure at different stages of BZNB underground gas storage

6 Conclusions

(1) Natural gas loss is an inherent characteristic of gas storage in the injection and production operation, accompanying the entire lifecycle and gradually decreasing with increasing operation cycles. There are two main mechanisms of gas loss: macroloss and microloss. The former is the main component of the natural gas geological loss of underground gas storage, accounting for more than 98% of the total gas loss in China. Preventing macrogas loss is the primary target for improving the operation efficiency of underground gas storage.

(2) Based on the basic theories of gas–water flooding and diffusion seepage, aimed at the phenomena of microseepage, dissolution diffusion, abnormal leakage and macroleakage in the process of injection and production of underground natural gas storage, a quantitative gas loss evaluation mathematical model is established to calculate the natural gas loss of the BZNB underground gas storage. The calculation result is accurate; there is little difference between the results and the actual statistical gas leakage, which proves that the accuracy and reliability of this model are very high and can meet the requirements of practical application.

(3) The research results provide a good way to treat gas loss in BZNB underground gas storage. This method can reduce the natural gas loss of underground gas storage, provide early warnings of leakage risk, and improve the economic benefits and injection-production safety of gas storage.