Keywords

1 Introduction

Nowadays, one of the most recent problems in oil engineering is estimation of efficiency of various enhanced oil recovery (EOR) techniques. With regard to hard-to-recover oil formations, one of the most advanced enhanced oil recovery method is thermal treatment, which consist in supplying heat to the reservoir by heat-transfer fluid injection or by conductive heat exchange.

Simulation of the reservoir processes induced by these EOR techniques can only be performed using coupled approaches which account for multiphysics nature of the reservoir processes,—including but not limited to fluid flow with temperature depended properties, chemical reactions, geomechanical processes. In addition, under the high pressures and temperatures in the reservoir it can be observed significant deformations affecting the structure of the pore space, which leads to the formation of microcracks and reservoir damage. These processes have a significant impact on the rock’s elastic properties and flow in the reservoir.

Currently, one of the most common approaches, implemented in various commercial software accurately resolve different temperature dependent flow effects, is the so-called “compositional” modeling. These models are widely used in applied simulation but they do not account for deformation and damage. Consideration of geomechanical effects, if happen, usually is based on simplified “split” models which are not themodynamically consistent [1, 2]. In turn, thermodynamically based models for coupled flow, geomechanics and damage are exists but rarely used in industrial strength settings [3].

The present paper proposes mathematical model for description of the thermoporoelastic medium taking into account damage processes. The model is thermodynamically consistent, i.e. it satisfies second law of thermodynamics. Also, in the work we presented computational algorithm based on the finite element method.

2 Mathematical Model

2.1 Conservation Laws

Consider the elementary volume \(\varOmega \) which contains two continuums—skeleton and fluid. At the time moment \(t = t_0\) the positions of the material volumes of the skeleton \(\varOmega _s(t_0)\) and fluid \(\varOmega _f (t_0)\) are the same, and the phase velocities are \({\varvec{v}}_s\) and \({\varvec{v}}_f\) respectively. Let us write the basic conservation laws for both continuums at the time moment \(t = t_0\).

The fluid mass conservation law has the form:

$$\begin{aligned} \frac{\partial m_f}{\partial t}+{{\,\mathrm{div}\,}}(\rho _f {\varvec{w}})=0, \end{aligned}$$
(1)

where \(\rho _f\) is true fluid density, i.e. fluid mass related to the volume occupied by it, \({\varvec{w}}\)—flux vector equaled to \({\varvec{w}}= m_f/\rho _f \left( {\varvec{v}}_f - {\varvec{v}}_s \right) \).

Let \({\varvec{f}}\) be external force, \({\varvec{b}}_{\alpha }^{\text {int}}\)—interaction forces density of phase \(\alpha \) (\(\alpha =s\) for skeleton, \(\alpha =f\) for fluid) with other phases, \( {\varvec{\sigma }} _{\alpha }\)—partial stress tensor. In this case, the momentum conservation law has the form of [4]:

$$\begin{aligned} {{\,\mathrm{div}\,}}\left( {\varvec{\sigma }} _{\alpha } \right) + m_{\alpha } \left( {\varvec{f}}- \frac{d {\varvec{v}}_{\alpha }}{dt} \right) + {\varvec{b}}_{\alpha }^{\text {int}} =0. \end{aligned}$$
(2)

Denote total stress tensor by \( {\varvec{\sigma }} = {\varvec{\sigma }} _f + {\varvec{\sigma }} _s\). Then, given that \( {\varvec{b}}_f^{\text {int}} + {\varvec{b}}_s^{\text {int}} = 0\), after summing up the Eq. (2) for skeleton and fluid we get:

$$\begin{aligned} {{\,\mathrm{div}\,}}\left( {\varvec{\sigma }} \right) + m_f \left( {\varvec{f}}- \frac{d {\varvec{v}}_f}{dt} \right) + m_s \left( {\varvec{f}}- \frac{d {\varvec{v}}_s}{dt} \right) =0. \end{aligned}$$
(3)

Consider a thermoporoelastic medium in which, as a result of deformations, can occur a fractured zone—diffuse damage, which is the micro-fracture zones formation in the solid phase. It is significant that the characteristic dimension of the cracks is substantially smaller than the dimension of the medium representative volume. For this reason, the damage is described by a quantity defined in space (having a scalar form in the simplest case).

In accordance with the classical concepts of the crack propagation mechanics, it is necessary to supply a certain amount of energy to form a unit surface area of a crack. For this reason, it is natural to introduce into consideration the part of the total energy of the system associated with the damage of the medium. Then for domain volume \(\varOmega (t) = \varOmega _s(t) = \varOmega _f(t)\) the equation describing the energy conservation law and taking into account the damage of the material has the form of:

$$\begin{aligned} \frac{d\left( K+U\right) }{dt}=P+Q+\varPi , \end{aligned}$$
(4)

with

$$\begin{aligned} \begin{aligned} K&=\int \limits _{\varOmega (t)}\left( \frac{1}{2} m_s {\varvec{v}}_s^2 +\frac{1}{2} m_f {\varvec{v}}_f^2 \right) d\varOmega , \quad U=\int \limits _{\varOmega (t)} \left( m_s e_s + m_f e_f \right) d\varOmega , \\ P&=\int \limits _{\varOmega (t)} \left( m_s {\varvec{v}}_s^2 {\varvec{f}}+ m_f {\varvec{v}}_f^2 {\varvec{f}}\right) d\varOmega _{\alpha } + \int \limits _{\partial \varOmega } \left( {\varvec{t}}_s {\varvec{v}}_s + {\varvec{t}}_f {\varvec{v}}_f \right) d\omega _{\alpha }, \\ Q&=-\int \limits _{\partial \varOmega } {\varvec{q}}{\varvec{n}}d\omega , \quad \varPi =-\int \limits _{\varOmega (t)} {\varvec{Y}} :\frac{d {\varvec{D}} }{dt} d\varOmega . \end{aligned} \end{aligned}$$

Here K—kinetic energy of the system, U—internal energy, P—external forces power, Q—heat flux, \(\varPi \)—energy consumption for material damage per unit of time, \(e_{\alpha }\) – phase specific internal phase energy, \({\varvec{q}}\)—heat flux density vector, \( {\varvec{Y}} \)—energy dissipation rate associated with material damage, \( {\varvec{D}} \)—damage variable tensor.

Passing from the skeleton partial stress tensor to the total stress tensor, we get the following expression:

$$\begin{aligned} \frac{\partial }{\partial t}&\left[ m_s \left( e_s+\frac{ {\varvec{v}}_s^2}{2} \right) +m_f \left( e_f+\frac{ {\varvec{v}}_f^2}{2} \right) \right] + \\ \nonumber&\quad + {{\,\mathrm{div}\,}}\left[ m_s \left( e_s+\frac{ {\varvec{v}}_s^2}{2} \right) {\varvec{v}}_s \right] + {{\,\mathrm{div}\,}}\left[ m_f \left( e_f+\frac{ {\varvec{v}}_f^2}{2} \right) {\varvec{v}}_f \right] = \\ \nonumber&= {{\,\mathrm{div}\,}}\left[ {\varvec{\sigma }} _f \left( {\varvec{v}}_f - {\varvec{v}}_s \right) + {\varvec{\sigma }} {\varvec{v}}_s \right] + \left( m_s {\varvec{v}}_s+m_f {\varvec{v}}_f \right) {\varvec{f}}- {\varvec{Y}} :\frac{d {\varvec{D}} }{dt} - {{\,\mathrm{div}\,}}({\varvec{q}}). \end{aligned}$$
(5)

2.2 Derivation of Constitutive Relations

We write the second law of thermodynamics without external sources in the form:

$$\begin{aligned} \frac{\partial S}{\partial t}+{{\,\mathrm{div}\,}}\left( m_f s_f {\varvec{v}}_f \right) +{{\,\mathrm{div}\,}}\left( m_s s_s {\varvec{v}}_s \right) \ge - {{\,\mathrm{div}\,}}\left( \frac{{\varvec{q}}}{T}\right) , \end{aligned}$$
(6)

where \(S = m_s s_s + m_f s_f\) is total entropy,

$$\begin{aligned} m_s \frac{ds_s}{dt}+m_f \frac{ds_f}{dt} + {{\,\mathrm{div}\,}}\left( \frac{{\varvec{q}}}{T}\right) \ge 0. \end{aligned}$$
(7)

Define the Helmholtz free energy for the phase \(\alpha \) as \(\psi _{\alpha } = e_{\alpha } - Ts_{\alpha }\). Then, applying the laws of momentum and energy conservation, entropy inequality can be represented as the sum of skeleton \(\delta _s\), fluid \(\delta _f\) and thermal dissipation \(\delta _t\):

$$\begin{aligned} \delta _s + \delta _f + \delta _t \ge 0, \end{aligned}$$
(8)

where

$$\begin{aligned} \begin{aligned} \delta _s&=- \left( m_s \frac{d\psi _s}{dt} + m_s s_s\frac{dT}{dt} + m_f \frac{p}{\rho _f^2} \frac{d\rho _f}{dt} \right) + \\&+ \left[ {\varvec{\sigma }} _f : {{\,\mathrm{grad}\,}}\left( {\varvec{v}}_f - {\varvec{v}}_s \right) + {\varvec{\sigma }} : {{\,\mathrm{grad}\,}}\left( {\varvec{v}}_s \right) \right] - {\varvec{Y}} :\frac{d {\varvec{D}} }{dt} \\ \end{aligned}, \end{aligned}$$
(9)
$$\begin{aligned} \delta _f&= \left( {\varvec{v}}_f - {\varvec{v}}_s \right) \left[ m_f \left( {\varvec{f}}- \frac{\partial {\varvec{v}}_f}{\partial t} \right) + {{\,\mathrm{div}\,}}( {\varvec{\sigma }} _f) \right] , \end{aligned}$$
(10)
$$\begin{aligned} \delta _t&= - \frac{{\varvec{q}}}{T} {{\,\mathrm{grad}\,}}( T ). \end{aligned}$$
(11)

Suppose that the stress tensor of a fluid is spherical, fluid flow follows the Darcy’s law, and the heat flux is determined from the Fourier law. In this case, it can be shown that \(\delta _f+\delta _t \geqslant 0\). Then, according to the Coleman-Noll procedure [6], to satisfy the entropy inequality (8) it is enough that:

$$\begin{aligned} \delta _s&= - \left( m_s \frac{d\psi _s}{dt} + m_s s_s\frac{dT}{dt} + m_f \frac{p}{\rho _f^2} \frac{d\rho _f}{dt} \right) +&\nonumber \\&\qquad \qquad + \left[ {\varvec{\sigma }} _f : {{\,\mathrm{grad}\,}}\left( {\varvec{v}}_f - {\varvec{v}}_s \right) + {\varvec{\sigma }} : {{\,\mathrm{grad}\,}}\left( {\varvec{v}}_s \right) \right] - {\varvec{Y}} :&\frac{d {\varvec{D}} }{dt} \geqslant 0. \end{aligned}$$
(12)

In accordance with the principle of equipresence, we obtain an expression for skeleton dissipation:

$$\begin{aligned} \delta _s = \left( {\varvec{\sigma }} -m_s \frac{\partial \psi _s}{\partial {\varvec{\varepsilon }} } \right) \frac{d {\varvec{\varepsilon }} }{dt}&+ \left( p\frac{d \left( m_f / \rho _f \right) }{dt} - m_s \frac{\partial \psi _s}{\partial p} \frac{dp}{dt} \right) \nonumber \\&\quad + \left( s_s - \frac{\partial \psi _s}{\partial T} \right) \frac{dT}{dt} - \left( {\varvec{Y}} + m_s \frac{\partial \psi _s}{\partial {\varvec{D}} } \right) \frac{d {\varvec{D}} }{dt} \geqslant 0, \end{aligned}$$

where \( {\varvec{\varepsilon }} \)—infinitesimal strain tensor, \( {\varvec{\varepsilon }} = (\nabla \otimes {\varvec{\xi }} + (\nabla \otimes {\varvec{\xi }} )^2) / 2\), \( {\varvec{\xi }} \)—displacement vector.

We introduce the Gibbs energy \(g_s\) such that \(m_s g_s= m_s \psi _s - p m_f / \rho _f\). Then:

$$\begin{aligned} \delta _s = \left( {\varvec{\sigma }} -m_s \frac{\partial g_s}{\partial {\varvec{\varepsilon }} } \right) d {\varvec{\varepsilon }}&- \left( \frac{m_f}{\rho _f} + m_s \frac{\partial g_s}{\partial p} \right) dp \nonumber \\&\,\quad + \left( s_s - \frac{\partial g_s}{\partial T} \right) dT - \left( {\varvec{Y}} + m_s \frac{\partial g_s}{\partial {\varvec{D}} } \right) {\varvec{D}} \geqslant 0. \end{aligned}$$
(13)

The implementation of the thermodynamic consistency principle requires the validity of entropy inequality (6) for any history of states, as well as the independence of the constitutive relations from the choice of reference configuration. For this it is suffices to fulfill the inequality (13), setting:

$$\begin{aligned} {\varvec{\sigma }} = m_s \frac{\partial g_s}{\partial {\varvec{\varepsilon }} };\quad m_f= -\rho _f m_s \frac{\partial g_s}{\partial p};\quad s_s = \frac{\partial g_s}{\partial T};\quad {\varvec{Y}} = -m_s \frac{\partial g_s}{\partial {\varvec{D}} }, \end{aligned}$$
(14)

which provides \(\delta _s = 0\).

In this case, after linearization the constitutive relations for the skeleton and fluid are of the form:

$$\begin{aligned} \begin{aligned} \varDelta {\varvec{\sigma }}&= {\varvec{C}} : \varDelta {\varvec{\varepsilon }} - {\varvec{b}} \varDelta p - {\varvec{C}} : {\varvec{\alpha }}_T \varDelta T - {\varvec{\gamma }}: \varDelta {\varvec{D}} , \\ \varDelta m_f&= \rho _f {\varvec{b}} : \varDelta {\varvec{\varepsilon }} + \rho _f \frac{\varDelta p}{M} - {\alpha _m}{\rho }_f \varDelta T + \rho _f {\varvec{\omega }}: \varDelta {\varvec{D}} , \\ \varDelta S_s&= {\varvec{C}} : {\varvec{\alpha }}\varDelta {\varvec{\varepsilon }} - \alpha _{\phi } \varDelta p + \frac{C_{ps}}{T^0} \varDelta T + \frac{1}{m_s} {\varvec{\theta }}: \varDelta {\varvec{D}} , \\ \varDelta {\varvec{Y}}&= {\varvec{\gamma }}: \varDelta {\varvec{\varepsilon }} + {\varvec{\omega }}\varDelta p + {\varvec{\theta }}\varDelta T + {\varvec{\eta }}: \varDelta {\varvec{D}} , \\ \frac{\rho _f}{\rho _{f0}}&= 1 + \frac{\varDelta p}{K_f} - \alpha _f \varDelta T , \\ \varDelta S_f&= -\alpha _f m_f^0 \frac{\varDelta p}{\rho _f^0} + C_{pf} \frac{\varDelta T}{T^0}, \end{aligned} \end{aligned}$$
(15)

where \( {\varvec{\gamma }}, {\varvec{\omega }}, {\varvec{\theta }}, {\varvec{\eta }}\)—tensors of damage coefficients, also the following notations are used \(\varDelta f = f - f^0\) for all f:

$$\begin{aligned} \frac{1}{M}=\frac{1}{N}+\frac{m_f}{\rho _f}\frac{1}{K_f}, \quad \alpha _m=\alpha _{\varphi }+\frac{m_f}{\rho _f} \alpha _f, \quad S_{\alpha } = m_{\alpha } s_{\alpha }. \end{aligned}$$

Here M, N are Biot modulus, \(K_f\) stands for fluid bulk modulus, \(\alpha _{f,\varphi }\) temperature expansion coefficients.

To proceed further we introduce the following assumptions: the influence of inertial forces is negligible; the skeleton velocity is negligible compared to fluid velocity; the kinetic energy of the fluid is neglected in comparison with the value of the internal energy; the influence of external forces is neglected; damage variable is a scalar function of the strain tensor and affects only the elastic coefficients tensor by the formula \(C(D)=C(1-D)\).

With regard to these assumptions, the system of Eqs. (1), (3), (5), (15), has the form:

$$\begin{aligned} \begin{gathered} \frac{\partial m_f}{\partial t}+{{\,\mathrm{div}\,}}(\rho _f {\varvec{w}})=0, \quad {{\,\mathrm{div}\,}} {\varvec{\sigma }} =0, \\ \frac{\partial \left( m_s e_s + m_f e_f \right) }{\partial t} + {{\,\mathrm{div}\,}}\left( \rho _f e_f {\varvec{w}}\right) = {{\,\mathrm{div}\,}}\left( -p {\varvec{w}}\right) - {{\,\mathrm{div}\,}}({\varvec{q}}), \\ {\varvec{w}}= \frac{ {\varvec{k}} }{\mu } \left[ - {{\,\mathrm{grad}\,}}(p) \right] , \quad {\varvec{q}}=- {\varvec{\kappa }}{{\,\mathrm{grad}\,}}(T). \end{gathered} \end{aligned}$$
(16)

To close this system of equations, the constitutive relations (15) and damage propagation law [7] are used:

$$\begin{aligned} D= {\left\{ \begin{array}{ll} 0, &{} \tilde{\varepsilon } < \tilde{\varepsilon _c} \\ \frac{D_{\text {off}}}{\tilde{\varepsilon }_{\text {off}} - \tilde{\varepsilon }_c} \tilde{\varepsilon } - D_{\text {off}} \frac{\varepsilon _c}{\tilde{\varepsilon }_{\text {off}} - \tilde{\varepsilon }_c}, &{} \tilde{\varepsilon }_c \le \tilde{\varepsilon } \le \tilde{\varepsilon }_{off}, \\ D_{\text {lim}}- \left( D_{\text {lim}} - D_{\text {off}} \right) \frac{\tilde{\varepsilon }_{\text {off}}}{\tilde{\varepsilon }} &{} \tilde{\varepsilon } > \tilde{\varepsilon }_{off}, \end{array}\right. } \end{aligned}$$
(17)

where \(\tilde{\varepsilon }\) is given by:

$$ \tilde{\varepsilon } = \sqrt{ \sum _{i=1}^3 \langle \varepsilon _i \rangle ^2}, \quad \langle \varepsilon _i \rangle = \frac{\varepsilon _i + | \varepsilon _i |}{2}, $$

with \(\varepsilon _i\) being principal strains.

The system (16) is solved by the finite element method. Implicit scheme was used for temporal discretization of the system. To solve the non-linear system arose at each time step, the Newton method was utilized. To increase the stability of solution, the mass matrices were lumped [8].

Space discretization of the Eq. (16) was performed on tetrahedral mesh with quadratic basis functions for displacements and linear for pressure and temperature (Taylor-Hood elements [9]). A feature of this type of finite elements is the satisfaction of the so-called \(\inf \)-\(\sup \) conditions (Ladyzhenskaya–Babuska–Brezzi condition). The fulfillment of these conditions provides stability of the solution for the poroelasticity problem. The numerical integration was performed using second-order Gauss quadrature formulas.

3 Numerical Results

3.1 Mandel’s Problem

Mandel [10] presented an analytical solution for the three-dimensional consolidation of poroelastic material in which there is a non-monotonic pore pressure evolution (Mandel-Cryer effect). In the original formulation, a sample of poroelastic material with a length of 2a and a height of 2b saturated with fluid is considered. The sample is fixed between two rigid impermeable plates, and a distributed load with a force of 2F is applied to the upper face.

In this test, the linear dimensions of the sample were \(1 \times 1 \times 1\) m. The vertical stress applied on the top face is 1 kPa. The initial pressure and displacements are vanishing. The pore pressure distribution along the x axis and displacement projections along the x and z axes were calculated. The obtained values were compared with a known analytical solution. The results are presented in Figs. 1 and 2.

Fig. 1.
figure 1

Normalized pore pressure distribution along x axis.

Fig. 2.
figure 2

Normalized projection of x (left) and z (right) displacement components.

3.2 One-Dimensional Non-isothermal Expansion

The problem of one-dimensional sample thermal deformation is considered. Sample dimensions are \(a \times a \times h\). The base of the sample is fixed on the surface, the lateral borders allow only vertical displacement, the upper boundary is free. It is assumed that the sample is thermally isolated and has a temperature \(T_0\) at the initial time. The upper boundary has a constant temperature equal to \(T_0 + \theta _0\).

The problem has an analytical solution obtained using the Laplace transform [11]. Testing was performed for various time points from 10 to 200 h. The results are presented in Fig. 3.

Fig. 3.
figure 3

Temperature distribution over the sample (left) and vertical displacement at the upper boundary of the sample (right).

3.3 Damage Evolution Near Injection Well

Simulation the damage evolution in a small region near the well at the initial times was carried out on a model of size \( 1 \times 1 \times 1\) m. The initial reservoir pressure was assumed to be 200 bar, the initial temperature \(100^\circ \)C, and the initial stress in the reservoir in the x and y directions was 300 and 330 bar respectively. In the corner point of the domain, there is an injection well with a cylindrical shape with a radius of 0.1 m, operating with a constant injection rate of 0.5 m\(^3\)/day.

To simulate the damage evolution, the following parameters were used: \(D_{\text {lim}}\) \(D_{\text {off}}\) assumed to be equal 1, \(\varepsilon _c \) and \(\varepsilon _{\text {off}}\) are equal to 0.0002 and 0.015 respectively. Other model parameters are listed in the Table 1. Dynamic parameters distribution for the moments of 2 h, 1 and 10 days after the start of the well are presented in the Fig. 4.

Table 1. Input parameters for damage evolution test
Fig. 4.
figure 4

Distribution of pressure p (first row), temperature T (second row), damage D (third row) and horizontal component of stress tensor \(\sigma _{xx}\) (fourth row) after 2 h (left), 1 day (center) 10 days (right).

4 Conlusion

We presented a thermodynamically consistent mathematical model and a computational algorithm for calculating damage in a thermoporoplastic medium. The damage of the medium is modeled within the framework of the continuum damage theory. The model takes into account the effects of skeleton deformation, fluid flow, and non-isothermal effects. The system of equations consists of the basic conservation laws (mass, momentum, energy) and the kinetic equation for the damage variable. For the closure of a system of equations, the constitutive relations obtained by Coleman-Noll procedure are used.

This paper also presents a numerical algorithm based on the finite element method in a fully three-dimensional formulation. The validity of the algorithm is confirmed in a number of test examples. Also an example of synthetic model test is presented for estimating the propagation of damage near injection well, which inject fluid at high temperature. According to the calculations in the near-wellbore zone, a significant damage of the rock is observed.