1 Introduction

The hydro-thermal coupling process in fractured rock mass is a frequently encountered problem in petroleum and geothermal development, disposal of nuclear waste, geological storage of carbon dioxide (CO2), the prevention and control of high-temperature thermal damage in deep mining, the stability analysis of soft rock tunnel in cold regions. Since the problem has significant theoretical value as well as broad prospects for engineering applications, many researchers have studied the hydro-thermal coupling problem of fractured rock masses in the past 30 years. For example, Barton et al. [2] conducted a preliminary study on the coupling effect between seepage field, stress field, and temperature field of rock mass. Rutqvist [34] linked the tough family multiphase fluid and heat transport codes with the commercial FLAC3D geomechanical simulator for modeling coupled multiphase flow, heat transport, and geomechanics. Sun et al. [38] presented a mathematical model incorporating the thermal–hydraulic-mechanical (THM) coupling effect to simulate a fractured enhanced geothermal systems (EGS) reservoir in which the geothermal reservoir is regarded as fractured porous media consisting of rock matrix and discrete fractures. Moreover, an international co-operative research project has been established under the name DECOVALEX for theoretical and experimental studies of coupled thermal, hydrological, and mechanical processes in hard rocks [7, 13, 40]. However, the study of coupling between the seepage field and temperature field (i.e., hydro-thermal coupling) of fractured rock mass is relatively few.

In the experimental research of hydro-thermal coupling, Zhao [48] studied the convective heat transfer and water flow in rough granite fractures through experimental investigation. Xu et al. [41] developed a large-scale hydraulic fracturing simulation system for hot dry rock under high-temperature and high-stress conditions. This system can perform experiments of fluid flow in fractures and heat transfer between the fluid and rock under different temperature conditions.

In the numerical study of hydro-thermal coupling, Pruess [32] studied the heat and mass transfer problems between bedrock and fracture, and the effect of bedrock permeability and fracture aperture on heat transfer by numerical simulation. Abdallah et al. [1] proposed a thermal convection model into the universal distinct element code (UDEC) [10] to study the heat transfer caused by fluid circulation through the fractures in rock masses. Tomac, Gutierrez [39] presented the formulation, and implementation of a novel convective heat convection model in the particle flow code (PFC) [8]. Shaik et al. [36] developed a numerical procedure coupling fluid flow with heat transfer and investigated the effect of heat transfer between rock matrix and circulating fluid on economic hot water production from fractured geothermal systems. Jiang et al. [12] presented a three-dimensional transient model for the study of subsurface thermo-hydraulic processes during EGS heat extraction, in which the local thermal non-equilibrium between rock matrix and the fluid flowing in the porous heat reservoir is considered. Xu et al. [42] proposed a simplified approach to simulate the coupled hydro-thermal system based on an equivalent pipe network model. Cui et al. [5] presented the coupled thermo-hydraulic governing formulation as well as the coupled thermo-hydraulic boundary condition for studying convection-dominated heat transfer in ground source energy systems, such as open-loop systems.

The above hydro-thermal coupling models are either based on continuum or discontinuum. The coupled hydro-thermal model based on continuum is difficult to characterize the special conductivity effect of fractures. Although the discontinuous-based hydro-thermal coupling model can consider a large number of fractures in rock mass, it is difficult to consider crack initiation and propagation when extended to THM couplings.

Therefore, based on the study of Tomac [39] and Shaik [36], this paper presents a coupled hydro-thermal model for the combined finite-discrete element method (FDEM)—an excellent continuous–discontinuous method for simulating rock rupture [26, 28]. This novel coupled hydro-thermal model not only can explicitly consider the fluid flow and heat transport in fractured rock mass, but also can easily extend to the cases of coupled THM (including rock rupture). This paper focuses on the formulation and implementation of the coupled hydro-thermal model in FDEM. The use of the model in coupling THM FDEM modeling will be described in another publication.

FDEM combines the advantages of the finite element method in simulating deformation of solid and the discrete element method in handling contact interaction between blocks. Moreover, the method can simulate crack initiation and propagation by breaking joint elements. In recent years, FDEM and the FDEM code Y [26, 27] have been widely used in the field of rock mechanics, especially in studies of rock rupture [14, 16, 18, 21, 23, 25, 29, 33, 35, 44]. For example, Lei, Rougier and Knight have conducted a lot of interesting research in this area [15, 19, 20]. However, this method can be used for only pure mechanical calculations and cannot be used to address hydro-mechanical coupling problems and hydro-thermal coupling problems. Therefore, some researchers combine FDEM with other software or directly construct the coupled hydro-mechanical model or coupled thermo-mechanical model in FDEM [17, 22, 24, 43,44,45,46,47]. However, FDEM still cannot deal with the coupled hydro-thermal problems. Therefore, a 2D coupled hydro-thermal model (FDEM-TH) based on FDEM is proposed in this paper for simulating heat transfer between fluid and rock. Combining the advantage of FDEM in simulating the deformation and rupture of rock, this coupled hydro-thermal model can be easily extended to the case of coupling THM (including rock rupture).

This paper is organized as follows: First, the heat conduction model of rock matrix is introduced. Secondly, the heat conduction and convection model of fluid in fracture are presented. Then, the heat exchange model between fluid and rock matrix at fracture is presented. Combining the above three parts, a coupled hydro-thermal model is constructed directly in FDEM. Finally, three examples with analytic solution are given to verify the correctness of the coupled hydro-thermal model. Moreover, an example of hydro-thermal coupling in fractured rock mass is given. The temperature distribution in the rock mass and the effect of rock thermal conductivity and fracture aperture on the outlet fluid temperature are investigated.

2 Heat-transfer model

2.1 Heat conduction model of rock matrix

According to Fourier’s law of heat transfer, the heat flow rate in the i direction per unit area can be expressed as:

$$q_{i} = - k_{ij} \frac{\partial T}{{\partial x_{j} }}$$
(1)

where qi is the heat flow rate along i direction, kij is the tensor of the thermal conductivity of the rock matrix, and T is the temperature.

For any given mass M, the temperature change can be written as [11]

$$\frac{\partial T}{\partial t} = \frac{{Q_{\text{net}} }}{{C_{\text{p}} M}}$$
(2)

where Qnet is the net heat flowing into mass M per unit time, Cp is the specific heat of rock matrix, and M is the mass.

In FDEM, a heat conduction calculation model as shown in Fig. 1 is constructed. The common nodes of the triangular elements and joint elements, as nodes 1–9 show in Fig. 1, are located at the intersection the joint elements. We use the temperature of these discrete nodes to characterize the temperature field of the continuum. One-third mass of all the triangular elements that connect to one node is equivalent to the node. Here, we introduce how to calculate the temperature field of the continuum based on the topological connections shown in Fig. 1.

Fig. 1
figure 1

Heat-transfer model of rock matrix

Taking node 1 in Fig. 1 as an example, seven triangular elements (Δ123, Δ134, Δ145, Δ156, Δ167, Δ178, and Δ182) connect to node 1. We take the polygon that surrounds node 1 as a domain, and the heat conduction calculation of the domain is equivalent to node 1. The temperature of the entire polygon region is represented by node 1. Since the temperature at nodes 2, 3, 4, 5, 6, 7 may be different from the temperature at node 1, heat conduction may occur in these regions. Here, we take one of the triangular elements Δ123 that connect to node 1 as an example. Assuming that the temperature distribution in the triangular element obeys linear distribution, the temperature gradient at any point in the triangular element is constant and can be expressed as

$$\frac{\partial T}{{\partial x_{i} }} = \frac{1}{A}\int\limits_{A} {\frac{\partial T}{{\partial x_{i} }}{\text{d}}A}$$
(3)

According to the divergence theorem, Eq. [38] can be written as

$$\frac{\partial T}{{\partial x_{i} }} = \frac{1}{A}\int\limits_{s} {Tn_{i} \,{\text{d}}s} = \frac{1}{A}\sum\limits_{m = 1}^{3} {\bar{T}^{m} } \in_{ij} \Delta x_{j}^{m}$$
(4)

where A is the area of the triangular element, n is the outer normal vector, \(\bar{T}^{m}\) is the average temperature of the edge m, Δx mj is the difference between the coordinate components of the two vertices at the edge m, and ij is the two-dimensional permutation tensor, \(\in = \left( {\begin{array}{*{20}c} 0 & 1 \\ { - 1} & 0 \\ \end{array} } \right)\).

Then, substituting Eq. [4] into Eq. [1], the heat flow rate in the x and y directions (qx and qy) can be obtained.

Thus, the heat flow into node 1 per unit time can be calculated by the following equation

$$Q = - \frac{{q_{i} n_{i}^{(n)} L^{(n)} }}{2}$$
(5)

where n (n) i is the outer normal unit vector of the edge opposite to node n and L(n) is the length of the edge opposite to node n.

Thus, the heat flow QΔ123 into node 1 from the triangular element Δ123 is obtained. Similarly, the heat flow into node 1 from the other triangular elements that directly connect to the node can also be obtained. Then, the total heat flow into node 1 per unit time can be expressed as

$$Q_{\text{s}} = Q_{D123} + Q_{D134} + Q_{D145} + Q_{D156} + Q_{167} + Q_{178} + Q_{182}$$
(6)

Thus, according to Eq. [2], the temperature of node 1 at the next time step is given by

$$T_{t + \Delta t}^{\text{s}} = T_{t}^{\text{s}} + \frac{{Q_{\text{s}} }}{{C_{\text{s}} \rho_{\text{s}} V_{\text{s}} }}\Delta t$$
(7)

where Cs is specific heat of rock matrix, ρs is the mass density of rock matrix, Vs is the rock matrix volume of the node 1.

Similarly, the temperature of other discrete nodes can be updated by the above method. Then, the evolution of the temperature field in the entire solution domain can be obtained.

Since an explicit algorithm is used in the thermal conduction calculation of this paper, the time step should be less than the critical time to ensure the numerical stability. The critical time step is given by

$$\Delta t_{\text{c}} = \frac{{(\Delta x)^{2} }}{{4\kappa \left[ {1 + {{h\Delta x}/{2k}}} \right]}}$$
(8)

where Δx is the size of the smallest element, h is the convective heat-transfer coefficient, and κ is the thermal diffusion coefficient (k/ρCp when kx = ky).

2.2 Fluid heat-transfer model in a fracture

As fluid flows in a fracture, the heat in fluid is transported by convection and conduction. Figure 2 shows a portion of the hydraulic fracture network formed by the broken joint elements in FDEM, where the cyan line represents the path of the fluid flow, while the triangular elements and the other joint elements do not allow fluid flow.

Fig. 2
figure 2

Fluid heat-transfer model in fractures

Taking node 1 as an example, the temperature difference between node 1 and node 2 is given by:

$$\Delta T = T_{ 1} - T_{ 2}$$
(9)

where T1 is the temperature of node 1 and T2 is the temperature of node 2. Then, according to Fourier’s law, the heat flow rate between node 1 and node 2 caused by the heat conduction is given by

$$q_{ 1 2} = - k_{\text{f}} \frac{\Delta T}{L}$$
(10)

where kf is the thermal conductivity of the fluid and L is the distance between the two nodes. If the temperature of node 1 is higher than that of node 2, then the heat flows out from node 1 into node 2.

Similarly, the heat flow rate between node 1 and nodes 5 or 7 can also be obtained. Finally, the total heat flow rate into node 1 due to the heat conduction is given by \(Q_{{{\text{f}}1}} = q_{ 1 2} + q_{ 1 5} + q_{ 1 7}\).

2.3 Heat convection model of fluid in a fracture

In addition to heat conduction, the heat flow between two nodes can also be caused by heat convection, as shown in Fig. 2. The temperature difference between node 1 and node 2 is given by \(\Delta T = T_{ 1} - T_{ 2}\) according to Eq. [9].

The heat flow due to convection between node 1 and node 2 is given by

$$q_{ 1 2} { = - 0} . 5\rho_{\text{f}} C_{\text{f}} q_{\text{f}} \frac{\Delta T}{L}$$
(13)

where qf is the fluid flow rate between node 1 and node 2 and can be obtained by the following approach. Assuming that the pressures at nodes 1 and 2 are p1 and p2, respectively, the pressure difference between node 1 and node 2 without considering gravity is \(\Delta p = p_{ 1} - p_{ 2}\). According to the cubic law [37], the fluid flow rate between node 1 and node 2 is given by

$$q_{\text{f}} = - \frac{1}{12\mu }a^{3} \frac{\Delta p}{L}$$
(14)

where μ is the dynamic viscous coefficient of the fluid and a is the aperture of the fracture.

Similarly, the heat flow rates between node 1 and nodes 5 or 7 induced by convection can also be obtained. Thus, the total heat flow rate of node 1 due to the convection of the fluid is \(Q_{\text{f2}} = q_{21} + q_{41} + q_{51}\).

The temperature of node 1 at the next time step can then be updated as follows:

$$T_{t + \Delta t}^{\text{f}} = T_{t}^{\text{f}} + \frac{{Q_{\text{f}} \Delta t}}{{C_{\text{f}} \rho_{\text{f}} V}}$$
(15)

where Ttf is the temperature of node 1 at the previous time step, Cf is the specific heat of the fluid, ρf is the mass density of fluid, \(Q_{\text{f}} { = }Q_{\text{f1}} { + }Q_{\text{f2}}\) is the total heat flow rate of node 1, Δt is the time step, and Vis the half volume of all the broken joint elements that connect to node 1, as shown in Fig. 2.

The stability of the numerical scheme for solving the heat convection problems is governed by two numbers: the Peclet number \(P_{\text{e}} = {{\rho_{\text{f}} q_{\text{f}} C_{\text{f}} L}}/{{k_{\text{f}} }}\) and the Courant number \(C_{\text{rg}} = {{\left| {v_{\text{f}} } \right|\Delta t}}/{L}\), where vf is the fluid velocity.

In the one-dimensional case, the classical constraints are Pe ≤ 2 and Crg ≤ 1 [30]. Since the explicit fluid and thermal time steps are identical to those adopted in the conduction calculation in Sect. 2.1, the model thus sets no intrinsic limit on the Peclet number. However, the accuracy is to be different for different number values, and to be influenced by grid size and time step [9].

2.4 Heat exchange between a fluid and rock

The heat exchange between fluid and rock matrix occurs since the temperature of rock matrix and the fluid in a fracture are usually different. Here, we use the following approach to obtain the heat exchange between fluid and rock matrix, assuming that the temperature of the rock matrix at both sides of the fracture is Ts+ and Ts, respectively, as shown in Fig. 3. In addition, the temperature of the fluid in the fracture is Tf, the fracture length is L, and the convective heat-transfer coefficient between the fluid and rock matrix is h. Then, the heat exchange between the fluid and rock matrix per unit time is given by

$$Q_{e} = h(T_{\text{s}}^{ + } - T_{\text{f}} )L + h(T_{\text{s}}^{ - } - T_{e} )L$$
(16)
Fig. 3
figure 3

Heat exchange model between fluid and rock matrix

The heat-transfer calculation of the fluid in the fracture is finally updated as follows

$$T_{t + \Delta t}^{\text{f}} = T_{t}^{\text{f}} + \frac{{(Q_{\text{f}} { + }Q_{\text{e}} )\Delta t}}{{C_{\text{p}} \rho_{\text{f}} V}}$$
(17)

The heat-transfer calculation of the rock matrix is finally calculated using the following formula

$$T_{t + \Delta t}^{\text{s}} = T_{t}^{\text{s}} + \frac{{(Q_{\text{s}} - Q_{e} )}}{{C_{p} M}}\Delta t$$
(18)

3 Model validation

3.1 Fluid heat conduction

As shown in Fig. 4, the rock mass contains a single fracture with length of 4 m. The fracture is filled with fluid, and the fluid pressure in the fracture is uniform. The temperature at the left boundary is fixed at 100 °C, but at the right boundary the temperature is fixed at 0 °C. The other boundaries are adiabatic regardless of the thermal conductivity of rock matrix. Only heat conduction is considered for fluid in fracture. The temperature distribution of fluid in the fracture is determined by the coupled hydro-thermal model presented in this paper. The physical parameters are as follows: the mass density of fluid ρf = 1000 kg/m3, the thermal conductivity of fluid kf = 1.6 W/m °C, and the specific heat of fluid Cf = 0.2 J/kg °C.

Fig. 4
figure 4

Heat conduction of fluid in a single fracture

The analytical solution of the problem is given by [4]

$$T\left( {x,t} \right) = T_{\text{L}} + \frac{x}{L}(T_{\text{R}} - T_{\text{L}} ) + \frac{2}{\pi }\sum\limits_{n = 1}^{\infty } {e^{{ - kn^{2} \pi t/L^{2} }} } \left( {\frac{{T_{\text{R}} \cos (n\pi ) - T_{\text{L}} }}{n}} \right)\sin \frac{n\pi x}{L}$$
(19)

where TL is the temperature at the left boundary, TR is the temperature at the right boundary, t is the time, and x is the distance to the left boundary. Furthermore, κ = kf/(ρfCf), where kf is the thermal conductivity of fluid, ρf is the mass density of fluid, and Cf is the specific heat of fluid.

Figure 5 shows the temperature distribution of fluid in the fracture at different times. It can be seen that the numerical solution agrees very well with analytical solution, verifying the correctness of the coupled hydro-thermal model in dealing with the problem of heat conduction in fluid. The temperature of fluid in the fracture gradually increases and eventually displays a linear distribution.

Fig. 5
figure 5

Comparison of numerical solution and analytical solution

3.2 Heat conduction and convection of fluid in fracture

For the example in Sect. 3.1, the following two conditions are considered: [2] the fluid pressure at the left boundary is fixed at 2 × 104 Pa, but the pressure at the right boundary is fixed at 0 Pa, and [34] the pressure at the left boundary is fixed at 0 Pa, while the fluid pressure at the right boundary is fixed at 2 × 104 Pa. Fluid flow occurs in the fracture and heat is transported by convection and conduction because of the pressure difference between the left and right boundaries. The coupled hydro-thermal model in this paper is used to determine the final temperature distribution of fluid in the fracture.

The analytical solution of the problem is given by [9]

$$\hat{T} = \hat{T}_{\text{R}} \frac{{e^{{P_{\text{e}} \hat{x}}} - 1}}{{e^{{P_{\text{e}} }} - 1}}$$
(20)

where \(\hat{T} = (T - T_{\text{L}} )/T_{\text{L}}\), \(\hat{x} = x/L\), and Pe is the Peclet number. The Peclet number is defined as

$$P_{\text{e}} = \rho_{\text{f}} C_{\text{f}} v_{\text{f}} L/k_{\text{f}}$$
(21)

where ρf is the mass density of fluid, Cf is the specific heat of fluid, vf is the flow velocity of fluid, and kf is the thermal conductivity of fluid.

The final temperature distribution obtained by the coupled hydro-thermal model is shown in Fig. 6, where the numerical solution and the analytical solution are in good agreement. In case [2], the direction of the fluid flow is the same as that of the heat conduction, accelerating heat transfer. In case [34], the flow direction of the fluid is opposite to that of the heat conduction, inhibiting heat transfer (Fig. 7).

Fig. 6
figure 6

Comparison of the numerical solution and analytical solution when considering heat convection of fluid

Fig. 7
figure 7

Temperature distribution of fluid in the fracture

3.3 Heat exchange between fluid and rock matrix

As shown in Fig. 8, a high-temperature rock mass is 100 m length and 100 m wide. The permeability of rock matrix is very low and has been ignored. A horizontal fracture is positioned at x = 0 and divides the rock mass into two pieces. The aperture of the fracture a is 1 × 10−3  m. At the left boundary of the fracture, cold fluid is injected at a flow rate of vf = 0.01 m/s. The low-temperature fluid in the fracture exchanges heat with the high-temperature rock matrix at the fracture boundary. Then, the temperature of fluid increases gradually, but the temperature of the rock matrix around the fracture decreases. We use this example to verify the correctness of the coupled hydro-thermal model in the treatment of heat transfer between fluid and rock matrix. Since the analytical solution of the problem [6] is obtained by assuming that the problem domain is semi-infinite, the size of the numerical model should be large enough.

Fig. 8
figure 8

A single fracture model for simulating the heat transfer between fluid and rock matrix

The temperature field evolution in rock matrix is given by

$$T_{\text{s}} (x,y,t) = T_{{{\text{s}}0}} + (T_{{{\text{f}}0}} - T_{{{\text{s}}0}} ){\text{erfc}}\left[ {\frac{{2k_{s} x + \left| y \right|\rho_{f} C_{f} v_{f} a}}{{2\rho_{f} C_{f} v_{f} a}}\sqrt {\frac{{\rho_{s} C_{s} v_{f} }}{{k_{s} (v_{f} t + x)}}} } \right]$$
(22)

The temperature field evolution of fluid in a fracture is given by

$$T_{\text{s}} (x,t) = T_{\text{s0}} + (T_{\text{f0}} - T_{\text{s0}} ){\text{erfc}}\left[ {\frac{{k_{\text{s}} x}}{{\rho_{\text{f}} C_{\text{f}} v_{\text{f}} a}}\sqrt {\frac{{\rho_{\text{s}} C_{\text{s}} v_{\text{f}} }}{{k_{\text{s}} (v_{\text{f}} t + x)}}} } \right]$$
(23)

where Ts0 is the initial temperature of rock matrix, Tf0 is the temperature of the injected fluid at the left boundary, erfc is the complementary error function, ks is the thermal conductivity of rock matrix, ρf is the mass density of fluid, Cf is the specific heat of fluid, vf is the flow velocity of fluid, ρs is the mass density of rock matrix, Cs is the specific heat of the rock matrix, a is the aperture of the fracture, and t is the time.

The calculation parameters used in the coupled hydro-thermal model include: the fluid mass density ρf = 1000 kg/m3, the dynamic viscosity of fluid μ = 1 mPa·s, the specific heat of fluid Cf = 4200 J/(kg °C), the thermal conductivity of fluid kf = 0 W/(m °C), the mass density of rock matrix ρs = 2700 kg/m3, the specific heat of rock matrix Cs = 1000 J/(kg °C), the thermal conductivity of rock matrix ks = 3 W/(m °C), and the aperture of the fracture a = 1 × 10 − 3 m. The convective heat-transfer coefficient between fluid and rock matrix h will be discussed in detail. To facilitate the analysis of the temperature distribution within rock matrix, we set two monitoring lines at x = 2 m and y = 2 m, as shown in Fig. 8.

In the analytical solution, the temperature of fluid in the fracture is assumed to be equal to the temperature of the rock matrix at the boundary of the fracture. This boundary condition can be regarded as a special case of convective boundary condition in the coupled hydro-thermal model. The correct numerical results should converge to the analytical solution as the convective heat-transfer coefficient increases. Thus, we first discuss the value of the convective heat-transfer coefficient h. For three different convective heat-transfer coefficients h = 10, 100, and 1000 W/(m2 °C), the temperature distribution of fluid in the fracture at t = 10 d is obtained by the coupled hydro-thermal model. As shown in Fig. 9, the numerical solution is still quite different from the analytical solution when h = 10 W/(m2 °C). However, the difference between the numerical solution and analytical solution is very small when h = 100 W/(m2 °C). For h = 1000 W/(m2 °C), the numerical solution is completely consistent with the analytical solution. Therefore, we take h = 1000 W/(m2 °C) in the subsequent validation calculations in order to compare the numerical solution with the analytical solution.

Fig. 9
figure 9

Comparison of the numerical solution and analytical solution at t = 10 d when the convective heat-transfer coefficient between fluid and rock matrix h is 10, 100, and 1000 W/(m2 °C)

For h = 1000 W/(m2 °C), the temperature evolution at different locations obtained by the coupled hydro-thermal model is shown in Fig. 10. It can be seen that the temperature distribution of fluid in the fracture and the temperature distribution along the monitoring line in the rock matrix are both consistent with the analytical solution, verifying the correctness of the coupled hydro-thermal model in simulating the heat exchange between fluid and rock matrix.

Fig. 10
figure 10

Comparison of the numerical solution and analytical solution of the temperature distribution in fluid and rock matrix: a the temperature distribution of fluid in fractures, b the temperature distribution in rock matrix at the horizontal monitoring line y = 2 m, c the temperature distribution in rock matrix at the vertical monitoring line x = 2 m

4 Hydro-thermal coupling in the rock mass with a fracture network

4.1 Model and parameters

The coupled hydro-thermal model presented in this paper is used to predict the heat transport and fluid flow in the rock mass with a fracture network from the literature [31]. As shown in Fig. 11, seven through-going fractures (J2, J5, J6, J7, J8, J9, and J10) and five non-through-going fractures (J1, J3, J4, J11, and J12) exist in the square region with the edge length of 10 m. In this calculation, only the hydro-thermal coupling is considered. The boundary conditions are as follows (1). Seepage field: fluid pressure at the left boundary (inlet) is fixed at 200 kPa, while the fluid pressure at the right boundary (outlet) is fixed at 100 kPa; the top and bottom boundaries are impermeable. (2) Temperature field: the temperature of the injected fluid at the left boundary is fixed at 20 °C, and the top and bottom boundaries are both adiabatic. The initial temperature of rock matrix and fluid is both 80 °C. The time step of the hydro-thermal coupling calculation is 0.5 s. The square region is discretized into 2380 triangular elements. The calculated parameters include: \(\rho_{\text{f}} = 1000\,{\text{ kg/m}}^{ 3}\), the dynamic viscosity of fluid μ = 1 mPa·s, the specific heat of fluid Cf = 4200 J/(kg °C), the thermal conductivity of fluid kf = 0 W/(m °C), the mass density of rock matrix \(\rho_{\text{s}} = 2700{\text{ kg/m}}^{ 3}\), the specific heat of rock matrix CS =1000 J/(kg °C), the thermal conductivity of rock matrix kS = 3 W/(m °C), the fracture aperture \(a = 5\, \times \,10^{ - 4} {\text{m}}\), and the convective heat-transfer coefficient between fluid and rock matrix h = 900 W/(m2 °C). The heat-transfer process in rock matrix and fluid in the fracture network is simulated by the coupled hydro-thermal model presented in this paper.

Fig. 11
figure 11

Two-dimensional fracture network model

4.2 Numerical simulation results

4.2.1 Seepage field

As shown in Fig. 12a, the completely isolated non-through-going fractures (J11 and J12) do not connect to the left or right boundary, and thus, the fluid pressures in them are both zero. Although the non-through-going fractures (J1, J3, and J4) that connect with the left or right boundaries or other through-going fractures, the fluid pressure within them is uniformly distributed with no pressure change along the fracture. As shown in Fig. 12b, the flow velocity of fluid in the five non-through-going fractures is both zero. Thus, the convective heat transfer does not exist in these fractures. Therefore, the non-through-going fractures do not affect the heat-transfer calculation. The simulation result of the temperature field will confirm the above-mentioned interpretations.

Fig. 12
figure 12

Fluid pressure distribution and velocity distribution at a stable seepage: a fluid pressure distribution, b flow velocity distribution

4.2.2 Temperature field

As the cold fluid injected into fractures, heat is transferred from the high-temperature rock matrix into fluid in fractures and is also transferred by the fluid through convective heat transfer. The rock matrix temperature decreases very fast near fractures, while the temperature of the rock matrix far from fractures decreases slowly. In Fig. 13, the through-going fractures form a channel of fluid flow, and the cold fronts move very fast along those through-going fractures and reach the right boundary quickly. As shown in Fig. 13 at 2.32 d-23.15 d, the cold fronts preferentially move along the through-going fractures J5, J6, and J10 and reach the right boundary via the through-going fractures J2, J7, and J9. The non-through-going fractures J1, J3, J4, J11, and J12 do not affect the heat transfer in the region, as shown in Fig. 13 at 57.87 d. Because the flow velocity of the fluid in the non-through-going fractures is both zero when the fluid flow is stable, as shown in Fig. 12b), heat convection in fluid does not occur. The cold fronts move quickly and reach the right boundary, which constitutes an early thermal breakthrough [3] and is disadvantageous in the utilization of geothermal resources, as shown in Fig. 13 at 57.87 d. Although the fluid temperature at the right boundary is low, the temperature of the rock matrix at the upper right corner is still high, as shown in Fig. 13 at 115.74 d. The high-temperature rock matrix continues to supply heat for fluid in fractures; consequently, the fluid temperature at the outlet does not drop rapidly to the inlet temperature but gradually decreases after a long period of time (i.e., the so-called long-tail effect).

Fig. 13
figure 13

Temperature distribution at different times

For the convenience of subsequent discussions, the average fluid temperature at the outlet is defined here [3]

$$T_{\text{out}} = \frac{{\sum {v_{\text{fac}} aT_{\text{frac}} + \int {vT\,{\text{d}}y} } }}{{\sum {v_{\text{fac}} a + \int {v\,{\text{d}}y} } }}$$
(24)

where v is the flow velocity and the subscript frac represents the fracture. The addition term represents the fracture, while the integral term represents rock matrix. Since the permeability of rock matrix is not considered in this paper, the fluid velocity in rock matrix is zero. Thus, Eq. [16] can be written as

$$T_{\text{out}} = \frac{{\sum {v_{\text{fac}} aT_{\text{frac}} } }}{{\sum {v_{\text{fac}} a} }}$$
(25)

4.2.3 Influence of the thermal conductivity of rock matrix on the outlet fluid temperature

The thermal conductivities k = 0.5, 1.0, 2.0, and 3.0 W/(m °C) were used to study the effect of the thermal conductivity of rock matrix on the thermal breakthrough curve. As shown in Fig. 14, the greater the thermal conductivity of rock matrix is, the later the thermal breakthrough occurs, and the less obvious the long-tail effect. The outlet fluid temperature decreases with decreasing rock matrix. After a period of time, the outlet fluid temperature is higher than that of rock matrix with high thermal conductivity. The thermal conductivity of rock matrix determines the time when the temperature of fluid and rock matrix is balanced. If the thermal conductivity of the rock matrix is low, then the initially high-temperature rock matrix heats the low-temperature fluid in fractures slowly. Thus, the heat breakthrough occurs early. After a period of time, the energy stored in the rock matrix is less absorbed by fluid in fractures. Thus, the outlet temperature at the late stage is higher than that when the thermal conductivity of rock matrix is high.

Fig. 14
figure 14

Effect of the thermal conductivity of rock matrix on the outlet fluid temperature

4.2.4 The effect of fracture aperture on the outlet fluid temperature

Fractures are mainly caused by hydraulic fracturing during construction of the reservoir. Fracture aperture is closely related to fluid circulation impedance, fluid short circuit, heat production efficiency and reservoir life. If the flow rate is constant, the fracture aperture determines the amount of fluid in the fracture and the ability to extract heat from rock matrix. The fracture aperture also determines the heating time and the fracture path length that heats fluid to a specific temperature. Figure 15 shows the variation of the outlet fluid temperature with time when a = 2 × 10 − 4, 3.5 × 10 − 4, and 5 × 10 − 4 m. As can be seen from this figure, the wider the fracture aperture is, the earlier the thermal breakthrough occurs, and the less obvious the long-tail effect. Moreover, the fluid temperature decreases faster as the fracture aperture increases. Because the flow rate of the fluid in fracture with large aperture is larger than that with small aperture under the same boundary conditions, the fluid is not heated sufficiently when it flows out of the right boundary. Finally, the fluid temperature at the outlet decreases rapidly.

Fig. 15
figure 15

Effect of fracture aperture on the outlet fluid temperature

5 Conclusion

In this paper, a two-dimensional coupled hydro-thermal (FDEM-TH) model for FDEM is constructed. Three examples with analytical solutions are given to verify the correctness of the coupled model. The numerical results agree well with the analytical results. Finally, a hydro-thermal coupling example of rock mass with a fracture network is given. The results show that heat is transferred from high-temperature rock matrix to cold fluid in fractures and is carried away by the heat convection of fluid. The temperature of rock matrix near fractures decreases rapidly, while the temperature of rock matrix far from fractures decreases slowly. The thermal breakthrough occurs late if the thermal conductivity of rock matrix is high, and the long-tail effect is obvious. But if the fracture aperture is large, the long-tail effect is not obvious. This coupled hydro-thermal model combined with the mechanical fracture calculation of FDEM can construct a complete method for simulating rock rupture driven by the effect of THM coupling.