1 Introduction

With the development of geothermal energy, oil and gas fields, and coalbed methane, the temperature environment of rocks has changed accordingly. Under these special temperature environments, changes in rock mechanical properties and internal structure directly affect resource extraction. The mechanical properties of rocks often change significantly before and after high-temperature treatment (Inada et al. 1997; Yavuz 2011). Scholars have studied the effect of temperature changes on the mechanical properties of rocks, such as Young's modulus, Poisson's ratio, compressive strength, tensile strength, cohesion and internal friction angle (Dwivedi et al. 2008; Nasseri et al. 2013; Zhao et al. 2012; Liu et al. 2020; Zhou et al. 2020; Gautam et al. 2018; Chen et al. 2012; Ye et al. 2015; Liang et al. 2006). Moreover, some studies have also discussed the effect of thermal changes such as freeze–thaw and thermal shock on the porosity properties of rocks. Akbulut (2022) investigated the changes in physical, mechanical, and microstructural properties of four different colored Ahlat ignimbrites under different freeze–thaw cycle conditions. It is concluded that freeze–thaw cycles lead to an increase in the number and size of fractures, cracks and pores, and the deterioration of these microstructures adversely affects the physical and mechanical properties of rocks. Yuan et al. (2022) studied the three-point bending fracture characteristics and dynamic failure characteristics of yellow sandstone treated at 25–800 °C. They found that the P-wave velocity and fracture toughness decreases slightly before the heating temperature reaches 400 °C and then decreases rapidly after 400 °C, while the crack length and peak propagation rate significantly increase with increasing temperature. Guler et al. (2021) studied the physical, mechanical, and index properties of six different carbonate rocks after thermal shock and freeze–thaw effects. They found that as the number of thermal shock and freeze–thaw cycles increases, the degradation of the internal microstructures of the carbonate rocks increases, resulting in a significant decrease in resistance to physical and mechanical actions. Sandstone is a sedimentary rock, mainly composed of various sand grains and is commonly found in a variety of geological mines. Many studies have shown that the mechanical properties of sandstone change after high-temperature treatment. For example, Deng et al. (2021) analyzed the variation law of uniaxial compression strength and peak strain of sandstone after high-temperature treatment. They found that the uniaxial compressive strength of sandstone increases rapidly with the increase of temperature at 25–500 °C, while the uniaxial compressive strength decreases rapidly at 500–600 °C due to a transition from α-quartz to β-quartz. Zhang et al. (2022) analyzed the pore characteristic change, yield strength, and deformation of the sandstones after high-temperature treatment. They found that when the heating temperature exceeds the threshold of 400 °C, the porosity of sandstone increases rapidly, the yield strength decreases rapidly, and the maximum displacement during the compaction stage increases significantly. Zhang et al. (2021b) studied the effect of temperature on the pore and microstructure of sandstone. They found that when the temperature is 500–1000 °C, the micropores of red sandstone decrease, mesopores and macropores gradually develop, and the compressive strength decreases. However, when the temperature exceeds 1000 °C, the sandstone grains gradually melt and the pores are filled, thereby reducing the porosity. In addition, many studies related to this topic have also been conducted (Zhang et al. 2021a; Li and Liu 2022; Xiao et al. 2021, 2022; Huang et al. 2021; Pathiranagei and Gratchev 2021; Li et al. 2020; Lei et al. 2019). The mechanical properties of sandstone treated at different temperatures are summarized in Table 1.

Table 1 Some data from studies about the mechanical properties of sandstone treated at different temperatures

Analyzing the variation law of creep mechanical behavior of rocks with temperature has important engineering significance for revealing the failure mechanism of long-term deformation of rocks under extreme conditions. Scholars have carried out a lot of research on the effect of temperature on creep properties of sandstone. For example, combined with scanning electron microscope, Wang et al. (2019) carried out triaxial rheological test of sandstone. They found that higher temperatures lead to more severe structural failure, which in turn reduces the integrity of the sandstone and improves the rheological response. Yang and Hu (2018) carried out multi-step loading and unloading cycles creep experiments of red sandstone after high-temperature treatment. They analyzed the variation law of strain with temperature, including instantaneous elastic strain, instantaneous plastic strain, viscoelastic strain, viscoplastic strain, and total strain. Pan et al. (2022a, b) studied the effect of temperature on the creep damage behavior of red sandstone based on acoustic emission technology. They found that the proportion of low-energy acoustic emission signal of red sandstone increases exponentially with increasing temperature. In addition, scholars have also made some progress in the study of the creep constitutive models of sandstone treated at high temperature. For example, Li and Yin (2021) proposed a nonlinear viscous pot element and a nonlinear spring element, and replaced linear viscous pot elements and linear spring element in the Nishihara model to obtain an unsteady parameter creep model. They found that the creep model is in good agreement with the actual creep curve of sandstone. Wang et al. (2018) introduces a nonlinear viscous dashpot and proposed a modified Nishihara rheological model based on thermal damage theory. The proposed that the rheological model is suitable for describing the creep curves of sandstone treated at high temperature.

Nowadays, NMR technology has been popularized in life science, food processing, oil extraction, chemistry, agriculture, and other fields. Since the NMR technology is only sensitive to the pore fluid in the porous medium, the pore structure of the porous medium can be obtained by using NMR relaxation. In addition, NMR technology is harmless to the human body, and it has the advantages of high sensitivity, fast detection, non-destructive and so on (Zhou et al. 2021; Cheng et al. 2021; Dillinger and Esteban 2014; Fang et al. 2016; Alam et al. 2014; Yao and Liu 2012; Rios et al. 2011; Li et al. 2015). Therefore, NMR technology is suitable for analyzing the distribution of pores in rocks. However, as a new non-destructive testing method, NMR technology is relatively less used to study the distribution characteristics of pores during rock creep under high-temperature conditions. Therefore, based on NMR technology, the effects of temperature on pore changes of sandstone during the creep stage are investigated in this paper. Combined with pore changes and creep deformation, the micro-damage characteristics of sandstone treated at different temperatures during the creep stage are analyzed.

2 Material and Methods

2.1 Sample Preparation

The sandstone samples are taken from the same piece of the rock. To ensure that the internal microstructures of the sandstone samples are as close as possible, the samples are processed into a cylinder and those with similar density and appearance are selected. The grain sizes of the sandstone sample are within the range of 0.1–0.5 mm. The main mineral components of sandstone samples include montmorillonite, feldspar, quartz and mica. The average density of the original sandstone samples is 2441 kg/m3, and the P-wave velocity is 3.53 km/s. The original sandstone samples are first heated in a muffle furnace to a preset temperature (25 °C, 200 °C, 400 °C and 600 °C) at a rate of 10 °C/min and stabilized for 3 h and then cooled at room temperature. Figure 1 shows sandstone samples treated at different temperatures. It can be seen from Fig. 1 that temperature has a significant effect on sandstone samples. As the temperature increases, the color of the sandstone samples gradually darkens. Especially when the temperature is 600 °C, the color of the samples becomes reddish brown. The basic physical parameters of the samples treated at different temperatures are shown in Table 2.

Fig. 1
figure 1

Sandstone samples treated at different temperatures

Table 2 Summary of basic test results on sandstone samples treated at different temperatures

2.2 Experimental Program

The experimental loading device is a triaxial servo-controlled testing machine of Chongqing University (Pan et al. 2020), as shown in Fig. 2. The experimental device consists of a loading system, a triaxial stress chamber, and a data acquisition system. The operation process of the compression experiment is as follows: (a) the sample is first placed in the triaxial stress chamber, which is subsequently sealed; (b) the loading system is operated to achieve an axial stress of 0.5 MPa, so that the sample is pretightened; (c) the sample is loaded at a certain loading speed until it fails; and (d) the data measured by the sensor is transmitted to the computer and finally a digital change is displayed on the computer screen.

Fig. 2
figure 2

The experimental loading device

Before the experiments, all sandstone samples are saturated with water. The uniaxial compression test is first carried out, and the uniaxial compressive strength (UCS) is obtained when the sample fails. The UCS is used to determine the loading stress for each level in the creep experiments. The test uses displacement loading, and the loading rate is 0.1 mm per second.

The experiment is divided into two parts: compression experiment and creep experiment. For the compression experiment, the sandstone sample is first loaded to each preset stress at a rate of 0.01 kN/s and then unloaded until the stress is zero. The preset stresses of the experiment are 0.5 \(\sigma_{{{\text{ucs}}}}\), 0.6 \(\sigma_{{{\text{ucs}}}}\), 0.7 \(\sigma_{{{\text{ucs}}}}\), and 0.8 \(\sigma_{{{\text{ucs}}}}\). The specific loading method in the compression experiment is shown in Fig. 3a. For the creep experiment, the sandstone sample is first loaded to the preset stress at a rate of 0.01 kN/s, and then the stress keeps constant. When the creep time reaches about 8 h, the stress is unloaded to zero. The specific loading method for the creep experiment is shown in Fig. 3b. In the experiment, each sample is first subjected to a compression experiment and then the same sample is subjected to a creep experiment again. The different samples are used for experiments with different preset stress levels. Moreover, uniaxial compression and creep experiments are both carried out at the room temperature, about 25 °C.

Fig. 3
figure 3

Loading methods in the experiment. a Loading method for the compression experiment. b Loading method for the creep experiment

A loading ratio is introduced to represent the loading stress level. The loading ratio is the ratio of the preset stress to the uniaxial compressive strength. The expression of load ratio is written as:

$$k = \frac{{\sigma_{a} }}{{\sigma_{{{\text{ucs}}}} }},$$
(1)

where \(\sigma_{a}\) is the preset stress, and \(\sigma_{{{\text{ucs}}}}\) is the uniaxial compressive strength.

The loading ratios and corresponding loading stresses of sandstone samples treated at different temperatures are shown in Table 3.

Table 3 The loading ratios (k) and the corresponding loading stresses (\(\sigma_{a}\))

2.3 Sample Saturation and NMR Measurements

Before the NMR measurement, the samples must be saturated with water. First, the sandstone samples are placed in a vacuum container with − 0.1 MPa and degassed for more than 24 h. Then water is injected into the container so that the samples are saturated with water for more than 12 h in an environment with a water pressure of 1 MPa. The detailed experimental flowchart is shown in Fig. 4.

Fig. 4
figure 4

Flowchart of the experimental procedure

In addition to NMR measurement, the porosity of samples can be also obtained by the conventional water imbibition (WI) method. Through the mass and volume of the dried sample and saturated sample, the porosity of the sandstone samples can be calculated. The WI porosity is expressed by

$$\lambda_{{\text{w}}} = \frac{{m_{{\text{s}}} - m_{{\text{d}}} }}{{\rho_{{\text{w}}} V_{{\text{r}}} }} \times 100\% ,$$
(2)

where λw is the WI porosity, ρw is the density of water, Vr is the volume of sandstone sample, ms is the mass of the saturated sample, and md is the mass of the dried sample.

3 Analysis of the Results

3.1 Validation of the NMR Tests

The paper verifies the accuracy of NMR detection by comparing the WI method with the NMR method. Table 4 shows the porosity obtained by the NMR method and the WI method. The porosity obtained by the WI method is slightly larger than that obtained by the NMR method. This difference is due to the limitations of NMR technology. The NMR technology cannot detect pores smaller than 3 nm due to the extremely fast relaxation of hydrogen in small pores (Daigle et al. 2017). However, it can be seen from the test results that the error between NMR porosity and WI porosity is very small (not more than 1%), so the NMR test result is accurate.

Table 4 Comparison of NMR porosity and WI porosity

To compare the NMR porosity and WI porosity more intuitively, the NMR porosity and WI porosity are plotted graphically in Fig. 5. The horizontal axis is the WI porosity, and the vertical axis is the NMR porosity. It can be found from Fig. 5 that these points drawn by the NMR porosity and WI porosity are almost located near the angular bisector (y = x). It is confirmed that the results obtained by the NMR test are in good agreement with those obtained by the WI method. Therefore, the NMR technology is suitable for detecting the porosity of rocks.

Fig. 5
figure 5

Comparison of the NMR porosity and WI porosity

3.2 T 2 Spectra Distribution

The NMR technology of rocks is mainly realized by monitoring the relaxation characteristics of hydrogen atoms contained in the pores of saturated samples. The relaxation rate of NMR is very sensitive to the effects of the hydrogen atoms of the fluid in the porous medium, and can reflect the interaction between the fluid and the porous medium. The porosity of different rocks is different, and the position and number of hydrogen atoms reflected by the NMR signal are different. Therefore, according to the NMR signal of hydrogen atoms, it is possible to track the initiate and propagate of cracks in rock samples under different stress conditions. For the fluid in the pores, there are three different relaxation mechanisms, including free relaxation, surface relaxation and diffusion relaxation. In rock pores, the T2 relaxation time of a fluid can be expressed as

$$\frac{1}{{T_{2} }} = \frac{1}{{T_{{2{\text{b}}}} }} + \frac{1}{{T_{{2{\text{s}}}} }} + \frac{1}{{T_{{2{\text{d}}}} }},$$
(3)

where T2b is the lateral relaxation time of the free state fluid, T2s is the lateral relaxation time of the fluid due to surface relaxation, and T2d is the lateral relaxation time of the fluid due to diffusion relaxation under a gradient magnetic field.

In saturated samples, surface relaxation plays a key role, that is, T2 is directly proportional to the pore size, which can be written as:

$$\frac{1}{{T_{2} }} \approx \frac{1}{{T_{{2{\text{s}}}} }} = \rho_{2} \left( \frac{S}{V} \right)_{k} ,$$
(4)

where ρ2 is the surface relaxation rate of T2, and \(\left( \frac{S}{V} \right)_{k}\) is the specific surface area of the pores.

The T2 spectrum can reflect the information about the characteristics of pores. The longer the relaxation time of the water in the pores, the larger is the pore size; the shorter the relaxation time of the water in the pores, the smaller is the pore size. In other words, the relaxation time in the T2 spectrum is positively correlated with the pore size. The volume of pores and cracks is related to the amplitude of T2 spectrum. The larger the amplitude, the larger is the total volume of the corresponding pores and cracks.

When the temperatures are 25 °C, 200 °C, 400 °C and 600 °C, the NMR T2 distributions of the sandstone samples under the different loading ratios are shown in Figs. 6, 7, 8, and 9, respectively. When the temperatures are 25 °C and 200 °C, the T2 distribution curves of the sandstone samples have two spectral peaks. The pores corresponding to the two spectral peaks are called mesopores and macropores from left to right. When the temperatures are 400 °C and 600 °C, the T2 distribution curves of the sandstone samples have three spectral peaks. The pores corresponding to the three spectral peaks are called micropores, mesopores, and macropores from left to right. As the temperature increases, the spectral peak corresponding to the micropores becomes more obvious. That is, as the temperature increases, the micropores inside the rock increase. In addition, the T2 distribution curves after creep are all on the right of the T2 curve after compression. Compared with the spectral peak of the sandstone sample after compression, the spectral peak after creep is larger. This means that the creep behavior of the sandstone sample promotes an increase in porosity. In the process of rock creep, due to the propagation of pores, micropores gradually evolve into mesopores and macropores, leading to a decrease in micropores and an increase in mesopores and macropores.

Fig. 6
figure 6

T2 distribution of sandstone samples treated at 25 °C

Fig. 7
figure 7

T2 distribution of sandstone samples treated at 200 °C

Fig. 8
figure 8

T2 distribution of sandstone samples treated at 400 °C

Fig. 9
figure 9

T2 distribution of sandstone samples treated at 600 °C

3.3 Changes in the Porosity of Sandstone Samples

Porosity is one of the important indexes for studying the physical and mechanical properties of rocks (Lia et al. 2018). Porosity refers to the ratio of the sum of all pore volumes in a rock sample to the volume of the rock sample, expressed as a percentage. According to the test result of T2 spectrum, the porosity of sandstone sample can be obtained. During the creep stage, the change in porosity of sandstone sample is represented by the incremental value of porosity. The incremental value of porosity refers to the difference between the porosity of the sample before creep and the porosity of the sample after creep. Figure 10 shows the incremental value of porosity of sandstone sample treated at different temperatures during the creep stage. Under the same temperature treatment, as the loading ratio increases, the incremental value of porosity of sandstone sample gradually increases. By fitting the incremental value of porosity of the sandstone sample, it can be found that there is a good exponential function relationship between the incremental value of porosity and the loading ratio. The exponential function expression is \(P = ae^{bk} + c\), where a, b, and c are the fitting parameters. In addition, it can be seen from Fig. 10 that the higher the temperature, the higher is the exponential function curve. This implies that under the same loading ratio, the greater the temperature, the greater is the incremental value of porosity.

Fig. 10
figure 10

The incremental value of porosity in the creep stage of the sandstone sample treated with different temperatures

As the loading ratio increases, the incremental value of porosity of the sandstone sample gradually increases, and the incremental rate gradually increases. Especially when the loading ratio exceeds 0.6, the incremental value of porosity increases faster. When the loading ratio is 0.7, as the temperature increases from 25 to 400 °C, the incremental value of porosity is 0.424%, 0.531% and 0.566%, respectively. When the loading ratio is 0.8 and the temperature is 600 °C, the incremental value of porosity reaches 1.093%. It indicates that when the loading ratio exceeds 0.6, severe damage to the sandstone sample is initiated and propagated during the creep stage, and there exists unstable growth of microcracks in the sandstone sample.

Under the same loading ratio, as temperature increases, the incremental value of porosity gradually increases. By fitting the change curve of the incremental value of porosity with temperature, a linear relationship between the incremental value of porosity and the temperature can be obtained, as shown in Fig. 11. It indicates that the temperature promotes the increase of the porosity of sandstone in the creep stage. Moreover, it is found that as loading ratio increases, the incremental rate of porosity increases. When the loading ratios are 0.5, 0.6 and 0.7, the slopes of the corresponding curves are 1.81, 2.34 and 2.90, respectively. It indicates that the larger the loading ratio, the more sensitive is the incremental value of porosity to temperature.

Fig. 11
figure 11

The relationship between the incremental value of porosity and temperature

3.4 Damage Characteristics of Sandstone During the Creep Stage

When the rock is affected by external forces, temperature, water, and other factors, cracks or defects occur in the rock, indicating the occurrence of damage. Many ways can be used to define rock damage. Some methods are based on the plastic deformation of the materials or acoustic emission signals to define the damage, and other methods are based on the elastic modulus of the material to define the damage. This paper defines the damage of sandstone sample in the creep process based on the change of rock porosity. The D value is introduced to quantitatively analyze the damage of the sandstone sample. The D value is written as (Zhou et al. 2021)

$$D = \frac{{\Delta P_{a}^{i} }}{{P_{a}^{i} }} = \frac{{P_{a}^{i} - P_{a}^{i - 1} }}{{P_{a}^{i} }}\quad \left( {i = {1},\;{2},\;{3}, \ldots } \right),$$
(5)

where \(P_{a}^{i}\) is the porosity of the sandstone sample after the ith creep stage, \(P_{a}^{0}\) is the initial porosity of the sandstone sample, and \(\Delta P_{a}^{i}\) is the incremental value of porosity during the ith creep stage.

The D value can well represent the damage caused by the creep behavior to the sandstone sample. Under different loading ratios and temperature conditions, the corresponding D values are different. Figure 12 shows the variation law of D value with loading ratio. It can be found from Fig. 12 that the D value increases exponentially with an increase in the loading ratio, and the greater the loading ratio, the greater is the incremental rate of the D value. Figure 13 shows the variation law of D value with temperature. As the temperature increases, the D value first increases and then decreases. When the temperature increases from 25 to 200 °C, the D value increases. When the temperature increases from 200 to 600 °C, the D value gradually decreases. Moreover, when the loading ratio is 0.7, as the temperature increases from 200 to 600 °C, the D value decreases faster. Such phenomenon indicates that the larger the loading ratio, the greater is the effect of temperature on creep damage of the sandstone sample.

Fig. 12
figure 12

The relationship between D value and loading ratio under different temperatures

Fig. 13
figure 13

The relationship between D value and temperature under different loading ratios

3.5 Percentage of Pore Distribution

The porosity of rocks is an important indicator to describe the rock structure. The test method of porosity of rocks based on NMR technology can accurately determine the proportion of pores with different pore sizes. According to the classification of pore size by NMR theory, the pores in the range of T2 < 10 ms are defined as micropores, and the pores in the range of T2 > 10 ms are defined as macropores (Tang et al. 2016). Based on the division of the pore distribution in the T2 spectrum, Fig. 14 shows the percentage of the pore of sandstone samples treated at different temperatures after compression and creep experiments. Irrespective of whether after the compression experiment or the creep experiment, the percentage of micropores is relatively large, about 60–80%, while the percentage of macropores is small, about 20–40%.

Fig. 14
figure 14

Percentage of the pore of sandstone samples treated at different temperatures after compression and creep experiments

To analyze the relationship between pore distribution and loading ratio more clearly, Fig. 15 shows the variation law of micropores and macropores with loading ratio. When the temperatures are 25 °C, 200 °C and 400 °C, as the loading ratio increases from 0.5 to 0.6, the percentage of micropores decreases, while the percentage of macropores increases. When the temperature is 600 °C, as the loading ratio increases from 0.5 to 0.7, the percentage of micropores decreases, while the percentage of macropores increases. This phenomenon implies that when the stress level is small, only a small number of newly created micropores are initiated inside the rock, and more number of micropores are compacted or propagated into macropores. With the increase of stress level, many micropores are compacted or propagated into macropores, while more newly created micropores are initiated at this time. Therefore, when the loading ratio is small, as the loading ratio increases, the percentage of micropores decreases, while the percentage of macropores increases. When the temperatures are 25 °C, 200 °C, and 400 °C, as the loading ratio increases from 0.6 to 0.7, the percentage of micropores increases, while the percentage of macropores decreases. When the temperature is 600 °C, as the loading ratio increases from 0.7 to 0.8, the percentage of micropores increases, while the percentage of macropores decreases. This phenomenon indicates that the larger stress levels cause more severe damage to the rock, and more micropores are propagated into macropores in the creep stage. Therefore, when the loading ratio is larger, as the loading ratio increases, the percentage of the micropores increases and the percentage of the macropores decreases.

Fig. 15
figure 15

Relationship between the percentage of the pore distribution and the loading ratio under different conditions

4 Discussions on the Creep Curves

The creep curve can directly reflect the creep state of the rock sample at different times. Figure 16 shows the creep curves of the multi-stage creep tests of sandstone treated at different temperatures. It can be found from Fig. 16 that under different temperature conditions, the sandstone sample has a transient strain after being loaded, while the attenuation creep strain is not obvious. The stress level has a significant influence on the creep law of sandstone sample at each stage. At the same temperature, as the loading ratio increases, the deformation of the sandstone sample increases significantly. When the loading ratio is 0.5–0.7, the creep strain is relatively stable and slowly increases over time. During the creep stage at these loading levels, the deformation of sandstone sample is small, leading to a relatively small change in porosity. However, when the loading ratio is 0.8 under the temperature of 25 °C and 200 °C, the sample fails and there is almost no creep strain. As the temperature increases to 400 °C, the creep stage is very short and the creep strain increases rapidly when the loading ratio is 0.8. As the temperature increases to 600 °C, the creep strain is relatively stable and slowly increases over time when the loading ratio is 0.8. This indicates that as the temperature increases, the ductility of the sandstone sample increases.

Fig. 16
figure 16

The curves of the axial strain versus time under different loading ratios

The deformation of sandstone samples in the creep stage is different under different stress levels or temperature treatment conditions. Figure 17 shows the variation law of creep strain with loading ratio of sandstone samples treated at different temperatures in the creep stage. It can be found from Fig. 17 that the creep strain has an exponential function relationship with the loading ratio. As the loading ratio increases, the creep strain increases, and the incremental rate of the creep strain is greater with an increase in the loading ratio. When the loading ratio increases from 0.5 to 0.6, the creep strain increases relatively slowly. When the loading ratio is greater than 0.6, the creep strain increases faster. Especially, when the temperature is 25 °C, 200 °C, and 400 °C, as the loading ratio increases from 0.6 to 0.7, the creep strain increases faster, increasing by 0.01108%, 0.01464% and 0.01494%, respectively. When the temperature is 600 °C, as the loading ratio increases from 0.7 to 0.8, the creep strain increases from 0.05427 to 0.09183% with an increment of 0.03756%. In addition, under the same loading ratio, as the temperature increases, the creep strain increases significantly. This implies that temperature promotes the deformation of sandstone sample during the creep stage.

Fig. 17
figure 17

The variation law of creep strain with loading ratio of sandstone samples treated at different temperatures

Figure 18 shows the variation law of creep strain of sandstone samples in the creep stage with temperature. It can be found from Fig. 18 that the creep strain has a linear function relationship with the temperature. As the temperature increases, the creep strain increases linearly. In addition, the greater the loading ratio, the greater is the increase rate of creep strain. When the loading ratio is 0.5, 0.6 and 0.7, the slopes of the corresponding curves are 1.87, 2.39 and 3.07, respectively. This means that the effect of temperature on the creep strain is more obvious at high stress levels.

Fig. 18
figure 18

Relationship between creep strain and temperature under different loading ratios

The loading ratio and temperature have obvious effects on the creep mechanical properties of sandstone. Comparing Figs. 10 and 17, it can be found that as loading ratio increases, the variation law of the incremental value of porosity is similar to the variation law of creep strain, and both increase exponentially. Similarly, comparing Figs. 11 and 18, it can be found that as temperature increases, the variation law of the incremental value of porosity is similar to the variation law of creep strain, and both increase linearly.

During the creep stage, the porosity of the sandstone sample changes with the change of the creep deformation. Figure 19 shows the variation law of the incremental value of porosity with creep strain of sandstone samples treated at different temperatures. It is found from Fig. 19 that under the same temperature treatment conditions, the creep strain increases with increasing the loading ratio, leading to a linear increase in the incremental value of porosity. When the loading ratio increases, the sandstone sample enters the yield stage, the creep strain increases; at this time, the creep behavior promotes the initiation of some new microcracks in the sample, leading to the increase of porosity. When the loading ratio increases to a certain level, the sandstone sample is close to failure; at this time, the creep strain increases rapidly, and a large number of microcracks propagate and coalesce to form macrocracks, leading to a rapid increase in the porosity. Heap et al. (2009) and Zhou et al. (2021) also believed that the initiation, propagation and coalescence of microcracks during creep stage are the main reasons for the increase in porosity. They concluded that the increase in stress promotes the initiation of microcracks within the rock, leading to an increase in rock porosity. In addition, it can be found from Fig. 19 that as the temperature increases, the slope of the curve decreases significantly. As the temperature increases from 25 to 600 °C, the slopes of the curves are 16.59, 16.47, 15.87 and 13.81, respectively. It can be concluded that the larger the temperature, the smaller is the effect of creep strain on the incremental value of porosity.

Fig. 19
figure 19

Relationship between the incremental value of porosity and creep strain under different temperatures

Figure 20 shows the variation law of the incremental value of porosity with creep strain under the different loading ratios. It can be found from Fig. 20 that under the same loading ratio, the creep strain increases with increase in the temperature, leading to a linear increase in the incremental value of porosity. However, as the loading ratio increases, the incremental value of porosity increases faster. As the loading ratio increases from 0.5 to 0.7, the slopes of the curves are 9.35, 9.43, and 9.47, respectively. This is because the increase of the loading ratio promotes the more serious damage inside the sandstone sample, which leads to the easier increase of the porosity of the sandstone sample during the creep stage. It is believed that the microscopic deformation and damage characteristics of rock can be indirectly inferred from the change of porosity in the creep stage.

Fig. 20
figure 20

Relationship between the incremental value of porosity and creep strain under different loading ratios

The microstructure characteristics of rocks in high-temperature environment involve many fields such as geotechnical, mining, geology, and energy. The development and utilization of underground space, exploitation of deep mineral resources, and development of geothermal resource areas are all faced with the change of rock mechanical properties in high-temperature environment. Therefore, it is important to study the variation law of porosity during the creep stage of rocks under high-temperature conditions. Based on NMR technology, this paper analyzes the influence of sandstone creep behavior on porosity. It is found that the incremental value of porosity and loading ratio satisfies a good exponential function relationship, while the incremental value of porosity and temperature satisfies a linear function relationship. Through quantitative analysis of NMR parameters, the distribution of porosity of sandstone sample in creep stages under different conditions is discussed. It is found that irrespective of whether after the compression experiment or the creep experiment, the percentage of micropores is relatively large, about 60–80%, while the percentage of macropores is small, about 20–40%. In addition, the creep damage mechanism of sandstone is discussed by combining the change characteristics of the porosity and the characteristics of creep deformation of sandstone sample during the creep stage. It is found that there exists an exponential function relationship between the creep strain and the loading ratio, while there exists a linear function relationship between the creep strain and the temperature.

Heap et al. (2009) studied the effect of temperature on the creep properties of three sandstones. The experimental temperature varies from 20 to 75 °C. They found that the creep curve at 75 °C is similar to that at room temperature. However, the study in this paper is the creep law of sandstone after high-temperature treatment of 25–600 °C, which is obviously different from the creep law of sandstone under low-temperature conditions. Some differences can be concluded as follows: (1) as temperature increases, the incremental value of porosity increases linearly. It indicates that the temperature promotes the increase of the porosity of sandstone in the creep stage. Moreover, it is found that as loading ratio increases, the incremental rate of porosity also increases. When the loading ratio is 0.5, 0.6 and 0.7, the slopes of the corresponding curves are 1.81, 2.34, and 2.90, respectively. It indicates that the larger the loading ratio, the more sensitive is the incremental value of porosity to temperature. (2) The creep strain has a linear function relationship with the temperature. As the temperature increases, the creep strain increases linearly. In addition, the greater the loading ratio, the greater is the increase rate of creep strain. When the loading ratios are 0.5, 0.6 and 0.7, the slopes of the corresponding curves are 1.87, 2.39 and 3.07, respectively. This means that the effect of temperature on the creep strain is more obvious at high stress levels.

Baud and Meredith (1997) believed that during the creep stage of rock, as stress increases, there are more microcracks in the rock, leading to the increase of porosity. This is similar to the variation law of porosity of sandstone sample obtained in this paper. For example, it can be seen from Fig. 10 that under the same temperature treatment, as the loading ratio increases, the incremental value of porosity of sandstone sample gradually increases, and the incremental rate gradually increases. When the loading ratio exceeds 0.6, severe damage to the sandstone sample is initiated and propagated during the creep stage, and there exists unstable growth of microcracks or microdefects in the sandstone sample. It is believed that when the loading ratio increases, the sandstone sample enters the yield stage and the creep strain increases; at this time, the creep behavior promotes the initiation of some new microcracks in the sample, leading to an increase of porosity. When the loading ratio increases to a certain level, the sandstone sample is close to failure; at this time, the creep strain increases rapidly, and a large number of microcracks propagate and coalesce to form macrocracks, resulting in a rapid increase in the porosity.

Chen et al. (2017) studied the effect of temperature and stress on the creep behavior of granite. They found that the creep strain increases with increasing temperature and deviatoric stress. Yang and Daemen (1997) carried out uniaxial creep experiments of tuff at room temperature and 204 °C, and showed that as temperature increases, the creep deformation of tuff increases. The results of these previous studies are similar to the variation law of creep deformation with stress and temperature in this paper. For example, it can be found from Fig. 17 that the creep strain has an exponential function relationship with the loading ratio. As the loading ratio increases, the creep strain increases, and the increase rate of the creep strain is greater with an increase in the loading ratio. It can be found from Fig. 18 that the creep strain has a linear function relationship with the temperature. As the temperature increases, the creep strain increases linearly. The greater the loading ratio, the greater is the increase rate of creep strain. When the loading ratio is 0.5, 0.6 and 0.7, the slopes of corresponding curves are 1.87, 2.39 and 3.07, respectively. In addition, the paper also analyzes the relationship between the incremental value of porosity and the creep strain. It can be concluded that the larger the temperature, the smaller is the effect of creep strain on the incremental value of porosity. Under the same loading ratio, the creep strain increases with increase in the temperature, leading to a linear increase in the incremental value of porosity. It is believed that the microscopic deformation and damage characteristics of rock can be indirectly inferred from the change of porosity in the creep stage.

5 Conclusions

In this paper, combined with the NMR technology, the measured parameters are used to quantitatively characterize and evaluate the microstructure changes of sandstones treated at different temperatures during the creep stage. The internal damage mechanism and mechanical properties of sandstone treated at different temperatures during the creep stage are discussed, and the following conclusions are finally drawn:

  1. 1.

    In the process of rock creep, due to the propagation of pores, micropores gradually evolve into macropores, leading to a decrease in micropores and an increase in macropores. However, irrespective of whether after the compression experiment or the creep experiment, the percentage of micropores is relatively large, about 60–80%, while the percentage of macropores is small, about 20–40%. When the loading ratio is small, as the loading ratio increases, the percentage of micropores decreases and that of macropores increases. When the loading ratio is large, as the loading ratio increases, the percentage of micropores increases and that of macropores decreases.

  2. 2.

    The incremental value of porosity and loading ratio satisfies a good exponential function relationship, while the incremental value of porosity and temperature satisfies a linear function relationship. The creep strain has an exponential function relationship with the loading ratio, while the creep strain has a linear function relationship with the temperature. Temperature promotes the deformation of sandstone sample during the creep, and the effect of temperature on the creep strain is more obvious at high stress levels.