Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD OF HYDROCARBON RESERVOIR SIMULATION USING STREAMLINE CONFORMAL GRIDS
Document Type and Number:
WIPO Patent Application WO/2023/278773
Kind Code:
A1
Abstract:
A system and method of simulating fluid flow in a hydrocarbon reservoir is disclosed. The method includes obtaining a coarse grid model of the hydrocarbon reservoir and a trajectory of a wellbore that penetrates the hydrocarbon reservoir, and determining an initial grid geometry surrounding the trajectory. The method further includes constructing a reservoir simulation grid, conformal to the initial grid geometry in a first region in a vicinity of the wellbore and conformal with the coarse grid model in a second region more distant from the wellbore than the first region, and performing a hydrocarbon reservoir simulation, modeling a flow of fluid in the hydrocarbon reservoir based, at least in part, on the reservoir simulation grid.

Inventors:
DOGRU ALI (SA)
CANCELLIERE MICHEL (SA)
Application Number:
PCT/US2022/035827
Publication Date:
January 05, 2023
Filing Date:
June 30, 2022
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SAUDI ARABIAN OIL CO (SA)
ARAMCO SERVICES CO (US)
International Classes:
G01V99/00; E21B43/00; G06F30/20
Foreign References:
US20200340353A12020-10-29
US20050021234A12005-01-27
US20130346040A12013-12-26
Attorney, Agent or Firm:
OSHA, Jonathan, P. et al. (US)
Download PDF:
Claims:
CLAIMS

What is claimed:

1. A method of simulating fluid flow in a hydrocarbon reservoir (102), comprising: obtaining a coarse grid (262) model of the hydrocarbon reservoir (102) and a trajectory (304) of a wellbore (120) that penetrates the hydrocarbon reservoir (102); determining an initial grid geometry (302a, 302b, 302c, 310) surrounding the trajectory (304); constructing a reservoir simulation grid (418), wherein the reservoir simulation grid (418) is conformal to the initial grid geometry (302a, 302b, 302c, 310) in a first region in a vicinity of the wellbore and conformal with the coarse grid model (262) in a second region more distant from the wellbore (120) than the first region; and performing a hydrocarbon reservoir simulation, modeling a flow of fluid in the hydrocarbon reservoir (102) based, at least in part, on the reservoir simulation grid (418).

2. The method of claim 1, further comprising forming and executing a hydrocarbon reservoir production plan based, at least on part, on the hydrocarbon reservoir simulation.

3. The method of claims 1 or 2, wherein performing the hydrocarbon reservoir simulation comprises performing a multiphase multi-component reservoir simulation.

4. The method of any one of claims 1 - 3, wherein the hydrocarbon reservoir (102) is a wet gas reservoir.

5. The method of any one of claims 1 - 4, wherein the initial grid geometry (302a, 302b, 302c, 310) is determined, at least in part, from isobars of a coarse-grid simulation.

6. The method of any one of claims 1 - 5, wherein a first horizontal axis (302a, 302b, 302c) of the initial grid geometry comprises an ellipse.

7. The method of claim 6, wherein a second horizontal axis (310) of the initial grid geometry is locally orthogonal to the ellipse.

8. A non-transitory computer readable medium storing instructions executable by a computer processor, the instructions comprising functionality for: obtaining a coarse grid (262) model of a hydrocarbon reservoir (102) and a trajectory (304) of a wellbore (120) that penetrates the hydrocarbon reservoir (102); determining an initial grid geometry (302a, 302b, 302c, 310) surrounding the trajectory (304); constructing a reservoir simulation grid (418), wherein the reservoir simulation grid (418) is conformal to the initial grid geometry (302a, 302b, 302c, 310) in a first region in a vicinity of the wellbore (120) and conformal with the coarse grid (262) model in a second region more distant from the wellbore (120) than the first region; and performing a hydrocarbon reservoir simulation, modeling a flow of fluid in the hydrocarbon reservoir (102) based, at least in part, on the reservoir simulation grid (418).

9. The non-transitory computer readable medium of claim 8, further comprising instructions for forming a hydrocarbon reservoir production plan based, at least on part, on the hydrocarbon reservoir simulation.

10. The non-transitory computer readable medium of claims 8 or 9, wherein performing the hydrocarbon reservoir simulation comprises performing a multiphase multi-component reservoir simulation.

11. The non-transitory computer readable medium of any one of claims 8 - 10, wherein the hydrocarbon reservoir (102) is a wet gas reservoir.

12. The non-transitory computer readable medium of any one of claims 8 - 11, wherein the initial grid geometry (302a, 302b, 302c, 310) is determined, at least in part, from isobars of a coarse-grid simulation.

13. The non-transitory computer readable medium of any one of claims 8 - 12, wherein a first horizontal axis (302a, 302b, 302c) of the initial grid geometry comprises an ellipse and a second horizontal axis (310) of the initial grid geometry is locally orthogonal to the ellipse.

14. A system comprising: a reservoir simulator, configured to: obtain a coarse grid (262) model of a hydrocarbon reservoir (102) and a trajectory (304) of a wellbore (120) that penetrates the hydrocarbon reservoir; determine an initial grid geometry (302a, 302b, 302c, 310) surrounding the trajectory (304); construct a reservoir simulation grid (418) , wherein the reservoir simulation grid is conformal to the initial grid geometry (302a, 302b, 302c, 310) in a first region in a vicinity of the wellbore (120) and conformal with the coarse grid model in a second region more distant from the wellbore (120) than the first region; and perform a hydrocarbon reservoir simulation, modeling a flow of fluid in the hydrocarbon reservoir (102) based, at least in part, on the reservoir simulation grid; develop a hydrocarbon reservoir production plan; and a well planning system configured to determine a planned wellbore trajectory based upon the hydrocarbon reservoir production plan.

15. The system of claim 14, further comprising a drilling system (1400) configured to drilling the wellbore guided by the planned wellbore trajectory.

16. The system of claims 14 or 15, further comprising a pumping system (250) configured to pump a fluid injection program based, at least in part, upon the hydrocarbon reservoir production plan.

17. The system of any one of claims 14 - 16, wherein the hydrocarbon reservoir (102) is a wet gas reservoir.

18. The system of any one of claims 14 - 17, wherein the initial grid geometry (302a, 302b, 302c, 310) is determined, at least in part, from a coarse-grid simulation.

19. The system of any one of claims 14 - 18, wherein a first horizontal axis (302a, 302b, 302c) of the initial grid geometry comprises an ellipse.

20. The system of claim 19, wherein a second horizontal axis (310) of the initial grid geometry is locally orthogonal to the ellipse.

Description:
METHOD OF HYDROCARBON RESERVOIR SIMULATION USING STREAMLINE CONFORMAL GRIDS

BACKGROUND

[0001] In simulations, properties for various cells may be averaged to produce a coarse grid. However, if not applied properly, averaging may provide a solution in a model that may lose accuracy as the details are lost in the process, especially where averaging is applied to highly influential grid-cells. Thus, accurate simulations may require a model that reduces the computational time to an acceptable speed while also preserving relevant physical relationships in the underlying data.

[0002] In reservoir simulation the reservoir domain may be divided into sub-domains called grid cells and reservoir variables such that pressure and fluid composition and saturations are calculated for each cell as a function of production time. Based on these predictions, maps of the movement of water, gas and oil are generated throughout the reservoir with production time. The calculated movements of fluids within the reservoir are affected by the selection of the grid cell size and shape. Typically, smaller the grid cells give the more accurate prediction of fluid movement and more accurate predictions of the arrival time (“breakthrough”) of fluids at production wells. Accurate timing of water or gas breakthrough at wells is important information for the field management for designing surface separation facilities, and therefore, estimating the size of required investments.

[0003] However, smaller grid cells increase the number of unknown variables, such as the pressure and saturation in each cell, to be determined by the reservoir simulator and, therefore, require more computational time. In some cases, for example the simulation of a gas condensate reservoir, accurate simulation of some reservoir problems requires extremely small grid cell sizes. This may be impractical for simulating fields with long histories or forecast times. Prior to hydrocarbon production, gas condensate or wet gas reservoirs contain only gas in vapor state. During the production of the gas through production wells, reservoir pressure drops continuously. The largest pressure drops are observed around the production wells. Liquids, mostly oil, precipitate from the vapor phase forming a liquid zone around the wellbore when the pressure drops below a critical pressure, the “dew point” pressure. This process is often referred to as “liquid drop-out” inside the reservoir. These liquids, mostly oil, are light in molecular weight and are called “condensates”. Condensates typically flow much less easily than vapor through the reservoir and, thus, the accumulation of condensate around production wells restricts the flow of gas from the reservoir into the wellbore. This causes productivity to decline from the wells and a failure to deliver the desired gas rates. Although dropped condensates around the wellbore may be removed by interventions including injecting chemicals or fracturing the reservoir rock, intervention operations are both expensive and often not completely successful removing the condensates.

SUMMARY

[0004] This summary is provided to introduce a selection of concepts that are further described below in the detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used as an aid in limiting the scope of the claimed subject matter.

[0005] In general, in one aspect, embodiments relate to a method of simulating fluid flow in a hydrocarbon reservoir is disclosed. The method includes obtaining a coarse grid model of the hydrocarbon reservoir and a trajectory of a wellbore that penetrates the hydrocarbon reservoir and determining an initial grid geometry surrounding the trajectory. The method further includes constructing a reservoir simulation grid, conformal to the initial grid geometry in a first region in a vicinity of the wellbore and conformal with the coarse grid model in a second region more distant from the wellbore than the first region, and performing a hydrocarbon reservoir simulation, modeling a flow of fluid in the hydrocarbon reservoir based, at least in part, on the reservoir simulation grid.

[0006] In general, in one aspect, embodiments relate to a non-transitory computer readable medium storing instructions executable by a computer processor, the instructions include functionality for obtaining a coarse grid model of a hydrocarbon reservoir and a trajectory of a wellbore that penetrates the hydrocarbon reservoir and determining an initial grid geometry surrounding the trajectory. The instructions further include functionality for constructing a reservoir simulation grid, conformal to the initial grid geometry in a first region in a vicinity of the wellbore and conformal with the coarse grid model in a second region more distant from the wellbore than the first region, and performing a hydrocarbon reservoir simulation, modeling a flow of fluid in the hydrocarbon reservoir based, at least in part, on the reservoir simulation grid.

In general, in one aspect, embodiments relate to a system. The system includes a reservoir simulator and a well planning system. The reservoir simulator is configured to obtain a coarse grid model of a hydrocarbon reservoir and a trajectory of a wellbore that penetrates the hydrocarbon reservoir and to determine an initial grid geometry surrounding the trajectory. The reservoir simulator is further configured to construct a reservoir simulation grid, conformal to the initial grid geometry in a first region in a vicinity of the wellbore and conformal with the coarse grid model in a second region more distant from the wellbore than the first region and perform a hydrocarbon reservoir simulation, modeling a flow of fluid in the hydrocarbon reservoir based, at least in part, on the reservoir simulation grid, and develop a hydrocarbon reservoir production plan. The well planning system is configured to determine a planned wellbore trajectory based upon the hydrocarbon reservoir production plan.

[0007] Other aspects and advantages of the claimed subject matter will be apparent from the following description and the appended claims.

BRIEF DESCRIPTION OF DRAWINGS

[0008] Specific embodiments of the disclosed technology will now be described in detail with reference to the accompanying figures. Like elements in the various figures are denoted by like reference numerals for consistency.

[0009] FIG. 1 shows system in accordance with one or more embodiments.

[0010] FIGs. 2A and 2B show systems in accordance with one or more embodiments.

[0011] FIGs. 3 A and 3B show isobars and streamlines in accordance with one or more embodiments.

[0012] FIG. 4 shows a system in accordance with one or more embodiments.

[0013] FIG. 5 shows a flowchart in accordance with one or more embodiments.

[0014] FIGs. 6A and 6B show grids in accordance with one or more embodiments.

[0015] FIGs. 7A-7C show pressure distributions in accordance with one or more embodiments. [0016] FIGs. 8A-8C show condensate distributions in accordance with one or more embodiments.

[0017] FIG. 9 shows condensate production rates in accordance with one or more embodiments.

[0018] FIG. 10 shows bottom hole pressure in accordance with one or more embodiments.

[0019] FIG. 11 shows gas production rates in accordance with one or more embodiments.

[0020] FIG. 12 shows computational times in accordance with one or more embodiments.

[0021] FIG. 13 shows computer systems in accordance with one or more embodiments.

[0022] FIG. 14 shows a drilling system in accordance with one or more embodiments.

DETAILED DESCRIPTION

[0023] In the following detailed description of embodiments of the disclosure, numerous specific details are set forth in order to provide a more thorough understanding of the disclosure. However, it will be apparent that the disclosure may be practiced without these specific details. In other instances, well-known features have not been described in detail to avoid unnecessarily complicating the description.

[0024] Throughout the application, ordinal numbers ( e.g first, second, third, etc.) may be used as an adjective for an element ( i.e any noun in the application). The use of ordinal numbers is not to imply or create any particular ordering of the elements nor to limit any element to being only a single element unless expressly disclosed, such as using the terms "before", "after", "single", and other such terminology. Rather, the use of ordinal numbers is to distinguish between the elements. By way of an example, a first element is distinct from a second element, and the first element may encompass more than one element and succeed (or precede) the second element in an ordering of elements.

[0025] Predicting the distribution of oil, gas and water within the reservoir and production rates of these fluids as a function of time from the commencement of production are of great importance. Accurate prediction of oil, gas, and water distributions and production rates have previously required very finely gridded simulation models particularly around horizontal and fractured wellbores. Such models frequently require so much computer time as to be impractical.

[0026] Some embodiments are directed to a simulation model grid that combines grids at least approximately congruent with isobars and streamlines in the vicinity of horizontal and fractured wellbores with a coarse grid model far from the wellbores. Such combined simulation grids may be shown to be almost as accurate as finely gridded simulation model while requiring approximately the same computational time as more coarsely gridded models.

[0027] FIG. 1 shows a schematic diagram in accordance with one or more embodiments. FIG. 1 illustrates a well environment (100) that includes a hydrocarbon reservoir (“reservoir”) (102) located in a subsurface hydrocarbon-bearing formation (“formation”) (104) and a well system (106). The hydrocarbon-bearing formation (104) may include a porous or fractured rock formation that resides underground, beneath the earth's surface (“surface”) (108). In the case of the well system (106) being a hydrocarbon well, the reservoir (102) may include a portion of the hydrocarbon-bearing formation (104). The hydrocarbon-bearing formation (104) and the reservoir (102) may include different layers of rock having varying characteristics, such as varying degrees of permeability and porosity. In the case of the well system (106) being operated as a production well, the well system (106) may facilitate the extraction of hydrocarbons (or “production”) from the reservoir (102).

[0028] In some embodiments, the well system (106) includes a wellbore (120), a well sub-surface system (122), a well surface system (124), and a well control system (“control system”) (126). The control system (126) may control various operations of the well system (106), such as well production operations, well completion operations, well maintenance operations, as well as reservoir operations including monitoring, assessment and development operations. In some embodiments, the control system (126) includes a computer that is the same as or similar to that of computer system (1302) described below in FIG. 13 and the accompanying description.

[0029] The wellbore (120) may include a bore hole that extends from the surface (108) into a target zone of the hydrocarbon-bearing formation (104), such as the reservoir (102). An upper end of the wellbore (120), terminating at or near the surface (108), may be referred to as the “up-hole” end of the wellbore (120), and a lower end of the wellbore, terminating in the hydrocarbon-bearing formation (104), may be referred to as the “down-hole” end of the wellbore (120). The wellbore (120) may facilitate the circulation of drilling fluids during drilling operations, the flow of hydrocarbon production (“production”) (121) ( e.g ., oil and gas) from the reservoir (102) to the surface (108) during production operations, the injection of substances (e.g., water) into the hydrocarbon-bearing formation (104) or the reservoir (102) during injection operations, or the communication of monitoring devices (e.g, logging tools) into the hydrocarbon-bearing formation (104) or the reservoir (102) during monitoring operations (e.g, during in situ logging operations).

[0030] In some embodiments, during operation of the well system (106), the control system (126) collects and records wellhead data (140) for the well system (106). The wellhead data (140) may include, for example, a record of measurements of wellhead pressure (P Wh ) (e.g, including flowing wellhead pressure), wellhead temperature (T Wh ) (e.g, including flowing wellhead temperature), wellhead production rate (Q Wh ) over some or all of the life of the well system (106), and water cut data. In some embodiments, the measurements are recorded in real-time, and are available for review or use within seconds, minutes or hours of the condition being sensed (e.g, the measurements are available within 1 hour of the condition being sensed). In such an embodiment, the wellhead data (140) may be referred to as “real-time” wellhead data (140). Real-time wellhead data (140) may enable an operator of the well system (106) to assess a relatively current state of the well system (106), and make real-time decisions regarding development of the well system (106) and the reservoir (102), such as on-demand adjustments in regulation of production flow from the well.

[0031] In some embodiments, the well surface system (124) includes a wellhead (130). The wellhead (130) may include a rigid structure installed at the “up-hole” end of the wellbore (120), at or near where the wellbore (120) terminates at the Earth's surface (108). The wellhead (130) may include structures for supporting (or “hanging”) casing and production tubing extending into the wellbore (120). Production (121) may flow through the wellhead (130), after exiting the wellbore (120) and the well sub-surface system (122), including, for example, the casing and the production tubing. In some embodiments, the well surface system (124) includes flow regulating devices that are operable to control the flow of substances into and out of the wellbore (120). For example, the well surface system (124) may include one or more production valves (132) that are operable to control the flow of production (121). For example, a production valve (132) may be fully opened to enable unrestricted flow of production (121) from the wellbore (120), the production valve (132) may be partially opened to partially restrict (or “throttle”) the flow of production (121) from the wellbore (120), and production valve (132) may be fully closed to fully restrict (or “cell”) the flow of production (121) from the wellbore (120), and through the well surface system (124).

[0032] Keeping with FIG. 1, in some embodiments, the well surface system (124) includes a surface sensing system (134). The surface sensing system (134) may include sensors for sensing characteristics of substances, including production (121), passing through or otherwise located in the well surface system (124). The characteristics may include, for example, pressure, temperature, and flow rate of production (121) flowing through the wellhead (130), or other conduits of the well surface system (124), after exiting the wellbore (120).

[0033] In some embodiments, the surface sensing system (134) includes a surface pressure sensor (136) operable to sense the pressure of production (151) flowing through the well surface system (124), after it exits the wellbore (120). The surface pressure sensor (136) may include, for example, a wellhead pressure sensor that senses a pressure of production (121) flowing through or otherwise located in the wellhead (130). In some embodiments, the surface sensing system (134) includes a surface temperature sensor (138) operable to sense the temperature of production (151) flowing through the well surface system (124) after it exits the wellbore (120). The surface temperature sensor (138) may include, for example, a wellhead temperature sensor that senses a temperature of production (121) flowing through or otherwise located in the wellhead (130), referred to as “wellhead temperature” (T WH ). In some embodiments, the surface sensing system (134) includes a flow rate sensor (139) operable to sense the flow rate of production (151) flowing through the well surface system (124), after it exits the wellbore (120). The flow rate sensor (139) may include hardware that senses a flow rate of production (121) ( Q WH ) passing through the wellhead (130).

[0034] In some embodiments, the well system (106) includes a reservoir simulator (160). For example, the reservoir simulator (160) may include hardware and/or software with functionality for generating one or more reservoir models regarding the hydrocarbon- bearing formation (104) and/or performing one or more reservoir simulations. For example, the reservoir simulator (160) may store well logs and data regarding core samples for performing simulations. A reservoir simulator may further analyze the well log data, the core sample data, seismic data, and/or other types of data to generate and/or update the one or more reservoir models. While the reservoir simulator (160) is shown at a well site, embodiments are contemplated where reservoir simulators are located away from well sites. In some embodiments, the reservoir simulator (160) may include a computer system that is similar to the computer system (1302) described below with regard to FIG. 13 and the accompanying description.

[0035] FIG. 2A shows a schematic diagram in accordance with one or more embodiments. FIG. 2A shows a geological region (200) that may include one or more hydrocarbon reservoir regions ( e.g ., reservoir region (230)) with various production wells (e.g., production well A (211), production well (212)). For example, a production well may be similar to the well system (106) described above in FIG. 1 and the accompanying description. Hydrocarbons, such as oil, gas, or a combination of both, may be produced from hydrocarbon reservoir through the production wells. The hydrocarbon may then transported to a primary processing facility, such as a gas-oil separation plant (“GOSP”) via surface pipelines (not shown) or stored in tanks (not shown) near the production wells for later transportation by tanker trucks.

[0036] Likewise, a reservoir region may also include one or more injection wells (e.g, injection well C (216)) that include functionality for enhancing production by one or more neighboring production wells. Production may be enhanced by injection fluid, such as water, from pumping systems (e.g, pumping system (250)) through the injection wells into the hydrocarbon reservoir. The injected fluid may be wastewater from a GOSP or drawn from nearby aquifers and may enhance production by increasing or maintaining the fluid pressure in the reservoir and/or by pushing the hydrocarbon through the hydrocarbon reservoir towards the production wells.

[0037] As shown in FIG. 2A, wells may be disposed in the reservoir region (230) above various subsurface layers (e.g, subsurface layer A (241), subsurface layer B (242)), which may include hydrocarbon deposits. In particular, production data and/or injection data may exist for a particular well, where production data may include data that describes production or production operations at a well, such as wellhead data (142) described in FIG. 1 and the accompanying description.

[0038] Pumping systems may pump fluid according to a schedule defined in a hydrocarbon reservoir production plan. Similarly, productions well may be produced at flow rates determined by the hydrocarbon reservoir production plan. In some cases, additional production and/or injection wells may be drilled according to the hydrocarbon reservoir production plan. The hydrocarbon reservoir production plan may be formed based on data about the reservoir, such as seismic data and well log data, and on production and injection data recorded over the lifetime of the hydrocarbon reservoir. A reservoir simulator (160) may use the reservoir data arranged on a reservoir grid model, production data, and injection data to predict the future performance of the reservoir, such as expected production rates, and to simulate various future scenarios. For example, the reservoir simulator (160) may predict the future production of a new production well drilled at a future data, or the effect on the production of all the production wells caused by increasing fluid injection rate at one or more injection wells. Further, the reservoir simulator may predict the reservoir pressure as a function of position within the reservoir and time. This information may be critical in understanding the behavior or condensate or wet gas reservoirs and understanding when oil condensate with form as the reservoir pressure falls. These scenarios may be used by reservoir engineers managing hydrocarbon to form the hydrocarbon reservoir production plan.

[0039] In accordance with one or more embodiments, FIG. 2B shows a reservoir grid model (290) that corresponds to the geological region (200) from FIG. 2A. More specifically, the reservoir grid model (290) includes grid cells (261) that may refer to a coarse grid cell (262) of a reservoir grid model as well as fine grid cells (263) that may refer to a subdivision of coarse grid cells (262) of the reservoir grid model (290). For example, if a coarse grid cell (262) may be of size lxl, the fine grid cells (263) may be of sizes 1/2 x 1/2, 1/4 x 1/4, or 1/8 x 1/8. Grid cells (261), fine grid cells (263), and the coarse grid cells (262) may correspond to columns for multiple model layers (260) within the reservoir grid model (290). The grid cells (261), coarse grid cells (262) and fine grid cells (263) may or may not be cubic. Typically, the size of the grid cells in the horizontal directions and much greater than the size of the grid cells in the vertical direction.

[0040] Predicting the performance of a condensate or wet gas reservoir is of paramount interest for gas producers. Generally, reservoir simulators are used to predict the gas production rates from the wells. For a reliable prediction of the gas production rate, it is critical for the simulator to model the liquid drop-out process properly. To achieve this, reservoir simulators with capable of having a full description of the fluid composition and very fine grid cells around the wellbore may be required. The size of these very fine grid cells may be of the order of a few feet. As a result, the computation times required to complete the simulation may frequently be impractical.

[0041] In practice, models composed of coarse grid cells, with horizontal sizes on the order of hundreds of feet, may be used to simulate models covering the full reservoir and containing many wellbores. These models are computationally tractable but cannot accurately calculate low pressures and steep pressure gradients around the wellbores. Consequently, these models typically fail to simulate liquid drop-out around the wellbores accurately and consequently often over-predict gas production rates.

[0042] In accordance with one or more embodiments, a hydrocarbon reservoir may be composed of a porous and permeable rock, a mobile non-ideal gas that may flow though the rock, and immobile liquids whose flow through the rock is negligible compared to the gas. To model the behavior of such a hydrocarbon reservoir a multiphase multi- component simulator may be required. In the vicinity of a producing gas well the flow of gas may be described by the following nonlinear partial differential equation with the associated boundary and initial condition: Equation (1) where F j is the fluid potential for the j-th fluid phase: fί = Pj f Pj ( z - z ref) Equation (2) and p j is the pressure for the j-th fluid phase (j enumerates oil, water, or gas), n p is the number of fluid phases, n i; is the total number of moles of the z-th component in y-th fluid phase. N j is the total number of moles in the j- th fluid phase, p j is the molar density of the y-th fluid phase, K is the absolute permeability tensor, and qq is the production or injection rate of the i- th component into the reservoir. V. is the divergence operator, V is the gradient operator, and t is time.

[0043] The phase mobility of the y-th fluid phase, A j , may be determined by: Equation (3) where k r j is the relative permeability and m is the viscosity of the y- th fluid phase. The total number of moles in the /-th fluid phase, N j , is given by: Equation (4) where n c is the number of components in the y- th fluid phase. Equation (5)

[0044] The pore volume (of a reservoir grid cell) may be determined by: Equation (6) where p j is the density of the i- th component: Equation (7) the viscosity of the y-th fluid phase: Equation (8) and Ni is the total number of moles of the i- th component: Equation (9)

The capillary pressure between the y-th and the j ’-th phase, for j ¹ j ' is given by:

P c j j! = P j — P j ' Equation (10) and the phase saturation for the y-th phase is:

Equation (11) [0045] In accordance with one or more embodiments, to solve equations (1) - (11) boundary conditions may be defined. An initial boundary condition may specify a partial pressure for each fluid phase as a function of position:

P j (x, y, z, 0) = g j (x, y, z ) Equation (12) where x, y, and z are spatial coordinates and g j may allow, for example, for the gas partial pressure to be larger at the top of the reservoir and the water partial pressure to be larger at the bottom of the reservoir.

[0046] Further, in accordance with one or more embodiments, boundary conditions for any producing or injecting well may be specified. For example, the gradient of pressure normal to the reservoir domain boundary, dfl, may be taken to be zero: Equation (13) or or the pressure may be assumed to be constant on the boundary of the reservoir domain, W: p = p 5 , on 5W Equation (14) where s is the unit area vector normal to the boundary 5W and the p B is a specified boundary pressure.

[0047] In accordance with one or more embodiments, equations (1) - (14) are solved to find the unknown pressure of the z-th phase, p j (x, y, z, t ) and the unknown molar volume of the z-th component, rq(x, y, z, t), as a function of space and time, t e [0, T] where T is the total production time simulated. To solve the equations (1) - (14) for the unknowns the reservoir domain may be discretized into sub-domains (grid cells (261)) and the simulation time duration between [0, 7] may be divided into sub-elements, At. In some embodiments, At may be constant and in other embodiments, At may vary with throughout the simulation time. The discretization may result in a set of discrete nonlinear first-order differential equations. In accordance with one or more embodiments, the discrete system may be linearized and solved for any simulation time interval [0, 7] using a nonlinear iterative scheme. This iterative solution may result in pressure, and molar distribution within the reservoir at any time within the simulation time interval [0, T] The result of solving equations (1) - (14) for the production time interval [0, 7] may be referred to as a multiphase multi-component simulation. [0048] In accordance with one or more embodiments the multiphase multi-component simulation may be performed using a coarse grid model spanning the whole, or a large portion, of the hydrocarbon reservoir. The coarse grid model may have coarse grid cells (262) that are of the order of hundreds of feet in horizontal extent although they may be much thinner in the vertical direction. Such a coarse grid model may be computationally tractable but may give unreliable or inaccurate results close to a production well ( e.g ., production well A (211) and production well B (212)) or an injection well (e.g., injection well C (216)). Never-the-less, the multiphase multi- component simulation may provide an estimate of the shape and position of isobars within a reservoir model.

[0049] In some embodiments, an initial grid geometry may be defined around a trajectory of wellbore in the reservoir model. The initial grid geometry may be selected to be conformal to the isobars calculated by the coarse-grid simulation in the vicinity of a wellbore trajectory. One horizontal axis of the conformal to initial grid geometry may be parallel to the isobars and the second horizontal axis of the initial grid geometry may be orthogonal to the isobar (or equivalently parallel to the streamlines calculated by the coarse grid close to the wellbore trajectory.

[0050] In other embodiments, the initial grid geometry around a trajectory of wellbore in the reservoir model may be determined using an a priori approximation. For example, it is well known that for a vertical wellbore penetrating a homogeneous reservoir the isobars form concentric circles in the horizontal plane with the centers of the circles coincident with the center of the wellbore and the streamlines extend radially away from the wellbore. In contrast, for a horizontal wellbore the isobars may approximate ellipses in the horizontal plane with the streamlines everywhere locally orthogonal to the ellipses. Similarly, for a vertical wellbore in fluid communication with a highly permeable vertical fracture the isobars may approximate ellipses surrounding the vertical fracture in the horizontal plane with the streamlines everywhere locally orthogonal to the ellipses. Although in heterogeneous reservoirs, the isobars and streamlines may not form perfect geometrical figures, i.e., circles or ellipses, even in heterogenous reservoirs geometrical figures may be a better approximation to the isobars and streamlines than can be achieved with cartesian coordinate axes. In these cases, a first horizontal axis of the model grid may be chosen to be conformal to ellipses and a second horizontal axis of the model grid may be conformal to the direction orthogonal to the ellipses.

[0051] FIG. 3A, in accordance with one or more embodiments, depicts three isobars

(302a, 302b, 302c) surrounding a horizontal wellbore (306). In some embodiments there may be more than three isobars and in other embodiments there may be fewer without departing from the scope of the invention. In some embodiments, the isobars (302a, 302b, 302c) may be ellipses. A streamline (310) intersects the outermost isobar (302c) at a 90-degree angle at a point (312c). The same streamline (310) intersects the middle isobar (302b) at a 90-degree angle at a point (312b) and the innermost isobar (302a) at a 90-degree angle at a point (312a). The streamline (310) represents the path that fluid beginning at point (312c) would follow if fluid were being produced from the reservoir at the horizontal wellbore (304) and the reservoir was homogeneous.

[0052] In accordance with some embodiments, an elliptical isobar may be described by a x 2 + b y 2 + c xy + d x + e y = f Equation (15) where x and y represent the horizontal cartesian coordinates of points on the isobar and / is the pressure value on the isobar. The coefficients a, b, c, d, and e may be estimated from a cartesian grid solution to Equations (1) - (14), or for an isolated well in a homogeneous reservoir from an analytic solution.

[0053] In accordance with one or more embodiments, a streamline may be determined starting from the point (312c). For example, the slope of isobar (302c) may be written as: dy _ 2 ax+cy+d

Equation (16) dx cx+2by+e and using the fact that the scalar product of two orthogonal lines is equal to -1 to obtain: dy s _ c x+2b y s +e

Equation (17) dx 2 a x+c y s +d where y s is the y-coordinate of the streamline (310) at the point (312c). Thus, the equation for this orthogonal streamline may be written as:

Equation (18) [0054] Where x s is the x-coordinate of points on the streamline, and x c and y c are the coordinates of point (312c).

[0055] In accordance with one or more embodiments, the intersection point (314b) of the line given by Equation (18) and the isobar (302b) may now be determined by solving Equation (18) and: a x 2 + b y 2 + c xy + d x + e y = f b Equation (19) as shown in FIG. 3B and where f b defines the pressure on isobar (302b). Note, intersection point (314b) is an approximate determination of the point (312b) where the streamline (310) actually intersects with the isobar (302b). The solution of Equation (17) and Equation (18) yields two intersection points (314b) and (314f) where the line defined by equation (17) intersects the “far side” of the isobar (302b). In accordance with one or more embodiments the selected intersection point is the intersection point that is closest to the point (312c).

[0056] Constructing a reservoir simulation grid may require the integration of the initial grid geometry around one or more well trajectories with the coarse grid spanning all, or a large portion, of the reservoir. FIG. 4 depicts the integration of an elliptical initial grid geometry with a cartesian coarse grid. The elliptic grid (402) and the associated streamlines (404) are centered on a horizontal well (408). The interval between the streamlines (404) may be called stream-tube grids (406), in accordance with one or more embodiments. To generate such a grid a reference coordinate system is first selected. For example, in FIG. 4 the straight, horizontal well (408) defines the x-axis and the center of the horizontal well (410) is taken as the x = y = 0 origin. Next, the number of ellipses is selected. In FIG. 4 three ellipses are selected. In accordance with some embodiments, ellipses may be chosen by fitting equation (15) to the pressure contours computed by a coarse grid simulator. In accordance with other embodiments, the isobar can be obtained by solving a Poisson equation for pressure equation around the well using a steady state assumption.

[0057] FIG. 4 further depicts, in accordance with one or more embodiments, a bounding box (412). The bounding box (412) encloses outer most ellipse such that the edges of the bounding box (412) are tangent to the outermost ellipse at the points x = 0 and y = 0. In some embodiments, the nodes on the outermost ellipse that may form the starting point of each streamline (414) may be determined by where the x = constant lines (416) that define the coarse modeling grid (418) outside the bounding box (412) intersect the outermost ellipse. Equally, in other embodiments the intersection of the y = constant lines may determine the starting point of each streamline.

[0058] In one or more embodiments, this approach to gridding the area within the bounding box (412) but outside the outermost ellipses may result in an irregular transitional grid, as depicted in FIG. 4. The transitional grid may have cells with 3 comers or 5 corners, but typically this may be accommodated by reservoir simulation algorithms that routinely use unstructured grid formats.

[0059] FIG. 5 shows a flowchart in accordance with one or more embodiments. The flowchart describes the steps that may be taken to define a reservoir simulation grid, simulated fluid flow in the reservoir using the reservoir grid, and form, revise, and execute a reservoir production plan based upon the reservoir simulation.

[0060] In Step 502 a coarse grid model of the hydrocarbon reservoir and a trajectory of a wellbore that penetrates the hydrocarbon reservoir may be obtained. The coarse grid may contain porosity and permeability values for the reservoir rocks and fluid phase and composition values for the fluids within the pores. The coarse grid model may also include the location and trajectories of a plurality of existing or planned wellbores and one or more planned production scenarios. In some embodiments, the coarse grid model may be defined on a cartesian grid.

[0061] In Step 504, an initial grid geometry surrounding the trajectory may be determined. In some embodiments, the initial grid geometry may be determined, at least in part, from isobars of a coarse-grid simulation. In other embodiments, a first horizontal axis of the initial grid geometry may be an ellipse. In some embodiments, a second horizontal axis of may be locally orthogonal to the first horizontal axis. The initial grid geometry may be determined from numerical or analytical solutions to canonical or simplified models of the reservoir in the vicinity of the segment of the wellbore trajectory within the hydrocarbon reservoir. For example, the reservoir may be assumed to be locally homogeneous in the vicinity of the horizontal wellbore.

[0062] In Step 506, in accordance with one or more embodiments, a reservoir simulation grid may be constructed. The reservoir simulation grid may be constructed to be conformal to the initial grid geometry in a first region in a vicinity of the wellbore and conformal with the coarse grid model in a second region more distant from the wellbore than the first region. The boundaries of cells of the reservoir simulation grid near the wellbore may be exactly, or approximately, coincident with isobars and streamlines of the simulated fluid flow. If the isobar was determined from a numerical or analytic solution to a canonical or simplified model, then the isobar may be an ellipse.

[0063] In accordance with one or more embodiments, in Step 506 the intersection of the outermost, largest ellipse, with the edges of the coarse grid cells having at least one orientation may be determined. For example, in some embodiments the intersection of the largest ellipse with the edges having x = constant may be determined. In other embodiments, the intersection of the largest ellipse with the edges having y = constant may be determined. Alternatively, the intersection of the largest ellipse with the edges running North-South may be determined. A streamline may be determined starting at each of the intersection and crossing each of the concentric ellipses orthogonally.

[0064] Stream-tubes may be determined, in accordance with one or more embodiments.

Each stream -tube may be bounded on either side by an approximation to adjacent streamlines. The boundary of the stream-tube may be determined by tracing a line orthogonally to the outermost ellipse from an intersection point inward to the point at which the orthogonal line intersects the next largest ellipse. Then the procedure may be repeated iteratively to find the intersection point with the next concentric ellipse.

[0065] In accordance with one or more embodiments, in Step 508 a hydrocarbon reservoir simulation, modeling a flow of fluid in the hydrocarbon reservoir based, at least in part, on the reservoir simulation grid may be performed. The hydrocarbon reservoir simulation may be a multiphase multi-component reservoir simulation and the hydrocarbon reservoir is a wet gas reservoir. The hydrocarbon simulation may include the simulation or modeling of multiple scenarios predicting the effects of changing fluid injection schedules or drilling new production and/or injection wells.

[0066] In Step 510, a hydrocarbon reservoir development plan may be formed and executed based, at least in part, on the fluid flow simulation results determined in Step 508. For example, the critical pressure at which condensates form may be utilized to develop a plan. After discovery and initial appraisal of a hydrocarbon reservoir or field, a hydrocarbon reservoir development plan may be formulated to facilitate the safe and efficient production of hydrocarbons from the reservoir. The plan may include defining the type, size, and location of surface facilities, such as production rigs, pipelines, and GOSPs. The plan may further include the type, surface location, and subsurface trajectory of wellbores, including horizontal wellbores, to be drilled to reach and penetrate the reservoir, and from which to produce hydrocarbons. The plan may also include specifying the type of completions to use, including whether wells should be cased, uncased, or contain slotted liners; whether hydraulic fracturing, acidizing, or both, is utilized, and whether surface or downhole pumps are needed to produce the hydrocarbons. The plan may still further determine whether the injection of fluid, typically water, is required at locations within the reservoir to raise, maintain, or slow the decline in reservoir pressure. Further, the plan may include enhanced recovery methods, such as the injection of water to maintain reservoir pressure above the pressure at which condensates form. The hydrocarbon reservoir development plan may be influenced by the assessment of geological, geographical, and economic factors.

[0067] Executing the hydrocarbon reservoir development plan may include carrying out the operations, such as constructing the surface facilities, drilling and completing the wells, pumping the injection fluids, and maintaining the reservoir pressure, specified in the plan. Executing the plan may further include updating the reservoir development plan based on production data and well logging acquired during preceding execution steps.

[0068] FIGs. 6 - 13 show steps and results from an illustrative example of one embodiment. FIG. 6A shows a horizontal portion (602) of a wellbore with a length of 1200 feet and a coarse grid reservoir simulation model with coarse grid cell sizes of 400 x 400 feet. In the following, the results generated with the model shown in FIG. 6A will be compared and contrasted with the results from a fine grid model shown in FIG. 6B and with the results from a combined elliptical and coarse grid simulation. The results generated using the fine grid model shown in FIG. 6B may be regarded as the best available estimate of the true or exact result.

[0069] FIG. 7 A shows the fluid pressure distribution in the reservoir after hydrocarbon production from the reservoir for a period of time as predicted using the coarse grid model shown in FIG. 6A. In contrast, FIG. 7B shows fluid pressure distribution in the reservoir after hydrocarbon production from the reservoir for the same period of time as predicted using the fine grid model shown in FIG. 6B. A person of ordinary skill in the art will readily appreciate the differences between the FIGs. 7A and 7B including the significantly larger zone of greatly decreased pressure shown in FIG. 7A. FIG. 7C shows both the reservoir simulation grid formed by combining the initial elliptical grid and coarse grid model, and the fluid pressure distribution in the reservoir after hydrocarbon production from the reservoir. FIGs. 7A - 7C all show the results simulated for the same period of production time. One of ordinary skill in the art will readily appreciate the significantly greater similarity between FIGs. 7C and 7B than between FIGs. 7 A and 7B.

[0070] FIGs. 8A, 8B and 8C show the condensate saturation in the reservoir after hydrocarbon production from the reservoir for the same period of time. FIG. 8A shows the prediction formed using the coarse grid model. FIG. 8B shows the prediction formed using the fine grid model, and FIG. 8B shows the prediction formed using the combined elliptical and coarse grid model. A person of ordinary skill in the art will readily appreciate the significantly greater similarity between FIGs. 8C and 8B than between FIGs. 8 A and 8B.

[0071] FIG. 9 shows the condensate production rate over a four-year simulated production period as predicted using the coarse grid (902), the fine grid (904), the combined elliptical and coarse grid (906) and a modification of the coarse grid with a pseudo-pressure transform (908). It will be readily apparent to one of ordinary skill in the art that the condensate production rate calculated using the combined elliptical and coarse grid (906) is more similar to the condensate production rate calculated using the fine grid (904) than are either of the two methods using the coarse grid (902, 908).

[0072] FIG. 10 shows the bottom hole pressure over a four-year simulated prediction period as predicted using the coarse grid (1002), the fine grid (1004), the combined elliptical and coarse grid (1006) and a modification of the coarse grid with a pseudo pressure transform (1008). It will be readily apparent to a person of ordinary skill in the art that the bottom hole pressure predicted using the combined elliptical and coarse grid (1006) is more similar to the condensate production rate calculated using the fine grid (1004) than are either of the two methods using the coarse grid (1002, 1008).

[0073] FIG. 11 shows the gas production rate over a four-year period as predicted using the coarse grid (1102), the fine grid (1104), the combined elliptical and coarse grid (1106) and a modification of the coarse grid with a pseudo-pressure transform (1108). It will be readily apparent to a person of ordinary skill in the art that the gas production rate predicted using the combined elliptical and coarse grid (1106) is more similar to the condensate production rate calculated using the fine grid (1104) than are either of the two methods using the coarse grid (1102, 1108).

[0074] FIG. 12 shows the computational time required to generate the results shown in FIGs. 7 - 11. Note, the vertical axis (1202) of FIG. 12 is depicted on a logarithmic scale. FIG. 12 indicates, in accordance with one or more embodiments, that the computation time required for the fine grid simulation (1204) is approximately 20 times greater than the computational time than does the coarse grid model (1206), the combined coarse grid and elliptical grid embodiment (1208), or the coarse grid model supplemented by the pseudo pressure transformation (1210).

[0075] Embodiments may be implemented on a computer system using reservoir simulation software stored in non-transitory computer readable media. FIG. 13 is a cell diagram of a computer system (1302) used to provide computational functionalities associated with described algorithms, methods, functions, processes, flows, and procedures as described in the instant disclosure, according to an implementation. The illustrated computer system (1302) is intended to encompass any computing device such as a high-performance computing (HPC) device, server, desktop computer, laptop, notebook computer, wireless data port, smart phone, personal data assistant (PDA), tablet computing device, one or more processors within these devices, or any other suitable processing device, including both physical or virtual instances (or both) of the computing device. Additionally, the computer system (1302) may include a computer that includes an input device, such as a keypad, keyboard, touch screen, or other device that can accept user information, and an output device that conveys information associated with the operation of the computer system (1302), including digital data, visual, or audio information (or a combination of information), or a graphical user interface GUI.

[0076] The computer system (1302) can serve in a role as a client, network component, a server, a database or other persistency, or any other component (or a combination of roles) of a computer system for performing the subject matter described in the instant disclosure. The illustrated computer system (1302) is communicably coupled with a network (1330). In some implementations, one or more components of the computer system (1302) may be configured to operate within environments, including cloud computing-based, local, global, or other environment (or a combination of environments).

[0077] At a high level, the computer system (1302) is an electronic computing device operable to receive, transmit, process, store, or manage data and information associated with the described subject matter. According to some implementations, the computer system (1302) may also include or be communicably coupled with an application server, e-mail server, web server, caching server, streaming data server, business intelligence (BI) server, or other server (or a combination of servers).

[0078] The computer system (1302) can receive requests over network (1330) from a client application (for example, executing on another computer system (1302)) and responding to the received requests by processing the said requests in an appropriate software application. In addition, requests may also be sent to the computer system (1302) from internal users (for example, from a command console or by other appropriate access method), external or third-parties, other automated applications, as well as any other appropriate entities, individuals, systems, or computers.

[0079] Each of the components of the computer system (1302) can communicate using a system bus (1303). In some implementations, any or all of the components of the computer system (1302), both hardware or software (or a combination of hardware and software), may interface with each other or the interface (1304) (or a combination of both) over the system bus (1303) using an application programming interface (API) (1312) or a service layer (1313) (or a combination of the API (1312) and service layer (1313). The API (1312) may include specifications for routines, data structures, and object classes. The API (1312) may be either computer-language independent or dependent and refer to a complete interface, a single function, or even a set of APIs. The service layer (1313) provides software services to the computer system (1302) or other components (whether or not illustrated) that are communicably coupled to the computer system (1302). The functionality of the computer system (1302) may be accessible for all service consumers using this service layer. Software services, such as those provided by the service layer (1313), provide reusable, defined business functionalities through a defined interface. For example, the interface may be software written in JAVA, C++, or other suitable language providing data in extensible markup language (XML) format or another suitable format. While illustrated as an integrated component of the computer system (1302), alternative implementations may illustrate the API (1312) or the service layer (1313) as stand-alone components in relation to other components of the computer system (1302) or other components (whether or not illustrated) that are communicably coupled to the computer system (1302). Moreover, any or all parts of the API (1312) or the service layer (1313) may be implemented as child or sub-modules of another software module, enterprise application, or hardware module without departing from the scope of this disclosure.

[0080] The computer system (1302) includes an interface (1304). Although illustrated as a single interface (1304) in FIG. 13, two or more interfaces (1304) may be used according to particular needs, desires, or particular implementations of the computer system (1302). The interface (1304) is used by the computer system (1302) for communicating with other systems in a distributed environment that are connected to the network (1330). Generally, the interface (1304) includes logic encoded in software or hardware (or a combination of software and hardware) and operable to communicate with the network (1330). More specifically, the interface (1304) may include software supporting one or more communication protocols associated with communications such that the network (1330) or interface's hardware is operable to communicate physical signals within and outside of the illustrated computer system (1302).

[0081] The computer system (1302) includes at least one computer processor (1305). Although illustrated as a single computer processor (1305) in FIG. 13, two or more processors may be used according to particular needs, desires, or particular implementations of the computer system (1302). Generally, the computer processor (1305) executes instructions and manipulates data to perform the operations of the computer system (1302) and any algorithms, methods, functions, processes, flows, and procedures as described in the instant disclosure.

[0082] The computer system (1302) also includes a memory (1306) that holds data for the computer system (1302) or other components (or a combination of both) that can be connected to the network (1330). For example, memory (1306) can be a database storing data consistent with this disclosure. Although illustrated as a single memory (1306) in FIG. 13, two or more memories may be used according to particular needs, desires, or particular implementations of the computer system (1302) and the described functionality. While memory (1306) is illustrated as an integral component of the computer system (1302), in alternative implementations, memory (1306) can be external to the computer system (1302).

[0083] The application (1307) is an algorithmic software engine providing functionality according to particular needs, desires, or particular implementations of the computer system (1302), particularly with respect to functionality described in this disclosure. For example, application (1307) can serve as one or more components, modules, applications, etc. Further, although illustrated as a single application (1307), the application (1307) may be implemented as multiple applications (1307) on the computer system (1302). In addition, although illustrated as integral to the computer system (1302), in alternative implementations, the application (1307) can be external to the computer system (1302).

[0084] There may be any number of computers associated with, or external to, a computer system containing computer system (1302), each computer communicating over network (1330). Further, the term “client,” “user,” and other appropriate terminology may be used interchangeably as appropriate without departing from the scope of this disclosure. Moreover, this disclosure contemplates that many users may use one computer system (1302), or that one user may use multiple computers (1302).

[0085] FIG. 14 illustrates a drill system (1400), in accordance with one or more embodiments. A wellbore (1422a, b) may be drilled using a drill bit (1404) attached to a drillstring (1406) further attached to a drill rig (1408) located on the surface of the earth (1424). The wellbore (1422a, b) may traverse a plurality of overburden layers (1410), one or more cap-rock layers (1412), and geological discontinues (1412) to reach a hydrocarbon reservoir region (230). The wellbore (1422a, b) may be drilled according to a wellbore plan along a wellbore trajectory defined in the well plan and may include portions of wellbore that are essentially vertical (1422a) and portions of wellbore that are highly deviated or horizontal (1422b). In particular, horizontal portions of the wellbore (1422b) may be drilled in the hydrocarbon reservoir (230) to maximize the production of hydrocarbons from the wellbore.

[0086] In addition to the wellbore trajectory, the well plan may provide for other characteristics of the well. For example, the well plan may provide for the wellbore to be drilled in portions. After drilling each portion the drill bit (1404) and the drillstring (1406) may be withdrawn from the wellbore (1422a) by the drill rig (1408) and a “casing string” (1402) may be lowered into the wellbore (1422a) and cemented into place by injecting cement into the annulus (1414) formed between the casing string (1402) and the formation (1410). Casing strings are composed of a plurality of steel pipes casing joints threaded together, where each casing joint is a steel pipe approximately 30 feet long. The casing joints may be screwed together as the casing string is inserted into the wellbore. Once the casing string is cemented in place the drillstring (1406) and the drill bit (1404) may be re-inserted through the central channel of the casing string (1412) and the next portion of the wellbore (1422a, b) may be drilled. Typically, each portion of the wellbore (1422a) is of a smaller diameter than the previous portion. For example, the first portion of the wellbore (1422a) near the surface of the earth may have a diameter of 2 or 3 feet, while the final portion of the wellbore that intersects the hydrocarbon reservoir (1422b) may have a diameter of 6 or 8 inches. These diameter values are provided for illustrative purposes only and should not be construed as limiting the scope of the invention in any way.

[0087] Once installed, the casing may provide mechanical strength and stability to the wellbore (1422a, b), to precent the collapse of overburden layers (1410) and cap-rock layers (1412). Further, casing may isolate fluid in the pores of one overburden layer from the pores in another. In addition, casing may aid in the control of pressure and prevent unwanted fluid flow from pores within a formation into the wellbore (1422a, b). [0088] A well plan may be determined by a wellbore planning system composed of a computer system, such as computer system (1302) and appropriate software. The well planning system may take as input a well head on the surface of the earth, a drilling target within the reservoir, the location of drilling hazards (such as shallow gas pockets, pre-existing well trajectory and fault planes), the mechanical limitations of the drill rig and the drillstring (such as the tolerable maximum curvature), and geoscience data such as the expected pore pressure distribution with depth).

[0089] Although only a few example embodiments have been described in detail above, those skilled in the art will readily appreciate that many modifications are possible in the example embodiments without materially departing from this invention. Accordingly, all such modifications are intended to be included within the scope of this disclosure as defined in the following claims.