Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
TRAJECTORY CONTROL FOR DIRECTIONAL DRILLING
Document Type and Number:
WIPO Patent Application WO/2021/154294
Kind Code:
A1
Abstract:
A method for controlling a drilling trajectory of a wellbore includes computing a position and attitude of a drill bit within a wellbore. The method further includes computing a wellbore trajectory error between (i) the position of the drill bit and a well plan position and (ii) the attitude of the drill bit and a well plan attitude. Further, the method includes determining an inclination set-point change command and an azimuth set-point change command using the wellbore trajectory error. Additionally, the method includes steering the drill bit using the inclination set-point change command and the azimuth set-point change command.

Inventors:
ZALLUHOGLU UMUT (US)
DARBE ROBERT (US)
Application Number:
PCT/US2020/016207
Publication Date:
August 05, 2021
Filing Date:
January 31, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HALLIBURTON ENERGY SERVICES INC (US)
International Classes:
E21B7/04; E21B44/02; E21B47/09
Foreign References:
US20190345771A12019-11-14
US20130048383A12013-02-28
US20200011167A12020-01-09
US20150247397A12015-09-03
US20180187542A12018-07-05
Attorney, Agent or Firm:
GARDNER, Jason D. et al. (US)
Download PDF:
Claims:
Claims

What is claimed is:

1. A system comprising: a sensor positionable within a wellbore to detect a position and attitude of a drill bit within the wellbore; a rotary steerable system positionable within the wellbore to steer the drill bit; a processing device positionable to communicatively couple to the sensor and the rotary steerable system; and a memory device comprising instructions that are executable by the processing device for causing the processing device to: receive sensor signals from the sensor; compute a wellbore trajectory error between (i) the position of the drill bit and a well plan position and (ii) the attitude of the drill bit and a well plan attitude; determine an inclination set-point change command, an azimuth set-point change command, or both using the wellbore trajectory error; and transmit the inclination set-point change command and the azimuth set-point change command to the rotary steerable system to steer the drill bit.

2. The system of claim 1, wherein the inclination set-point change command and the azimuth set-point change command are determined using the wellbore trajectory error applied to a linear-quadratic regulator (LQR) control approach.

3. The system of claim 1, wherein the inclination set-point change command and the azimuth set-point change command are determined by minimizing a performance index.

4. The system of claim 1, wherein the rotary steerable system maintains an inclination angle and an azimuth angle until a new inclination set-point change command and a new azimuth set-point change command are received at the rotary steerable system.

5. The system of claim 1, wherein determining the inclination set-point change command and the azimuth set-point change command accounts for a response depth comprising a spatial delay, a telemetry delay, a closed-loop borehole propagation dynamics delay, or a combination thereof.

6. The system of claim 1, wherein the position of the drill bit comprises an indication of a true vertical depth and a lateral distance.

7. The system of claim 1, wherein the attitude of the drill bit comprises an indication of an inclination angle and an azimuth angle of the drill bit.

8. The system of claim 1, wherein the inclination set-point change command and the azimuth set-point change command are determined using the wellbore trajectory error applied to a linear-quadratic-Gaussian (LQG) control approach.

9. A method comprising: computing a position and attitude of a drill bit within a wellbore; computing a wellbore trajectory error between (i) the position of the drill bit and a well plan position and (ii) the attitude of the drill bit and a well plan attitude; determining an inclination set-point change command and an azimuth set-point change command using the wellbore trajectory error; and steering the drill bit using the inclination set-point change command and the azimuth set-point change command.

10. The method of claim 9, wherein the inclination set-point change command and the azimuth set-point change command are determined using the wellbore trajectory error applied to a linear-quadratic regulator (LQR) control approach.

11. The method of claim 9, wherein the inclination set-point change command and the azimuth set-point change command are determined by minimizing a performance index.

12. The method of claim 9, wherein steering the drill bit comprises a rotary steerable system maintaining an inclination angle and an azimuth angle until a new inclination set- point change command and a new azimuth set-point change command are received at the rotary steerable system. 13. The method of claim 9, wherein determining the inclination set-point change command and the azimuth set-point change command accounts for a response depth comprising a spatial delay, a telemetry delay, a closed-loop borehole propagation dynamics delay, or a combination thereof.

14. The method of claim 9, wherein the position of the drill bit comprises an indication of a true vertical depth and a lateral distance.

15. The method of claim 9, wherein the attitude of the drill bit comprises an indication of an inclination angle and an azimuth angle of the drill bit.

16. A non-transitory computer-readable medium comprising program code that is executable by a processing device for causing the processing device to: receive sensor signals from a sensor; determine a position and attitude of a drill bit within a wellbore using the sensor signals; compute a wellbore trajectory error between (i) the position and a well plan position and (ii) the attitude and a well plan attitude; determine an attitude set-point change command using the wellbore trajectory error; and transmit the attitude set-point change command to a rotary steerable system to steer the drill bit.

17. The non-transitory computer-readable medium of claim 16, wherein the attitude set- point change command comprises an inclination set-point change command, an azimuth set- point change command, or a combination of the inclination set-point change command and the azimuth set-point change command.

18. The non-transitory computer-readable medium of claim 16, wherein the attitude set- point change command is determined using the wellbore trajectory error applied to a linear- quadratic regulator (LQR) control approach.

19. The non-transitory computer-readable medium of claim 16, wherein determining the attitude set-point change command accounts for a response depth comprising a spatial delay, a telemetry delay, a closed-loop borehole propagation dynamics delay, or a combination thereof.

20. The non-transitory computer-readable medium of claim 16, wherein the position of the drill bit comprises an indication of a true vertical depth and a lateral distance, and wherein the attitude of the drill bit comprises an indication of an inclination angle and an azimuth angle.

Description:
TRAJECTORY CONTROL FOR DIRECTIONAL DRILLING

Technical Field

[0001] The present disclosure relates generally to systems and methods for use in a well drilling environment. More specifically, but not by way of limitation, this disclosure relates to autonomously controlling a wellbore drilling trajectory based on a dynamic well plan.

Background

[0002] As wellbores are drilled into a formation, a drilling trajectory may stray from a planned trajectory indicated in a well plan. A directional driller may correct for the stray (i.e., a wellbore trajectory error) by downlinking inclination and azimuth set-point changes or set points to a rotary steerable system that steers a drill bit. Depending on a skill of the directional driller, the downlinked inclination and azimuth set-point changes may be inaccurate. Inaccuracies in the inclination and azimuth set-point changes may result in further wellbore trajectory error and oscillatory boreholes. Additionally, reliance on the directional driller to downlink the inclination and azimuth set-point changes may result in a late trajectory change that does not account for additional wellbore trajectory error that occurs while the directional driller is determining the new inclination and azimuth set-point changes.

Brief Description of the Drawings

[0003] FIG. 1 is a cross-sectional view of an example of a well system incorporating a trajectory control system according to one aspect of the present disclosure.

[0004] FIG. 2 depicts a vertical and lateral plane of a bottom hole assembly according to one aspect of the present disclosure.

[0005] FIG. 3 depicts a block diagram of vertical plan control of a rotary steerable system according to one aspect of the present disclosure.

[0006] FIG. 4 depicts a block diagram of lateral plane control of the rotary steerable system according to one aspect of the present disclosure.

[0007] FIG. 5 is a flowchart describing a process for controlling a rotary steerable system according to one aspect of the present disclosure.

[0008] FIG. 6 is a block diagram of an example of a trajectory control system according to one aspect of the present disclosure. Detailed Description

[0009] Certain aspects and features relate to a trajectory control system usable for controlling a rotary steerable system during a wellbore drilling operation. For example, the trajectory control system can receive information from sensors capable of determining a position of the rotary steerable system within the wellbore. Based on the measured position, the trajectory control system can determine a wellbore trajectory error. That is, the trajectory control system can determine a difference between a planned trajectory of the wellbore and the actual trajectory of the wellbore. Using the wellbore trajectory error, the trajectory control system may perform a performance index algorithm to minimize further wellbore trajectory error based on trajectory changes of the rotary steerable system. A performance index of the performance index algorithm may be a function of the wellbore trajectory error in position and an error in attitude of the rotary steerable system, which may include an error in inclination of a drill bit controlled by the rotary steerable system, an error in an azimuth of the drill bit controlled by the rotary steerable system, or a combination thereof. A change to inclination and azimuth of the drill bit that produces the smallest performance index in the performance index algorithm may be provided from the trajectory control system to the rotary steerable system to adjust the trajectory of the drill bit.

[0010] Some examples can provide systems and methods usable to control a trajectory of a rotary steerable system during a drilling operation of a wellbore. The wellbore trajectory error in both position and attitude may be calculated every time a survey is taken or periodically with continuous survey feedback from the rotary steerable system (e.g., from any survey tool, such as a measurement-while-drilling (MWD) package). The wellbore trajectory error may be calculated based on a difference between a target trajectory of a well plan and the actual trajectory measured with the surveys. The trajectory control system may use the wellbore trajectory error to determine inclination and azimuth set-point changes of the rotary steerable system that minimize a performance index associated with the wellbore trajectory error. These set-point changes are then used by the rotary steerable system for drilling a wellbore until new set-point changes are determined based on subsequent wellbore trajectory error measurements.

[0011] Enabling drilling automation by communicating automated inclination and azimuth set-point changes to the rotary steerable system may reduce error associated with input from directional drillers. The inclination and azimuth set-point changes may be communicated to the rotary steerable system that uses cruise controllers (e.g., attitude-hold controllers, inclination-hold controllers, or azimuth-hold controllers that hold) to hold the target inclination angle, azimuth angle, or both. Additionally, the inclination and azimuth set-point changes may be independently calculated with parallel controllers to control the trajectory in vertical and lateral planes that are perpendicular to one another.

[0012] These illustrative examples are given to introduce the reader to the general subject matter discussed here and are not intended to limit the scope of the disclosed concepts. The following sections describe various additional features and examples with reference to the drawings in which like numerals indicate like elements, and directional descriptions are used to describe the illustrative aspects but, like the illustrative aspects, should not be used to limit the present disclosure.

[0013] FIG. 1 is a cross-sectional view of a well system 10 incorporating a trajectory control system 90 according to some examples of the present disclosure. The well system 10 can include a wellbore 12 extending through various earth strata in an oil and gas formation 14 (e.g., a subterranean formation) located below the well surface 16. The wellbore 12 may be formed of a single bore or multiple bores extending into the formation 14, and disposed in any orientation. The well system 10 can include a derrick or drilling rig 20. The drilling rig 20 may include a hoisting apparatus 22, a travel block 24, and a swivel 26 for raising and lowering casing, drill pipe, coiled tubing, and other types of pipe or tubing strings or other types of conveyance vehicles, such as wireline, slickline, and the like. The wellbore 12 can include a drill string 30 that is a substantially tubular, axially-extending drill string formed of a drill pipe joints coupled together end-to-end.

[0014] The drilling rig 20 may include a kelly 32, a rotary table 34, and other equipment associated with rotation or translation of drill string 30 within the wellbore 12. For some applications, the drilling rig 20 may also include a top drive unit 36. The drilling rig 20 may be located proximate to a wellhead 40, as shown in FIG. 1, or spaced apart from the wellhead 40, such as in the case of an offshore arrangement. One or more pressure control devices 42, such as blowout preventers (BOPs) and other well equipment may also be provided at wellhead 40 or elsewhere in the well system 10. Although the well system 10 of FIG. 1 is illustrated as being a land-based drilling system, the well system 10 may be deployed offshore.

[0015] A drilling or service fluid source 52 may supply a drilling fluid 58 pumped to the upper end of the drill string 30 and flowed through the drill string 30. The fluid source 52 may supply any fluid utilized in wellbore operations, including drilling fluid, drill-in fluid, acidizing fluid, liquid water, steam, or some other type of fluid.

[0016] The well system 10 may have a pipe system 56. For purposes of this disclosure, the pipe system 56 may include casing, risers, tubing, drill strings, subs, heads or any other pipes, tubes or equipment that attaches to the foregoing, such as the drill string 30, as well as the wellbore and laterals in which the pipes, casing, and strings may be deployed. In this regard, the pipe system 56 may include one or more casing strings 60 cemented in the wellbore 12, such as the surface 60a, intermediate 60b, and other casing strings 60c shown in FIG. 1. An annulus 62 is formed between the walls of sets of adjacent tubular components, such as concentric and non-concentric casing strings 60 or the exterior of drill string 30 and the inside wall of the wellbore 12 or the casing string 60c.

[0017] Where the subsurface equipment 54 is used for drilling and the conveyance vehicle is a drill string 30, the lower end of the drill string 30 may include a bottom hole assembly 64, which may carry at a distal end a drill bit 66. During drilling operations, a weight-on-bit is applied as the drill bit 66 is rotated, thereby enabling the drill bit 66 to engage the formation 14 and drill the wellbore 12 along a predetermined path toward a target zone. In general, the drill bit 66 may be rotated with the drill string 30 from the drilling rig 20 with the top drive unit 36 or the rotary table 34, or with a downhole mud motor 68 within the bottom hole assembly 64.

[0018] The bottom hole assembly 64 or the drill string 30 may include various other tools, including a power source 69, a rotary steerable system 71, and measurement equipment 73, such as measurement while drilling (MWD) or logging while drilling (LWD) instruments, sensors, circuits, or other equipment to provide information about the wellbore 12 or the formation 14, such as positioning, logging, or measurement data from the wellbore 12.

[0019] Measurement data and other information from the tools may be communicated using electrical signals, acoustic signals, or other telemetry that can be received at the well surface 16 to, among other things, monitor the performance of the drill string 30, the bottom hole assembly 64, and the associated drill bit 66, as well as monitor the conditions of the environment to which the bottom hole assembly 64 is subjected (e.g., drilling fluid 58 flow rate).

[0020] The drilling fluid 58 may be pumped to the upper end of drill string 30 and flow through a longitudinal interior 70 of the drill string 30, through the bottom hole assembly 64, and exit from nozzles formed in the drill bit 66. At the bottom end 72 of the wellbore 12, the drilling fluid 58 may mix with formation cuttings, formation fluids (e.g., fluids containing gasses and hydrocarbons) and other downhole fluids and debris. The drilling fluid mixture may then flow upwardly through an annulus 62 to return formation cuttings and other downhole debris to the well surface 16.

[0021] After drilling through a portion of the formation 14 or while drilling through the formation 14, the measurement equipment 73 can provide survey feedback to the trajectory control system 90. In some examples, the trajectory control system 90 can analyze the survey feedback from the measurement equipment 73 to determine a position (i.e., a true vertical depth and a lateral distance) and attitude (i.e., an inclination and an azimuth) of the drill bit 66 within the wellbore 12. The trajectory control system 90 can compare the position and attitude of the drill bit 66 to well plan mappings in a database to determine a wellbore trajectory error. In an example, the wellbore trajectory error represents a difference between the actual trajectory of the wellbore 12 and the trajectory of the wellbore 12 anticipated in the well plan.

[0022] Based on the wellbore trajectory error, the trajectory control system 90 may provide inclination and azimuth set-point changes to the rotary steerable system 71. The inclination and azimuth set-point changes may provide an indication of a new desired trajectory of the drill bit 66 to the rotary steerable system 71 to minimize the wellbore trajectory error. As the drill bit 66 continues to drill the wellbore 12, the trajectory control system 90 may continue to adjust the inclination and azimuth set-point changes based on the survey feedback information from the measurement equipment 73.

[0023] Further, while the trajectory control system 90 is depicted as surface equipment, in some examples the trajectory control system 90 may be implemented downhole within the wellbore 12. For example, the trajectory control system 90 may be positioned as part of the bottom hole assembly 64. By installing the trajectory control system 90 at the bottom hole assembly 64, communications lag may be avoided (e.g., from communicating information from the measurement equipment 73 to the surface, and returning communications from the surface to the rotary steerable system 71) such that the inclination and azimuth set-point changes may be implemented in a quicker manner when compared to a surface position of the trajectory control system 90. Additionally, while FIG. 1 depicts the trajectory control system 90 operating in a land-based drilling environment, the trajectory control system 90 may also be implemented in an offshore drilling environment. [0024] FIG. 2 depicts a vertical plane 202 and lateral plane 204 of a bottom hole assembly according to one aspect of the present disclosure. The inclination set-point change may enable the rotary steerable system 71 of the bottom hole assembly 64 to control the drill bit 66 in the vertical plane 202. Additionally, the azimuth set-point change may enable the rotary steerable system 71 to control the drill bit 66 in the lateral plane 204. By combining the set-point changes to both the azimuth and the inclination, the rotary steerable system 71 is able to control direction of the drilling by the drill bit 66 toward the trajectory indicated by the well plan.

[0025] In an example, each time a new survey feedback is received by the trajectory control system 90 (e.g., indicating a new position and attitude of the drill bit 66), a new set of inclination and azimuth set-point changes are generated and provided to the rotary steerable system 71. The new survey feedback may be generated by the measurement equipment 73 during a stationary period of the drill bit 66 (e.g., while new sections of tubing are added to the drill string 30). In another example, the new survey feedback may be provided to the trajectory control system 90 periodically when the measurement equipment 73 provides continuous survey feedback during the drilling operations.

[0026] FIG. 3 depicts a block diagram 300 of vertical plane control of the rotary steerable system 71 according to one aspect of the present disclosure. In the vertical plane 202, the position of the drill bit 66 may be defined by a true vertical depth (TVD). The TVD may be computed as a function of inclination measurements at every stationary survey depth (or periodic survey depth).

[0027] A TVD tracker 302 of the trajectory control system 90 may receive a reference TVD (i.e., TVDr) and a reference inclination angle (i.e., 0r) from a well plan 303. Additionally, the TVD tracker 302 may receive a measured TVD and a measured inclination angle Q from a cruise controller 304 (e.g., an inclination-hold controller) of the rotary steerable system 71. The reference inclination angle and the measured inclination angle may be relative to a direction of gravity. By comparing the reference TVD with the measured TVD and the reference inclination angle with the measured inclination angle, the TVD tracker 302 may output an inclination set-point change (i.e., AOSET) to the cruise controller 304 of the rotary steerable system 71. The cruise controller 304 uses the inclination set-point change to control an inclination angle of the rotary steerable system 71 until a subsequent inclination set-point change is received. [0028] In an example, the inclination set-point change may be an indication of a change to the inclination angle at which the cruise controller 304 is currently operating. For example, if the cruise controller 304 is operating at 0.785 radians (i.e., 45 degrees), and the inclination set-point change received by the cruise controller 304 is 0.01 radians, then the cruise controller 304 may adjust the inclination angle to 0.795 radians. Similarly, if the inclination set-point change received by the cruise controller 304 is -0.01 radians, then the cruise controller 304 may adjust the inclination angle to 0.775 radians.

[0029] To illustrate this control process mathematically, a discrete depth domain representation of inclination Q (e.g., in radians) is controlled with an input u (e.g., the inclination set-point change also in radians). The controlled input u is considered to be a change of inclination. That is, u is equal to DQ. Dynamics may be modeled with the assumption that u(k) at step k directly influences 0(k+l) at step k+1. Then propagation of Q from step k to step k+1 can be written as: (Equation 1) given an inclination at k= 0. Rather than the absolute value of Q, an error of inclination with respect to a reference inclination (e.g., from the well plan 303) is of interest. Accordingly, the system can be represented in terms of inclination error as: (Equation 2) where is equal to 0(k) — 0 r (k) and given a reference inclination at k= 0. Similarly, a derivation of the propagation of true vertical depth, T, from step k to step k+ 1 is as follows: (Equation 3) where x represents a propagation distance (i.e., in feet) and To represents an initial reference TVD. x may be considered to be a survey-to- survey distance traversed by the drill bit 66. An error between the actual TVD and the reference TVD may be written as: (Equation 4) where E T (k) is equal to and is the reference TVD at k= 0.

[0030] A position deviation of the drill bit 66 from the well plan may be indicated as follows:

(Equation 5) A position deviation greater than zero may indicate that at step k the drill bit 66 is projected above a position indicated in the well plan 303 in the vertical plane. Accordingly, a further representation of the position deviation is as follows: (Equation 6)

[0031] As approaches 0, the following two-step approximation may be made: (Equation 7)

This approximation enables linearization of a model as long as Q is in the vicinity of Q r. Thus, the propagation of A from step k to step k+ 1 can be written as follows: (Equation 8) Substituting Equation 2 into Equation 8 provides: (Equation 9)

Combining Equations 2 and 9 and selecting inclination deviation and position deviation as the states, x , a simplified discrete borehole propagation can be represented in state-space form as:

(Equation 10) where A and B are as follows:

A = (Equation 11)

Equation 10 may represent the state of the system by providing an indication of both an error in inclination and an error in TVD. Further, a step size in the model represented by Equation 10 is a survey-to-survey distance x.

[0032] A control strategy may be implemented that corresponds with Equations 1-11 and FIG. 3. A feed-back law is represented as follows:

(Equation 12) where is the control gain vector that relies on tuning to meet desired

TVD tracking performance. A performance index J is defined as follows:

(Equation 13) where , , and are weights assigned to penalties on inclination deviation, position deviation, and control input, respectively.

[0033] Dynamics represented by Equation 10 fall into a discrete-time linear system class. For this class, an optimal control input in Equation 12 may be computed using an infinite- horizon, discrete-time linear-quadratic regulator (LQR) approach. The optimal value of K that minimizes the performance index Jin Equation 13 is given as follows: (Equation 14) where P is a unique positive definite solution to the following discrete algebraic Riccati equation: (Equation 15) where R and Q are weights assignable to the Riccati equation.

[0034] For conditions where the survey-to- survey distance x is smaller than a response depth of the dynamics, the resultant response depth may be expressed as a function of multiple factors: (Equation 16) where is a spatial delay caused by distance between survey measurement package placement and the drill bit 66, x t is a telemetry delay that represents a total depth drilled between when a control command u(k) is generated and when it is received by the cruise controller 304 of the rotary steerable system 71, and is a response depth of the cruise controlled closed-loop borehole propagation dynamics. In some instances, is greater than x. Considering the step size x s is selected to equal the survey-to- survey distance , the system may violate the assumption that u(k) at step k directly influences 0(k + 1) at step k+ 1. Accordingly, an alternative controller design may be used in instances where is greater than x.

[0035] In view of this, Equation 10 may be extended to account for a dynamic response of inclination deviation to the control command u(k) provided to the cruise controller 304. To capture the transient dynamics of the cruise controlled system, a smaller step size is selected such that x s is much smaller than The system equations may be rewritten as follows: where and . Based on the system equations, the state-space representation becomes: space representation of Equation 20 captures the behavior of the cruise controlled dynamics, and the resulting delay . The remaining two delays, and , may be combined into one delay, , and added to the dynamics as a pure input delay, which results in the following: (Equation 21) where A and are as follows:

[0036] The input delay in Equation 21 may be absorbed into the system dynamics by adding poles at z= 0, which yields the following: x(k + 1) = A D x(k ) + B D u(k ) (Equation 23) where and are as follows: where represents a matrix with n rows and m columns with all elements zero, and is an identity matrix of size n. The feedback control logic of Equations 12-15 can be implemented for the system represented in Equation 23.

[0037] FIG. 4 depicts a block diagram 400 of lateral plane control of the drill bit 66 by the rotary steerable system 71 according to one aspect of the present disclosure. In the lateral plane 204, the position of the drill bit 66 may be defined by a lateral distance in the lateral plane 204. The lateral distance may be computed as a function of azimuth measurements at every stationary survey depth (or periodic survey depth). [0038] A lateral distance tracker 402 of the trajectory control system 90 may receive a reference lateral distance and a reference azimuth angle (i.e., 0Lr) from the well plan 303. Additionally, the lateral distance tracker 402 may receive a measured lateral distance and a measured azimuth angle 0L from the cruise controller 304 (e.g., an azimuth-hold controller) of the rotary steerable system 71. The reference azimuth angle and the measured azimuth angle may be relative to true north, or any other predetermined direction along Earth’s surface. By comparing the reference lateral distance with the measured lateral distance and the reference azimuth angle with the measured azimuth angle, the lateral distance tracker 402 may output an azimuth set-point change (i.e., AOLSET) to the cruise controller 304 of the rotary steerable system 71. The cruise controller 304 may use the azimuth set-point change to control an azimuth angle of the drill bit 66 until a subsequent azimuth set-point change is received.

[0039] In an example, the azimuth set-point change may be an indication of a change to the azimuth angle that the cruise controller 304 is currently operating. For example, if the cruise controller 304 is operating at 0.785 radians (i.e., 45 degrees), and the azimuth set-point change received by the cruise controller 304 is 0.01 radians, then the cruise controller 304 will adjust the azimuth angle to 0.795 radians. Similarly, if the azimuth set-point change received by the cruise controller 304 is -0.01 radians, then the cruise controller 304 will adjust the azimuth angle to 0.775 radians.

[0040] The determination of the azimuth set-point change provided to the cruise controller 304 may be performed similarly to the inclination set-point change. That is, Equations 1-24 described above may be used with azimuth angles, azimuth set-point changes, and lateral distance in place of inclination angles, inclination set-point changes, and TVD. Further, in some examples, the TVD in the vertical plane 202 is tracked for control of the inclination angle, while the azimuth angle remains stable in the lateral plane 204. In other examples, the lateral distance in the lateral plane 204 is tracked for control of the azimuth angle, while the inclination angle remains stable in the vertical plane 204. Moreover, the both the TVD and the lateral distance may be tracked for control of both the inclination angle and the azimuth angle simultaneously.

[0041] The cruise controller 304 may be extended to a stochastic controller in some examples. That is, the cruise controller 304 may be designed to control a stochastic system where the behavior of the cruise controller 304 results from the imperfect tracking of inclination angles, azimuth angles, or both. This imperfect tracking may be modeled as a process noise. In such an example, a linear-quadratic-Gaussian (LQG) control approach, which is an extension of the linear-quadratic regulator (LQR) approach of Equations 1-24, can be used. Similarly, other optimal control approaches can be used in place of infinite- horizon LQR, such as finite-horizon LQR or Model Predictive Control when operational or control constraints are added to the optimal control framework.

[0042] While the trajectory control system 90 is depicted in FIGS. 1, 3, and 4 as being located at the surface of the wellbore 12, the trajectory control system 90 may also be positioned downhole within the wellbore 12. In such an example, the trajectory control system 90 may be positioned at or near the rotary steerable system 71. Surveys may be taken with fixed intervals so that the wellbore position can be calculated without depth information downhole. The trajectory plan of the wellbore 12 (e.g., from the well plan 303) may be embedded in the memory of the rotary steerable system 71 so that position error can be computed downhole. Additionally, a position correction may be downlinked periodically (e.g., every few surveys) from the surface to correct for any error accumulation occurring downhole.

[0043] FIG. 5 is a flowchart describing a process 500 for controlling the rotary steerable system 71 according to one aspect of the present disclosure. For illustrative purposes, the process 500 is described with reference to certain examples depicted in the figures. Other implementations, however, are possible.

[0044] At block 502, the process 500 involves computing wellbore position and attitude. The wellbore position and attitude may be calculated every time a survey is taken by the measurement equipment 73 or periodically with continuous survey feedback (e.g., during the drilling operation) by the measurement equipment 73. The wellbore position may include an indication of true vertical depth and lateral distance of the drill bit 66. The attitude may include an indication of a current inclination angle and a current azimuth angle of the drill bit 66 (i.e., indicating a direction in which the drill bit 66 is drilling).

[0045] At block 504, the process 500 involves computing a wellbore trajectory error between a position and attitude of the wellbore 12 and a position and attitude of the well plan 303. The wellbore trajectory error may include a difference between the measured position of the drill bit 66 and the well plan position of the drill bit 66. Additionally, the wellbore trajectory error may include a difference between the measured attitude of the drill bit 66 and the well plan attitude of the drill bit 66. [0046] At block 506, the process 500 involves computing optimal inclination and azimuth set-point change commands. As discussed above with respect to FIGS. 3 and 4, the optimal inclination and azimuth set-point change commands may be determined based on set-point changes that minimize a performance index, as presented in Equations 12 and 13. Set-point changes to the inclination and azimuth that result in minimization of the performance index provide a new trajectory to the drill bit 66 to move the wellbore trajectory more in line with the intended wellbore trajectory indicated in the well plan 303.

[0047] In some examples, an advisory mode may be used with the process 500. In such an example, the set-point changes to the inclination and the azimuth may be provided to a directional driller (e.g., an operator controlling the drilling operation) for confirmation that the directional driller would like to implement the set-point changes. In response, the directional driller may choose to implement or to not implement the set-point changes for various reasons.

[0048] At block 508, the process 500 involves sending set-point change commands (i.e., indicating new inclination and azimuth set-point changes) to the cruise controller 304 of the rotary steerable system 71. The set-point change commands may stay in effect at the cruise controller 304 until the process 500 is repeated and a new set of set-point change commands are provided to the cruise controller 304 of the rotary steerable system 71.

[0049] FIG. 6 is a block diagram of the trajectory control system 90 according to some examples of the present disclosure. The trajectory control system 90 can include a computing device 600 having a processor 602, a display device 604, and a memory 606. In some examples, the components shown in FIG. 6 (e.g., the processor 602, the display device 604, and the memory 606) can be integrated into a single structure. For example, the components can be within a single housing. In other examples, the components shown in FIG. 6 can be distributed (e.g., in separate housings) and in electrical communication with each other.

[0050] Sensor(s) 610 can be communicatively coupled to the computing device 600 to transmit information about the location of the drill bit 66 within the wellbore 12. Examples of the sensors 610 can include measurement- while-drilling (MWD) sensors useable to measure position and attitude of the drill bit 66. In some examples, the sensors 610 can be integrated on the rotary steerable system (RSS) 71 (e.g., the sensors 610 are within the RSS 71).

[0051] The processor 602 can execute one or more operations for implementing some examples. The processor 602 can execute instructions stored in the memory 606 to perform the operations. The processor 602 can include one processing device or multiple processing devices. Non-limiting examples of the processor 602 include a Field-Programmable Gate Array (“FPGA”), an application-specific integrated circuit (“ASIC”), a microprocessor, etc. [0052] The processor 602 can be communicatively coupled to the memory 606 via a bus. The non-volatile memory 606 may include any type of memory device that retains stored information when powered off. Non-limiting examples of the memory 606 include electrically erasable and programmable read-only memory (“EEPROM”), flash memory, or any other type of non-volatile memory. In some examples, at least some of the memory 606 can include a medium from which the processor 602 can read instructions. A computer- readable medium can include electronic, optical, magnetic, or other storage devices capable of providing the processor 602 with computer-readable instructions or other program code. Non-limiting examples of a computer-readable medium include (but are not limited to) magnetic disk(s), memory chip(s), ROM, RAM, an ASIC, a configured processor, optical storage, or any other medium from which a computer processor can read instructions. The instructions can include processor-specific instructions generated by a compiler or an interpreter from code written in any suitable computer-programming language, including, for example, C, C++, C#, etc.

[0053] The memory 606 can include a database 608, which can include any amount and combination of the content described in previous examples. The database 608 can store 3D mappings of well plans, mathematical equations used for generating wellbore trajectory error, performance index algorithms, or any combination of these, among other things.

[0054] The display device 604 can receive display signals from the processor 602 and responsively output any information related to the wellbore trajectory or any other information useable to manage wellbore drilling operations. One example of the display device 604 can include a liquid crystal display. Further, the rotary steerable system 71 can receive inclination and azimuth set-point changes from the processor 602 to provide a new trajectory for the drill bit 66 controlled by the rotary steerable system 71.

[0055] In some aspects, systems, devices, and methods for managing wellbore cement compositions based on material characteristics are provided according to one or more of the following examples:

[0056] As used below, any reference to a series of examples is to be understood as a reference to each of those examples disjunctively (e.g., "Examples 1-4" is to be understood as "Examples 1, 2, 3, or 4"). [0057] Example 1 is a system comprising: a sensor positionable within a wellbore to detect a position and attitude of a drill bit within the wellbore; a rotary steerable system positionable within the wellbore to steer the drill bit; a processing device positionable to communicatively couple to the sensor and the rotary steerable system; and a memory device comprising instructions that are executable by the processing device for causing the processing device to: receive sensor signals from the sensor; compute a wellbore trajectory error between (i) the position of the drill bit and a well plan position and (ii) the attitude of the drill bit and a well plan attitude; determine an inclination set-point change command, an azimuth set-point change command, or both using the wellbore trajectory error; and transmit the inclination set- point change command and the azimuth set-point change command to the rotary steerable system to steer the drill bit.

[0058] Example 2 is the system of example 1, wherein the inclination set-point change command and the azimuth set-point change command are determined using the wellbore trajectory error applied to a linear-quadratic regulator (LQR) control approach.

[0059] Example 3 is the system of examples 1-2, wherein the inclination set-point change command and the azimuth set-point change command are determined by minimizing a performance index.

[0060] Example 4 is the system of examples 1-3, wherein the rotary steerable system maintains an inclination angle and an azimuth angle until a new inclination set-point change command and a new azimuth set-point change command are received at the rotary steerable system.

[0061] Example 5 is the system of examples 1-4, wherein determining the inclination set- point change command and the azimuth set-point change command accounts for a response depth comprising a spatial delay, a telemetry delay, a closed-loop borehole propagation dynamics delay, or a combination thereof.

[0062] Example 6 is the system of examples 1-5, wherein the position of the drill bit comprises an indication of a true vertical depth and a lateral distance.

[0063] Example 7 is the system of examples 1-6, wherein the attitude of the drill bit comprises an indication of an inclination angle and an azimuth angle of the drill bit.

[0064] Example 8 is the system of examples 1-7, wherein the inclination set-point change command and the azimuth set-point change command are determined using the wellbore trajectory error applied to a linear-quadratic-Gaussian (LQG) control approach. [0065] Example 9 is a method comprising: computing a position and attitude of a drill bit within a wellbore; computing a wellbore trajectory error between (i) the position of the drill bit and a well plan position and (ii) the attitude of the drill bit and a well plan attitude; determining an inclination set-point change command and an azimuth set-point change command using the wellbore trajectory error; and steering the drill bit using the inclination set-point change command and the azimuth set-point change command.

[0066] Example 10 is the method of example 9, wherein the inclination set-point change command and the azimuth set-point change command are determined using the wellbore trajectory error applied to a linear-quadratic regulator (LQR) control approach.

[0067] Example 11 is the method of examples 9-10, wherein the inclination set-point change command and the azimuth set-point change command are determined by minimizing a performance index.

[0068] Example 12 is the method of examples 9-11, wherein steering the drill bit comprises a rotary steerable system maintaining an inclination angle and an azimuth angle until a new inclination set-point change command and a new azimuth set-point change command are received at the rotary steerable system.

[0069] Example 13 is the method of examples 9-12, wherein determining the inclination set-point change command and the azimuth set-point change command accounts for a response depth comprising a spatial delay, a telemetry delay, a closed-loop borehole propagation dynamics delay, or a combination thereof.

[0070] Example 14 is the method of examples 9-13, wherein the position of the drill bit comprises an indication of a true vertical depth and a lateral distance.

[0071] Example 15 is the method of examples 9-14, wherein the attitude of the drill bit comprises an indication of an inclination angle and an azimuth angle of the drill bit.

[0072] Example 16 is a non-transitory computer-readable medium comprising program code that is executable by a processing device for causing the processing device to: receive sensor signals from a sensor; determine a position and attitude of a drill bit within a wellbore using the sensor signals; compute a wellbore trajectory error between (i) the position and a well plan position and (ii) the attitude and a well plan attitude; determine an attitude set-point change command using the wellbore trajectory error; and transmit the attitude set-point change command to a rotary steerable system to steer the drill bit.

[0073] Example 17 is the non-transitory computer-readable medium of example 16, wherein the attitude set-point change command comprises an inclination set-point change command, an azimuth set-point change command, or a combination of the inclination set- point change command and the azimuth set-point change command.

[0074] Example 18 is the non-transitory computer-readable medium of examples 16-17, wherein the attitude set-point change command is determined using the wellbore trajectory error applied to a linear-quadratic regulator (LQR) control approach.

[0075] Example 19 is the non-transitory computer-readable medium of examples 16-18, wherein determining the attitude set-point change command accounts for a response depth comprising a spatial delay, a telemetry delay, a closed-loop borehole propagation dynamics delay, or a combination thereof.

[0076] Example 20 is the non-transitory computer-readable medium of examples 16-19, wherein the position of the drill bit comprises an indication of a true vertical depth and a lateral distance, and wherein the attitude of the drill bit comprises an indication of an inclination angle and an azimuth angle.

[0077] The foregoing description of certain examples, including illustrated examples, has been presented only for the purpose of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Numerous modifications, adaptations, and uses thereof will be apparent to those skilled in the art without departing from the scope of the disclosure.