Governing Equations#
Mass-Balance Equations#
Here we describe the basic mass- and energy-balance equations solved by TOUGH3. The equations for nonisothermal, multiphase, multicomponent flows in porous and fractured media can be written in the general form
The integration is over an arbitrary subdomain Vn of the flow system under study, which is bounded by the closed surface \(\Gamma_n\). The quantity M appearing in the accumulation term (left-hand side) represents the mass of component \(\kappa\) (e.g., water, brine, air, CO2, tracer, radionuclides, VOC) or energy (\(\kappa = h\)) per volume. \(\boldsymbol{\mathrm{F}}\) denotes mass or heat flux, and \(q\) denotes sinks and sources. \(\boldsymbol{\mathrm{n}}\) is a normal vector on the surface element \(d\Gamma_n\), pointing inward into \(V_n\). Each term constituting the equations is described in detail in the following subsections.
Accumulation Terms#
The general form of the mass accumulation term that includes equilibrium sorption on the solid grains is
where \(\phi\) is porosity, \(S_{\beta}\) is the saturation of phase \(\beta\) (e.g., \(\beta\) = gas, aqueous, non-aqueous phase liquid), \(\rho_{\beta}\) is the density of phase \(\beta\), and \(X_{\beta}^{\kappa}`\) is the mass fraction of component \(\kappa\) in phase \(\beta\). \(\rho_R\) is the rock grain density, and \(K_d\) is the aqueous (liquid) phase distribution coefficient. The total mass of component \(\kappa\) is obtained by summing over the fluid phases \(\beta\). The heat accumulation term in a multiphase system is
where \(C_R\) is the specific heat of the rock grains, \(T\) is temperature, and \(u_{\beta}\) is the specific internal energy of phase \(\beta\).
Flux Terms#
Advective mass flux is a sum of phase fluxes,
where individual phase fluxes are given by a multiphase version of Darcy’s law:
Here, \(u_{\beta}\) is the Darcy velocity (volume flux) of phase \(\beta\), \(k\) is absolute permeability, \(k_{r \beta}\) is relative permeability to phase \(\beta\), \(\mu_{\beta}\) is dynamic viscosity, and
is the fluid pressure in phase \(\beta\), which is the sum of the pressure \(P\) of a reference phase (usually taken to be the gas phase) and the capillary pressure \(P_{c \beta}\) (\(\le 0\)). \(\boldsymbol{\mathrm{g}}\) is the vector of gravitational acceleration. Vapor pressure lowering due to capillary and phase adsorption effects can be considered, and is modeled by Kelvin’s equation (Edlefsen et al., 1943),
where
is the vapor pressure lowering factor. \(P_v\) is the vapor pressure, \(P_{sat}\) is the saturated vapor pressure of bulk aqueous phase, \(P_{cl}\) is the capillary pressure (i.e., the difference between aqueous and gas phase pressures), \(M_w\) is the molecular weight of water, and \(R\) is the universal gas constant.
Absolute permeability of the gas phase increases at low pressures according to the relation given by Klinkenberg, 1941
where \(k_{\infty}\) is the permeability at “infinite” pressure, and \(b\) is the Klinkenberg parameter.
In addition to Darcy flow, mass transport can also occur by diffusion. Diffusive flux is modeled as follows:
here \(d_{\beta}^{\kappa}\) is the molecular diffusion coefficient for component \(\kappa\) in phase \(\beta\), and \(\tau_0 \tau_{\beta}\) is the tortuosity, which includes a porous medium dependent factor \(\tau_0\) and a coefficient that depends on phase saturation \(S_{\beta}\), \(\tau_{\beta} = \tau_{\beta} \left( S_{\beta} \right)\). For general two-phase conditions, the total diffusive flux is then given by
where \(\Sigma_{\beta}^{\kappa} = \phi \tau_0 \tau_{\beta} \rho_{\beta} d_{\beta}^{\kappa}\) is an effective diffusion coefficient in phase \(\beta\). We have used this pragmatic approach because it is not possible to formulate a model for multiphase diffusion that would be accurate under all circumstances. The basic Fick law works well for diffusion of tracer solutes that are present at low concentrations in a single-phase aqueous solution at rest with respect to the porous medium [1].
Several models are available to describe the dependence of tortuosity on porous medium properties and phase saturation. For the relative permeability model, tortuosity will be taken as \(\tau_0 \tau_{\beta} \left( S_{\beta} \right) = \tau_0 k_{r \beta} \left( S_{\beta} \right)\) with the user-specified porous medium dependent factor \(\tau_0\). The Millington & Quirk, 1961 model, which has frequently been used for soils, yields non-zero tortuosity coefficients as long as phase saturation is non-zero [2].
For the constant diffusivity formulation, \(\tau_0 \tau_{\beta} = S_{\beta}\) will be used. This alternative corresponds to the formulation for gas diffusion in the original version of TOUGH2. In the absence of phase partitioning and adsorptive effects, it amounts to effective diffusivity being approximately equal to \(d_{\beta}^{\kappa}\), independent of saturation. This can be seen by noting that the accumulation term in the phase \(\beta\) contribution to the mass balance equation for component \(\kappa\) is given by \(\phi S_{\beta} \rho_{\beta} X_{\beta}^{\kappa}\), approximately canceling out the \(\phi S_{\beta} \rho_{\beta}\) coefficient in the diffusive flux.
TOUGH3 can model the pressure and temperature dependence of gas phase diffusion coefficients by the following equation (Vargaftik, 1975, Walker et al., 1981).
At standard conditions of \(P_0\) = 1 atm = 1.01325 bar and \(T_0\) = 0˚C, the diffusion coefficient for vapor-air mixtures has a value of 2.13 x 10-5 m2/s; parameter \(\theta\) for the temperature dependence is 1.80. Presently there are no provisions for inputting different values for the parameter \(\theta\) of temperature dependence for different gas phase components. Diffusion coefficients for the non-gaseous phases are taken as constants, with no provisions for temperature dependence of these parameters.
Heat flux includes conductive, convective, and radiative components:
where \(\lambda\) is the effective thermal conductivity, and \(h_{\beta}\) is the specific enthalpy in phase \(\beta\), \(f_{\sigma}\) is the radiant emittance factor, and \(\sigma_0\) is the Stefan-Boltzmann constant.
Sink and Source Terms#
Sinks and sources are introduced by specifying the mass production (\(q \lt 0\)) or injection (\(q \gt 0\)) rates of fluids as well as heat flow. Any of the mass components may be injected in an element at a constant or time-dependent mass rate, and the specific enthalpy of the injected fluid may be specified as well.Heat sources/sinks (with no mass injection) may be either constant or time dependent.
In the case of fluid production, a total mass production rate needs to be specified. The phase composition of the produced fluid may be determined by the relative phase mobilities in the source element. Alternatively, the produced phase composition may be specified to be the same as the phase composition in the producing element. In either case, the mass fractions of the components in the produced phases are determined by the corresponding component mass fractions in the producing element.
TOUGH3 also includes different options for considering wellbore flow effects: a well on deliverability against specified bottomhole or wellhead pressure, or coupled wellbore flow. Details are discussed below.
Deliverability Model#
Production wells may operate on deliverability against a prescribed flowing bottomhole pressure, \(P_{wb}\), with a productivity index PI (Coats, 1977). With this option, the mass production rate of phase \(\beta\) from a grid block with phase pressure \(P_{\beta} \gt P_{wb}\) is
For steady radial flow, the productivity index of layer l is given by (Coats, 1977; Thomas, 1982)
Here, \(\Delta z_l\) denotes the layer thickness, \(\left( k \Delta z_l \right)\) is the permeability-thickness product in layer \(l\), \(r_e\) is the grid block radius, \(r_w\) is the well radius, and \(s\) is the skin factor. If the well is producing from a grid block which does not have cylindrical shape, an approximate PI can be computed by using an effective radius
where \(A\) is the grid block area; e.g., \(A = \Delta x \cdot \Delta y\) for an areal Cartesian grid. More accurate expressions for specific well patterns and grid block shapes have been given in the literature (e.g., Coats & Ramesh, 1982, Peaceman, 2000).
The rate of production for mass component \(\kappa\) is
For wells that are screened in more than one layer (element), the flowing wellbore pressure \(P_{wb}\) can be corrected to approximately account for gravity effects according to the depth-dependent flowing density in the wellbore. Assuming that the open interval extends from layer \(l = ` at the bottom to :math:`l = L`\) at the top, the flowing wellbore pressure in layer \(l\), \(P_{wb, l}\), is obtained from the wellbore pressure in layer \(l + 1`\) immediately above it by means of the following recursion formula
Here, \(g\) is acceleration of gravity, and \(\rho_l^f\) is the flowing density in the tubing opposite layer \(l\). Flowing densities are computed using a procedure given by Coats (private communication, 1982). If wellbore pressure were zero, we would obtain the following volumetric production rate of phase \(\beta\) from layer \(l\).
The total volumetric flow rate of phase \(\beta\) opposite layer \(l\) is, for zero wellbore pressure
From this, we obtain an approximate expression for flowing density opposite layer \(l\) which can be used in Eq. (19).
During fluid production or injection, the rate of heat removal or injection is determined by
where \(h_{\beta}\) is the specific enthalpy of phase \(\beta\).
Coupled Wellbore Flow#
Geothermal production wells typically operate at (nearly) constant wellhead pressures. However, as flow rate and flowing enthalpy change with time, wellbore pressure gradients and flowing bottomhole pressures will also change. TOUGH3 cannot directly describe production from geothermal wells by solving equations for flow in the reservoir and flow in the wellbore in a fully coupled manner [3]. TOUGH3 uses an alternative approach (Murray, 1993) in which the wellbore and reservoir simulations are performed separately. This can be accomplished by running a wellbore flow simulator prior to the reservoir simulation for a range of flow rates \(q\) and flowing enthalpies \(h\) in order to generate a table of flowing bottomhole pressures \(P_{wb}\).
In addition to the functional dependence on \(q\) and \(h\), flowing bottomhole pressure is dependent on a number of well parameters. These include wellhead pressure :math`P_{wh}`, feed zone depth \(z\), wellbore radius \(r_w\), friction factors, and possibly others. By interpolating on these tabular data, Eq. (24) can be directly inserted into the well source term, Eq. (15). Reservoir flow equations that include a quasi-steady approximation to wellbore flow can then be solved with little added computational expense compared to the case where no wellbore flow effects are considered. Advantages of representing wellbore flow effects through tabular data include increased robustness and computational efficiency. It also makes it possible to use different wellbore simulators and two-phase flow correlations without any programming changes in the reservoir simulation code.
We have incorporated a tabular interpolation scheme for dynamic changes of flowing bottomhole pressure into TOUGH3. Flowing enthalpy at the feed zone is known from phase mobilities and enthalpies calculated by the reservoir simulator. The unknown well flow rate and flowing bottomhole pressure are obtained by Newton-Raphson iteration on
The iterative solution of Eq. (25) was embedded in the outer (Newtonian) iteration performed by TOUGH3 on the coupled mass and heat balance equations. Additional computational work in comparison to conventional simulations with constant downhole pressure is insignificant.
The coupled wellbore flow capability as coded in TOUGH3 is limited to wells with a single feed zone and can only handle wellbore pressure effects from changing flow rates and enthalpies. Effects from changing fluid composition, as, e.g., variable non-condensible gas content, are not modeled at present.
The fully coupled approach was taken by Hadgu et al., 1995 who coupled the reservoir simulator TOUGH (Pruess, 1987) with the wellbore simulator WFSA (Hadgu, 1990). T2Well (Pan & Oldenburg, 2014) is also a coupled wellbore-reservoir simulator, which extends TOUGH2 to calculate the flow in both the wellbore and the reservoir simultaneously by introducing a special wellbore sub-domain. T2Well uses the drift-flux model and related conservation equations for describing transient two-phase nonisothermal flow in the wellbore sub-domain. T2Well will be implemented in TOUGH3 at a future date.
Semi-Analytical Conductive Heat Exchange#
TOUGH3 provides options for modeling linear or radial conductive heat exchange with geologic formations where no fluid exchange is considered, using semi-analytical methods. This is a much more efficient alternative to the approach that simply extends the computational grid into those formations and assigns small or vanishing permeability to them. Even to achieve modest accuracy, the number of grid blocks in the heat flow domain could easily become comparable to, or even larger than, the number of grid blocks in the fluid flow domain, leading to a very inefficient calculation. The semi-analytical methods require no grid blocks outside of the fluid flow domain, and permit better accuracy for short- and long-term heat exchange. Note that radial and linear semi-analytical heat exchange cannot be combined in the current version of TOUGH3.
Linear Heat Exchange between a Reservoir and Confining Beds#
TOUGH3 uses the method of Vinsome & Westerveld, 1980, which gives excellent accuracy for heat exchange between reservoir fluids and confining beds [4] such as may arise in geothermal injection and production operations. Observing that the process of heat conduction tends to dampen out temperature variations, Vinsome and Westerveld suggested that caprock or baserock temperatures would vary smoothly even for strong and rapid temperature changes at the boundary of the conduction zone. Arguing that heat conduction perpendicular to the conductive boundary is more important than parallel to it, they proposed to represent the temperature profile in a semi-infinite conductive layer by means of a simple trial function, as follows:
Here, \(x\) is the distance from the boundary, \(T_i\) is initial temperature in the cap- or base-rock (assumed uniform), \(T_f\) is the time-varying temperature at the cap- or base-rock boundary, \(p\) and \(q\) are time-varying fit parameters, and \(d\) is the penetration depth for heat conduction, given by
where \(\Theta = \lambda / \rho C\) is the thermal diffusivity, \(\lambda\) the thermal conductivity, \(\rho\) the density of the medium, and \(C\) the specific heat. In the context of a finite-difference simulation of nonisothermal flow, each grid block in the top and bottom layers of the computational grid will have an associated temperature profile in the adjacent impermeable rock as given by Eq. (26). The coefficients \(p\) and \(q\) will be different for each grid block; they are determined concurrently with the flow simulation from the physical constraints of (1) continuity of heat flux across the boundary, and (2) energy conservation for the reservoir/confining layer system.
This method is developed for calculating heat losses from the reservoir to caprock or baserock and predicting the temperature profile in a semi-infinite, homogeneous, conductive half-space confining bed.
Radial Heat Exchange between Fluids in a Wellbore and the Surrounding Formation#
Radial, conductive heat exchange between fluids in a discretized wellbore and the formation is calculated using a semi-analytical, time-convolution method. Note that the time-dependent temperature evolution in the fully-discretized wellbore is calculated numerically. At each time step, radial heat transfer with the formation is calculated by superposition of analytical solutions of heat flow that are dependent on the temperature differences between subsequent time steps.
Carlslaw & Jaeger, 1959 provided an approximate solution for heat conduction between a cylinder and surrounding media where the temperature of the cylinder is maintained constant. If the initial temperature difference between the two domains is \(\Delta T = T_w - T_f\) (where \(T_w\) and \(T_f\) are the temperatures in the well and the formation, respectively), the heat flux \(q\) from the wellbore to the formation can be calculated das the product of a heat transfer function and the temperature using Eq. (28) for small values of the dimensionless time \(t_d = \alpha t / r_0^2\), where \(\alpha\) is the thermal diffusivity and \(r_0\) is the wellbore radius (m), and Eq. (29) for large values of \(t_d\):
Here, \(\lambda\) is the thermal conductivity (W m-1 K-1), and \(\gamma\) is the Euler constant (0.57722). The heat transfer functions \(f_1\) and \(f_2\) express the amount of heat flux with time due a unit temperature difference. As shown in Zhang et al., 2011, the heat transfer functions \(f_1\) and \(f_2\) are approximately the same at the dimensionless time \(t_d\) = 2.8. Therefore, \(t_d\) = 2.8 is considered the critical dimensionless time to switch from \(f_1\) to \(f_2\).
During fluid injection and production, and as a result of the heat exchange processes, temperature changes continuously over time at any point within the wellbore and at the wellbore-formation interface. Based on superposition, the radial heat flux across each wellbore element to the surrounding formation is a time-convolution result of varying temperature. The discretized form at each time step can be expressed as
Here, \(t_d\) represents the current time after \(d\) time steps, and \(t_i\) represents the time after \(i\) time steps; the function \(f\) is \(f_1\) if \(t_d - t_i \le 2.8\), and \(f_2\) if \(t_d - t_i \gt 2.8\). The temperature difference \(\Delta T \left( t_i \right)\) is the temperature in the well at time step \(i\), minus the formation temperature at the interface at the previous time step, i.e., \(\Delta T \left( t_i \right) = T_w \left( t_i \right) - T_f \left( t_{i - 1} \right)\).