Numerical modeling of geothermal systems C´edrick Copol, Jacques Laminie, Simon Lopez
To cite this version: C´edrick Copol, Jacques Laminie, Simon Lopez. Numerical modeling of geothermal systems. 39th Workshop on Geothermal Reservoir Engineering, Feb 2014, Stanford, United States. pp.SGP-TR-202, 2014.
HAL Id: hal-00944133 https://hal-brgm.archives-ouvertes.fr/hal-00944133 Submitted on 10 Feb 2014
HAL is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est destin´ee au d´epˆot et `a la diffusion de documents scientifiques de niveau recherche, publi´es ou non, ´emanant des ´etablissements d’enseignement et de recherche fran¸cais ou ´etrangers, des laboratoires publics ou priv´es.
PROCEEDINGS, Thirty-Ninth Workshop on Geothermal Reservoir Engineering Stanford University, Stanford, California, February 24-26, 2014 SGP-TR-202
Numerical Modeling of Geothermal Systems Cédrick Copol*, Jacques Laminie* and Simon Lopez** *LAMIA - Université des Antilles et de la Guyane Pointe-à-Pitre. **BRGM - Orleans -France
[email protected],
[email protected],
[email protected]
Keywords: geothermal reservoir, simulation ABSTRACT The purpose of our study is to model a geothermal reservoir. When geothermal reservoir are assumed to be composed of pure water, the transfer of mass and energy is classically described by two balance equations: a mass balance equation and an energy balance equation. In addition to those equations, fluid velocity is classically given by the Darcy law. Thermodynamic properties are given by a set of equations from the IAPWS-IF97 thermodynamic formulation. This system is solved with pressure and enthalpy as the primary variables to increase stability of phase transition between single and two-phase states. We have chosen to use a splitting method to get rid of the complexity of coupling equations and a finite volume method for the spatial discretization. Selecting object-oriented languages, we developed a multi-language framework, combining Python, Fortran and C implementation of IAPWS (from the Freesteam project) including the supercritical regions. We have applied this simulation model to a low temperature case in Paris basin, France, and to several one-dimensional systems and a two-dimensional system and a two-dimensional one. 1. INTRODUCTION The purpose of our study is to model a geothermal reservoir in its natural or exploitation state. Geothermal phenomena often occur in unattainable places, in the Earth's crust, sometimes below the sub-seafloor. In such conditions data acquisition is often difficult and scientists have few measurements. Numerical modeling is often the unique way to have an idea of what happens, to explain surface observations. Numerical geothermal/hydrothermal simulators have been developed for many years now. Ingebritsen and al. (2010) give attributes of such simulators in a detailed review (see table 1 extracted from their article). Among these codes, TOUGH2 is widely used in the geothermal industry to model geothermal reservoir exploitation. HYDROTHEM is used to model hydrothermal deep high energy systems, including magmatic intrusion [Hayba and Ingebritsen,1997]. CSMP++ is a recent generic platform which has been used to model fluid-flow in mid-ocean rife hydrothermal systems [Coumou, 2008]. Tmax
Pmax
Numerical
Reactive
Name
°C
MPa
Method
Transport
CSMP++
1000
500
FE-FV
FEHM
1500
HYDROTHERM
1200
1000
FV
NaCl-TOUGH2
620
100
IFD
Tough2
350
100
IFD
Deformation
CO2
NaCl X
FE
X
X
X
X X
X
Table 1: Relative capabilities of selected multiphase numerical codes commonly applied in simulations of magmatic hydrothermal systems extracted from Ingebritsen and al. (2010) FE: Finite Elements, FV: Finite Volumes, IFD: Integrated Finite Differences 2. GOVERNING EQUATIONS The flow of fluid through a porous medium is supposed to be Darcian [Bear, 1972] so that the flow rate of a fluid through a given section, that is to say the volume of water passing through the porous medium, by unit of surface of time, is written for each phase:
where subscript l represents liquid water and subscript v the vapor water, k(x) is the intrinsic permeability, kl and kv are relative permeabilities, is the fluid's dynamic viscosity, p is the fluid pressure (Pa) and is the fluid's density (kg.m3). This equation assumes that the movement of the fluid in a porous environment is the result of an instantaneous equilibrium between local pressure gradients on the one hand and external gravity forces on the other hand with the gravity acceleration given by . This experimental law can be viewed as a degenerated momentum equation.
1
Copol, Laminie and Lopez In order to model hydrodynamic systems in a porous medium, the Darcy law (1) is injected into two equations describing mass balance and energy balance. The mass balance for a two-phase fluid can be written as:
where is the porosity of the porous medium (dimensionless), Q(x,t) a source term (kg.s-1.m-3) (refill of the aquifer, pumping, injection). The energy balance can be written as:
where h is the specific enthalpy (J.kg-3), T the temperature (measured in Kelvin (K)) of saturated rock. We made the usual assumption of local thermal equilibrium between rock and the fluid flowing through it. K(x) is the thermal conductivity and Φ(x,t) a source term (injection of cold water, source of heat because of the presence of magma). In this classic formulation, potential and kinetic energies have been neglected (see Ingebritsen and al. (2006) for further discussion). At this step there are two ways to solve this two-equation system. The first one is to use pressure and temperature as primary variables and solve for their transient values (which is the strategy adopted in TOUGH2). The alternative option is to retain pressure and enthalpy as primary variables (HYDROTHERM, or CSMP++ [Coumou, 2008]). The pressure-temperature formulation may present some numerical difficulties when the system switches from one-phase to two-phase conditions. The reason behind this instability is that it is not possible to describe uniquely a two-phase system with only pressure and temperature and an additional variable must be introduced (vapor saturation) [Ingebritsen and al., 2006]. As we choose to work with p and h as primary variables we write partial derivatives in terms of p and h and insert (1) in (2) and (3). Considering that there are no mechanical effects and that the rock porosity does not change (i.e. solid matrix is unaffected by fluid pressure variations) (2) and (3) become: Equation for pressure
where α measures the fluid’s compressibility, and α is a proxy for its thermal dilatancy. Both variables are derived from the p
h
fluid’s equation of state. Equation for the enthalpy
3. MATERIALS We use the equation of state for pure water given by the International Association for the Properties of Water and Steam (IAPWS97) [IAPWS] to compute all coefficients as functions of p and h. IAPWS gives a set of equations for each phase region: liquid, vapor, supercritical and two-phase. The formulation is valid from 273.15K to 1073.15K at pressures up to 100MPa, and there is a high-temperature region extending to 2273.15K at pressures up to 50MPa. Equations (4) and (5) are strongly coupled so that we use a splitting resolution method. First we start by solving (4) to obtain p then we solve (5) to obtain h. We used a finite volume method. We offer some freedom to users thanks to the implementation of several methods like explicit or implicit Euler, Runge-Kutta or BDF2 for time solvers or GMRES and BICGSTAB for the linear solver. We can handle several boundary conditions like no-flow – describing a boundary which cannot exchange matter with the exterior – or a mixed thermal condition – a Dirichlet in pressure with a Dirichlet in temperature or an outflow condition in temperature in order to describe a recharge or a discharge zone. We are developing a multi-language framework, combining Python, Fortran and the C implementation of IAPWS (from the Freesteam project). The high level part is in Python to keep all the facility and flexibility of an interpreted language. The computation part is written in Fortran to keep the efficiency of a compiled language. In this way we have 2
Copol, Laminie and Lopez a flexible and efficient framework. Both languages (Python and Fortran 90/2003) are object languages which provide a good adaptability which is the main property needed by a research computational code. 4. BENCHMARKS In the following section we present the results from benchmark simulations taken from literature. In all cases we get either a good agreement with the other simulators or the expected behavior. 4.1 Low energy geothermal doublet We consider a two-dimensional horizontal problem which represents geothermal production from a low enthalpy geothermal aquifer whose size is 5km × 4km. Cold water (40°C) is injected through an injection well into a geothermal reservoir of pure water at 70°C and water is pumped from the extraction well located 1km apart. Table 2 summarizes the geometry, properties and discretization of this problem. Values correspond roughly to those encountered in the modeling of the geothermal resource of the Dogger aquifer of the Paris basin [Lopez and al., 2010]. Our test simulates the evolution of the reservoir over 10 years from an initial state, characterized by p and h . As our model is full 0
0
3D this simulation is a pseudo-2D case with horizontal bottom and top boundaries (z sections) which are no-flow boundaries. All vertical boundaries (x and y sections) are Dirichlet boundaries held constant to their initial states. As this problem is well known it is an efficient way to validate our code. Results are compared with TOUGH2 [Pruess and al., 1999]. Comparisons are done in two cells, the injection one and the extraction one (see table 2). Injecting cold water involves an increase in pressure and a decrease in temperature respectively due to a mass supply and the introduction of colder water. This is what the figures 1 and 2 show. In the same way, a pressure drop is expected at the extraction cell because the production well attracts mass from its neighbors (figure 1). The more intensive the pumping is the more cold water will be sucked out of the extraction well (figure 2). Figures 1-2 show that results from our code are in good agreement with those from TOUGH2. Slight differences come from the fact that we use a more recent equation of state. initial pressure p0
15. 106 Pa
initial pressure h0
305,249J. kg-1
initial temperature T0
70 °C
permeability
2. 10-12 m2
porosity
0.1
geometry of flow domain
2-D horizontal (x,y) section
gridding
51x31x1 blocks in (x,y,z)
block volume
100x100x10
injection well
50 kg.s-1 at the position (15,15,1) 186,776J. kg-1 50 kg.s-1 at the position (30,15,1)
production well
Table 2: Parameters corresponding to geothermal exploitation of the Dogger aquifer [Lopez and al., 2010]
3
Copol, Laminie and Lopez
Figure 1: Comparison of pressure between TOUGH2 (diamond) and our code (circle). The left picture plots data from the injection well whereas the right picture plots data from the extraction well.
Figure 2: Comparison of temperature between TOUGH2 (diamond) and our code (circle). The left picture plots data from the injection well whereas the right picture plots data from the extraction well. 4.2 Transport of hot water in one dimensional We performed two tests in a 1D horizontal domain showing the progress of a thermal front. Both case studies are borrowed from [Coumou, 2008] who run a comparison between CSMP++ and HYDROTHERM. Once again, our results show good agreement with the two other simulators (figure 3). The flow is modeled along a 2 km long horizontal column assigning fixed p-h values at both ends of the column. The left limit was held at higher p-h values than the right limit resulting in the injection of hotter water in the domain from the left boundary. As the field is horizontal the flow is driven only by pressure gradients. Rock properties were uniform and constant. Porosity, rock isobaric heat and heat conductivity were respectively 0.1, 242E+4 J.m-3.s-1 and 2.25W.m-1.s-1. We studied both a liquid domain – setting left boundary at p-T 35MPa-350°C and right boundary at 25MPa-170°C – and a vapor domain – setting at 10MPa-500°C and 1MPa350°C. Figure 3 shows p-T profiles obtained with our code on the left part and results from HYDROTHERM and Coumou/CSMP++ on the right part. Fluid pressure and temperature calculated by our code and CSMP++, HYDROTHERM show a very good match for the liquid domain. In the vapor domain our results remain consistent with the other results but they are slightly ahead of Coumou’s
4
Copol, Laminie and Lopez results.
Figure 3: Pressure and temperature vs distance. Results from our code are plotted of the left figures and results from CSMP++ and HYDROTHERM are plotted on the right figures. The first line of figures shows the liquid domain after 20000 days of simulation and the second line of figures shows the vapor domain after 160000 days. As mentioned by Coumou (2008) the last test shows a non-physical behavior. In fact we observe that temperature in cells near the right boundary drop under 350°C. We propose to use an outflow boundary at the right limit (see figure 4) instead of a Dirichlet one.
(a) Condition dirichlet
(b) Condition outflow
Figure 4: By setting an outflow boundary condition on the right (outflow) side, the enthalpy is no more constrained and drops in a more physical way.
5 NATURAL CONVECTION In this part we have tried to model natural convection in hydrothermal systems. Jupp and Schult (2004) and Coumou (2008) show systems where plumes are constantly evolving: appearing or disappearing, dividing or merging. We did a simulation with a high −12 2
intrinsic permeability k=10 m . The top represents the seafloor at 2.4km. If the fluid’s flow enters in the domain we use Dirichlet conditions: p=25MPa and T is held to 10 else we use an outflow boundary. All the other boundaries are impermeable and adiabatic. To model the presence of a source of heat outside of the domain we use the heat source term Q of equation (5). Such a discrete a e
5
Copol, Laminie and Lopez heat source is put in every bottom cell. We start with a hydrostatic pressure and a fluid at 10. The domain is a 2D domain with width 1500m and height 1000m. Figure 5 shows that vigorous convection cells develop as expected.
Figure 4: Natural convection 6 CONCLUSION This paper illustrates the ability of our code to model geothermal reservoir. At this point we validated our code using benchmarks from the literature. Simulation of a real reservoir (Bouillante field, Guadeloupe) is currently a work in progress. ACKNOWLEDGEMENTS All computations were been done on the computational center of the University, C3I. Funding was provided by BRGM Institut Carnot and Région Guadeloupe.
REFERENCES Jacob Bear. Dynamics of fluids in porous media. Elsevier, August 1972. Dingeman Coumou. Numerical simulation of fluid flow in mid-ocean ridge hydrothermal systems. PhD thesis, ETH Zurich, 2008. Daniel O Hayba and Steven E Ingebritsen. Multiphase groundwater flow near cooling plutons. Journal of Geophysical Research, 102(B6):12235–12252, 1997. IAPWS. freesteam: Steam Tables, Open Source, IAPWS-IF97. S E Ingebritsen, S Geiger, S Hurwitz, and T Driesner. Numerical simulation of magmatic hydrothermal systems. Reviews of Geophysics, 48(1):RG1002, March 2010. Steven E Ingebritsen, Ward E Sanford, and Christopher E Neuzil. Groundwater in geologic processes, 2nd edition. Cambridge University Press, 2006. Tim Jupp and Adam Schultz. Physical balances in subseafloor hydrothermal convection cells. Journal of Geophysical Research, 109(B5):B05101, 2004. Simon Lopez, Virginie Hamm, Morgane Le Brun, Lionel Schaper, Fabrice Boissier, Catherine Cotiche, and Elodie Giuglaris. Geothermics 40 years of Dogger aquifer management in Ile-de-France , Paris Basin , France. Geothermics, 39(4):339–356, 2010. Karsten Pruess, Curt Oldenburg, and George Moridis. Tough2 user’s guide. Technical Report November, Berkeley National Laboratory, 1999.
6