1 Introduction

Before the excavation of the underground rock mass, the surrounding stress field is in a relatively stable and balanced state. After excavation disturbance, the rock mass stress will be redistributed within a certain range. Rock deformation occurs in the process of stress distribution. Low strength or stress concentration leads to local failure, resulting in the overall instability of the project (Feng and Jiang. 2015; Fu et al. 2017a, b; Li et al. 2014). The essence of the instability of goaf is the overall instability caused by the damage and fracture of surrounding rock under the action of stress. The stress state of rock mass changes, which is manifested as the unloading effect. When the unloading degree exceeds the bearing limit of rock mass, the unloading failure occurs (Fu et al. 2017a, b; Fu et al. 2018; Huang and Huang. 2014).

In actual mine engineering, many geological disasters are closely related to water (Al-Shalabi and Sepehrnoori. 2016; Zilong et al. 2016). Therefore, the influence of water on the mechanical properties of rock must be considered in the excavation of underground rock mass. Numerous academic studies have shown that the strength and hardness of saturated sandstone are significantly lower than those of dry sandstone (BV 2005). By analyzing the mechanical properties of dry sandstone and water-saturated sandstone under different loading rates, it is concluded that the strength of saturated sandstone is lower than that of dry sandstone, and the difference in rock strength between the two states decreases with the increase of deformation rate (Teng and Peng. 2020). A series of triaxial compression tests of dry sandstone and saturated sandstone have been carried out. And it is found that the cohesion, internal friction angle and elastic modulus of sandstone decrease while Poisson's ratio increases after water saturation. Saturated sandstone is more prone to crack during loading, and the damage is relatively mild. For dry sandstone, rock burst often occurs (Diyuan et al. 2019).

Compared with the conventional mechanical loading mode, the stress state changes of rock mass under the unloading effect are obviously different, and there are obvious differences in the change of rock mass mechanical parameters, rock mass deformation and crack propagation mode (Huang and Li. 2014; Meng et al. 2016; Xue et al. 2021). The strength deterioration of rock mass at the macro scale is manifested as the decrease of cohesion and the increase of internal friction angle (Zhang et al. 2015), and at the mesoscopic scale is manifested as the uneven expansion of internal cracks. The strength deterioration of rock is the essential reason for the instability and failure of the rock mass. In view of such mechanical problems, carry out research on the mechanical characteristics of rock under unloading conditions, analyze the change characteristics of fracture structure in the rock mass, and deeply explore the damage evolution process and failure mechanism of rock mass, which is conducive to accurately reveal the unloading deformation and failure mechanism of surrounding rock in goaf, analyze and predict the stability of goaf.

At present, a series of studies on the mechanical properties of rock unloading have been carried out by many scholars. Based on the occurrence environment of rock mass and the characteristics of excavation disturbance, the deformation and failure characteristics of rock under different stress states were analyzed by means of an indoor test, theoretical research and numerical simulation. Rock mechanics test under confining pressure with different unloading rates and numerical simulation analysis were carried out. They found that the greater the unloading rate, the more splitting cracks and more complete failure, and the failure mode of rock changes from shear failure to tensile fracture (Huang and Li. 2014; Kang et al. 2020; Li et al. 2019; Zhang et al. 2018). The mechanical tests of rock under different unloading conditions were carried out to study the characteristics of rock deformation and failure. The results show that the non-uniform deformation of rock was concentrated on the side during unloading failure, and the phenomena of deformation, fracture and fragment ejection occurred, which provided a theoretical basis for unstable failure and rock-burst disaster in the unloading process of surrounding rock (Ding et al. 2016; Duan et al. 2019; Zhao et al. 2014). The unloading test of sandstone under different confining pressure was carried out, and the relationship between crack propagation characteristics and confining pressure was analyzed. It indicates that the crack closure stress, crack initiation stress and crack damage stress of sandstone gradually increase with the increase of confining pressure level (Chen et al. 2020). Through the constant axial pressure unloading confining pressure test of sandstone, it was found that the axial deformation, failure confining pressure and shear fracture energy in the process of failure are positively correlated with the initial confining pressure, the amount of dilatancy, dilatancy velocity and radial deformation are negatively correlated with the initial confining pressure, and the damage velocity in the unloading stage is significantly greater than that in the loading stage (Hou et al. 2021).

NMR testing system can quantitatively analyze the number and dimension variation of pores with different sizes in rock, which is widely used in the study of meso internal damage of rock (Alam et al. 2014; Olatinsu et al. 2017; Zhou et al. 2021a, b). To study the unloading characteristics of marble under different stress conditions, NMR technology was used to obtain the parameter characteristics such as porosity and T2 spectrum distribution of rock samples, so as to carry out the meso study of the change of fracture structure in rock and the influence of initial stress on fracture propagation (Hu et al. 2014; Zhou et al. 2014a, b, 2018a, b). The pore structure was characterized by NMR, and the pores were divided into micro pores, secondary pores and main pores (Zhang et al. 2021a, b). Based on NMR technology and mechanical test of sandstone under different conditions, rock meso damage mechanism, T2 cut-off characteristic analysis, pore size distribution change, water migration law were deeply studied (Chu et al. 2021; Gao et al. 2017; Li et al. 2020; Lyu et al. 2020; Shen et al. 2020). The porosity and pore size distribution of sandstone in different chemical solutions were measured by NMR technology, and the signal variation law of water in pores with different sizes was obtained by inversion (Lin et al. 2020).

The research on the damage evolution model is mainly based on the theory of continuum mechanics. The damage variables of rock are introduced from the weakening of some mechanical parameters and internal defects, and the damage evolution model was deduced from the damage variables. The internal instability mechanism was deeply studied through the rock damage evolution model (Barsanescu. 2015; Fu et al. 2020). The mechanical properties of strength deterioration, damage evolution law, overall instability failure mechanism and constitutive model of the sample were analyzed by acoustic emission and other test methods (Wang et al. 2020; Wang et al. 2021a, b, c; Wang et al. 2022a, b). The change laws of energy dissipation and secant modulus during unloading were defined and analyzed, and the key stages of rock damage evolution were effectively distinguished based on the change of damage index (Dai et al. 2018). Rock mechanics tests with different unloading rates were carried out to analyze the deformation and damage evolution process of surrounding rock under the condition of excavation and unloading. The results show that the deformation and damage of surrounding rock after unloading are generated and accumulated in the maintenance stage (Hou et al. 2020a, b). The nonlinear evolution law of deformation and damage of sandstone under conventional triaxial loading and unloading was studied, and the damage evolution equation and constitutive model of sandstone under conventional loading and unloading were established by deriving the energy balance equation (Zhou et al. 2021a, b).

Based on the above research methods and results, there have been abundant research results on rock unloading mechanical properties, the application of NMR technology in the rock field and the establishment of a damage model. However, there are relatively few studies combining NMR technology with an unloading test to analyze the changes in saturated rock fracture structure and the characteristics of mechanical parameters at the same time. The complex meso fracture structure in rock leads the damage evolution process and deformation and failure of rock and determines the macro mechanical properties and failure characteristics of the rock. The meso damage of rock is manifested as the change of pore and the expansion of rock fracture. The change in the distribution of porosity and pore size reflects the meso damage of rock. In this paper, the sandstone in the strong aquifer of a mine in Zigong, Sichuan was taken as the research object, and the NMR test system was used to carry out the saturated rock unloading mechanical test, to study the change characteristics of rock porosity and T2 spectrum curves under different stress unloading conditions, quantitatively analyze the generation, expansion and penetration process of rock internal fractures, analyze the change of rock internal fracture structure and meso damage evolution law, and establish the damage model suitable for rock NMR law based on the damage theory. The research results provide experimental data for the study of the damage mechanism of unload rock mass, and have important reference significance for solving engineering geological problems in a similar geological environment (such as confining pressure unloading instability process in goaf, excavation failure of water-rich engineering rock mass, etc.).

2 Test Principle and Procedure

2.1 Samples Preparation and Test Equipment

The test rock samples were taken from the sandstone at a depth of 40 m in a mine in Zigong, Sichuan Province. Most of the mining area is a semi-hard rock formation, which is composed of the sand and mudstone of the Shaximiao Formation of the Jurassic system. The sandstone accounts for about one-third. The structure of sandstone is fine-grained, mostly argillaceous cementation and hard. The climate in the sampling project area is warm and humid, and the surface drainage is relatively developed. The development depth of shallow freshwater in the area is more than 100 m. The aquifer where the sampling site is located is mainly sandstone, with abundant fresh water, which has a certain impact on the construction excavation. According to the “code for rock test of water conservancy and hydropower engineering”, the rock is processed into a standard cylindrical sample with a diameter of 50 mm and a height of 100 mm (Fig. 1). Samples with uniform apparent distribution, similar quality, height, diameter, longitudinal wave velocity, initial porosity and T2 spectrum distribution are selected from a batch of rock samples for test. The uniaxial compressive strength of the rock in the dry state is 76.98 MPa, and the basic mechanical property data in the saturated state are shown in Table 1. The testing machine and loading rate used in the uniaxial and triaxial tests are the same as the subsequent unloading tests. The relevant parameters are as follows: the confining pressure loading rate is 0.1 MPa/s; The axial pressure loading rate is 0.25 MPa/s.

Fig. 1
figure 1

Sandstone samples

Table 1 Conventional mechanical parameters of saturated sandstone

The main experimental instruments used in the test are ZYB-II vacuum pressure saturation device, which is used to saturate the rock to achieve full saturation; mesoMR23-060H-I core NMR analyzer (Fig. 2), used to analyze porosity and pore size distribution; rock 600-50 VHT rock high temperature triaxial rheological test system (Fig. 3), can accurately control the rock loading rate, real-time recording of stress and strain deformation.

Fig. 2
figure 2

MesoMR23-060H-I NMR test system

Fig. 3
figure 3

Rock 600–50 VHT high temperature triaxial rheological test system

2.2 NMR Testing Principle

NMR is the interaction between the atomic nucleus and magnetic field. The relaxation characteristics of water in rock pores are measured by the interaction between the magnetism of H atomic nucleus rich in water in saturated rock and magnetic field (Martini et al. 2018). Due to the different pore size and pore water content in each rock, the speed of releasing energy is also different. According to the difference in signals, the T2 distribution and signal intensity curves of different transverse relaxation times can be obtained. The T2 relaxation time curve can reflect the variation characteristics of cracks, pore size, pore number and pores in rock samples. There are three different relaxation mechanisms for fluids in rock pores: free relaxation, surface relaxation and diffusion relaxation, which can be expressed by the following formula (Zhou et al. 2014a, b, 2018a, b):

$$\frac{1}{{T_{2} }}{ = }\frac{1}{{T_{{2{\text{f}}}} }}{ + }\frac{1}{{T_{{2{\text{s}}}} }}{ + }\frac{1}{{T_{{2{\text{d}}}} }}$$
(1)

where T2 is the relaxation time; T2f is the transverse relaxation time of pore fluid in a sufficiently large container; T2s is the transverse relaxation time caused by surface relaxation of pore fluid; T2d is the transverse relaxation time of pore fluid caused by diffusion under magnetic field gradient.

When the rock sample is fully saturated, the free relaxation and diffusion relaxation are much less than the surface relaxation. The T2 value of the rock is determined by the surface relaxation. The relationship between T2 and pores is as follows:

$$\frac{1}{{T_{2} }} \approx \frac{1}{{T_{{2{\text{s}}}} }}{ = }\rho_{2} \frac{S}{V} = F_{{\text{s}}} \frac{{\rho_{2} }}{r}$$
(2)

where ρ2 is the surface relaxivity, taken as 30 μm/s; S is the pore surface area; V is the fluid volume; FS is the geometric factor. FS is taken as 3 for spherical pores and 2 for cylindrical pipes; R is the pore radius, μm.

According to Eq. (2), T2 spectrum can reflect the distribution of pore radius of rock, and the relationship curve between porosity and pore radius r can be transformed into the relationship curve with relaxation time T2, so as to establish the relationship between relaxation time T2 and pore radius R.

2.3 Test Methods

Conventional triaxial stress–strain curves of rock under 20 MPa confining pressure are shown in Fig. 4. To study the unloading damage evolution law of rock under different initial axial compression conditions, the initial stress state of rock is characterized by the percentage of initial axial compression in triaxial compressive strength (TCS). According to the conventional triaxial stress–strain curves under 20 MPa confining pressure, the volumetric strain rotation point of the rock is near 80% TCS. To minimize the influence of initial axial pressure and confining pressure on a rock in the loading stage, the initial axial pressure is set as 70%, 80% and 90% of TCS to characterize three different initial axial pressures. At the same time, to analyze the different stages of rock unloading, the unloading confining pressure ratio K is proposed as a descriptive variable, which is expressed as:

$$K = \frac{{\Delta \sigma^{\prime}_{3} }}{{\Delta \sigma_{3} }}$$
(3)

where Δσ3 is the unloading confining pressure value of the rock sample from the initial confining pressure, MPa; Δσ3 is the unloading confining pressure value of the rock sample from the initial confining pressure unloading to the unloading failure point, MPa.

Fig. 4
figure 4

Stress–strain curve of rock sample under triaxial compression test

The main test steps are as follows:

  1. 1.

    At the beginning of the test, the ZYB-II vacuum pressure saturation device is used to vacuum pressurize and water the rock. The pressure value is 25 MPa and the water saturation time is 24 h. After the sample is saturated with water, take it out for test;

  2. 2.

    The Rock 600-50 VHT rock high temperature triaxial rheological test system is used to carry out conventional triaxial unloading tests with different initial axial pressure and different unloading confining pressure ratio. Firstly, apply the axial pressure and confining pressure to the predetermined value of 20 MPa at the same time. When the confining pressure reaches 20 MPa, continue to load the axial pressure to the predetermined value of axial pressure, and then keep the axial pressure constant and unload the confining pressure to the failure or predetermined value (Fig. 5). To reduce the impact of loading and unloading rate on the test results, the loading and unloading rate of this test remains uniform, and the relevant parameters are as follows: the confining pressure loading rate is 0.1 MPa/s, and the confining pressure unloading rate is 0.05 MPa/s; The axial pressure loading rate is 0.25 MPa/s and the axial pressure unloading rate is 0.25 MPa/s.

  3. 3.

    Divide the rock samples into three groups, numbered A, B and C. Apply axial pressure to 70%, 80% and 90% of TCS according to the above steps, and unload the confining pressure until the sample is damaged to obtain the value of Δσ3. Calculate the required unloading confining pressure Δσ3 and final confining pressure (Table 2) when K is 0%, 50%, 75%, 90% and 100%, respectively After loading the initial axial and confining pressure on each rock sample according to the above scheme, unload the confining pressure to the predetermined confining pressure value, then keep the confining pressure unchanged, unload the axial pressure to equal to the confining pressure gradually, then unload the axial pressure and confining pressure to 0 MPa at the same time, and take out the sample.

  4. 4.

    The MesoMR23-060H-I NMR test system is used to test the rock samples under different unloading conditions, and the porosity and NMR relaxation time curves of the rock samples after unloading are obtained (Fig. 6).

Fig. 5
figure 5

Stress loading path

Fig. 6
figure 6

NMR test flow

Table 2 Unloading confining pressure of each rock sample

3 Analysis of Test Results

3.1 Analysis of Mechanical Test Results

3.1.1 Stress–Strain Curve

The relationship curve between load and deformation (stress–strain curve) obtained by compressing standard rock samples with a testing machine can reveal the variation law of rock mechanical properties. The stress–strain curves of unloading test of multiple groups of samples are shown in Fig. 7, with radial strain on the left and axial strain on the right.

Fig. 7
figure 7

Stress–strain curve of unloading test

Due to the simultaneous loading confining pressure and axial pressure to the predetermined value at the same time, the sample is compressed to a relatively dense state under the action of pressure, while the stress–strain curve in Fig. 7 corresponds to that after confining pressure loading, so it can not reflect the pore compression stage. The stress–strain curve is mainly divided into three stages: Elastic deformation stage, the stress–strain curve increases linearly and the rock deformation is stable. Plastic deformation stage, the sample begins to yield, the stress–strain curve changes from a straight line to convex, and the cracks in the rock begin to sprout and expand rapidly. Crack instability propagation stage (failure stage), the sample expands and deforms unsteadily, and the stress–strain curve shows a small drop. This was due to the reduction of the confining pressure, which caused the sample stress to be uneven and difficult in maintaining the axial stress. The stress–strain curve decreased sharply when the unloading failure occurred, manifesting as a brittle failure. By observing the stress–strain curve, it can be found that the axial strain curve before unloading is approximately a straight line, while the radial strain curve shows obvious bending, indicating that the rock is in the stage of elastic deformation and weak plastic deformation, and the axial strain curve of different initial axial pressures are significantly different. According to Fig. 7a~c, the axial strain curve before unloading under 70% TCS is almost a straight line, showing obvious elastic deformation, that is, the rock does not enter the plastic deformation stage before unloading under 70% TCS. With the increase of the initial axial stress level, the convex characteristics of the axial strain curve before unloading are more obvious, the axial strain curve under 80% TCS shows slight plastic deformation before unloading, and the plastic deformation under 90% TCS is the most obvious. In the process of axial compression loading, the changing trend of the axial strain curve is much greater than that of radial strain. When the axial pressure is less than 60 MPa, the radial strain hardly changes, indicating that the rock is in the process of elastic compression and basically does not produce new cracks. When the axial pressure exceeds 60 MPa, the radial strain begins to increase gradually, indicating that the rock expands gradually, the originally compressed pores gradually recover or expand slightly, and a certain number of new cracks are generated. In the unloading stage, the variation range of radial strain is more obvious, and the rock begins to enter the plastic deformation stage. In the micro view, the internal crack is expanding, macroscopically, it is characterized by dilatancy.

3.1.2 Elastic Modulus and Poisson’s Ratio

The mechanical parameters of rock, such as elastic modulus and Poisson's ratio, are calculated according to the elastic deformation stage of rock. When analyzing the mechanical parameters of rock in the unloading stage, it is necessary to consider the influence of stress and strain in different stress directions. It is assumed that all points of stress and strain in the unloading process comply with generalized Hooke’s law. The calculation formula for mechanical deformation parameters of rock is as follows (Zhou et al. 2018a):

$$\begin{gathered} E = \left( {\sigma_{1} - 2\mu \sigma_{3} } \right)/\varepsilon_{1} \hfill \\ \mu = \left( {B\sigma_{1} - \sigma_{3} } \right)/\left[ {\left( {2B - 1} \right)\sigma_{3} - \sigma_{1} } \right] \hfill \\ B = \varepsilon_{3} /\varepsilon_{1} \hfill \\ \end{gathered}$$
(4)

where E is the deformation modulus, μ is Poisson's ratio, σ1 is axial pressure, σ3 is confining pressure, ε1 is axial strain, ε3 is the radial strain and B is the radial expansion coefficient.

Table 3 shows the mechanical parameters corresponding to the unloading termination point of the sample, where εv is the volume strain at the unloading termination point, and U is the total energy absorbed by the rock at the unloading termination point.

Table 3 Rock unloading mechanical parameters

Under different initial axial pressures, with the increase of unloading confining pressure ratio, the εv and E decrease gradually, and U and μ increase gradually. Under 70%, 80% and 90% TCS, when the unloading confining pressure ratio increases from 0 to 100%, the increased range of U is 114.78%, 80.25% and 83.25%, respectively. According to the variation law of mechanical parameters, both unloading confining pressure ratio and initial axial pressure have a great influence on the rock. In the early stage of unloading, the increase of initial axial pressure has a more significant impact on the rock, while in the late stage of unloading, the change of confining pressure has a more significant impact.

Figure 8 shows the change trend of elastic modulus and Poisson's ratio at the end of unloading. With the increase of the unloading confining pressure ratio, the elastic modulus at the unloading termination point decreases until the unloading failure reaches the lowest value. Under different initial axial pressures, the change trend of rock elastic modulus is basically the same. The greater the initial axial pressure, the smaller the elastic modulus at the same unloading point, indicating that the larger initial axial pressure promotes rock deterioration. When the unloading confining pressure ratio is less than 90%, the elastic modulus decreases slowly, the rock is in the stage of elastic–plastic deformation, cracks are constantly generated in the rock, but the whole remains intact. When the unloading confining pressure ratio is greater than 90%, the elastic modulus decreases significantly and the rock is in the stage of instability and failure. Brittle failure of rock occurs, which is manifested as dilatancy, and the mechanical parameters change suddenly after rock failure. Under 70%, 80% and 90% TCS, when the unloading confining pressure ratio increases from 0 to 100%, the reduction range of elastic modulus is 84.77%, 76.39% and 82.96%. Under 70% TCS, the elastic modulus of rock decreases the most. This is because when a failure occurs, the dilatancy phenomenon is the most obvious, and the radial strain is the largest, which has a great impact on the reduction of elastic modulus.

Fig. 8
figure 8

a Change trend of elastic modulus, b change trend of Poisson's ratio

The changing trend of Poisson's ratio basically increases with the increase of the unloading confining pressure ratio. When the unloading confining pressure ratio is less than 90%, at the same unloading point, the greater the initial axial pressure, the greater the Poisson's ratio. The difference in initial axial pressure has a greater impact on the deformation of rock at this stage. Under 90% TCS, the Poisson's ratio of 90% unloading confining pressure ratio exceeds 0.5, indicating that the rock is seriously damaged and deformed at this point and is close to failure. From 90% unloading confining pressure ratio to unloading failure point, Poisson's ratio decreases, which is caused by the fact that the axial strain increment of rock is much greater than the radial strain and the radial expansion coefficient decreases. When the unloading reaches the failure point, the Poisson's ratio shows the opposite trend. The larger the initial axial pressure is, the smaller the Poisson's ratio is. This is because under the condition of low axial pressure, the confining pressure from 90% unloading confining pressure ratio to the failure point is greater, and the radial strain increment is greater. Under high axial pressure, the axial stress is greater, and the axial strain increment is greater, so the Poisson's ratio at the unloading failure point under low axial pressure is greater.

3.1.3 Strain Characteristics

Figure 9 shows the axial and radial strain variation trend at the unloading termination point. During the unloading process, the axial strain, radial strain and volume strain at the unloading termination point increase with the unloading confining pressure ratio, and the variation trend is basically the same between different initial axial pressures. The larger initial axial pressure promotes the growth of strain. At the same unloading point, the axial strain and radial strain of rock increase with the increase of initial axial pressure, and the volumetric strain decreases. When unloading failure occurs, the deformation in the radial direction under low initial axial compression is larger, and the expansion phenomenon is more obvious. By comparing and observing the strain changes of samples A-4, B-4 and C-4, the axial and radial strains at the unloading termination point increase sharply, and the volumetric strain changes to a negative value. The rock unloading failure shows the expansion characteristics. The larger the initial axial pressure, the larger the axial strain value and the smaller the radial strain value when the unloading failure occurs. The main reason is that under high initial axial pressure, the rock has reached the state of near failure before unloading failure, while under low initial axial pressure, the degree of rock damage before failure is relatively small, and the internal damage of the rock will increase sharply when it reaches failure. At the same time, the unloading confining pressure at the unloading failure point under low axial pressure is greater. The retained confining pressure at the unloading failure point under high axial pressure is large, and the mutation effect of rock failure will be restrained by confining pressure, so the capacity expansion phenomenon is more obvious under low axial pressure.

Fig. 9
figure 9

a Variation trend of axial strain, b variation trend of radial strain

In the stage of unloading confining pressure ratio of 0~50%, the strain increment at the unloading termination point is small and no large deformation occurs, indicating that the rock is mainly in the stage of elastic deformation. In the stage of unloading confining pressure ratio of 50~90%, the increased range of axial strain is still small. The strain change range of the sample is the largest under 90% TCS and the smallest under 70% TCS, while the change range of radial strain and volumetric strain increases rapidly at this stage. Under larger initial axial compression, the increase of radial strain and the decrease of volumetric strain are larger, and the sample began to transform from elastic deformation to plastic deformation. When the unloading confining pressure ratio exceeds 90%, the strain at the unloading termination point changes greatly. At this stage, the internal crack of the rock enters the unstable propagation stage, the crack expands rapidly, the macro fracture surface is gradually formed, and the degree of rock damage increases sharply.

3.2 Energy Dissipation Characteristics

3.2.1 Quantitative Characterization of Energy Dissipation

The generation and propagation of microcracks in rock are accompanied by energy consumption. Therefore, the deformation and failure process of rock is a complex energy transformation process, and the dissipation reflects the attenuation degree of the original strength of the rock. It is known from the first law of thermodynamics that there is no heat exchange between physical process changes of matter within a closed system and the outside world. In other words, the rock sample and the testing machine are regarded as a closed system, and the rock sample unit is deformed and damaged under the action of the testing machine. There is an energy exchange between the testing machine and the rock sample unit, but there is no energy exchange with the outside world. According to the law of thermodynamics, the total energy U input by external work is converted into the internal releasable elastic strain energy Ue and unit dissipation energy Ud of the rock sample(Wen et al. 2019; Xie et al. 2009), that is:

$$U{ = }U_{e} + U_{d}$$
(5)

where U is the total energy generated by work done by an external force, and Ue is the elastic strain energy; Ud is the dissipated energy, which is used to form the internal damage and deformation of a rock sample.

The calculation relationship between elastic energy and dissipation energy is shown in Fig. 10.

Fig. 10
figure 10

Calculation relationship between dissipated energy and elastic

In the triaxial loading and unloading path test, both axial pressure and confining pressure work on the rock sample. Therefore, the total energy absorbed by the rock sample includes the positive work of axial stress on the rock sample, the positive work of confining pressure when the radial deformation of the rock sample increases positively, and the negative work of confining pressure on the rock sample when the radial deformation of the rock sample increases negatively (Zhang et al. 2021a, b):

$$U{ = }U_{1} + 2U_{3}$$
(6)

where U1 is the axial strain energy generated by the axial deformation of the rock sample, which is generally positive; U3 is the radial strain energy generated by the radial deformation of the rock sample, which is generally positive in the initial stage of the test and turns to negative as the test progresses.

The calculation formulas of U1 and U3 are as follows:

$$U_{1} = \int {\sigma_{1} } {\text{d}}\varepsilon_{1}$$
(7)
$$U_{3} = \int {\sigma_{3} {\text{d}}\varepsilon_{3} }$$
(8)

The calculation formula of elastic energy under triaxial compression is:

$$\begin{gathered} U_{e} = \frac{1}{{2E_{r} }}\left[ {\sigma_{1}^{2} + 2\sigma_{3}^{2} - 2\mu \left( {2\sigma_{1} \sigma_{3} + \sigma_{3}^{2} } \right)} \right] \hfill \\ \, \approx \frac{1}{{2E_{0} }}\left[ {\sigma_{1}^{2} + 2\sigma_{3}^{2} - 2\mu \left( {2\sigma_{1} \sigma_{3} + \sigma_{3}^{2} } \right)} \right] \hfill \\ \end{gathered}$$
(9)

When calculating, take the initial elastic modulus E0 instead of Er.

3.2.2 Analysis of Energy Dissipation Law

To compare the change of each energy of the sample at the unloading termination point under different unloading confining pressure ratios and different initial axial compression conditions, only the energy state of the sample at the unloading termination point was analyzed here. According to the above energy calculation formula, the changes of total energy, elastic energy and dissipated energy at the completion of the test under different unloading confining pressure ratio can be obtained, as shown in Fig. 11, and the fitting function and correlation coefficient of each energy are shown in Table 4.

Fig. 11
figure 11

Variation law of energy

Table 4 Energy fitting relationship

Under each initial axial pressure, with the change of unloading confining pressure ratio, the corresponding energy change trend characteristics are basically the same. In the process of loading and unloading, the axial strain energy U1 is much larger than the radial strain energy U3. Under 70%, 80% and 90%TCS, when the unloading confining pressure ratio increases from 0 to 100%, U1 increases by 153.13%, 99.26% and 94.32%, and U3 increases by 910.56%, 313.64% and 186.62%, respectively. The larger the initial axial pressure, the smaller the increase of U1 and U3. Because the greater the initial axial pressure, the greater the initial strain energy, the smaller the corresponding increase. When the unloading confining pressure ratio is less than 90%, U1 and U3 show steady linear growth, and the rock samples are mainly in the stage of elastic deformation. In the stage of 90~100% unloading confining pressure ratio, U1 and U3 show abrupt growth, and the rock samples are in the stage of plastic deformation. Under 90% TCS, the increment of radial strain energy value is small in the stage of 90~100% unloading confining pressure ratio, indicating that under 90% TCS, when the unloading confining pressure ratio is 90%, the radial deformation of rock is serious and is on the verge of failure. Therefore, when the unloading failure occurs, the increment of radial strain is small.

It can be seen from Fig. 11b that with the increase of the unloading confining pressure ratio, the total energy absorbed by the sample under each initial axial pressure increases monotonically. And the changing trend coincides with the changing height of U1, indicating that the total energy mainly depends on the change of axial strain energy, while the change of radial strain energy has little effect on the total energy. Under 70% TCS, 80% TCS and 90% TCS, when unloading failure occurred, the total energy absorbed is 0.818 MJ·m−3, 0.898 MJ·m−3 and 1.211 MJ·m−3, respectively. Compared with the beginning of unloading, the increase in total energy is 114.78%, 80.25% and 83.25%, respectively. In the stage of 0~90% unloading confining pressure ratio, the change of total energy is small. In this stage, different initial axial pressure has a greater impact on the change of total energy. At the same unloading point, the greater the initial axial pressure, the greater the total energy increases significantly. The total energy in the stage of 90~100% unloading confining pressure ratio increases sharply, which is mainly due to the failure of the sample and the sharp increase of strain, resulting in a large increase of energy.

With the increase of unloading confining pressure ratio, the elastic energy gradually decreases and its proportion decreases, the dissipated energy gradually increases and its proportion increases. When the unloading confining pressure ratio is less than 90%, most of the energy input by external work is transformed into elastic energy, and the other part is transformed into dissipative energy, which is used for the development of micro fractures and deformation in rock samples. Under 70%, 80% and 90% TCS, the proportion of elastic energy under the unloading confining pressure ratio of 0% and 90% is 98.05%, 95.71%, 84.02%, 70.26%, 62.53% and 47.78%, respectively. Large initial axial pressure accelerates the fracture development and deformation degree of the sample, and the rock will turn into plastic deformation earlier. In the stage of 90~100% unloading confining pressure ratio, the elastic energy decreases sharply and the dissipated energy increases sharply. The propagation of cracks in the sample shows a mutation character. The micro-cracks penetrate to form a failure surface and the rock sample failure occurred. At this time, the stored elastic strain energy is greatly reduced and converted into dissipated energy, and a small part of the remaining elastic energy is stored in the rock sample. After the failure of the sample, the proportion of elastic energy under 70% TCS, 80% TCS and 90% TCS is only 3.62%, 6.25% and 4.4%, respectively.

3.3 Pore Characterization Analysis

3.3.1 T 2 Spectrum Curve of Relaxation Time

The distribution of T2 spectrum curve can reflect the size information of pores and the quantity information of pores with different sizes in rock. According to the relaxation time of hydrogen atom in water, the state of the pore can be reflected. The longer the relaxation time, the smaller the binding of the water molecule and the larger the pore size. On the contrary, the binding of the water molecule is large and the pore size is small, that is, the size of T2 value is positively correlated with the pore size (Zhou et al. 2015). The porosity component refers to the percentage of the sum of the pore volume of the corresponding size in the volume of the test sample. The position of the spectral peak is related to the pore size, and the size of the spectral peak area is related to the number of pores and porosity of the corresponding size (Connolly et al. 2019; Nasharuddin et al. 2021). The T2 spectrum curves of the sample after unloading under different initial axial pressure are shown in Fig. 12.

Fig. 12
figure 12

T2 spectrum curve under different initial axial pressures

It can be seen from Fig. 12 that the T2 spectrum distribution curves of the sandstone sample mainly show three spectrum peaks, the area values of each peak (dimensionless) are quite different, and the area of the peak decreases from the first peak to the third peak, indicating that the pore structure in sandstone is complex after unloading test, and most of the pores are micropores. There is an obvious critical point between the first peak and the second peak. The T2 spectrum curve is obviously divided into left and right parts by this critical point. The relaxation time corresponding to this critical point is 1.4 ms, after conversion according to Eq. (2), the corresponding aperture is 0.084 μm. That is, the area of the first peak can be regarded as micropores with a pore diameter less than 0.084 μm, and the area of the second and third peaks can be regarded as mesopores and macropores with a pore diameter bigger than 0.084 μm.

Under different initial conditions, with the increase of unloading confining pressure ratio, the total area and range of T2 spectrum curve continue to increase, indicating that the pores in the rock continue to develop and the total number of pores continues to increase during unloading. Among them, the area of the first spectral peak always increases with the increase of unloading degree, and the second spectral peak shows the trend of first decreasing and then increasing in varying degrees, which shows that in the unloading process, the number of micropores continues to increase, while the number of mesopores and macropores first decreases and then increases. The reason is that when the rock is in the initial unloading stage of elastic deformation, under the action of initial axial pressure and the tensile stress generated by unloading, pores with smaller pore diameters are constantly generated, and at the same time, mesopores and macropores will be compacted and closed into micropores with smaller pore diameters. In the later stage of unloading, the rock gradually changes from elastic deformation to plastic deformation, the pores of each pore diameter continue to develop and expand, the number of pores continues to increase, the small cracks in the rock expand into macropores gradually, and micropores continue to sprout under the action of load. Under each initial axial pressure condition, before 90% unloading confining pressure ratio, the range of the peak curve basically does not change, the pores expand stably, the increase of the number of micropores is significantly greater than that of mesopores and macropores, and the pore size is basically unchanged, indicating that the damage of the sample at this stage is mainly caused by the continuous increase of the number of internal pores; Compared with the previous curves, the curve of 100% unloading confining pressure ratio increases significantly, and the curve expands significantly to the right. The number of micropores and mesopores and macropores increases rapidly, the pore size also increases, and the pore diameter of macropores increases significantly. Therefore, it can be judged that the damage of the sample is caused by the rapid increase of the number of pores and the rapid development of pore size, the accelerated expansion of macropores and cracks, and the rock damage increases sharply to the maximum value.

In addition, the greater the initial axial pressure, the longer the termination time of T2 curve spectrum peak when unloading failure occurred, that is, the larger the corresponding maximum pore diameter. Under 70%, 80% and 90% TCS, the maximum internal fracture pore diameter is 22.45 μm, 24.35 μm and 46.54 μm, respectively. It shows that the maximum pore diameter produced in the unloading process of the rock sample is significantly affected by axial pressure. The greater the initial axial pressure is, the more complete the development and destruction of the internal fractures of the rock sample are.

Comprehensive the mechanical test results show that the damage increment and deformation of rock are small before 90% unloading confining pressure ratio, but change sharply after 90% unloading confining pressure ratio, indicating that the increase of pore number has little effect on rock damage and deformation, and the expansion of pore size and the generation of macropores size play a leading role in rock damage, deformation and failure.

3.3.2 Porosity Analysis

The porosity of rock refers to the ratio of all pore volumes in rock to the total volume of rock. The number and size of pores in rock have an important impact on the mechanical properties of rock. NMR porosity measurement was carried out on the samples after the unloading test of each group, and the changes of rock porosity after the test under different initial axial pressure and different unloading confining pressure ratio were obtained, as shown in Fig. 13.

Fig. 13
figure 13

Variation law of porosity

To study the quantitative relationship between porosity and unloading confining pressure ratio under different initial axial pressures, the porosity data are fitted, and the fitting function relationship is as follows:

$$n_{0.7} = 2.56 \times 10^{ - 3} K + 5.622 + {\text{e}}^{{{(0}{\text{.172}}K - 16.99)}}$$
(10)
$$n_{0.8} = 1.52 \times 10^{ - 3} K + 5.854 + {\text{e}}^{{{(0}{\text{.173}}K - 16.9)}}$$
(11)
$$n_{0.9} = 1.2 \times 10^{ - 3} K + 5.938 + {\text{e}}^{{{(0}{\text{.164}}K - 15.97)}}$$
(12)

With the increase of unloading confining pressure ratio, the rock porosity increases exponentially under different initial axial pressures, and the damage degree of samples increases. Before unloading confining pressure, that is, when the unloading confining pressure ratio is 0%, the porosity under 70%, 80% and 90% TCS is 5.64%, 5.87% and 5.94%, respectively. The axial pressure increases from 70 TCS to 90% TCS, and the increase range of rock porosity is 5.32%, indicating that the greater the initial axial pressure, the greater the initial damage degree of rock samples before unloading. Under the unloading confining pressure ratio of 0%, 50%, 75%, 90% and 100%, the axial pressure increases from 70 TCS to 90% TCS, the increment of rock porosity are 0.3, 0.3, 0.18, 0.28 and 0.49, and the increase ranges is 5.32%, 5.27%, 3.06%, 4.61% and 6.85%, respectively. The change shows a trend of decreasing first and then increasing. This is because the unloading confining pressure exerts reverse radial tensile stress on the rock under the action of initial axial pressure. At the same unloading point, under low initial axial compression, the unloading confining pressure and the radial tensile stress are larger. In the initial stage of unloading, the influence of the change of tensile stress caused by unloading confining pressure on rock damage becomes larger gradually, the influence of initial axial pressure on rock damage is weakened, and the difference of rock porosity becomes smaller under different axial pressure; In the later stage of unloading, the rock gradually turns to plastic deformation. The greater the initial axial pressure, the more complete the development of cracks in the rock and the more serious the damage. At this stage, different initial axial pressures have the most significant impact on rock damage. Under 70%, 80% and 90% TCS, when the unloading confining pressure ratio of rock increases from 0 to 100%, the porosity increases by 26.8%, 27.9% and 28.6%, respectively. Under the same unloading confining pressure ratio, the greater the initial axial pressure, the greater the porosity, indicating that the increase of initial axial pressure promotes the damage of rock during unloading. The sample enters the plastic deformation stage earlier in the unloading process, and the internal pores of the rock are more developed and deformed, corresponding to the mechanical test results, the accuracy of the test results is fully proved.

From Fig. 13b, it can be seen that when the unloading confining pressure ratio is 0~75%, the three curves grow slowly and the change of porosity is small, indicating that the pore development of rock is slow and the damage is small at this stage. This is because in the early stage of unloading, the unloading confining pressure is small, and the influence of radial tensile stress is weak. At this stage, the deformation characteristics of rock are mainly elastic deformation. The pores in the sample are still compressed and closed, and the pore development is slow, so the total porosity increases less. In the stage of unloading confining pressure ratio of 75~90%, the increased range of porosity becomes larger, indicating that the development of rock pores is accelerated, the degree of rock damage is intensified, the rock is transformed from elastic deformation to plastic deformation gradually, the internal cracks are expanding, and the rock is gradually deformed macroscopically. In the stage of unloading confining pressure ratio of 90~100%, the sample is damaged and the porosity increases sharply, indicating that the pores in the rock develop rapidly, the fractures enter the stage of unstable expansion, the fractures continue to expand, penetrate until damaged, and the rock damage increases sharply, which shows obvious rock dilatancy characteristics on the macro level.

Considering the influence of initial axial pressure and unloading confining pressure ratio on the porosity change of rock during unloading comprehensively, draw a 3D porosity surface diagram, as shown in Fig. 14, and establish the porosity surface expression based on exponential function fitting. As shown in Eq. (13), the fitting correlation coefficient is as high as 0.996, so it can be considered that the exponential surface expression of porosity is reliable.

$$\begin{aligned} n & = 5.08 + 0.91 \times \exp \left( { - e^{{\left( {103.69 - \sigma_{1} } \right)/15.37}} } \right) + 3230 \times \exp \left( { - e^{{\left( {439.95 - K} \right)/161.4}} } \right) \\ & + 3118.93 \times \exp \left( { - e^{{\left( {103.69 - \sigma_{1} } \right)/15.37}} - e^{{\left( {439.95 - K} \right)/161.4}} } \right) \\ \end{aligned}$$
(13)
Fig. 14
figure 14

Relationship between porosity and initial axial pressure and unloading confining pressure ratio

3.3.3 Pore Type

The pore distribution of sandstone after the unloading test is sorted and counted. According to the size of the pores, the pores were divided into micropores (0~0.1 μm), mesopores (0.1~1 μm) and macropores (> 1 μm). According to this classification standard, the proportion of different types of pores in sandstone under different unloading conditions can be sorted out, as shown in Fig. 15. The fitting functions and correlation coefficients for different types of pores are shown in Table 5.

Fig. 15
figure 15

Variation law of different pores

Table 5 Fitting relationship of porosity

With the increase of unloading confining pressure ratio, the number of micropores continues to increase, and the number of mesopores and macropores first decreases and then increases. In the stage of 0~50% unloading confining pressure ratio, the mesopores and macropores decrease. At this time, the increase in the number of micropores in the sample mainly comes from the reduction of the size of macropores and mesopores under compression, forming new micropores, and the rock is in the stage of elastic compression. In the stage of 50~90% unloading confining pressure ratio, the number of micropores continues to increase. Under 70% and 80% TCS, the number of mesopores and macropores also changes to increase. Under 90% TCS, the number of mesopores and macropores decreases first and then increases, indicating that the sample continues to be damaged under 70% and 80% TCS. At this stage, part of the increase of micropores still comes from the compaction of mesopores and macropores to form micropores, and part comes from the increase of compressive stress caused by the decrease of radial stress, and new small cracks are generated in the sample gradually, the increase of mesopores and macropores is caused by the continuous development and expansion of micropores and the increase of pore size. Under 90% TCS, the mesopores and macropores decrease slightly, indicating that under the condition of high stress, the mesopores and macropores in the rock are still compacted to form micropores, and the number of micropores formed is more than the number of micropores expanded into mesopores and macropores. With the further increase of unloading confining pressure ratio, the mesopores and macropores increase. At this time, the internal damage of the sample is serious, and the development and expansion of pores intensifies; In the stage of 90~100% unloading confining pressure ratio, the pore diameter of the rock increases greatly. At this time, the penetration degree of pores in the sample intensifies, the cracks expand continuously, the number and size of pores increase sharply, and the internal cracks enter the stage of unstable development, and gradually form a sliding surface until the sample damaged.

Under 70%, 80% and 90% TCS, when the unloading confining pressure ratio increases from 0 to 100%, the increase range of micropores is 23.84%, 22.02% and 21.73%, respectively. The increase range of mesopores is 31.24%, 33.27% and 34.09%, respectively. And the increase range of macropores is 30.39%, 43.63% and 48.19%, respectively. The increase amplitude of micropores decreases with the increase of initial axial pressure, while mesopores and macropores increase with the increase of initial axial pressure. The reason is that at low axial pressure, when the unloading failure of the specimen occurs, the pore development is not complete, and some micropores do not expand into macropores. The sharp increase of micropores under low axial pressure plays a major role in the damage and failure of rock. Under the condition of high stress, the number of mesopores and macropores accounts for more in the unloading failure of the sample, indicating that the pores with micropore develop and expand more thoroughly, and the rock damage and failure are mainly caused by the continuous development and expansion of micropores into macropores.

4 Discussion

4.1 Rock Damage Evolution Law

Defects lead to a reduction in effective bearing area, which is the main mechanism of material degradation (Zhou et al. 2014b). Accordingly, the concept of continuity φ is introduced:

$$\varphi \,{ = }\,\frac{{\tilde{A}}}{A}$$
(14)

where A is the effective bearing area in nondestructive state, and \(\tilde{A}\) is the effective bearing area of damage.

Using the concept of representative volume element, it is extended to three-dimensional damage, that is:

$$\varphi = \frac{{\tilde{V}}}{V}$$
(15)

where \(\tilde{V}\) is the effective volume in the nondestructive state, and V is the effective volume of damage.

Rabotnov uses the damage degree D, which is a complementary parameter to continuity φ, to characterize the damage and deterioration process of rock(Wang et al. 2022a, b):

$$D = 1 - \varphi$$
(16)

where D is scalar, D = 0 is nondestructive state, and D = 1 is the theoretical limit damage state, which is complete damage.

The change of pore structure in rock is the result of the generation and development of internal damage in rock, which has an internal inevitable relationship with the damage variables and constitutive relationship of rock materials. Therefore, a rock damage model based on NMR parameters is established by using damage theory. Based on the detection principle of rock pore structure by NMR, it is proposed to characterize the damage degree D of rock by NMR parameter. The damage degree calculation formula of damaged materials can be obtained as follows:

$$D = 1 - \frac{{\tilde{V}}}{V}{ = }\frac{{n - n_{0} }}{{1 - n_{0} }}$$
(17)

where n0 is the initial porosity of the rock, 5.47%. n is the porosity of the rock after damage.

Figure 16 shows the change in damage degree of the unloading termination point under different test conditions.

Fig. 16
figure 16

change trend of damage degree

The overall increase in damage was 980.05%, 428.08%, and 354.11% for the increase in the unloading confining pressure ratio from 0 to 100% under 70%, 80%, and 90% TCS, respectively. The larger the initial axial pressure is, the smaller the increase of damage degree at the unloading termination point is, while the damage change of rock during unloading is greater under low axial pressure. At the initial stage of unloading, the damage degree gap caused by initial axial pressure gradually decreases. With the increase of unloading confining pressure ratio, the damage degree of rock increases faster under low axial pressure. In the later stage of unloading, the greater the initial axial pressure, the greater the damage increment, and the damage gap under different initial axial pressures gradually increases.

According to the analysis of the test porosity results in Sect. 3.2, there is a high correlation between porosity and the initial axial pressure and unloading confining pressure ratio. Substituting Eqs. (10), (11) and (12) into Eq. (17), (18), (19) and (20) can be used to predict the change of sandstone damage degree with unloading conditions under the test conditions.

$$D_{0.7} = \frac{{2.56 \times 10^{ - 3} K + 0.152 + {\text{e}}^{{{(0}{\text{.172}}K - 16.99)}} }}{94.53}$$
(18)
$$D_{0.8} = \frac{{1.52 \times 10^{ - 3} K + 0.384 + {\text{e}}^{{{(0}{\text{.173}}K - 16.9)}} }}{94.53}$$
(19)
$$D_{0.9} = \frac{{1.2 \times 10^{ - 3} K + 0.468 + {\text{e}}^{{{(0}{\text{.164}}K - 15.97)}} }}{94.53}$$
(20)

Figure 17 shows the change of damage variable d with unloading confining pressure ratio under three axial compression conditions obtained from the above equation. It can be seen that the damage evolution of sandstone can be divided into three stages. The damage degree of stage I does not change much with the increase of unloading confining pressure ratio, and the damage degree increment is less than 50%, and the influence of initial axial pressure on rock damage degree is more significant. The damage degree of stage II begins to increase rapidly, the increase of unloading confining pressure ratio gradually plays a leading role in the rock damage degree, and the damage degree increases by 100%. And the damage degree of stage III increases sharply until rock damage occurs.

Fig. 17
figure 17

Damage evolution process of rock under different conditions

4.2 Correlation Analysis of Unloading Mechanical Characteristic Parameters of Sandstone

4.2.1 Pore Structure and Energy

The crack propagation and rock deformation in rock are both the results of energy. To study the correlation between the porosity change law and the energy growth trend during the rock test, the relationship between the porosity growth rate (∆φ) and total energy growth rate of three sizes of rock pores under different unloading confining pressure ratios was established. Under 70%, 80% and 90% TCS, with the increase of unloading confining pressure ratio, the porosity growth rate and total energy growth rate curves of three sizes of rock correspond to a–c in Fig. 18, respectively.

Fig. 18
figure 18

correspondence between porosity growth rate and total energy growth rate

From Fig. 18, it can be seen that under 70%, 80% and 90% TCS, with the increase of unloading confining pressure ratio, the growth rate of total energy increases first, then decreases and then increases, while the growth rate of micropores basically increases, then decreases and then increases with the increase of unloading confining pressure ratio, the change law of total energy and micropores is similar. This phenomenon is caused by the high proportion of micropores in rock, and the structural state of micropores is most easily changed. Therefore, with the change of total energy of rock, the change law of micropores is basically consistent with the change law of total energy. Under 70%, 80% and 90% TCS, when the unloading confining pressure ratio increases from 90 to 100%, the growth rates of total energy of rock is 80.5%, 46.97% and 46.94%, respectively, and the growth rates of macropores are 28.53%, 43.42% and 44.45%, respectively. The increase of macropores during unloading failure depends on the change range of total energy. The larger the growth rate of macropores, the smaller the growth rate of total energy. This is because the larger the initial axial pressure, the larger the radial strain, which leads to the larger the growth rate of radial strain energy, and the smaller the growth rate of total energy.

With large initial axial pressure, the growth rate of small pores and middle pores is basically unchanged when unloading failure occurs, which fully proves that the increase of axial pressure can promote the development of macropores in rock, and the damage and failure of rock are caused by the significant increase of the number of macropores. By comparing the change rules of growth rate curves in Fig. 18, it is found that the growth rate of macropores fluctuates more than that of mesopores and micropores, and the growth rates of micropores and mesopores are maintained at about 28% and 11%, respectively, when unloading failure occurs, indicating that the development of these two types of pores is restricted to a certain extent. This is because the micropore structure of the rock is unstable during the loading process, which is easy to develop and expand continuously, and then cracks are generated and transformed into lagger pores and macro cracks.

4.2.2 Pore Structure and Damage Degree

The change of pore characteristics is an important factor affecting the degree of rock damage. To study the correlation between the change law of porosity and the growth trend of rock damage degree, the relationship between the growth rate of porosity and the growth rate of damage degree of three sizes of rock pores under different unloading confining pressure ratios was established. Under 70%, 80% and 90% TCS, with the increase of unloading confining pressure ratio, the change trend curves of porosity growth rate and damage growth rate of three sizes of rock correspond to a–c in Fig. 19, respectively.

Fig. 19
figure 19

Correspondence between porosity growth rate and damage growth rate

The change trend of the damage growth rate curve is basically the same as that of the total energy growth rate curve. With the increase of unloading confining pressure ratio, the curves increase first, then decrease and then increase. In the stage of unloading confining pressure ratio 0~50%, the greater the growth rate of micropores, the greater the growth rate of damage degree, which indicates that the damage of rock in the early stage of unloading is mainly caused by the growth of micropores. With the increase of the unloading confining pressure ratio, the growth rate of mesopores and macropores gradually changes from negative to positive and increases continuously. At this stage, the effect of micropores growth on rock damage gradually decreases, and the length of mesopores and macropores plays a major role in rock damage. The change trend of damage degree growth rate under different initial axial pressures is consistent with the total energy when unloading failure occurs. The larger the axial pressure is, the larger the growth rate of macropores is, and the smaller the growth rate of damage degree is.

4.3 Fractal Characteristics of NMR

4.3.1 Fractal Geometric Expression of T 2 Curve

Under different unloading conditions, there are differences in the internal pore characteristics of rocks. Fractal theory is introduced to further characterize the internal structural changes of rocks. Fractal can reflect the space occupation ability of complex bodies and quantitatively describe irregular and non-linear (Song et al. 2021). According to the NMR results, there are mainly three sizes of pores in the rock. Based on fractal theory and NMR characteristics of rocks, the fractal characteristics of pores were obtained. It is assumed that the internal pores of rock have fractal characteristics, and the pore size function distribution of rock pores conforms to N =  ∝ rD, the number of pores with pore size greater than r follows the power function relationship with r, which can be expressed by the following relationship (Hu et al. 2020; Wan et al. 2010; Zhao et al. 2022):

$$N\left( { > r} \right) = \int_{r}^{{r_{\max } }} {P\left( r \right)} dr = a \times r^{ - d}$$
(21)

where rmax is the largest reservoir pore radius; P(r)is the pore diameter distribution density function; d is the pore fractal dimension; a is the pore fractal coefficients.

By deriving from both sides of Eq. (21), the expression of P(r) is obtained as follows:

$$P\left( r \right) = \frac{{dN\left( { > r} \right)}}{dr} = - da \times r^{{\left( { - d - 1} \right)}}$$
(22)

The cumulative volume of pores with pore size less than r can be expressed as:

$$V\left( { < r} \right) = \int_{{r_{\min } }}^{r} {P\left( r \right)} Ar^{3} dr$$
(23)

where A is the constant related to pore shape (when the pore is square, A = 1, when the pore is circular, A = 4π/3), and rmin is the minimum pore size.

The following Eq. (24) is obtained by substituting Eq. (22) into Eq. (23):

$$V\left( { < r} \right) = - \frac{daA}{{3 - d}}\left( {r^{3 - d} - r_{\min }^{3 - d} } \right)$$
(24)

When r is the maximum, the total pore volume is:

$$V_{s} = - \frac{daA}{{3 - d}}\left( {r_{\max }^{3 - d} - r_{\min }^{3 - d} } \right)$$
(25)

Since rmax is much larger than rmin, rmin can be ignored. Combining Eq. (24) and Eq. (25), the cumulative pore volume fraction Sv of pore diameter r is:

$$S_{v} = \frac{V}{{V_{S} }} = \frac{{r^{3 - d} - r_{\min }^{3 - d} }}{{r_{\max }^{3 - d} - r_{\min }^{3 - d} }} = \frac{{r^{3 - d} }}{{r_{\max }^{3 - d} }}$$
(26)

According to Eq. (22), the pore diameter r is proportional to the transverse relaxation time T2. Equation (26) can be transformed into:

$$S_{v} = \frac{{T_{2}^{3 - d} }}{{T_{2\max }^{3 - d} }}$$
(27)

where Sv is the percentage between cumulative pore volume with a transverse relaxation time less than T2 and total pore volume (%), and T2max is the T2 value corresponding to the maximum pore radius (ms).

The logarithm of both sides of Eq. (27) can be obtained:

$$\lg \left( {S_{v} } \right) = \left( {3 - d} \right)\lg \left( {T_{2} } \right) + \left( {d - 3} \right)\lg \left( {T_{2\max } } \right)$$
(28)

It shows that if the pore structure of rock has fractal characteristics, then lg (Sv) and lg (T2) have linear correlation, and the fractal dimension and maximum relaxation time of the pore structure can be calculated by the least square method. The pore fractal structure characteristics can be obtained according to the correlation coefficient obtained by regression analysis. The complexity of pore structure can be judged by the fractal dimension of NMR. The calculation formula of the least square method is:

$$d = 3 - \frac{{\sum\nolimits_{i = 1}^{n} {x_{i} y_{i} - n\overline{x} \overline{y} } }}{{\sum\nolimits_{i = 1}^{n} {x_{j}^{2} - n\overline{x}^{2} } }}$$
(29)

where xi and yj are the data of each point in the curve.

4.3.2 Fractal Dimension Characteristic Analysis

The relationship between the fractal characteristics of each rock pore and the T2 spectrum curve was established. The fractal dimension of the total pore and the fractal dimension of the three size pores of the rock were calculated as shown in Figs. 20, 21 and 22, respectively. Among them, (a) is the fractal characteristics of the total pore of the rock, and (b) is the fractal characteristics of micropores, mesopores and macropores. The T2 relaxation time corresponding to 0.1 μm and 1 μm pore size is 1.67 ms and 16.7 ms respectively, and lg (T2) is 0.2218 and 1.2218, respectively. It can be considered that when lg (T2) < 0.2218, it is the fractal characteristic curve corresponding to micropores; when 0.2218 < lg (T2) < 1.2218, it is the fractal characteristic curve corresponding to mesopores; when 1.2218 < lg (T2), it is the fractal characteristic curve corresponding to macropores. The fitting degree of each linear fitting function of the three sizes of pores is greater than that of the total pore, indicating that the fractal dimension of the total pore is less effective in characterizing the complexity of the rock, and the analysis of the fractal characteristics of the three sizes of pores is more reliable.

Fig. 20
figure 20

Analysis of pore fractal characteristics under 70% TCS

Fig. 21
figure 21

Analysis of pore fractal characteristics under 80% TCS

Fig. 22
figure 22

Analysis of pore fractal characteristics under 90% TCS

Based on the above calculation results of the fractal dimension, the fractal dimension of macropores is larger than that of mesopores and micropores, which indicates that the structure of macropores is the most complex, and the structure of micropores is less complex. The fractal dimension of the total pores of rock is between micropores and mesopores, which indicates that the overall structural characteristics of rock pores are good. This is due to the large proportion of micropores, which reduces the overall complexity of pores. By comparing the fractal dimensions of three sizes of pores in three groups of A, B and C, the fractal dimension of micropores is weakly affected by the change of unloading confining pressure ratio and initial axial pressure. This is because the pore size of micropores is small, the pore structure is simple, and the spatial distribution characteristics are single, indicating that with the change of external stress, the spatial structure characteristics of micropores will not produce the complex spatial structure. The fractal dimensions of mesopores and macropores show regularity with the difference in unloading confining pressure ratio and initial axial pressure, as shown in Fig. 23. Under different initial axial pressures, the fractal dimension of the middle pore becomes larger with the increase of the unloading confining pressure ratio. Under different stress conditions, the change of the middle pore is partly from the development and penetration of the micropores, and partly from the compaction of the macropores and the decrease of the pore size, which leads to the complex and changeable structure of the middle pore. The structural complexity of the middle pore is basically consistent with the trend of rock deterioration and damage. With the increase of unloading confining pressure ratio, the fractal dimension of macropores tends to increase first and then decrease. The increase in fractal dimension is related to the damage and deformation of rock internal fractures. However, at the rock failure point, the fractal dimension drops sharply. This is because a large number of fractures intersect and coalesce to expand into macro fracture surfaces when the rock destroyed, and the pore volume and pore diameter increase greatly, while the corresponding pore structure and complexity decrease, resulting in a sharp decrease in the fractal dimension.

Fig. 23
figure 23

Variation law of fractal dimensions of mesopores and macropores

5 Conclusions

In this paper, NMR technology and rock unloading mechanical test were combined to study the changes in pore structure and meso damage law of rock under different unloading stress conditions. The following conclusions were obtained:

  1. 1.

    In the process of axial compression loading, the change trend of the axial strain curve of rock is much larger than that of radial strain. In the stage of unloading confining pressure, the change range of radial strain is more obvious. When the unloading failure occurs, the rock shows obvious dilatancy characteristics. The greater the initial axial pressure, the greater the axial strain and the smaller the radial strain when the unloading failure occurs. With the increase of unloading confining pressure ratio, the rock gradually changes from elastic deformation to plastic deformation, the elastic modulus decreases, and the Poisson's ratio and strain increase. The total energy absorbed by the specimen during the test mainly depends on the axial strain energy generated by the axial deformation, and the dissipated energy is mainly used for the development of micro cracks and macro crack growth in the rock sample.

  2. 2.

    There are three peaks in T2 spectrum curve, indicating that the pore structure in sandstone is complex, mostly micropores. Under different initial axial pressures, with the increase of unloading confining pressure ratio, the area and range of T2 spectrum curve increase, the pores develop and the pore size increases. The failure of the sample is caused by the rapid increase of the number of pores, the rapid development of pore size and the accelerated expansion of macropores and cracks. With the increase of unloading confining pressure ratio, the number of micropores continues to increase, and the number of mesopores and macropores first decreases and then increases. In the initial stage of unloading, the increase in the number of micropores mainly comes from the reduction of the pore size of macropores and mesopores under compression; In the unloading failure stage, the number and size of pores increase sharply, the internal crack enters the unstable development stage, and gradually forms a sliding surface until the sample is damaged.

  3. 3.

    The porosity increases exponentially with the increase of the unloading confining pressure ratio. When the unloading confining pressure ratio is 0~75%, the porosity growth is small under the three initial axial pressures. At this stage, the development of rock pores is slow and the damage is small; When the unloading confining pressure ratio is 75~90%, the increase range of porosity becomes larger, the development of porosity accelerates, and the degree of rock damage intensifies; When the unloading confining pressure ratio is 90~100%, the sample is damaged, the porosity increases sharply, and the fracture expands and penetrates until rock failure. Under the same unloading confining pressure ratio, the greater the initial axial pressure is, the greater the porosity is, and the initial axial pressure will aggravate the damage of rock during unloading.

  4. 4.

    According to the principle of damage mechanics, the functional relationship between damage degree and unloading confining pressure ratio was established. The damage degree increases with the increase of the unloading confining pressure ratio, which can be divided into three stages. The increase of macropores during unloading failure depends on the change range of total energy. The larger the growth rate of macropores, the smaller the growth rate of total energy. The changing trend of damage degree growth rate under different initial axial pressures is consistent with the total energy when unloading failure occurs. The larger the axial pressure is, the larger the growth rate of macropores is, and the smaller the growth rate of damage degree is. The fractal dimension of micropores is weakly affected by the change in unloading confining pressure ratio and initial axial pressure. The fractal dimensions of mesopores and macropores show regularity with the difference in unloading confining pressure ratio and initial axial pressure.