Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
UNDERBALANCED DRILLING THROUGH FORMATIONS WITH VARYING LITHOLOGIES
Document Type and Number:
WIPO Patent Application WO/2017/010985
Kind Code:
A1
Abstract:
Bottom-hole pressure operating envelops for underbalanced drilling take into account the lithologies of the formations being drilled through.

Inventors:
SAMUEL ROBELLO (US)
MORALES-OCANDO GABRIELA M (US)
ANIKET ANIKET (US)
Application Number:
PCT/US2015/040191
Publication Date:
January 19, 2017
Filing Date:
July 13, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
LANDMARK GRAPHICS CORP (US)
International Classes:
E21B21/08; E21B44/00; G06F19/00
Domestic Patent References:
WO2015080736A12015-06-04
WO2002014649A12002-02-21
Foreign References:
US20050092522A12005-05-05
US20140124265A12014-05-08
US20050192855A12005-09-01
Attorney, Agent or Firm:
SCOTT, Darryl E. et al. (US)
Download PDF:
Claims:
Claims

What is claimed is:

1. A method comprising:

preparing a model to drill a borehole with a bottom hole assembly ("BHA") through a plurality of formations comprising a first formation and a second formation;

defining:

a first-formation formation top to be a depth at which the BHA will enter the first formation,

a second-formation formation top to be a depth at which the BHA will enter the second formation, wherein the first-formation formation top is at a shallower depth than the second-formation formation top,

a first- formation lithography for the first formation, and

a second-formation lithography for the second formation;

computing with a processor a first-formation operating envelop at the first-formation top within which a first-formation-bottom-hole pressure (FFBHP) in a first-formation annular volume within the borehole adjacent to the BHA as the BHA passes through the first- formation top is in an underbalanced condition, wherein the first-formation operating envelop is computed as a function of the lithography of the first formation; computing with the processor a second- formation operating envelop at the second-formation top within which a second-formation-bottom-hole pressure (SFBHP) in a second-formation annular volume within the borehole adjacent to the BHA as the BHA passes through the second-formation top is in an underbalanced condition, wherein the second-formation operating envelop is computed as a function of the lithography of the second formation; drilling the borehole according to the model; and

adjusting drilling parameters:

to keep the FFBHP within the first-formation operating envelop when drilling through the first formation, and

to keep the SFBHP within the second- formation operating envelop when drilling through the second formation.

2. The method of claim 1 wherein FFBHP is a function of a plurality of drilling parameters and a slip velocity of first-formation cuttings produced by the BHA from the first formation as it passes through the first formation.

3. The method of claim 2 wherein the slip velocity of first- formation cuttings produced by the BHA from the first formation as it passes through the first-formation top is computed as a function of:

the dimensions of first-formation cuttings;

the particle apparent velocity of first-formation cuttings;

the shape, size, and sphericity of first-formation cuttings; and

the particle flow regime of first- formation cuttings.

4. The method of claim 3 wherein the particle flow regime of first-formation cuttings is selected from the group consisting of laminar flow and turbulent flow.

5. The method of claim 2 wherein the plurality of drilling parameters comprises:

a liquid injection rate at which drilling fluids are injected into the well; and

a gas injection rate at which gas is injected into the well.

6. The method of claim 1 wherein SFBHP is a function of a plurality of drilling parameters and a slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second formation.

7. The method of claim 6 wherein the slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second-formation top is computed as a function of: the dimensions of second-formation cuttings;

the particle apparent velocity of second-formation cuttings;

the shape, size, and sphericity of second-formation cuttings; and

the particle flow regime of second-formation cuttings.

8. The method of claim 7 wherein the particle flow regime of second-formation cuttings is selected from the group consisting of laminar flow and turbulent flow. The method of claim 6 wherein the plurality of drilling parameters comprises:

a liquid injection rate at which drilling fluids are injected into the well; and

a gas injection rate at which gas is injected into the well. A method comprising:

preparing a model to drill a borehole with a bottom hole assembly ("BHA") through a plurality of formations comprising a first formation and a second formation;

defining:

a first depth to be a depth at which the BHA is passing through the first formation, a second depth to be a depth at which the BHA is passing through the second formation, wherein the first depth is at a shallower depth than the second depth,

a first- formation lithography for the first formation, and

a second-formation lithography for the second formation;

computing with a processor a first-formation operating envelop within which a first-formation bottom hole pressure ("FFBHP") in a first-formation annular volume within the well adjacent to the BHA as the BHA passes through the first formation in an underbalanced condition, wherein the first- formation operating envelop is computed as a function of the lithography of the first formation;

computing with the processor a second-formation operating envelop within which a second- formation bottom hole pressure ("SFBHP") in a second-formation annular volume within the well adjacent to the BHA as the BHA passes through the second formation is in an underbalanced condition, wherein the second-formation operating envelop is computed as a function of the lithography of the second formation;

drilling the well according to the well-drilling plan; and

adjusting drilling parameters:

to keep the well within the first-formation operating envelop when drilling through the first formation, and

to keep the well within the second-formation operating envelop when drilling through the second formation.

11. The method of claim 10 wherein FFBHP is a function of a plurality of drilling parameters and a slip velocity of first-formation cuttings produced by the BHA from the first formation as it passes through the first formation.

12. The method of claim 11 wherein the slip velocity of first- formation cuttings produced by the BHA from the first formation as it passes through the first depth is computed as a function of:

the dimensions of first-formation cuttings;

the particle apparent velocity of first-formation cuttings;

the shape, size, and sphericity of first-formation cuttings; and

the particle flow regime of first- formation cuttings.

13. The method of claim 12 wherein the particle flow regime of first-formation cuttings is selected from the group consisting of laminar flow and turbulent flow.

14. The method of claim 11 wherein the plurality of drilling parameters comprises:

a liquid injection rate at which drilling fluids are injected into the well; and

a gas injection rate at which gas is injected into the well.

15. The method of claim 10 wherein SFBHP is a function of a plurality of drilling parameters and a slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second formation.

16. The method of claim 15 wherein the slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second depth is computed as a function of: the dimensions of second-formation cuttings;

the particle apparent velocity of second-formation cuttings;

the shape, size, and sphericity of second-formation cuttings; and

the particle flow regime of second-formation cuttings.

17. The method of claim 16 wherein the particle flow regime of second-formation cuttings is selected from the group consisting of laminar flow and turbulent flow.

18. The method of claim 15 wherein the plurality of drilling parameters comprises:

a liquid injection rate at which drilling fluids are injected into the well; and

a gas injection rate at which gas is injected into the well.

19. A non-transitory computer-readable medium, on which is recorded a computer program that, when executed, performs a method comprising:

preparing a model to drill a borehole with a bottom hole assembly ("BHA") through a plurality of formations comprising a first formation and a second formation;

defining:

a first-formation formation top to be a depth at which the BHA will enter the first formation,

a second-formation formation top to be a depth at which the BHA will enter the second formation, wherein the first-formation formation top is at a shallower depth than the second-formation formation top,

a first- formation lithography for the first formation, and

a second-formation lithography for the second formation;

computing with a processor a first-formation operating envelop at the first-formation top within which a first-formation-bottom-hole pressure (FFBHP) in a first-formation annular volume within the borehole adjacent to the BHA as the BHA passes through the first- formation top is in an underbalanced condition, wherein the first-formation operating envelop is computed as a function of the lithography of the first formation; computing with the processor a second- formation operating envelop at the second-formation top within which a second-formation-bottom-hole pressure (SFBHP) in a second-formation annular volume within the borehole adjacent to the BHA as the BHA passes through the second-formation top is in an underbalanced condition, wherein the second-formation operating envelop is computed as a function of the lithography of the second formation; drilling the borehole according to the model; and

adjusting drilling parameters:

to keep the FFBHP within the first-formation operating envelop when drilling through the first formation, and

to keep the SFBHP within the second- formation operating envelop when drilling through the second formation.

20. The non-transitory computer-readable medium of claim 19 wherein FFBHP is a function of a plurality of drilling parameters and a slip velocity of first-formation cuttings produced by the BHA from the first formation as it passes through the first formation.

21. The non-transitory computer-readable medium of claim 20 wherein the slip velocity of first- formation cuttings produced by the BHA from the first formation as it passes through the first- formation top is computed as a function of:

the dimensions of first-formation cuttings;

the particle apparent velocity of first-formation cuttings;

the shape, size, and sphericity of first-formation cuttings; and

the particle flow regime of first- formation cuttings.

22. The non-transitory computer-readable medium of claim 21 wherein the particle flow regime of first- formation cuttings is selected from the group consisting of laminar flow and turbulent flow.

23. The non-transitory computer-readable medium of claim 20 wherein the plurality of drilling parameters comprises:

a liquid injection rate at which drilling fluids are injected into the well; and

a gas injection rate at which gas is injected into the well.

24. The non-transitory computer-readable medium of claim 19 wherein computing the second- formation operating envelop comprises computing with the processor a second-formation bottom hole pressure ("SFBHP") in the second-formation annular area as the BHA passes through the second-formation top, wherein SFBHP is a function of a plurality of drilling parameters and a slip velocity of second- formation cuttings produced by the BHA from the second formation as it passes through the second formation.

25. The non-transitory computer-readable medium of claim 24 wherein the slip velocity of second- formation cuttings produced by the BHA from the second formation as it passes through the second- formation top is computed as a function of:

the dimensions of second-formation cuttings;

the particle apparent velocity of second-formation cuttings;

the shape, size, and sphericity of second-formation cuttings; and

the particle flow regime of second-formation cuttings.

26. The non-transitory computer-readable medium of claim 25 wherein the particle flow regime of second-formation cuttings is selected from the group consisting of laminar flow and turbulent flow.

27. The non-transitory computer-readable medium of claim 24 wherein the plurality of drilling parameters comprises:

a liquid injection rate at which drilling fluids are injected into the well; and

a gas injection rate at which gas is injected into the well.

28. A non-transitory computer-readable medium, on which is recorded a computer program that, when executed, performs a method comprising:

preparing a model to drill a borehole with a bottom hole assembly ("BHA") through a plurality of formations comprising a first formation and a second formation;

defining:

a first depth to be a depth at which the BHA is passing through the first formation, a second depth to be a depth at which the BHA is passing through the second formation, wherein the first depth is at a shallower depth than the second depth,

a first- formation lithography for the first formation, and

a second-formation lithography for the second formation;

computing with a processor a first-formation operating envelop within which a first-formation bottom hole pressure ("FFBHP") in a first-formation annular volume within the well adjacent to the BHA as the BHA passes through the first formation in an underbalanced condition, wherein the first- formation operating envelop is computed as a function of the lithography of the first formation;

computing with the processor a second-formation operating envelop within which a second- formation bottom hole pressure ("SFBHP") in a second-formation annular volume within the well adjacent to the BHA as the BHA passes through the second formation is in an underbalanced condition, wherein the second-formation operating envelop is computed as a function of the lithography of the second formation;

drilling the well according to the well-drilling plan; and

adjusting drilling parameters:

to keep the well within the first-formation operating envelop when drilling through the first formation, and

to keep the well within the second-formation operating envelop when drilling through the second formation.

29. The non-transitory computer-readable medium of claim 28 wherein FFBHP is a function of a plurality of drilling parameters and a slip velocity of first-formation cuttings produced by the BHA from the first formation as it passes through the first formation.

30. The non-transitory computer-readable medium of claim 29 wherein the slip velocity of first- formation cuttings produced by the BHA from the first formation as it passes through the first depth is computed as a function of:

the dimensions of first-formation cuttings;

the particle apparent velocity of first-formation cuttings;

the shape, size, and sphericity of first-formation cuttings; and

the particle flow regime of first- formation cuttings.

31. The non-transitory computer-readable medium of claim 30 wherein the particle flow regime of first- formation cuttings is selected from the group consisting of laminar flow and turbulent flow.

32. The non-transitory computer-readable medium of claim 29 wherein the plurality of drilling parameters comprises:

a liquid injection rate at which drilling fluids are injected into the well; and

a gas injection rate at which gas is injected into the well.

33. The non-transitory computer-readable medium of claim 28 wherein SFBHP is a function of a plurality of drilling parameters and a slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second formation.

34. The non-transitory computer-readable medium of claim 33 wherein the slip velocity of second- formation cuttings produced by the BHA from the second formation as it passes through the second depth is computed as a function of:

the dimensions of second-formation cuttings;

the particle apparent velocity of second-formation cuttings;

the shape, size, and sphericity of second-formation cuttings; and

the particle flow regime of second-formation cuttings.

35. The non-transitory computer-readable medium of claim 34 wherein the particle flow regime of second-formation cuttings is selected from the group consisting of laminar flow and turbulent flow.

36. The non-transitory computer-readable medium of claim 33 wherein the plurality of drilling parameters comprises:

a liquid injection rate at which drilling fluids are injected into the well; and

a gas injection rate at which gas is injected into the well.

Description:
Underbalanced Drilling Through Formations With Varying Lithologies

Background

[0001] Pore pressures and fracture pressures in oil and gas wells vary with depth. The pore pressure at a particular depth is defined to be the pressure exerted by the fluid in the formation at that depth into a well's borehole. Formation fluids will escape into the borehole if the pressure exerted by drilling fluids in the well's borehole is less than the pore pressure. The fracture pressure at a particular depth is the pressure of the drilling fluids in the borehole that can fracture the formation at that depth.

[0002] An oil well being drilled is considered underbalanced if the pressure exerted by the drilling fluids is slightly less than the pore pressure. Drilling an underbalanced well is challenging when the well passes through a number of formations having different lithologies.

Brief Description of the Drawings

[0003] Fig. 1 is a schematic of a drilling system.

[0004] Fig. 2A is a cross-sectional view of a borehole and the resulting cuttings as it is being drilled through a first formation.

[0005] Fig. 2B is a cross-sectional view of a borehole and the resulting cuttings as it is being drilled through a second formation.

[0006] Fig. 2C is a cross-sectional view of a borehole and the resulting cuttings as it is being drilled through a third formation.

[0007] Fig. 2D is a cross-sectional view of a borehole and the resulting cuttings as it is being drilled through a fourth formation.

[0008] Fig. 3 is a representation of a formation top column.

[0009] Fig. 4 is a representation of a horizontal well that crosses at least 4 formations while being drilled. [0010] Fig. 5 is an illustration of a two dimensional operating envelop.

[0011] Fig. 6 is an illustration of a three dimensional operating envelop. [0012] Fig. 7 illustrates a model.

[0013] Fig. 8A is a portion of a flowchart for the computation of a bottom hole pressure at a plurality of measured depths.

[0014] Fig. 8B is a portion of a flowchart for the computation of a bottom hole pressure at a plurality of measured depths.

[0015] Fig. 8C is a portion of a flowchart for the computation of a bottom hole pressure at a plurality of measured depths.

[0016] Fig. 8D is a portion of a flowchart for the computation of a bottom hole pressure at a plurality of measured depths.

[0017] Fig. 9 is a flowchart for the computation of a two dimensional operating envelop that takes cuttings lithology into consideration.

[0018] Fig. 10 is a flowchart for the computation of a three dimensional operating envelop that takes cuttings lithology into consideration.

[0019] Fig. 11 shows a particle experiencing laminar flow.

[0020] Fig. 12 shows a particle experiencing turbulent flow.

[0021] Fig. 13 shows a particle experiencing turbulent flow.

[0022] Fig. 14 shows the relationship between particle shape and sphericity.

[0023] Fig. 15 shows the relationship between Reynolds number, sphericity, and friction factor.

Detailed Description

[0024] The following detailed description illustrates embodiments of the present disclosure. These embodiments are described in sufficient detail to enable a person of ordinary skill in the art to practice these embodiments without undue experimentation. It should be understood, however, that the embodiments and examples described herein are given by way of illustration only, and not by way of limitation. Various substitutions, modifications, additions, and rearrangements may be made that remain potential applications of the disclosed techniques. Therefore, the description that follows is not to be taken as limiting on the scope of the appended claims. In particular, an element associated with a particular embodiment should not be limited to association with that particular embodiment but should be assumed to be capable of association with any embodiment discussed herein.

[0025] Further, while this disclosure describes a land-based drilling system, it will be understood that the equipment and techniques described herein are applicable in sea-based systems, multilateral wells, all types of drilling systems, all types of rigs, measurement while drilling ("MWD")/logging while drilling ("LWD") environments, wired drillpipe environments, coiled tubing (wired and unwired) environments, wireline environments, and similar environments.

[0026] A system for drilling operations (or "drilling system") 5, illustrated in Fig. 1, includes a drilling rig 10 at a surface 12, supporting a drill string 14. The drill string 14 may be an assembly of drill pipe sections which are connected end-to-end through a work platform 16. The drill string may comprise coiled tubing rather than individual drill pipes. A bottom-hole assembly (BHA) 18 may be coupled to the lower end of the drill string 14. The BHA 18 creates a borehole 20 through numerous earth formations, represented in Fig. 1 by formations 22 and 24. The BHA 18 may include a number of sensors (such as pressure sensors, temperature sensors, and the like).

[0027] A surface processor 26 may receive signals from the BHA sensors and other sensors along the drill string and use the signals to characterize the borehole 20 as it is being drilled.

[0028] A model 28 of the borehole 20 to be drilled may be prepared. The model 28 may reside on the surface processor 26 or at a remote location (not shown). The model may be used in planning or it may be used in monitoring and controlling the drilling of the borehole 20.

[0029] The model may include an estimate of the downhole pressure along the borehole 20, particularly in underbalanced drilling (UBD) operations in which downhole pressure is maintained close to the pore pressure. The model 28 accounts for dynamic cuttings loading during drilling operations. Based on the formation type, the model uses different correlations to understand the influence of the characteristics of cuttings produced by drilling and also estimates the minimum flow rate required to achieve efficient hole cleaning. A dynamic three dimensional operating envelop for optimum UBD operations is estimated utilizing these more accurate downhole pressure and minimum flow rate calculations as the borehole is drilled through various formations at underbalanced conditions to achieve a target depth.

[0030] The problem is illustrated in Figs. 2A-2D. The BHA is shown drilling through four formations 202, 204, 206 and 208 producing cuttings from each of the formations. Formation 204 has a formation top 210, which is the depth at which the BHA 18 will enter formation 204. Formation 206 has a formation top 212, which is the depth at which the BHA 18 will enter formation 206. Formation 208 has a formation top 214, which is the depth at which the BHA 18 will enter formation 208. Formations 202, 204, 206, and 208 have different lithologies as represented by the patterns in their representations.

[0031] Cuttings 216 are produced from formation 202, cuttings 218 are produced from formation 204, cuttings 220 are produced from formation 206, and cuttings 222 are produced from formation 208. The cuttings 216, 218, 220, and 222 may have different characteristics. The difference in characteristics is illustrated in Figs. 2A-2D by the smooth, spherical shape of cuttings 216, the smooth ovoid shape of cuttings 218, the rough spherical shape of cuttings 220, and the rough ovoid shape of cuttings 222. It will be understood that the representations are merely symbolic of actual characteristics of the cuttings.

[0032] As can be seen in Figs. 2A-2D, annular volumes 224, 226, 228, 230 adjacent to the BHA 18 are created as the borehole 20 is being drilled through formation 202, formation 204, formation 206, and formation 208, respectively. The borehole pressure at the bottom of the BHA 18 (the "bottom-hole pressure") is affected by a number of factors, including the lithology of the cuttings in the formation currently being penetrated by the BHA 18. Part of the process of underbalanced drilling is modeling and controlling bottom-hole pressure, including taking into consideration the lithology of the cuttings 216, 218, 220, 222.

[0033] The model 28 may include a formation top column, as shown in Fig. 3, in which the vertical axis is measured depth. The formation top column includes formation tops for each of the formations to be drilled through as the borehole 20 is being drilled. Fig. 4 shows an example of a horizontal borehole that is crossing at least five formations (i.e., Paskapoo, Edomonton, Bearpaw, Blairmore, and Stephen) while being drilled. Each of the formations may have a different lithology as shown in Fig. 4 (i.e., Paskapoo having a silestone lithology, Edomonton having a sandstone lithology, Bearpaw having a shale lithology, Blairmore having a silestone lithology, and Stephen having a shale lithology). Details of the formation tops is shown in Table 1 below (where true vertical depth is abbreviated TVD and measured depth is abbreviated MD and both are measured in feet):

Table 1

[0034] The model 28 may include an operating envelop 502, as shown in Fig. 5, that defines the conditions for the borehole 20 being drilled under which the bottom-hole pressure is in an underbalanced condition. In Fig. 5, the vertical axis is the bottom-hole pressure in pounds per square inch (psi), as described above, and the horizontal axis is the gas injection rate in standard cubic feet per minute (scfm). The gas injection rate is the rate at which an inert gas is injected into the drilling mud to reduce its density and hence the hydrostatic pressure.

[0035] Fig. 5 also shows the liquid pumping rate, which is the rate at which drilling fluids are pumped into the drill string 14 and ultimately into the borehole 20 through ports in the BHA 18. In the example shown in Fig. 5, five liquid pumping rates (200 gallons per minute (gpm), 250 gpm, 300 gpm, 350 gpm, and 400 gpm) are illustrated. The target pressure (2718.05 psi) and the reservoir pressure (3000 psi) are represented by dashed horizontal lines. The maximum gas injection rate (1952.56 scfm) is represented by a dashed vertical line. [0036] The operating envelop 502 is bounded by (1) the minimum liquid pumping rate (200 gpm) that maintains the bottom-hole pressure above the target pressure over the range of available gas injection rates, (2) the maximum gas injection rate, and (3) the reservoir pressure.

[0037] Fig. 6 is an illustration of a three dimensional operating envelop. Two dimensional operating envelops 602, 604, 606, 608, and 610 are computed at formation tops (or at predetermined depths within the formations). The envelops 602, 604, 606, 608, and 610 are connected as shown in Fig. 6 to create a three dimensional operating envelop 612.

[0038] The model 28, illustrated in Fig. 7, shows a drilling interval from 4000 feet to 1500 feet, as shown on the Run Measured Depth axis. Different formations having different lithologies are to be encountered during drilling, as indicated by the patterns on the lower wall of Fig. 7. The lithology of the formations is shown in a legend in the lower right corner of Fig. 7. The top wall of Fig. 7 is a surface representing pore pressure or target pressure, where one or the other is chosen for display by a user. A surface 702 represents the variations in bottom-hole pressure with the scale being the vertical axis on the right side of Fig. 7. The bottom-hole pressure varies as a result of the operational parameters and conditions such as: liquid injection rate (shown by the heavy curves in Fig. 7), gas injection rate (shown on the Z axis in Fig. 7), multiphase modeling, temperature profile, and lithological conditions (as shown at the bottom of Fig. 7). For every formation being intercepted, a different cutting loading effect is defined to account for the cuttings characteristics specific to that particular formation.

[0039] The model 28 may display an operating envelop, such as two dimensional operating envelop 502, three dimensional operating envelop 612, or three dimensional operating envelop 702, as the borehole 20 is being drilled. The bottom-hole pressure is calculated at the base of the formation top, bottom-hole pressure is calculated, and the three dimensional operating envelop is displayed.

[0040] The procedure is as follows:

1. Define the formation tops along with their lithologies.

2. Define open hole sections for formation tops: a. The target pressure can be defined by formation top or a unique delta pressure below the pore pressure can be defined. b. Include and define cuttings loading option for every hole section. c. A combobox will allow the user to select from a list of available lithologies. d. If the drilling parameters and cuttings dimensions (rate of penetration, cuttings density and diameter) are different within the same formation top, the user can decide to split the hole section as needed. e. Once the hole section is defined and the rest of the input data, such as mud motor information, injection and pumping conditions and rate, surface line dimensions, multiphase flow model and temperature profile, are set, the operational envelop on run measured depth (as the borehole is being drilled) by interlayer formation will be displayed.

[0041] The computation of a bottom-hole pressure at a plurality of measured depths is illustrated in Figs. 8A-8D. The computation includes executing a "defining the formation tops along with lithology" process (block 802) which uses information from a "run measured depth" process run at depth i (block 804), depth i+1 (block 806), and at all other depths of interest (block 808), as shown in Fig. 8 A.

[0042] The "run measured depth" process (block 810), shown in more detail in Fig. 8B, uses information from a "define the open hole section for formation top" process (block 812) and a "bottom hole pressure" process (block 814).

[0043] The "bottom hole pressure" process (block 814), shown in more detail in Fig. 8C, uses information from a "slip velocity" process (block 816), the gas injection rate and the pump injection rate (block 818), and a "multiphase model" (block 820).

[0044] The "slip velocity" process (block 816), shown in more detail in Fig. 8D, uses the cuttings dimensions (block 822), the particle apparent velocity (block 824), and a "cuttings lithology" process (block 826), where cuttings lithology is defined to be the shape, size, and lithology of the cuttings. The "cuttings lithology" process (block 826) uses information from a "particle flow regime" process (block 828). The "particle flow regime" process (block 828) uses information from a "laminar" process (block 830), if the particle flow is expected to be laminar, and a "turbulent" process (block 832) if the particle flow is expected to be turbulent. If the "laminar" process (block 830) is executed, slip velocity is computed as an empirical correlation based on lithology (block 834). If the "turbulent" process (block 832) is executed, slip velocity is based on drag forces and friction factors using the sphericity of the cuttings (block 836).

[0045] The computation of a two dimensional operating envelop (such as element 502 in Fig. 5 and elements 602, 604, 606, 608, and 610 in Fig. 6) that takes cuttings lithology into consideration, shown in Fig. 9, defines the formation tops along with lithology (block 902) at string bottom measured depth "I" (block 904). The process generates the operating envelop if (block 906):

• the minimum motor equivalent liquid flow rate (abbreviated in Fig. 9 as "Min. Motor ELV") < the maximum motor equivalent liquid low rate (abbreviated in Fig. 9 as "Max Motor ELV") or

• the minimum liquid velocity (abbreviated in Fig. 9 as "Min. Liquid Velocity") < the minimum motor equivalent liquid flow rate < the maximum motor equivalent liquid low rate.

[0046] The process for generating the operating envelop (block 906) uses:

• a defined target pressure (block 908),

• a minimum annular velocity for hole cleaning at gas injection rates from i until i + n (block 912),

• a maximum equivalent rate curve at gas injection rates from i until i + n (block 914),

• a minimum equivalent rate curve at gas injection rates from i until i + n (block 916), and

• a bottom-hole pressure at liquid pumped curves for every liquid pumped "i" at gas injection rates from i until i + n (block 918).

[0047] Blocks 912, 914, 916, and 918 use the bottom-hole pressure (BHP) (block 814), see Fig. 8C, which, in turn, is based in part on slip velocity (block 816), see Fig. 8C.

[0048] The computation of a three dimensional operating envelop (such as element 612 in Fig. 6 or element 702 in Fig. 7) that takes cuttings lithology into consideration, shown in Fig. 10, defines the formation tops along with lithology (block 1002). This process uses the operating envelop generated using the process and under the conditions defined in block 906, see Fig. 9, for measured depth i (block

1004), where i is the initial depth, measured depth i + n (block 1006), where n is the step size in depth, measured depth i+2n (block 1008), measured depth i+3n (block 1010), and so on, through measured depth i+xn (block 1012), where x is the number of steps.

[0049] Options for a user interface include:

• two dimensional or three dimensional view,

• the two dimensional view will correspond to a predefined gas and injection rate per hole section,

• the two dimensional view will show the formation top column and the lithology per hole section,

• the Y axis will display the run measured depth,

• the X axis will display the annular bottom-hole pressure.

[0050] For the three dimensional view, in addition to what is included on the two dimensional view, the user will define a range of liquid and gas injection/pumping rates:

• the Z axis will be the gas injection rate,

• the Y axis will display the run measured depth,

• the X axis will display the annular bottom-hole pressure,

• the pumping liquid rate will be displayed,

• the formation tops will be displayed, and

• the user can decide whether to have the target pressure or the pore pressure displayed for every formation top.

[0051] The calculation of the operating envelop based on a cuttings slip model specific to a geological formation uses empirical correlations that describe the effect given by different formations: shale, sandstone, and limestone. For positive cuttings transport ratios, cuttings will be transported to the surface. Otherwise, they will remain in the borehole. [0052] Particle slip velocity, as determined in Fig. 8D (element 816) and used in Fig. 8C, is defined as the rate at which a cutting of a given diameter and specific gravity settles out of a fluid. Slip velocity may be determined using Moore's correlation (from PetroWiki article on Cuttings transport, htt ://petrowiki .org/Cuttings transport, accessed on June 7, 2015): where μ α = apparent viscosity, Pa-s;

K = consistency index for pseudoplastic fluid, Pa-s 11 ; n = power law index;

D 0 = annulus inside diameter in meters;

Di = annulus outside diameter in meters; and v = annulus average flow velocity.

[0053] The terminal velocity (Reynolds number) of a small spherical particle settling (i.e., slipping) through Newtonian fluid under laminar flow conditions, as shown in Fig. 11, is given by Stake's Law. Stake's Law gives acceptable accuracy for Reynolds numbers for a particle < 0.1.

[0054] For turbulent slip velocities, where the Reynolds number is > 0.1, such as is shown in Figs. 12 and 13, an empirical friction factor may be used. For turbulent slip velocities, the drag force is given by:

[0055] where "f" is an empirically determined friction factor as a function of the particle Reynolds number and the shape of the particle given by ψ, the "sphericity." [0056] Sphericity can be determined using a lookup table such as that shown in Fig. 14. Once that is known, the particle Reynolds Number can be derived from a set of curves, such as those shown in Fig. 15. Figs. 14 and 15 are from Sifferman, T.R., Myers, G.M., Haden, E . et al. 1974, "Drill Cutting Transport in Full Scale Vertical Annuli," J. Pet. Tech. 26 (11): 1295-1302. SPE-4514.

[0057] For the slip velocity calculations: given a solid particle defined by a drilled interval, calculate a slip velocity using the empirical correlations derived by Gray, K.E.: "The Cutting Carrying Capacity of Air at Pressures Above Atmospheric," Petroleum Transactions AIME, vol. 213, pp. 180 (1958) then determine the cuttings transport ratio for laminar flow.

[0058] For shale and limestone formations (flat particles)(Gray, equation 7): where:

V s i is the slip velocity, D is the particle diameter, T is local temperature, p s is cuttings density, and P is local pressure. [0059] For sandstone (sub-rounded particles)(Gray equation 9):

[0060] For turbulent flow (Gray equation 20 rearranged):

(5)

3 PffD where: where: g is the gravitational constant, Pf is fluid density, fo is the friction factor. [0061] Then define the cuttings ratio as:

F t = l - f V (6)

F t gives an indication of the amount of cuttings being removed from the annular space. If F t is close to 1, the liquid phase is transporting the cuttings (the solid phase) out of the annular space. If F t is close to zero, the velocity of the liquid phase is not enough to remove the cuttings.

[0062] In the case of the non-Newtonian fluids, new factors need to be accounted for the particle-settling calculation. For Bingham fluids, the particle will remain suspended with no settling if:

τ ν ≥— -pf l

δ

(?)

[0063] Where x y is the fluid yield point and d s is the particle diameter. Then the apparent viscosity, μ α as defined by Chien, Sze-Foo, "Laminar Flow Pressure Loss and Flow Pattern Transition of Bingham Plastics in Pipes and Annuli," Society of Petroleum Engineers (SPE2459 1968)(see Chien, equation 49):

(8)

[0064] Where μ ρ is the plastic viscosity, x y is defined in equation (7), and υ is kinematic velociy.

[0065] Based on the multiphase flow model the mixture density will be determined taking into account the slip velocity. [0066] Today's UBD engineer is required to model the impact of cuttings loading for a complete hole section. Given the complexity of geological environments currently being drilled, modeling interlayer formations, including cutting loadings specific to those environments, will allow a more accurate prediction of bottom-hole pressure. These improved predictions will reduce risks associated with UBD drilling as well as improving drilling parameters, such as hole cleaning.

[0067] In one aspect, a method features preparing a model to drill a borehole with a bottom hole assembly ("BHA") through a plurality of formations including a first formation and a second formation. The method includes defining a first- formation formation top to be a depth at which the BHA will enter the first formation, a second-formation formation top to be a depth at which the BHA will enter the second formation, wherein the first-formation formation top is at a shallower depth than the second- formation formation top, a first-formation lithography for the first formation, and a second-formation lithography for the second formation. The method includes computing with a processor a first- formation operating envelop at the first-formation top within which a first-formation-bottom-hole pressure (FFBHP) in a first- formation annular volume within the borehole adjacent to the BHA as the BHA passes through the first-formation top is in an underbalanced condition, wherein the first-formation operating envelop is computed as a function of the lithography of the first formation. The method includes computing with the processor a second-formation operating envelop at the second-formation top within which a second-formation-bottom-hole pressure (SFBHP) in a second- formation annular volume within the borehole adjacent to the BHA as the BHA passes through the second-formation top is in an underbalanced condition, wherein the second-formation operating envelop is computed as a function of the lithography of the second formation. The method includes drilling the borehole according to the model. The method includes adjusting drilling parameters to keep the FFBHP within the first-formation operating envelop when drilling through the first formation, and to keep the SFBHP within the second- formation operating envelop when drilling through the second formation.

[0068] Implementations of the invention may include one or more of the following. FFBHP may be a function of a plurality of drilling parameters and a slip velocity of first-formation cuttings produced by the BHA from the first formation as it passes through the first formation. The slip velocity of first- formation cuttings produced by the BHA from the first formation as it passes through the first- formation top may be computed as a function of the dimensions of first-formation cuttings, the particle apparent velocity of first-formation cuttings, the shape, size, and sphericity of first-formation cuttings, and the particle flow regime of first-formation cuttings. The particle flow regime of first-formation cuttings may be selected from the group consisting of laminar flow and turbulent flow. The plurality of drilling parameters may include a liquid injection rate at which drilling fluids are injected into the well and a gas injection rate at which gas is injected into the well. SFBHP may be a function of a plurality of drilling parameters and a slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second formation. The slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second-formation top may be computed as a function of the dimensions of second-formation cuttings, the particle apparent velocity of second-formation cuttings, the shape, size, and sphericity of second-formation cuttings, and the particle flow regime of second-formation cuttings. The particle flow regime of second-formation cuttings may be selected from the group consisting of laminar flow and turbulent flow. The plurality of drilling parameters may include a liquid injection rate at which drilling fluids are injected into the well and a gas injection rate at which gas is injected into the well.

[0069] In one aspect a method features preparing a model to drill a borehole with a bottom hole assembly ("BHA") through a plurality of formations comprising a first formation and a second formation. The method includes defining a first depth to be a depth at which the BHA is passing through the first formation, a second depth to be a depth at which the BHA is passing through the second formation, wherein the first depth is at a shallower depth than the second depth, a first-formation lithography for the first formation, and a second- formation lithography for the second formation. The method includes computing with a processor a first-formation operating envelop within which a first-formation bottom hole pressure ("FFBHP") in a first-formation annular volume within the well adjacent to the BHA as the BHA passes through the first formation in an underbalanced condition, wherein the first-formation operating envelop is computed as a function of the lithography of the first formation. The method further includes computing with the processor a second-formation operating envelop within which a second- formation bottom hole pressure ("SFBHP") in a second-formation annular volume within the well adjacent to the BHA as the BHA passes through the second formation is in an underbalanced condition, wherein the second-formation operating envelop is computed as a function of the lithography of the second formation. The method further includes drilling the well according to the well-drilling plan. The method further includes adjusting drilling parameters to keep the well within the first-formation operating envelop when drilling through the first formation, and to keep the well within the second- formation operating envelop when drilling through the second formation. [0070] Implementations of the invention may include one or more of the following. FFBHP may be a function of a plurality of drilling parameters and a slip velocity of first-formation cuttings produced by the BHA from the first formation as it passes through the first formation. The slip velocity of first- formation cuttings produced by the BHA from the first formation as it passes through the first depth may be computed as a function of the dimensions of first-formation cuttings, the particle apparent velocity of first-formation cuttings, the shape, size, and sphericity of first-formation cuttings, and the particle flow regime of first-formation cuttings. The particle flow regime of first-formation cuttings may be selected from the group consisting of laminar flow and turbulent flow. The plurality of drilling parameters may include a liquid injection rate at which drilling fluids are injected into the well and a gas injection rate at which gas is injected into the well. SFBHP may be a function of a plurality of drilling parameters and a slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second formation. The slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second depth may be computed as a function of the dimensions of second-formation cuttings, the particle apparent velocity of second-formation cuttings, the shape, size, and sphericity of second-formation cuttings, and the particle flow regime of second- formation cuttings. The particle flow regime of second-formation cuttings may be selected from the group consisting of laminar flow and turbulent flow. The plurality of drilling parameters may include a liquid injection rate at which drilling fluids are injected into the well and a gas injection rate at which gas is injected into the well.

[0071] In one aspect, a non-transitory computer-readable medium, on which is recorded a computer program that, when executed, performs a method including preparing a model to drill a borehole with a bottom hole assembly ("BHA") through a plurality of formations comprising a first formation and a second formation. The method includes defining a first-formation formation top to be a depth at which the BHA will enter the first formation, a second- formation formation top to be a depth at which the BHA will enter the second formation, wherein the first-formation formation top is at a shallower depth than the second-formation formation top, a first-formation lithography for the first formation, and a second- formation lithography for the second formation. The method includes computing with a processor a first-formation operating envelop at the first-formation top within which a first-formation-bottom-hole pressure (FFBHP) in a first- formation annular volume within the borehole adjacent to the BHA as the BHA passes through the first- formation top is in an underbalanced condition, wherein the first- formation operating envelop is computed as a function of the lithography of the first formation. The method includes computing with the processor a second-formation operating envelop at the second-formation top within which a second-formation-bottom-hole pressure (SFBHP) in a second-formation annular volume within the borehole adjacent to the BHA as the BHA passes through the second- formation top is in an underbalanced condition, wherein the second-formation operating envelop is computed as a function of the lithography of the second formation. The method includes drilling the borehole according to the model. The method includes adjusting drilling parameters to keep the FFBHP within the first- formation operating envelop when drilling through the first formation, and to keep the SFBHP within the second- formation operating envelop when drilling through the second formation.

[0072] Implementations of the invention may include one or more of the following. FFBHP may be a function of a plurality of drilling parameters and a slip velocity of first-formation cuttings produced by the BHA from the first formation as it passes through the first formation. The slip velocity of first- formation cuttings produced by the BHA from the first formation as it passes through the first- formation top may be computed as a function of the dimensions of first-formation cuttings, the particle apparent velocity of first-formation cuttings, the shape, size, and sphericity of first-formation cuttings, and the particle flow regime of first-formation cuttings. The particle flow regime of first-formation cuttings may be selected from the group consisting of laminar flow and turbulent flow. The plurality of drilling parameters may include a liquid injection rate at which drilling fluids are injected into the well and a gas injection rate at which gas is injected into the well. Computing the second-formation operating envelop may include computing with the processor a second-formation bottom hole pressure ("SFBHP") in the second-formation annular area as the BHA passes through the second-formation top, wherein SFBHP is a function of a plurality of drilling parameters and a slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second formation. The slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second-formation top may be computed as a function of the dimensions of second-formation cuttings, the particle apparent velocity of second-formation cuttings, the shape, size, and sphericity of second- formation cuttings, and the particle flow regime of second-formation cuttings. The particle flow regime of second-formation cuttings may be selected from the group consisting of laminar flow and turbulent flow. The plurality of drilling parameters may include a liquid injection rate at which drilling fluids are injected into the well and a gas injection rate at which gas is injected into the well. [0073] In one aspect, a non-transitory computer-readable medium, on which is recorded a computer program that, when executed, performs a method including preparing a model to drill a borehole with a bottom hole assembly ("BHA") through a plurality of formations comprising a first formation and a second formation. The method includes defining a first depth to be a depth at which the BHA is passing through the first formation, a second depth to be a depth at which the BHA is passing through the second formation, wherein the first depth is at a shallower depth than the second depth, a first-formation lithography for the first formation, and a second-formation lithography for the second formation. The method includes computing with a processor a first-formation operating envelop within which a first- formation bottom hole pressure ("FFBHP") in a first-formation annular volume within the well adjacent to the BHA as the BHA passes through the first formation in an underbalanced condition, wherein the first-formation operating envelop is computed as a function of the lithography of the first formation. The method includes computing with the processor a second-formation operating envelop within which a second-formation bottom hole pressure ("SFBHP") in a second-formation annular volume within the well adjacent to the BHA as the BHA passes through the second formation is in an underbalanced condition, wherein the second-formation operating envelop is computed as a function of the lithography of the second formation. The method includes drilling the well according to the well-drilling plan. The method includes adjusting drilling parameters to keep the well within the first-formation operating envelop when drilling through the first formation, and to keep the well within the second-formation operating envelop when drilling through the second formation.

[0074] Implementations may include one or more of the following. FFBHP may be a function of a plurality of drilling parameters and a slip velocity of first-formation cuttings produced by the BHA from the first formation as it passes through the first formation. The slip velocity of first-formation cuttings produced by the BHA from the first formation as it passes through the first depth may be computed as a function of the dimensions of first-formation cuttings, the particle apparent velocity of first-formation cuttings, the shape, size, and sphericity of first- formation cuttings, and the particle flow regime of first- formation cuttings. The particle flow regime of first-formation cuttings may be selected from the group consisting of laminar flow and turbulent flow. The plurality of drilling parameters may include a liquid injection rate at which drilling fluids are injected into the well and a gas injection rate at which gas is injected into the well. SFBHP may be a function of a plurality of drilling parameters and a slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second formation. The slip velocity of second-formation cuttings produced by the BHA from the second formation as it passes through the second depth is computed as a function of the dimensions of second- formation cuttings, the particle apparent velocity of second-formation cuttings, the shape, size, and sphericity of second-formation cuttings, and the particle flow regime of second-formation cuttings. The particle flow regime of second-formation cuttings may be selected from the group consisting of laminar flow and turbulent flow. The plurality of drilling parameters may include a liquid injection rate at which drilling fluids are injected into the well and a gas injection rate at which gas is injected into the well.

[0075] The word "coupled" herein means a direct connection or an indirect connection.

[0076] The text above describes one or more specific embodiments of a broader invention. The invention also is carried out in a variety of alternate embodiments and thus is not limited to those described here. The foregoing description of an embodiment of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the invention be limited not by this detailed description, but rather by the claims appended hereto.