Sie sind auf Seite 1von 6

PROCEEDINGS, Thirtieth Workshop on Geothermal Reservoir Engineering

Stanford University, Stanford, California, January 31-February 2, 2005


SGP-TR-176

COUPLING THE HOLA WELLBORE SIMULATOR WITH TOUGH2

Ashish Bhat
Daniel Swenson
Shekhar Gosavi

Kansas State University


Mechanical and Nuclear Engineering Department
Manhattan, KS-66506, USA.
e-mail: ashish@ksu.edu

and WELLSIM wellbore simulator. They generate a


ABSTRACT series of wellbore tables using WELLSIM, which are
then used for interpolation by TETRAD.
This paper describes a coupled model between the
reservoir simulator TOUGH2 and wellbore simulator Hadgu et al., (1995) describe a coupling of TOUGH2
HOLA. The goal is to provide increased capability in and WFSA. The WFSA simulator is one of the three
TOUGH2 to better model flow in geothermal systems parts of the WELLSIM simulator package (Gunn and
containing inclined wells with multiple feedzones. Freeston, 1991). However, discussion with the author
The model accounts for varying flowing bottomhole indicated that development of this coupled package
pressure and flow entering the wellbore from had stopped and that the software was not readily
multiple feedzones at different depths, with the fluid available.
in different thermodynamic states.
This paper describes coupling of TOUGH2
This approach facilitates a more accurate simulation specifically with the HOLA simulator. We plan to
of behavior of the geothermal reservoir being extend this to the GWELL, GWNACL and HOLA
exploited. The standard TOUGH2 input data is family of wellbore simulation models, to form a
extended to support the new capability. Some sample complete package. All source code is available
problems are solved using coupled simulator and publicly for use by others.
compared with the results obtained from the current
deliverability model in TOUGH2.
HOLA WELLBORE SIMULATOR
MOTIVATION HOLA is a multi-feedzone geothermal wellbore
simulator for pure water (modified after Bjornsson,
An Enhanced Geothermal System (EGS) is being 1987). It can handle both single phase and two phase
exploited at the East Flank area of Coso Geothermal flows in a well, with variable grid spacing and
field, California. It is an ideal testing site with high wellbore radii. GWELL(Aunzo,1990) and GWNACL
rock temperatures at depths less than 10,000 ft and a are modified versions of HOLA, that can handle
high degree of fracturing and tectonic stresses. H2O-CO2 and H2O-NaCl systems respectively. They
However, some of the wells within this portion of the were developed using FORTRAN language.
reservoir are relatively impermeable and exhibit a
significant drawdown. Characterization of the flow HOLA reproduces the measured pressure and
near the wellbore, becomes even more important in temperature profile in a flowing well and determines
such settings. thermodynamic properties of water, relative flow
rates at each feedzone for a given discharge condition
Field data for the Coso wells also reveals the at the wellhead. It has two approaches (Option 1 and
presence of two-phase flow and multiple feedzones. Option 2) for wellbore flow simulation. Option 1
This leaves the standard coupled wellbore flow needs known discharge condition at the wellhead
option in TOUGH2 unusable, since it is limited to (pressure, temperature and enthalpy), in addition to
wells with a single feedzone. flow rates and enthalpies of all but the last feedzone.
The simulator proceeds from wellhead-to-bottomhole
Previous authors have developed coupled well and to calculate the flowing temperature and pressure
reservoir models. Murray and Gunn (1993) presented profile along the well. In Option 2, the user specifies
coupling between the TETRAD reservoir simulator the required flowing wellhead pressure and
bottomhole pressure and for each feedzone, the dEt
productivity indices and thermodynamic properties of The total energy flux gradient, is the sum of
reservoir fluid. The simulator then proceeds dL
bottomhole-to-wellhead to calculate the expected discharges in the heat content of the fluid, kinetic and
wellhead output (wellhead enthalpy, flowrate, potential energy. It is expressed as,
temperature and phase composition) for the required
wellhead pressure. dEt
dL

=m
d
dL
[
hm + 0.5u m + g (L − D ) (7)
2
]
Governing equations are represented by two sets of
equations. Namely, Between the feedzone and At the
feedzone. The important equations are given below. Where hm is enthalpy of mixture, D is measured
depth till the current grid-node.
Flow between feedzones
An approximate solution for Qt when we have the
Between the feedzones the flow is represented by
term, ∩ t / rw >> 1 (Carslaw and Jaeger, 1959) is
2
one-dimensional steady-state momentum, energy and
mass flux balances. given as,

Mass Balance −1
⎡ ⎧4 ∩ t ⎫⎤
dm

Qt ≈ 4τ π (Tw − Tr ) ⎢ln ⎨ 2 − 2η ⎬⎥ (8)
=0 (1) ⎢⎣ ⎩ rw ⎭⎥⎦
dL Where, η is the Euler’s constant (= 0.577216...),

Where m = mass flow rate, L = length of pipe τ is rock thermal conductivity, t is time, ∩ is rock
thermal diffusivity, Tw and Tr are temperatures in the
Momentum Balance well and reservoir respectively. Above equation does
The total pressure gradient is the sum of the friction not take into account, transient changes in
gradient, acceleration gradient and potential gradient. temperature and additional heat losses due to
convection, when the well is flowing. However the
heat loss term in equation (6) is very small compared
dP ⎡ dP ⎤ ⎡ dP ⎤ ⎡ dP ⎤ to total energy flux term.
−⎢ ⎥ −⎢ ⎥ −⎢ ⎥ = 0 (2)
dL ⎣ dL ⎦ fri ⎣ dL ⎦ acc ⎣ dL ⎦ pot
Where, At the feedzone
⎡ dP ⎤ 2 ⎡ dP ⎤
At the feedzone, the mass and energy of inflow (or
⎢⎣ dL ⎥⎦ = φ Flow ⎢⎣ dL ⎥⎦ (3) outflow) are given, and then mass and energy balance
fri LO are performed, to continue further along the well.
⎡ dP ⎤ d (G u m ) Here assumptions made are, instantaneous mixing
⎢ dL ⎥ = dL (4) occurs and it occurs at the wellbore pressure.
⎣ ⎦ acc
⎡ dP ⎤ Mass Balance
⎢⎣ dL ⎥⎦ = p g sin θ (5) r
m& m
r r
= m& w − m& f (9)
pot

⎡ dP ⎤ Subscripts m, w, f represent mixture, well, feedzone


⎢⎣ dL ⎥⎦ is the pressure drop for a flowing single- respectively.
LO
Flow from the feedzone for Option 2 is calculated
phase liquid and φ2
Flow
is the two-phase multiplier. using Darcy’s law as follows,

G is the mass flux, um is average fluid velocity, θ is ⎡ k ρ k ρ ⎤ ⎡ dP ⎤


well deviation angle from horizontal. q = k A ⎢ rl l + rv v ⎥ ⎢ ⎥ (10)
⎣ µl µ v ⎦ ⎣ dr ⎦
Energy Balance where k is intrinsic permeability, krl and krv is relative
permeability for water and vapor. µ is the viscosity.
dEt
± Qt = 0 (6)
dL Energy Balance
r r r
m& m H m = m& w H w − m& f H f (11)
Where H is fluid enthalpy. Positive flowrate at the of them is also a deliverability model for production
wellhead or a feedzone indicates production, while wells to evaluate well-output based on a fixed
negative flowrate indicates injection. The mass flow specified bottomhole pressure and productivity index.
in the well can have two possible directions, upward The mass production rate with this option for phase β
(producing) and downward (injecting). Also the flow from a grid block with phase pressure P β > Pwb is,
for feedzone can be towards the well(producing) or k rβ
towards reservoir (injecting). HOLA takes all such qβ = ρ β ⋅PI ⋅ ( Pβ − Pwb ) (12)
six combinations into consideration. It can be noted µβ
here that simulator WFSA assumes the fluid that Thus the total rate of production for mass component
enters the well from a feedzone, flows upward only. κ is,
Formulae for two-phase flow calculations are taken qˆ κ = ∑β X βκ qβ (13)
after Chisholm (1983). Gas and liquid phase
velocities are needed in the evaluation of momentum X βκ is the mass fraction of phase β of component κ.
flux and energy equations. They can only be obtained
by empirical correlations. Two choices are provided As opposed to HOLA, a negative flow rate in
to user, to calculate these velocities, namely TOUGH2 indicates production and a positive flow
Armand(1946) correlation and Orkiszewski(1983) means injection.
correlation. Reader is referred to Aunzo et al. (1991)
for further details on input-output format of HOLA COUPLING OF HOLA WITH TOUGH2
and various correlations. Typically geothermal wells operate at almost a
constant wellhead pressure. The well-output (flow
TOUGH2 SIMULATOR rate and enthalpy at wellhead) varies with time,
TOUGH2 is a numerical simulator for non- which means well bore pressure gradient and/or
isothermal flow of multi-component, multiphase bottomhole pressure change with time. Thus it is
fluids in one, two or three dimensional porous and more accurate to simulate a flowing wellbore against
fractured media (Pruess et al., 1999). It is a member a variable bottomhole pressure. This exact approach
of MULCOM family of codes, written in standard is followed in our work, summarized as follows,
FORTRAN77 language and widely used in
geothermal applications. Hence just a brief i) A separate input file for each well in the reservoir
description of it is being given here with emphasis on is read in TOUGH2.
sink/source feature. ii) Unlike the current coupled wellbore flow option
in TOUGH2 with ‘F----‘ type of wells (in which
Darcy’s law is used to describe the single phase and interpolation into predetermined well-tables is
two-phase flow. For the EOS1 water module, primary performed), an explicit call is made to HOLA, at
thermodynamic variables are pressure and the start of each new timestep. It can be noted that
temperature for a single phase flow, while pressure, HOLA has been converted into a subroutine in
temperature and phase saturation for two-phase flow. the coupled code.
Various relative permeability functions and capillary iii) Required reservoir parameters are supplied to
pressure function, as a function of phase saturation HOLA as input. Choice of initial guess value for
are provided. TOUGH2 solves fluid motion by space bottomhole pressure and pressure step for
discretization using the “Integral Finite Difference” iteration is left to the user through the input file.
Method (Edwards, 1972; Narasimhan and iv) HOLA then iterates using ‘option 2’ to calculate
Witherspoon, 1976). Time is also discretized in a flow rates and enthalpies at various feedzones and
fully implicit manner as a first order backward finite at the wellhead.
difference. As a result, a set of strongly coupled non- v) A positive (negative) flow rate calculated at a
linear algebraic equations are formed, which are feedzone in HOLA is supplied as a constant
rearranged in a residual form. These equations are production(injection) rate to the corresponding
then solved iteratively by Newton-Raphson method, source/sink element in TOUGH2, during regular
with time-dependent primary thermodynamic timestep calculations of TOUGH2.
variables of all grid blocks as unknowns to be vi) Enthalpies for the producing element are
determined by bringing residual within a specified calculated inside TOUGH2. For injection,
error limit. enthalpy is taken from by HOLA. This approach
is comparable to the two basic options in
A well is represented as a sink/source. Sink/Source is TOUGH2 for specifying the source/sink, namely
specified directly as a grid block that acts as a region ‘MASS’ option and ‘COM’ option. ‘MASS’
where injection or production of fluid mass and/or option specifies constant mass production rate
heat from the reservoir occurs. Various options are with enthalpies to be determined from conditions
available for specifying the injection/production. One in producing block. While option ‘COM’
represents mass injection at a constant rate with i) SUBROUTINE PrepHOLA( ): gets the required
specified enthalpy. reservoir parameter values from TOUGH2 and
vii) Procedure from step (ii) to (vi) is then repeated supplies them to HOLA.
for the next time-step with updated values of ii) SUBROUTINE TabPwh( ): finds current
reservoir parameters. Now the initial guess for the wellhead pressure from time-dependent table
bottomhole pressure is the converged value at the data.
previous timestep. iii) SUBROUTINE FindTime( ): locates the current
time in a tabular time data.
Some of the features of the coupled code are, iv) SUBROUTINE PwhInter( ): calculates wellhead
• There is no change in the TOUGH2 input file. A pressure at given time, by doing triple linear
coupled simulation with HOLA, is indicated in interpolation between the values for starting time
the GENER block of TOUGH2 input file. User and end time.
specifies up to a five character long string name
that starts with either ‘H’ or ‘h’, for each well. The hard-coded simulation parameters in HOLA
e.g. if a TYPE and ITAB record were specified were all brought at one place, so that they are
as ‘H349’ and ‘a’, the program expects an input accessible to user and could be changed as per
file with the name, ‘H349a’ present in the folder. problem size. Choice of a pressure step for
• Input file for each well, is in similar spirit of the bottomhole pressure iteration is left to the user’s
standard HOLA input file for option 2. discretion. More study is required to improve the
• The user can also specify the wellhead pressure performance of HOLA (Hadgu and Bodvarsson,
as time dependent data. Triple linear 1992). Some issues in HOLA that have been
interpolation is then performed on this data and addressed are,
an average of wellhead pressure at the starting i) In subroutine VINNA2, while calculating the
and ending time of current time-step is used for mass flow rate for the last feedzone, an average of
the calculation. reservoir fluid parameters and wellbore fluid
• User may not want to keep a well flowing parameters such as density, saturation, viscosity
through the complete time-span of a reservoir was being taken. A scenario in which one fluid
run. Hence shut-in and flowing option is could be single phase and other two-phase was
provided to the user. not handled, leading to erroneous results. As an
alternative to that we followed a simpler approach
• With a proper choice pressure-step for iterations
of using only reservoir parameters when fluid is
and a reasonable error limit on wellhead
entering the well and for the case of injection we
pressure, HOLA computes very fast, Hence
use only wellbore fluid parameters.
comparatively there is not much compromise on
ii) Some instances of un-initialized variables have
computational time.
been corrected.
iii) For relative permeability calculations, HOLA
The coupling procedure was aimed to make minimal
follows a simple approach. They are assumed to
changes in TOUGH2 and HOLA. The TOUGH2
vary linearly between 0 to 1 and are equal to the
subroutines in which the changes were made are,
phase saturation. We extended the various relative
INPUT, RFILE, CYCIT, QU and OUT. Mostly new
permeability calculation options available in
code blocks were added rather than a change in the
TOUGH2 to HOLA also. And then HOLA uses
original code. The input file for HOLA is read in
the same choice of calculation as chosen by user
RFILE and care is taken to properly preserve the
in TOUGH2 input file.
sink/source indices and total number of generation
iv) We encountered a case in which the reservoir
grid blocks. The call to HOLA is made in CYCIT
pressure was same as iterative value of
before the iterations for TOUGH2 begin. One more
bottomhole pressure. It lead to a division by zero
case was added to sink/source subroutine, QU to
calculation putting the program into an infinite
handle the coupled simulation with HOLA.
loop. This was taken care of.
Appropriate terms for Newton-Raphson iterations are
v) We are correcting a minor error regarding the way
calculated here. A small block of code was added to
inclined wells are currently handled in HOLA.
OUT, to get a printed output of well flow-rates,
enthalpies and bottomhole pressure.
SAMPLE PROBLEM
The “Main” program of the original HOLA code is Sample problem number 5 from the TOUGH2 user’s
abandoned and a new subroutine HOLA( ) is written. guide is chosen as an example. This problem was
Its purpose is same as the original main program, but originally taken after Hadgu et al., 1995. In this
there is no user interactive feature involved. Also example, a coupled simulation model is compared
some other new routines and functions are written. with the deliverability option in TOUGH2.
Here is their brief description,
A well of inside diameter 0.2 m produces from a 500 GWELL and GWNACL simulators to form a
m thick two-phase reservoir containing water at complete package of coupled code.
initial conditions of P = 60 bars, T = Tsat (P) = 275.5
˚C, Sg = 0.1. Wellhead pressure is 7 bars and the ACKNOWLEDGEMENT
feedzone depth is 1000 m. A 1-D radial grid was
created by means of MESHMAKER input file The authors appreciate discussions with Teklu Hadgu
provided in the TOUGH2 user’s guide. The at Sandia National Laboratories and Karsten Pruess at
wellblock radius is 100 m and the grid extends to LBNL. This work is supported by the U.S.
10,000 m. The well productivity index is 4.64e-11 Department of Energy, Assistant Secretary for
m3. Simulation starts with a time-step of 1.e5 Energy Efficiency and Renewable Energy, under
seconds and ends at a time of 1.e9 seconds (approx. DOE Financial Assistance Award DE-FC07-
31.7 years) 01ID14186.

First a run with coupled simulation is performed. REFERENCES


Then ‘H----’ type in GENER block is replaced by Au, A., “TETRAD User Manual”, ADA International
DELV type so as to run the problem on deliverability Consulting Inc., Calgary, Alberta, Canada, 1995.
model, with a fixed bottomhole pressure of 57.12 bar.
This was the bottomhole pressure at the end of first Aunzo, Z. P., “GWELL: A Multi-Component Multi-
timestep in the coupled simulation. Feedzone Geothermal Wellbore Simulator.”, M.S.
Thesis, University of California at Berkley, Berkley,
Results obtained are plotted as shown in Figure 1. In CA, USA, May, 1990.
the figure, Q is flow rate and h is the flowing
enthalpy. Both Q and h are plotted for the coupled Aunzo, Z.P., Bjornsson, G., and Bodvarsson., G.S. ,
simulation (HOLA) and the deliverability model “Wellbore Models GWELL, GWNACL, and
(DELV). Pwb (HOLA) is the varying bottomhole HOLA”, Lawrence Berkeley National Laboratory
pressure for coupled simulation. Report LBL-31428, Berkeley, CA, October 1991.

Bjornsson, G., “A Multi-Feedzone, Geothermal


80 1300
Wellbore Simulator.”, Earth Sciences Division,
1290
Lawrence Berkeley Laboratory Report LBL-23546,
Flow rate(kg/s) or Pressure (bars)

70
1280 Berkeley, USA, 1987.
60 1270
Enthalpy (KJ/kg)

1260 Carslaw, H. S., and Jaeger, J. C., “Conduction of


50
1250
Heat in Solids”, 2nd ed., Oxford Univ. Press,
Q(HOLA)
Q(DELV) London, 1959.
40 Pwb(HOLA) 1240
h(HOLA)
h(DELV) 1230 Edwards, A.L., “TRUMP: A Computer Program for
30
1220 Transient and Steady State Temperature Distributions
20 1210 in Multidimensional Systems”, National Technical
1.00E+05 1.00E+06 1.00E+07 1.00E+08 1.00E+09 Information Service, National Bureau of Standards,
Time(sec) Springfield, VA, 1972.

Figure1 :Flow rate, enthalpy and bottomhole Gunn, C., and Freeston, D., “Applicability of
pressure plotted against a logarithmic Geothermal Inflow Performance and Quadratic
time scale. Drawdown Relationships to Wellbore Output Curve
Prediction”, Geothermal Resources Council
These trends match the results given in the TOUGH2 Transactions, Vol. 15, pp. 471-475, 1991.
users manual. The deliverability model shows a
rapidly declining production rate while the coupled Hadgu, T., Bodvarsson, G.S., "Supplement to
reservoir-wellbore system shows a long term wellbore models GWELL, GWNACL, and HOLA
production at a much higher rate than a deliverability User’s Guide," LBL report LBL-32907, 1992.
model. This certainly emphasizes the necessity of a
coupled-reservoir model. Hadgu, T., Zimmerman, R.W. , and Bodvarsson., G.
S., “Coupled Reservoir-Wellbore Simulation of
CONCLUSION Geothermal Reservoir Behavior,” Geothermics,
24(2), 145—166. LBL-36141, 1995.
With the results obtained we believe that we should
be able to predict more accurately the production at Murray, L., and Gunn, C., “Toward Integrating
the Coso EGS site. Future plans involve a careful Geothermal Reservoir and Wellbore Simulation:
review of the HOLA source code and coupling of
TETRAD and WELLSIM”, Proceedings of the 15th
New Zealand Geothermal Workshop, Geothermal
Institute, The University of Auckland, Auckland,
New Zealand, 1993.

Narasimhan, T.N., and Witherspoon, P.A., “An


Integrated Finite Difference Method for Analyzing
Fluid Flow in Porous Media”, Water Resources
Research, Vol. 12(1), pp. 57-64, 1976.

Orkiszewski, J., “Predicting Two-Phase Pressure


Drops in Vertical Pipe”, J. Pet. Tech., pp. 829-838,
1967.

Pruess, K., Oldenburg, C., and Moridis, G.,


“TOUGH2 User's Guide, Version 2.0”, Lawrence
Berkeley National Laboratory Report LBNL-43134,
Berkeley, CA, November 1999.

Das könnte Ihnen auch gefallen