Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MODELING OF RESERVOIR STIMULATION TREATMENT
Document Type and Number:
WIPO Patent Application WO/2002/066789
Kind Code:
A1
Abstract:
A method for designing acid treatments provides for the selection of optimal treatment for well stimulation wherein reservoir characteristics are obtained to further select the reaction kinetic data on the minerals of interests, the treatment to the reservoir is scaled up using a mathematical model and real time damage are computed based on bottomhole pressure and injection rate and compared to that predicted to adjust the treatment. The model generated facilitates optimization of matrix treatments by providing evaluation of various treatment strategies. Stimulation with non-traditional fluid recipes can be readily computed. The computed values can then be used in an economic model to justify the additional costs associated with the use of the non-traditional fluids. Apart from optimizing matrix treatments, the method can be used as a tool for developing new fluids, for prediction and removal of inorganic scale and for fluid compatibility testing.

Inventors:
ZIAUDDIN MURTAZA
ROBERT JOEL
Application Number:
PCT/EP2002/001600
Publication Date:
August 29, 2002
Filing Date:
February 15, 2002
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SOFITECH NV (BE)
SCHLUMBERGER SERVICES PETROL (FR)
SCHLUMBERGER CA LTD (CA)
SCHLUMBERGER TECHNOLOGY BV (NL)
SCHLUMBERGER HOLDINGS
International Classes:
A61L2/20; B65B55/02; B65B55/10; B67C7/00; E21B41/00; E21B43/25; (IPC1-7): E21B43/25
Foreign References:
US5431227A1995-07-11
Other References:
YUETING CHEN: "Reaction-Transport Simulation of Matrix Acidizing and Optimal Acidizing Strategies", SPE37282, 18 February 1997 (1997-02-18), XP002202084
HUANG, T.: "Reaction Rate and Fluid Loss: The Keys to Wormhole Initiation and Propagation in Carbonate Acidizing", SPE37312, 18 February 1997 (1997-02-18), XP002202085
HONGJIE XIONG: "Prediction of Effective Acid Penetration and Acid Volume for Matrix Acidizing Treatment in Naturally Fractured Carbonates", SPE25410, 21 March 1993 (1993-03-21), XP002202086
FREDD, C.: "Dynamic Model of Wormhole Formation Demonstrates Conditions for Effective Skin Reduction During Carbonate Matrix Acidizing", SPE59537, 21 March 2000 (2000-03-21), XP002202087
GONG,M. ET AL.: "Quantitative Model of Wormholing Process in Carbonate Acidizing", SPE52165, 28 March 1999 (1999-03-28), XP002202088
YING-HSIAO,L.: "Mathematical Modeling of Secondary Precipitation from Sandstone Acidizing", SPE39420, 18 February 1998 (1998-02-18), XP002202089
ANTHONY QUINN,M.: "Designing Effective Sandstone Acidizing Treatments through Geochemical Modeling", SPE38173, 2 June 1997 (1997-06-02), XP002202090
YONG FAN, U.: "A Comprehensive Model of Matrix Acidization", SPE38169, 2 June 1997 (1997-06-02), XP002202091
Attorney, Agent or Firm:
Menes, Catherine (rue Becquerel, BP 202 F- Clamart, FR)
Download PDF:
Claims:
CLAIMS What is claimed is :
1. A method for modeling a stimulation treatment for a reservoir, comprising the steps of : # Obtaining a set of quantified reservoir parameters including the reservoir minerals; # Designing a first treatment fluid comprising a mixture of chemical species; # Obtaining a first set of chemical reactions that can occur between the minerals and the component of the treatment fluid; said reactions defined by their equilibrium and their kinetic properties; Selecting a subset of said first set of chemical reactions to create a reaction model of said minerals with said treatment fluid and predict damages consecutive of the treatment; and # Iteratively adjusting the stimulation treatment to optimize results.
2. The method of claim 1, wherein the set of quantified reservoir parameters includes permeability.
3. The method of claim I or claim 2, wherein the quantified reservoir parameters include an estimate of the quantity and depth of damage to reservoir.
4. The method of any of claim 3, wherein the damage data are estimated from nodal analysis and mud and resistivity log data.
5. The method of claims 2 and 3, further including # Modeling a reservoir core having a length and a diameter; and 'Selecting am injection rate of the treatment fluid; And wherein the stop of selecting a subset of said first set of chemical reactions includes the creation of a reaction model of said core with said treatment fluid and predict damages consecutive of the treatment.
6. The method of claims 2 and 3, further including # Modeling areservoir core having a length and a diameter; and 'Selecting an injection rate of the treatment fluid; And wherein the atop of selecting a subset of said first set of chemical reactions includes the creation of a reaction model of said reservoir with said treatment fluid and predict damages consecutive of the treatment.
7. The method of any of the preceding claims, wherein the iterative step includes performing a sensitivity analysis to optimize the variables for selecting an optimum treatment design.
8. The method of claim 5 or claim 6, wherein the injection rate of fluid treatment is modeled assuming, a. tmear ftow (for a core) or a radial flow (for a reservoir).
9. The method of'claim 8, wherein the treatment includes pumping a sequence of successive fluid treatments at specific rates.
10. The method of claim 9, wherein the step of iteratively adjusting the stimulation treatment includes (the ; atep of adjusting the pumping sequence.
11. The method of claim S or claim 6, wherein the reaction model of said core or said reservoir includes effluent analysis and permeability evolution.
12. The method of amy of the preceding claims, wherein said set of quantified reservoir parameters includes porosity and said reaction model includes porosity evolution.
13. The method of any of the preceding claims, wherein the models comprises both aqueous species and minerals, and wherein the assumption Go wherein the chemical species is available in equilibrium constant form, µi0(T,P) for the specie can be calculated from the following thermodynamic identity:.
14. The method of claim 13, wherein once the, uj° (T, P) for the aqueous species i is computed at stimmbtion temperature and pressure, the chemical potential of the aqueous specie it solution is then computed internally in the simulator from the followingequation : µi(T,P,#) = µi0(T,P) + RT ln γi(T,P,#)mi.
15. A method for perfuming a stimulation treatment for a reservoir, comprising the steps of modeling a stimulation treatment according to claim 6 to select an optimized treatment fluid, pumping said first treatment fluid at a first injection rate while measuring the bottomhole pressure; computing realtime damages to the reservoir from the measured bottomhole pressure and injection rate; Simultaneously computing the damages based 10s dhe mathematical model; and adjusting the stimulation treatment to optimize results.
16. A method for designing a stimulation treatment fluid for a reservoir, comprising the steps of performing e modeling stimulation treatment of claim 1 and performing laboratory experiments on the optimized stimulation treatments thereby reducing the number of experiments (required for designing a new treatment.
Description:
METHOD OF OPTIMIZING THE DESIGN, STIMULATION AND EVALUATION OF MATRIX TREATMENT IN A RESERVOIR BACKGROUND OF THE INVENTION Field of the Invention.

[0001] The present invention is generally related to hydrocarbon well stimulation, and is more particularly directed to a method for designing matrix treatment, or generally any treatment with a fluid that will react t the reservoir minerals or with chemicals resulting for instance from a previous treatment :. TJhe invention is particularly useful for designing acid treatment such as for instance mud acid treatments in sandstone reservoirs.

Discussion of the Prior Art, [0002] Matrix acidizing is among the oldest well stimulation techniques. It is applied to sandstone formations to remove near-wellbore damage, which may have been caused by drilling, completion, production, or workover operations. Matrix acidizing is accomplished by injecting a mixture oxo acids (typically hydrofluoric and hydrochloric acids) to dissolve materials that impair well production, as a rule designated as near-wellbore damages.

[0003] Matrix treatments in sandstone reservoirs have evolved considerably since the first mud acid treatment in the tl930s. Treatment fluid recipes have become increasingly complex.

Several additives are now routinely used and organic acids are frequently used in high temperature formations to, anr, oid precipitation reactions. Chelating agents are often added to avoid precipitation in form-gi,'aonis with high carbonate content.

[0004] Substantial production improvements can be achieved by this type of well stimulation technique if treatments are engineered properly. However, matrix treatments are also often a main contributor to reservoir damages. Indeed, the side reactions that occur in almost all mud acid treatments, lead to the formation of precipitates. Precipitates plug pore spaces and reduce permeability and can therefore adversely affect acid treatments if precipitates deposit near the wellbore. Far from the 5 d1 precipitates are considered to have negligible effect. Moreover, recent studies have made the industry wary of damage due to secondary and tertiary reactions.

Accurate prediction of the effectiveness of a matrix treatment involves calculation of the rates of the dissolution and re-precipitation reactions of minerals because the rates dictate where precipitates will be deposited in the reservoir.

[0005] Moreover, sandstone mineralogy is quite complex and acid/mineral compatibility as well as acid/crude oil compatibility is often an issue. At present, there is a lack of tools that can predict accurately the activity of acids with clays, and consequently, there are treatments currently in practice that use empirical rules-or at the opposite extreme, rely on extensive costly and time-consuming laboratory testing.

[0006] Beyond the treatment fluid selection, the pumping schedule is also a crucial parameter.

In The Stimulation Treatment Pressure Record-An Overlooked Formation Evaluation Tool, by H. O. McLeod and A. W. Coulter, JPT, 1969, p. 952-960, a technique is described wherein each injection stage or shut-aD during the treatment is considered as a short individual well test. The transient reservoir pressure response to the injection of fluids is analyzed and interpreted to determine the conditions of the wellbore skin and formation transmissibility.

In New Method Proves Value of Stimulation Planning, Oil & Gas Journal, V 77, NO 47, PP 154-160, November 19,1979, G. Paccaloni proposes a method based on the instantaneous pressure and injection rate values to compute the skin factor at any given time during the treatment. Comparison is made with standard curves calculated for fixed values of skin effect to evaluate skin effect evolution during treatment. Standard curves are generated using Darcy's equations for steady state, single phase and radial horizontal flow in reservoirs.

[0008l A technique presented by Prouvost and Economides enables continuous calculation of the skin effect factor during, the course of the treatment and accounts for transient response, see Real-time Evaluatiovy,-of Matrix Acidiziiig, Pet. Sci, and Eng., 1987, p. 145-154. and Applications s of Real-time Matrix Acidizing Evaluation Method, SPE 17156, SPE Production Engineering, 1987,4, No. 6, 401-407. This technique is based on a continuous comparison of the measured and presumed good reservoir description including the type of model and well and reservoir variables of d bject well.

[0009] It is also known 6 ! om U. S. Patent No. 5,431,227 to provide a method for matrix stimulation field monitoring, otpimization and post-job evaluation of matrix treatments based

on calculated and measured bottom hole pressure used in a step rate test to estimate the damage skin.

A number of sands ! toae acidizing models have been presented in the literature aiming at computing changes in porosity resulting from the dissolution and precipitation of minerals.

[0011] In the lumped mit l models, the complex sandstone mineralogy is lumped into characteristic minerals and an average reaction rate for these minerals is determined from core tests. In two mineral models Me sandstone minerals are lumped into fast-and slow-reacting groups on the basis of itheaf reactivity with HF. Two mineral models do not account for precipitation reactions. A three mineral lumped model has also been proposed in S. L. Bryant, SPE 22855, An Improved Model of Mud Acid/Sandstone Acidizing, in SPE Annual Technical Conference and Exhibition, 1991, Dallas. The third mineral accounts for the precipitation of amorphous silica. Disadvantages of lumped mineral models are that they do not allow for equilibrium reactions to be modeled and need to be carefully calibrated to the treatment condition and formation of interest. Therefore, these models are not applicable to fluids systems containing weak nids (e. g. most organic acids) and chelating agents and are not reliable outside the calibrated region.

[0012] The equilibrium aximation is another approximation that is frequently used for the design of matrix treatmeints. This model has been presented in Walsh, M. P., L. W. Lake, and R. S. Schechter, SPE 106. A Description of Chemical Precipitation Mechanisms and Their Role in Formation Damage During Stimulation by Hydrofluoric Acid. in SPE International Symposium on Oilfield amd Geothermal Chemistry, 1982, Dallas. In the equilibrium approximation it is assumed that the reactions are much faster than the contact time of the minerals with the acids. The equilibrium constants for the reactions are usually better known than the rate constants,; so large reaction sets can be included and complex sandstone mineralogy can be accosted for without speculating on the reactions and rate laws as is necessary in the lumped trnmaral approach. Unfortunately, the assumption that the reactions are much faster than the contact time is not valid for the injection rates used in most acid treatments and thus the equilibrium approach is useful only as an indicator for precipitation.

The question that must be answered for a successful design is not if but where precipitation will occur. An equilibrium model alone with no time dependence cannot answer this question.

[0013] To address this. discrepancy in the equilibrium models, partial local equilibrium models have been proposed ; and first described in Sevougian, S. D., L. W. Lake, and R. S.

Schechter, KGEOFLOW : A New Reactive Transport Simulator for Sandstone Matrix Acidizing, SPE Production. & Facilities, 1995: p. 13-19 and in Li, Y., J. D. Fambrough, and C. T. Montgomery. SPE 39420, Mathematical Modeling of Secondary Precipitation from Sandstone Acidizing, SPE International Symposium on Formation Damage Control, 1998, Lafayette. The partial equilibrmm approach combines the kinetic and equilibrium approaches.

Slow reactions are modeled with a kinetic model, and an equilibrium model is used for fast reactions. This comput on scheme enables comprehensive and flexible modeling of sandstone acidizing, but thrtadfiitionally suffered from several disadvantages. First, accurate computation of the activity coefficients for high acidic and high ionic strength solutions is difficult. Second, due to inefficient numerical algorithms numerical convergence was a frequent problem. Therdone, oSy 1-2 precipitated mineral species could be practically simulated. Third, only a limited thermodynamic data was available. Hence, simulations for hot reservoirs and with noraaditional fluid'systems were not possible.

[0014] The previous models. are applicable to a limited range of temperatures, injection rates and mineral composition. : So yet, despite the important risk of damaging a reservoir, no satisfactory method for modeling matrix treatments over a much broader range of these variables, to make the motel more reliable for extrapolating laboratory data to field conditions.

[0015] This failure of the existing models is all the more critical that treatment fluid recipes have become increasingly coaqplex. Several additives are now routinely added, organic acids are frequently used in h emperature formations to avoid precipitation reactions and chelating agents are often added to avoid precipitation in formations with high carbonate content.

SUMMARY OF THE INVENTION [0016] The subject invention is directed to a method for designing matrix treatments, and more particularly, for stimmMon with reactive fluid in sandstone formations, even though the invention extends to other areas such as carbonate acidizing, scale inhibition and related fields. In particular, according to a first embodiment, the invention relates to a method for

selecting the optimal treatment wherein reservoir characteristics including reservoir minerals are obtained and a treatment fluid comprising a mixture of chemical species is designed to further select a subset of chemical reactions that can occur between the reservoir minerals and the treatment fluid the raaotmn kinetic and equilibrium data on the minerals and chemical species of interests, and depending on the predicted damages consecutive to those reactions, the stimulation treatment is adjusted to optimize the results. In other words, the invention proposes a virtual chemical (laboratory that makes it possible to simulate a large number of laboratory tests.

[0017] In a second embodiment of the invention, the method further includes modeling a reservoir core having a le a diameter and a permeability so that the invention makes it possible to simulate core tests. The invention also provides a way to simulate sequential treatments where successions of treatment fluids are injected at specific rates.

[0018] In a third embodiment of the invention, the method further includes scaling up the treatment to a reservoir using a mathematical model to predict damages resulting from the treatment. In a most preferred embodiment, the invention includes selecting a treatment, carrying out the treatment toii a well while real time damage are computed based on bottomhole pressure and mjeation rate and simultaneously, performing a simulation scaled up to the reservoir to compane Ohe predicted damages and the computed damages and adjusting the treatment if required.

[0019] In the preferred embodiments of the invention, the three flow geometries have been implemented: (1) batch. (2) core and (3) reservoir geometries. The batch flow geometry approximates the reactions occurring in a flask or a beaker, the core flow geometry approximates linear flow in, cores such as that in laboratory core flooding experiments, and the reservoir flow geometry wproximates flow in a single layer, radially symmetric reservoir.

The batch and core flow geometries provide a means for validating the mathematical model, so that the predictions for the ceservoir can be made with more confidence.

[0020] The model generated) by the method of the subject invention can facilitate optimization of matrix treatments by providing a rapid quantitative evaluation of various treatment strategies for a formation. Stimulation with non-traditional fluid recipes containing mixtures of inorganic and organic acids, and chelating agents can be readily computed. The computed values can then be used m am economic model to justify the additional costs associated with

the use of the non-traditional fluids. Apart from optimizing matrix treatments, the method of the subject invention can attso be used as a development tool for new fluid systems, as a tool for prediction and remove of inorganic scale and for fluid compatibility testing such as that required in waterflooding tmjscts.

[0021] The method of the subject invention combines a geochemical simulator to an extensive database ofthermodynanMC properties of aqueous chemical species and minerals. The subject invention overcomes many limitations of previous simulators. Chemical equilibrium calculations can be performed between any number of minerals and aqueous solutions, whereas previous simuiato¢$ were limited to only one or two precipitated minerals.

Additionally, any number of kinetically controlled reactions can be simulated with user- defined kinetics..

[0022] The modeling method of the subject invention is a finite-difference geochemical simulator capable of modeling kinetic and/or equilibrium controlled reactions in various flow geometries. The mathematical formulation provides the capability to model an arbitrary combination of equilibrium ; and kinetic reactions involving an arbitrary combination of equilibrium and kinetic viSons involving an arbitrary number of chemical species. This flexibility allows the simulation model to act as a pure kinetic model if no equilibrium are specified or as a pure equilibrium model if both kinetic and equilibrium reactions are specified. A semi-implicit numerical scheme is used for integration in time for kinetic reactions. This scheme provides greater numerical stability compared to explicit schemes, especially at high temperature. A Gibbs free energy minimization algorithm with optimized stoichiometry is used in computing chemical equilibrium between aqueous species and minerals. Base specie switching is implemented to improve convergence. The resulting algorithm for chemical emMbdum calculation is of greater numerical stability and is more efficient than prior art algorithms based on a non-stoichiometric approach.

[0023] The treatment design preferably includes variables such as fluid type, composition, volume, pumping sequence and injection rates. A database is used to get the reaction kinetics data. If insufficient data is available, laboratory experiments may be conducted, preferably using multiple linear core Sow tests for a range of injection rates.

[0024] The reservoir characteristics typically include mineralogy data, permeability and preferably, an estimate of the quantity and depth of damage such as scales, fines migration or

drilling-related damages during the initial damage skin.. This estimate can be made for instance based on nodal analysis or available mud and resistivity logs. The reservoir characteristics may be stored in a database and if not already available, are obtained by geochemical logging or from core analysis and further stored in the database for further use.

[0025] The model is preferably calibrated with data including effluent analysis and permeability evolution (moMing predicted damages). Sensitivity analysis may be also performed to optimize the., design variables and select improved treatment design.

[0026] Once an optimized design has been selected, the execution of the treatment can begin and damage skin can be, computed on a real time basis. This allows a comparison with the predicted damages and, if appropriate, adjustment of the treatment.

[0027] Specifically, the Invention comprises data collection, design optimization, execution and evaluation. In the execution phase, the damage is computed in real time from either calculated or measured'vaBMes of bottomhole pressure and injection rate. It can then be compared to the computed damage skin with that predicted by the mathematical model. The model can thereafter be refined by better estimates for type, quantity and depth of damage to match the measured values and, if needed, appropriate changes to the treatment design are performed.

[0028] Post treatment data, such as flowback analysis, production data and production logs, are used to further refine e mathematical model and the estimates of damage depth and quantity. The treatment data can finally be uploaded into the database so it can be used in improving future treatment designs.

[0029] The method of the subject invention facilitates treatment design with the methodology described above. This can be implemented with a mathematical model and databases. The mathematical model may. comfjmse the following components: 1. Algorithm for automat selection of the various applicable chemical reactions for the defined system of fluids and minerals 2. Modeling of organic acids and chelating agent chemistry for sandstone acidizing 3. Algorithm for scale up from core to reservoir 4. Modeling of multiple precipitates

The mathematical model can be extended later to other processes such as carbonate acidizing, scale inhibition, or other moedbamsms that involve fluid/reservoir interaction.

[0030] According to a preferred embodiment, the method of the subject invention incorporates extensive databases of minerals, chemical reactions, fluids and reservoirs in order to feed the mathematical model with accurate geological, physical and reactivity data, thereby ensuring the success of the process. Users preferably have the ability to create new components (fluids, miners., reactions) and add them to the database for future use. This allows continued expansion of the methodology of the subject invention to new systems and new processes. In accordance with the teachings of the subject invention, chemical equilibrium calculations ran be performed between any number of minerals and aqueous solutions.

[0031] In the preferred embodiment of the invention, the essential steps are stored on a CD- ROM device. In another preferred embodiment, the method/process is downloadable from a network server, or an intemet web page. Moreover, the present invention can be subsumed using a software developed to assist acid treatments.

BRIEF DESCRIPTION OF THE DRAWINGS [0032] Figure 1 shows a cowarison of the measured effluent concentration of HF, Al, and Si with those predicted by the model of the present invention.

[0033] Figure 2 are graphs providing a snapshot of the reservoir at the end of the mud acid stage.

[0034] Figure 3 compares ithe results for different injection rates and a different mud acid formulation.

[0035] Figure 4 shows the result of the treatment if the reservoir had been damaged with a mineral similar to kaolinite.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS [0036] The methods of The subject invention provide a virtual laboratory geochemical simulator for well simulating by permitting and supporting scaled laboratory modeling to be

scaled to reservoir adaptahilitr. The laboratory experiments validate the model and permit scaling up to reservoir level with precision and efficiency. The fundamental tools provide: (1) a reaction model, (2) analysis of the model, (3) testing at the model level, (4) validation, and (5) scale-up to resetrvoir. This permits laboratory review and modeling of formation damage with predictabNdt accurate confirmation and ready and efficient adjustability.

Specifically, the methods of the subject invention permit laboratory design, execution and evaluation prior to reservoir application greatly increasing the efficiency of the process.

[0037] The numerical model of the present invention is a finite-difference geochemical simulator capable of modeling kinetic and/or equilibrium controlled reactions (i. e. partial local equilibrium reaction modal) in various flow geometries. The mathematical formulation provides the capability to model an arbitrary combination of equilibrium and kinetic reactions involving an arbitrary number of chemical species. This flexibility in the mathematical formulation allows it to act as a pure kinetic model if no equilibrium reactions are specified, or a pure equilibrium model if no kinetic reactions are specified, or as a partial equilibrium model if both kinetic an equilibrium reactions are specified. A semi-implicit numerical scheme is used for inter dix in time for kinetic reactions. This scheme provided greater numerical stability compared to explicit schemes, especially at high temperature. A Gibbs free energy minimization alga with optimized stoichiometry is used in computing chemical equilibrium between aqueous species and minerals. Base specie switching is preferably implemented to improve convergence. The resulting algorithm for chemical equilibrium calculation was found to be much more numerically stable and computationally efficient than algorithms based on the moMtiOichiometric approach.

[0038] In this embodiment, ftee flow geometries are implemented in the simulator. These are batch, core and reservoir flow geometries. The batch flow geometry approximates reactions occurring in a flask or a beaker, the core flow geometry approximates linear flow in cores such as that in laboratory core flooding experiments, and the reservoir flow geometry approximates flow in a single layer, radially symmetric reservoir. The batch and core flow geometries provide a means for validating the mathematical model, so that the predictions for the reservoir can be made xeth more confidence. For example, the geochemical simulator can be validated with measured effluent ion concentrations and the permeability evolution from laboratory core flow experiments, prior to making predictions for the reservoir.

[0039] Typical matrix stimulation fluids are extremely non-ideal. The ideal solution assumption usually breaks down for salt concentrations higher than that of fresh water.

Activity coefficients capture Deviations from ideal solution behavior, and are therefore crucial for accurate modeling : of fhmetic and equilibrium reactions in concentrated electrolyte solutions (e. g. matrix treatment fluids containing acids and brines).

[0040] The following symbols and their definitions are used throughout this application and the appended claims: AZ = electrostatic Debye-Hückel parameter Aj, s = specific reactive surface area of mineralj (m2/kg) AA, AB, AC, AW = activity of aqueous species A, B, C and water (kgmole/m3) aj(P,T),ai,PrTr = ionic diameter, ionic diameter at reference temperature and pressure ai,1-4 = parameter in Helgeson EOS for aqueous species bi = salting-out parameter for specie i (kg/mol) Bγ=electrostatic Debye-Hückel parameter #(T)=deviation function describing the departure of the mean ionic activity coefficient of an electrolyte from that predicted by Debye-Hückel expression (kg/mol) bNaCl= electrostatic solvationparameter for NaCl (kg/J) bNa+cl~ = short-range interaction parameter for NaCl (kg/mol) Cp, i= heat capacity of specie t at constant pressure (J/mol-K) C1 2= parameter in variable reaction order kinetic model (1/K) ci,1-2= parameters in HelgescmiEOS for aqueous species Ea, Eá = activation energy (mol) f (T) = temperature function dn variable reaction order kinetic model Go, G 0, T = standard molal Gibbs free energy of formation at subscripted temperature and pressure (J/mol) g (P, T) = pressure and temperature dependent solvent function (A) Hio= standard molal enthalpy of formation (J/mol) I = ionic strength of solution (mol/kg) K = equilibrium constant Ko, ko = pre-exponential factors

ko, k = initial and final permeability (mD) Mj, o, My = initial and final volume fraction of mineralj (m3/m3) Mj,w=molecular weight of mineral j (g/mol) [Mj] = concentration of mineral j (kgmol/m3) mj,m = molality of specie i and vector of molalities (mol/kg solvent) P,Pr = pressure (bar) and standard pressure (1 bar) Pi, j = bottomhole injection pressure (bar) Pres = reservoir pressure at t'boundary (bar) R = gas constant (=8.314 I/mol - K) rate = volumetric reaction rate (kg mole mineral3 sec) Si,Pr,Tr= standard molal entropy of formation at Pr and Tr (J/mol-K) T, Tr = temperature (K) and standard temperature (298.15K) = standard molal volmme at Pr and Tr (m3/mol) x, y, z = reaction order with respect to species A, B and C YP Tr=electrostatic Born function at Pr and Tr Z,ZPr,Tr = electrostatic Born function at P and T, and at Pr and T,. zi = ionic charge of specie, ! ßi,0-7 = heat capacity parameter for specie i ys = activity coefficient for specie i #j= Labrid parameter for mineral j zip 1-5 = chemical potential parameters for specie i 77 = constant (=694630. 393 ÅJ/mol) E) = constant (=298K) #i,1-3 = Maier-Kelly heat capacity coefficients µi, µi0 = chemical potential and standard chemical potential of specie i (J/mol) µw, µw0 = chemical potenti and standard chemical potential of water (J/mol) vi = stoechiometric coefficient of specie i (positive for products, negative for reactants) o= initial porosity F= constant (=2600bars) # = moles of water/kg #i,#i,Pr,Tr=Born coefficient of specie i at P and T, and at Pr and Tr (J/mol) [0041] Activity coefficient models available in a typical prior art version of the simulator are shown in Table 1: Table 1: Activity Coefficient Models ExtendedDebye- Hückel log Y,. ! I +-B + Davies Davier i Ay 0. 31 B-Dot z ? A,, Il- log Yj = 1 + Brai (P, T) 4 + r + B (T) I (p.. r) ==+2 (p, r) HFK (l icgY. =f -. r+f-L , -o. i9.. j-i)} d+Bya; (P>T) ai (P, ^-, ai, p"r, + 2 |zi|g (P, T) a, (P, T) ai, l,, T, + 2 lzilg (P, T) Neutral species log t Tii Water logA---+a--. B (y) °"Q InIO 3' cs =-01 + 4Brß/i--21n (1 + 4Br4)) u [0042] The Extended Dabye-Huckel uses a species dependent ionic size. The Davies model (in Davies, C. W., Ion Association. 1962, London: Butterworths) uses a constant ionic size and requires only the specie. charge. The B-Dot model (in Helgeson, H. C., Thermodynamic of Hydrothermal Systems at Elevated Temperatures and Pressures. American Journal of Science, 1969.267 (Summer): p. 729-804) captures the temperature dependence of activity coefficients. The HKF modea is described in Helgeson, H. C., D. H. Kirham, and G. Flowers, Theoretical Prediction of the Thermodynamic Behavior of Aqueous Electrolytes at High Pressures and Temperatures : IV. Calculation of Activity Coefficients, Osmotic Coefficients, and Apparent Molal and Standard and Relative Partial Molal Properties to 600°C and 5KB, Amer. J. Sci., 1981.281: p. 1249-1516. Activity coefficients in this model are computed by

specifying the specie charge and ion-size under standard conditions. All other parameters in the equation are computed internally in the simulator. For aqueous species for which ion-size data is not available, an estimate for ion-size from species with similar charge and atomic structure and use of the Ex model gives a reasonable representation for most stimulation.

[0043] For neutral species in aqueous solutions the salting out model is used. The value of bi in this model is typically zozo, or very close to zero for most species. Therefore for species for which this parameter is not known a value of zero is usually accurate enough for most simulations.

Once Once the mineralogy and treatment fluids are specified, the system may automatically select the applicable kinetic reactions and presents them to the user for review. The user may then accept the default reasons, add new reactions or modify the kinetics of the default reactions. The standard database provided with the program contains data for common matrix reactions. New reactions may be added by specifying the reaction stoichiometry and kinetic rate law parameters. Table 2 lists kinetic rate laws preferably implemented: Table 2: Reaction Rate Law Models ReactionRate Law Equation ArrheniusSurface rate=Aj,sMj,w[Mj]k0"e-Eo/RTAAxAByACz Catalytic rate=Aj,sMj,w[Mj]k0"e-Ea/RT[1+K0"e-Ea'/RTAAx]ABy Variable Reaction Order rate=Aj,sMj,w[Mj]k0"e-Ea/RT AAf(T) f(T)=C1T/(1-C2T) [0045] The reaction rate laws are formulated in pseudo-homogeneous form i. e. the heterogeneous (surface) reaction between the aqueous phase and the mineral is multiplied by the factor Aj, M [Mj] to compute a volumetric reaction rate. Any number of kinetic reactions can be specified for a simulation.

[0046] As for kinetically controlled reactions, the appropriate aqueous species and minerals, and corresponding thermdptamic data are automatically selected from the database and presented to the user for review, once the mineralogy and treatment fluids are specified. The user may then accept the default selections, add new species or minerals or modify the default

properties. A brief description of the calculation procedure is presented below to assist in adding to or modifying thermodynamic data for aqueous species and minerals.

Standard partial mol-al free energy (standard chemical potential) at simulation temperature and pressure, µio(T,P), is required for each chemical specie that must be added to the equilibrium calculate. The value of µi0(T, P) may be entered directly for each specie, or a model to compute ffi,, P) must be selected. Table 3 gives a list of available models for computing: Table 3: Models for Calculating Standard Chemical Potential Model Equation HelgesonEOjS"' (for aqueous species) i, P, I Tr T + Tr zur [ (T-0) Tr-0) L 0 T (T,-0)) T-OJ Tr-o 0 0 TTr-O a (p) + J-'il+f. J-lL (p) + J1 r J r - (z +1) + <D, , +1) + co, , (r-) d HelgesonEOS (Trp) = _, (T-T) + fT (8 +8 T+A. T-2) dT (for minerals) ''L'P"T, E'P"T, I . t, l l, 2 t3 -T| (of, 1 + 9i, 2T +9s 3T) d lnT +VP,, T, (P-P,) 'r CpModelc,, = p, o +P,, r- +P, '" +P,, 3 +p,, r+p,, r-' +p,, r +p, (for aqueous species and minerals) c-E 8 °/T) __Hi p, i-bT P bT p-T2 Polynomial Model (fo , c° (T, P) =GI Pr--1, IT-'i>aT 2 + i, 3Z'3 + i 4T4 + i, STs aqueous species and minerals)

[0048] Helgeson equation of state (EOS) (in Helgeson, H. C., et al., Summary and Critique of the Thermodynamic Propenties of Rock-forming Minerals. American Journal of Science, 1978.278-A: p. 229 and Tamper, J. C. and H. C. Helgeson, Calculation of the Thermodynamic and Transport Properties of Aqueous Species at High Pressures and Termperatures: Revised Equation of State for the Standard Partial Molal Properties of Ions and Electrolytes. Amer. J.

Sci, 1988. 288: p. 19-98.) he preferred model for both aqueous species and minerals, and majority of data provided wiith the program is in this form. Chemical species for which data is not available in Helgeson BOS form, the CP model or the polynomial model may be used to estimate µi0(T,P). For chemical species for which data is only available in equilibrium constant form, Ilz (T, P) for the specie can be calculated from the following thermodynamic identity provided the values of µi0(T,P) for all the other chemical species in the reaction are known.

In a preferred embodiment of the present invention, a graphical tool can be provided to assist in the conversion of equilibrium constant data to free energy form.

[0049] Once u° (T, P) far aqueous species i is computed at simulation temperature and pressure, the chemical potential of the aqueous species in solution is then computed internally in the simulator from the Mowing equation µi(T,P,#)=µi0(T,P)+RTlnγi(T,P,#)mi [0050] For solvent (water) i6he (following equation is used µw(T,P,#)=µw0(T,P)+RT ln aw(T,P,#) [0051] For minerals that-are, equilibrated with the aqueous phase species, a separate pure solid phase for that mineral is assumed (i. e. no solid solutions). The equation for the chemical potential for the solid phase specie than simplifies to As (T, P) =, (7\FD [0052] The numerical algodftihm then computes the value of m for which the system Gibbs free energy is a minimum am)) the element abundance constraint is satisfied.

[0053] The kinetic and equilibrium models described above compute changes in porosity due to dissolution and precipitation of minerals. A porosity-permeability relation is then needed

to compute the permeability and hence the skin for the treatment. Several porosity- permeability models have been proposed in the literature including the Labrid Model (in Labrid, J. C., Thermodynamic and Kinetic Aspects of Argillaceous Sandstone Acidizing.

SPEJ, Apr. 1975: p. 117-12S). According to the invention, the following modified Labrid is preferably used: #0+M0,j-Mj roi ko i L Jo [0054] The modified Labrid model allows each mineral to uniquely impact the permeability, whereas in most other models, permeability changes are completely determined by net changes in porosity witbomt. accounting for the identities of the dissolved or precipitated minerals. The parameter S, in the modified Labrid model is specific to each mineral and allows the mineral identity to impact the permeability. The higher the value of Sj the stronger the impact.

Application Example [0055] The main features of the invention are illustrated in this section by means of a simple application example. The example is based on core test data reported by Hsi et al (IN Hsi, C. D., S. L. Bryant, and (RJD. Neira. SPE 25212 Experimental Validation of Sandstone Acidization Models. in SPE International Symposium on Oilfield Chemistry. 1993. New Orleans) for the Endicott Ketiktuk sandstone formation in Alaska. The core tests were conducted on damaged cores at 80°C with 12/3 Mud acid. The length and diameter of the core plugs were 7.6 and 2. 54 cm, respectively. An inductively coupled plasma (ICP) spectrophotometer was used to measure effluent Al and Si concentrations. The HF concentration in the effluent was measured gravimetrically using the weight-loss method with pre-weighted glass slides. The mineralogy of the Kekiktut formation is 98% Quartz and 2% kaolinite.

[0056] Figure 1 shows a comparison of the measured effluent concentration of HF, Al, and Si with those predicted by withe model of the present invention. The solid lines represent the modeling results, the triangles in Figures 1A, 1C and 1E indicate experimental data for the normalized HF concentration (the normalized HF concentration is the ratio of the HF in the

effluent to the injected HP concentration. In Figures 1B, 1D and IF, the squares represent the Al concentration and the acles the concentration of Si. The tests were performed at 80°C, with 12-3 mud acid, at a Stow rate of0. 033cm/s (Figure 1A and 1B), with 12-3 mud acid and a flow rate of 0.0099cm/s (Figure 1C and 1D) and with 6-1.5 mud acid at a flow rate of 0.0099cm/s (Figure 1E and 1F). The model provides a reasonable match to the experimental data even with an order of magnitude change in the flow rate. The match with experimental data was obtained using the default selections of kinetic and thermodynamic data. The match can further be improved by fine tuning the default values.

[0057] On the geochemical model is validated, it can be used to scaleup the results to the reservoir. With the present mention, this requires only a simply switch in the flow geometry from the core to reservoir flow geometry. The pay zone height was assumed to be 3.05 m (10 ft) and the wellbore diameter was assumed to be 0.2032 m (8 in). A preflush volume of 1.24 m3/m (100 gal/ft) of5wt% HC1 was used, followed by a main stage of 2.48 m3/m (200 gal/ft) of 12/3 mud acid. The treatment fluids were pumped at 2.65x10-3 m3/sec (1 bbl/min).

The graphs in Figure 2 are a snapshot of the reservoir at the end of the mud acid stage. Figure 2A shows the mineral proSe in the reservoir (in Figure 2A, the left axis is used for the quartz volume fraction and the right axis for the kaolinite and the colloidal silica). As shown in Figure 2B, some colloidal silica precipitation did occur, but the amount was not significant enough to impact the permeability appreciably. No A1F3 or A1 (OH)4 precipitation was observed. Figure 2C and 2D show the profile of the dominant aqueous species in the reservoir.

HF penetration of about i,. 75 m in the formation was achieved at the end of the mud acid stage. Figure 2D shows itfhe concentration of aluminum fluoride A1F+2 (left axis) and AlF2+ (right axis) and the concentration of silicon fluoride SiF62- (left axis) and H2SiF6 This Figure shows that A1F+2 was the dominant aluminum fluoride. Higher fluorides of aluminum than A1F2+, such as A1F3, AlF4-, AlF52- and AlF63- were present in negligible concentrations. SiF62- was the dominant silicon fluoride. Other silicon fluorides were present in negligible concentrations. The aluimnmrn and silicon species Al (OH)2+, Al(OH)2+, Al(OH)4-, H3SiO4-, H2SiO42- and AlO2- were also present in negligible concentrations.

[0058] The sensitivity anaaysis tool facilitates optimization against any of the treatment design parameters. Figures 3A and 3B compare the results for the permeability (Figure 3A) and for the HF concentration (Figure 3B) for different injection rates and for a different mud acid formulation (9/1 mud acid) against the previous base case examined. The total injection

volume was kept constant for all cases shown. At slower injection rates mineral near the sandface are preferentially dissolved, and therefore most of the permeability improvement occurs close to the wellbore. However, at extremely slow injection rates of about 0.1 bbl/min to complete shut-in (not shown), colloidal silica precipitation inhibits permeability improvement. The use of 91 mud acid system results in a smaller permeability improvement because the stoichiometric. dissolving power of the 9/1 mud acid system is much less than that of the 12/1 mud acid system. Several variations in treatment design parameters may be similarly examined to select the optimum strategy for the final design recommendation.

[0059] In the cases examined herein, the reservoir was considered to be undamaged initially; i. e. the skin before the treatment was zero. Figure 4 shows the result of the treatment if the reservoir had been damaged with a mineral similar to kaolinite. More precisely, Figure 4A shows the permeability profile, Figure 4B the HF concentration profile and Figure 4C the profile of the differential pressure between the bottomhole injection pressure Pinj and the reservoir pressure at out boundary Pres.

[0060] The damage peneation was assumed to be 0.3048 m (1ft) and the initial skin value was assumed to be 5. AH (Mtber design parameters were the same as the previous base case. If post-treatment data such as flowback analysis, post-treatment skin and injection pressure data are available, they can be compared against the predictions from the simulator, to assist in diagnosing the type, quantity : md depth of damage. The information can be used to optimize future treatments for the reservoir.

[0061] While certain featmss and embodiments of the invention have been described in detail herein it will be understood tihat the invention includes all modifications and enhancements within the scope and spirit, of se following claims.