Trajectory control for directional drilling

SA522432886B1Active Publication Date: 2024-03-26HALLIBURTON ENERGY SERVICES INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
SA522432886
Authority / Receiving Office
SA · SA
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-06-06
Publication Date
2024-03-26
Estimated Expiration
2042-06-06

AI Technical Summary

Technical Problem

Inaccuracies in inclination and azimuth setpoint changes transmitted via downlink to a rotary steerable system result in additional wellbore trajectory error and delayed trajectory corrections, leading to vibratory drill holes during wellbore drilling.

Method used

A trajectory control system calculates wellbore trajectory error and determines inclination and azimuth setpoint changes using a performance indicator algorithm, minimizing error by communicating these changes directly to the rotary steerable system, thereby stabilizing the drill bit trajectory.

Benefits of technology

This approach reduces wellbore trajectory errors by enabling precise and timely adjustments, improving drilling accuracy and efficiency by automating the correction process.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

A method for controlling a drilling trajectory of a wellbore (12) includes computing a position and attitude of a drill bit (66) within a wellbore (12). The method further includes computing a wellbore (12) trajectory error between (i) the position of the drill bit (66) and a well plan (303) position and (ii) the attitude of the drill bit (66) and a well plan (303) attitude. Further, the method includes determining an inclination set-point change command and an azimuth set-point change command using the wellbore (12) trajectory error. Additionally, the method includes steering the drill bit (66) using the inclination set-point change command and the azimuth set-point change command.
Need to check novelty before this filing date? Find Prior Art

Description

<h2 style=";text-align:left;direction:ltr">Full description<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Background of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The present disclosure generally relates to systems and methods for use in a well drilling environment. More specifically, but without limitation, the present disclosure relates to automatic control of a wellbore drilling path based on a dynamic well plan.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">While drilling wellbores within a formation, the drilling path may deviate from the planned path specified in the well plan. The directional driller can correct this deviation (i.e., wellbore trajectory error) by transmitting inclination and azimuth setpoint changes or setpoints via a downlink to a rotary steerable system that guides a drill bit. Depending on the skill of the directional driller, inclination and azimuth setpoint changes transmitted via a downlink can be inaccurate. Inaccuracies in inclination and azimuth setpoint changes can result in additional wellbore trajectory error and vibratory drill holes. Furthermore, relying on the directional driller to transmit inclination and azimuth setpoint changes via a downlink can result in a delayed trajectory change that does not account for the additional wellbore trajectory error that occurs while the driller determines the new inclination and azimuth setpoint changes.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> General description of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The present invention relates to a wellbore trajectory control method comprising calculating the position and direction of a drill bit within a wellbore. The method further comprises calculating a wellbore trajectory error between (1) the drill bit position and a position on a well plan and (2) the drill bit direction and a direction on a well plan. Furthermore, the method comprises determining an inclination setpoint change command and an azimuth setpoint change command using the wellbore trajectory error. Further, the method comprises guiding the drill bit using an inclination setpoint change command and an azimuth setpoint change command.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Brief explanation of the drawings<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1 is a cross-sectional view of an example well system comprising a path control system according to one aspect of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2 depicts a vertical and lateral plane of a bottom assembly of a well according to one aspect of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3 depicts a frame diagram of a vertical plane control of a rotary steerable system according to one aspect of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 4 depicts a frame diagram of a side plane control of a rotary steerable system according to one aspect of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 5 is a flowchart describing a process for controlling a rotary steerable system in accordance with one aspect of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 6 is a block diagram of an example of a path control system according to one aspect of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Detailed description:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Certain aspects and features relate to a trajectory control system used to control a rotary steerable system during a wellbore drilling operation. For example, the trajectory control system can receive information from sensors capable of determining the position of the rotary steerable system within a wellbore. Based on the measured position, the trajectory control system can determine a wellbore trajectory error. In other words, the trajectory control system can determine a difference between a planned wellbore trajectory and the actual wellbore trajectory. Using this wellbore trajectory error, the trajectory control system can implement a performance indicator algorithm to minimize additional wellbore trajectory error based on changes in the rotary steerable system trajectory. A performance indicator for the performance indicator algorithm can be a function of the wellbore trajectory error in the position or direction of the rotary steerable system, which may include a drill bit inclination error controlled by the rotary steerable system, a drill bit azimuth error controlled by the rotary steerable system, or a combination thereof.<h2 style=";text-align:left;direction:ltr">A change in the bit inclination and azimuth that produces the smallest performance index in the performance index algorithm can be fed from the trajectory control system to the rotary steerable system to adjust the drill bit trajectory.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Examples may provide systems and methods that can be used to control the trajectory of a rotary steerable system during a wellbore drilling operation. The wellbore trajectory error may be calculated in terms of both position and direction each time a survey is performed 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 the difference between a target trajectory for a well plan and the actual trajectory measured using surveys. The trajectory control system may use the wellbore trajectory error to determine rotary steerable system inclination and azimuth setpoint changes that reduce the performance index associated with the wellbore trajectory error. The rotary steerable system uses these setpoint changes to drill a wellbore until new setpoint changes are determined based on subsequent wellbore trajectory error measurements.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Enabling automated drilling by communicating automated inclination and azimuth setpoint changes to the rotary steerable system can reduce the error associated with inputs from directional drillers. Inclination and azimuth setpoint changes can be communicated to a rotary steerable system that uses a speed controller (e.g., direction hold controllers, pitch hold controllers, or azimuth hold controllers) to stabilize the target inclination angle, azimuth angle, or both. Additionally, inclination and azimuth setpoint changes can be calculated separately using parallel controllers to control the trajectory in vertical and lateral planes perpendicular to each other.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">These illustrative examples are provided to introduce the reader to the general subject matter discussed herein and are not intended to limit the scope of the concepts disclosed. The following sections describe several additional features and examples by reference to the drawings in which similar numbers refer to similar items. Directional descriptive terms have been used to describe illustrative aspects but, like illustrative examples, should not be used to limit the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 1 shows a cross-sectional view of a well system 10 including a trajectory control system 90 according to some examples of the present disclosure. The well system 10 may include a wellbore 12 extending through multiple strata of the earth in an oil and gas formation 14 (e.g., a subterranean formation) located below the surface of the well 16. The wellbore 12 may also be constructed from one or more holes extending into the formation 14, positioned in any direction. The well system 10 may include a drilling derrick or a drilling rig 20. The drilling rig 20 may include a jack-up 22, a movable reel 24, and a swivel joint 26 for raising and lowering casing, drill pipe, coiled tubing, other types of drill strings or tubing, or other types of transportation vehicles, such as a drill cable, a slip cable, and the like. The wellbore may comprise 12 drill pipe strings 30 which may be a substantially tubular, axially extended drill pipe string consisting of drill pipe joints coupled together at the ends.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Drilling rig 20 may include a drill stem 32, a rotary table 34, and other associated equipment for rotating or transporting the drill string 30 within the wellbore 12. For some applications, drilling rig 20 may also include a top drive unit 36. Drilling rig 20 may be positioned adjacent to the wellhead 40, as shown in Figure 1, or remote from the wellhead 40, such as in an offshore installation. One or more pressure control devices 42, such as blowout preventers (BOPs), and other well equipment may be provided at the wellhead 40 or elsewhere within the well system 10. Although well system 10 in Figure 1 is shown as a land-based drilling system, well system 10 may be deployed offshore.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Drilling or workover fluid source 52 may supply drilling fluid 58 pumped into the upper end of tubing string 30 and flowing through the drilling string 30. Fluid source 52 may supply any fluid used in wellbore operations, which includes a drilling fluid, a penetrating fluid, an acidizing fluid, liquid water, steam, or another fluid type.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The well system 10 may include a tubing system 56. For the purposes of this disclosure, the tubing system 56 may include casing, risers, tubing, drill strings, sinkers, headers, or any tubing, tubing, or other equipment associated with the foregoing, such as a drill string 30, as well as a wellbore and laterals in which tubing, casing, and tubing strings may be deployed. In this regard, the tubing system 56 may include one or more casing strings 60 cemented within the wellbore 12, such as the surface casing strings 60a, intermediate casing strings 60b, and others 60c shown in FIG. 1. An annular space 62 is formed between the walls of groups of adjacent tubular components, such as concentric and eccentric casing strings 60, the outer portion of the drill string 30, and the inner wall of the wellbore 12, or the casing string 60c.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Since the subsurface equipment 54 is used for drilling and the transport vehicle is a drill string 30, the lower end of the drill string 30 may include a downhole assembly 64, which at the far end may carry a drill bit 66. During drilling operations, a weight is applied to the bit when the drill bit 66 is rotated, allowing the drill bit 66 to engage the formation 14 and drill the wellbore 12 along a predetermined path toward a target area. In general, the drill bit 66, along with the drill string 30 of the drilling rig 20, may be rotated using an overhead drive unit 36 ​​or a rotary table 34, or using a downhole mud motor 68 located in the downhole assembly 64.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The downhole assembly 64 or drill string 30 may include several other tools, including a power source 69, a rotary steerable system 71, measurement equipment 73, such as measurement-while-drilling (MWD) or logging-while-drilling (LWD) equipment, sensors, circuits, or other equipment to provide information about the wellbore 12 or formation 14, such as positioning, performance logging, or measurement data from the wellbore 12.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The measurement data and other information generated by the instruments may be communicated using electrical signals, acoustic signals or other telemetry that may be received at the well surface 16, to monitor the performance of the drill string 30, the downhole assembly 64, and the associated drill bit 66, among other things, as well as to monitor the environmental conditions to which the downhole assembly 64 is exposed (e.g., the flow rate of the drilling fluid 58).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Drilling fluid 58 may be pumped into the upper end of the drill string 30 and flow through the longitudinal inner portion 70 of the drill string 30, through the downhole assembly 64, and out of nozzles machined into the drill bit 66. At the lower end 72 of the wellbore 12, the drilling fluid 58 may mix with formation drill extracts, formation fluids (e.g., fluids containing gases and hydrocarbons), and other downhole fluids and debris. The drilling fluid mixture may then flow upward through an annulus space 62 to return the formation drill extracts and other downhole debris to the well surface 16.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">After drilling through a portion of the formation 14 or while drilling through the formation 14, the measuring equipment 73 may provide survey feedback to the trajectory control system 90. In some examples, the trajectory control system 90 may analyze the survey feedback from the measuring equipment 73 to determine the position (i.e., true vertical depth and lateral distance) and orientation (i.e., inclination and azimuth) of the drill bit 66 within the wellbore 12. The trajectory control system 90 may compare the position and orientation of the drill bit 66 to well plan maps in a database to determine a wellbore path error. In one example, the wellbore path error is the difference between the actual path of the wellbore 12 and the wellbore 12 path predicted in the well plan.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Based on the wellbore path error, the trajectory control system 90 can provide changes to the inclination and azimuth setpoints to the rotary steerable system 71. The changes to the inclination and azimuth setpoints can provide indication of a new desired path for the drill bit 66 to the rotary steerable system 71 to minimize the wellbore path error. As the drill bit 66 continues to drill the wellbore 12, the trajectory control system 90 can continue to adjust the changes to the inclination and azimuth setpoints based on survey feedback information from the measuring equipment 73.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Furthermore, while the trajectory control system 90 is depicted as surface equipment, in some examples the trajectory control system 90 may be implemented downhole within wellbore 12. For example, the trajectory control system 90 may be positioned as part of the downhole assembly 64. By attaching the trajectory control system 90 to the downhole assembly 64, communication delays (e.g., communication of information from the measuring equipment 73 to the surface, and communication back from the surface to the rotary steerable system 71) may be avoided so that changes of the inclination and azimuth setpoints may be executed more rapidly than in the surface position of the trajectory control system 90. Additionally, while Figure 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.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 2 depicts a vertical plane 202 and a lateral plane 204 of a downhole assembly according to one aspect of the present disclosure. Changing the inclination setpoint of the rotary steerable system 71 of the downhole assembly 64 may assist the rotary steerable system 71 in controlling the drill bit 66 in the vertical plane 202. Additionally, changing the azimuth setpoint may assist the rotary steerable system 71 in controlling the drill bit 66 in the lateral plane 204. By combining the setpoint changes for both azimuth and inclination, the rotary steerable system 71 will be capable of controlling the drilling direction of the drill bit 66 toward the path indicated by the well plan.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In one example, each time the path control system 90 receives new survey observations (e.g., indicating a new position and direction of the drill bit 66), a new set of inclination and azimuth setpoint changes is generated and fed to the rotary steerable system 71. The measuring equipment 73 may generate the new survey observations during a period of drill bit 66 being idle (e.g., while new pipe segments are being added to the drill string 30). In another example, new survey observations may be fed to the path control system 90 periodically when the measuring equipment 73 provides continuous survey observations during drilling operations.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3 depicts a frame diagram 300 for controlling a vertical plane 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 determined by the true vertical depth (TVD). The TVD may be calculated as a function of the inclination measurements at each fixed survey depth (or periodic survey depth).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A TVD tracking device 302 of the trajectory control system 90 may receive a reference TVD (i.e., TVDr) and a reference pitch angle (i.e., Θr) from a well plan 303. Additionally, the TVD tracking device 302 may receive a measured TVD and a measured pitch angle Θ from a speed controller 304 (e.g., a pitch stabilization controller) of the rotary steerable system 71. The reference pitch angle and the measured pitch angle may be relative to the direction of gravity. By comparing the reference TVD to the measured TVD or the reference pitch angle to the measured pitch angle, the TVD tracking device 302 may output a pitch setpoint change (i.e., ΔθSET) to the speed controller 304 of the rotary steerable system 71. The speed controller 304 uses the pitch setpoint change to control the pitch angle of the rotary steerable system 71 until a subsequent pitch setpoint change is received.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In one example, a change in the incline setpoint may represent a change in the incline angle at which the speed controller 304 is currently operating. For example, if the speed controller 304 is operating at 0.785 radians (i.e., 45 degrees), and the incline setpoint change received by the speed controller 304 is 0.01 radians, the speed controller 304 may set the incline angle at 0.795 radians. Similarly, if the incline setpoint change received by the speed controller 304 is -0.01 radians, the speed controller 304 may set the incline angle at 0.775 radians.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> To illustrate the above control process mathematically, a discrete depth range representation of the slope Θ (e.g., in radians) is controlled using an input u (i.e., the slope setpoint change is also in radians). The controlled input u is considered to represent the slope change. In other words, u equals ΔΘ. The dynamics can be modeled by assuming that u(k) at step k directly affects Θ(k+1) at step k+1. Then, the propagation of Θ from step k to step k+1 can be written as:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">(Equation 1)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> With a slope at k = zero, instead of the absolute value of Θ, the slope error relative to the reference slope Θr (e.g., from well plan 303) is of interest. Thus, the system can be represented in terms of slope errors as:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 2)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where and there is a reference slope at k = zero. Similarly, the true vertical depth spread, T, from step k to step k+1 is derived as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 3)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where ξ represents the spread distance (i.e., in feet) and T0 represents the initial reference TVD. ξ can be considered the distance from one survey to the next traversed by the drill bit 66. The error between the actual TVD and the reference TVD can be written as:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 4)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where T(k)-Tr(k) is the reference TVD at k = zero.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The deviation of the drill bit position 66 from the well plan can be indicated as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 5)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A position deviation greater than zero may indicate that at step k, the drill bit 66 may emerge at a position above the position indicated on the well plan 303 in the vertical plane. Therefore, a further representation of the position deviation is as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 6)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When approaching zero, the following two-step approximation can be performed:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 7)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> This approximation allows the model to be linearized as long as it is close to . Thus, the propagation from step k to step k+1 can be written as:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 8)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Substituting Equation 2 into Equation 8 gives:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 9)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Combining Equations 2 and 9 and choosing the slope deviation and position deviation as states, the propagation of a discrete, simplified drill hole can be represented in a state space as:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 10)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Where it is as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 11)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Equation 10 can represent the state of the system by providing an indication of both the slope error and the TVD error. Furthermore, the step size in the model represented by Equation 10 represents the distance from one scan to the next.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A control strategy analogous to Equations 1-11 and Figure 3 can be implemented. The feedback law can be represented as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 12)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where θ represents the control gain vector that is adjusted to meet the desired TVD tracking performance. The performance index J is defined as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 13)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where , , and represent the weighted values ​​assigned to the penalties for skewness, position skewness, and control input, respectively.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The dynamics represented by Equation 10 fall into the category of a discrete-time linear system. For this category, an optimal control input in Equation 12 can be calculated using an infinite-horizon, discrete-time linear-quadratic regulator (LQR) method. The optimal value of K that minimizes the performance index J in Equation 13 is given by:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 14)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">where P represents a unique definite positive solution to the discrete Riccati algebraic equation:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 15)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where R and Q represent weighted values ​​that can be assigned to the Riccati equation.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> For conditions where the distance from one scan to the next is smaller than the response depth of the dynamics, the resulting response depth can be expressed as a function of several factors.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 16)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where τ represents the spatial delay due to the distance between the position of the survey measurement beam and the drill bit 66, τ represents the telemetry delay representing the total drilled depth between the time of production of a control command u(k) and the time of its reception at the speed controller 304 of the rotary steerable system 71, and τ represents the depth in response to the dynamics of a closed-loop drill hole propagation controlled by a speed controller. In some cases, τ is larger than . Taking into account the step size, τs is chosen to be equal to the distance from one scan to the next, as the system could violate the assumption that u(k) at step k directly affects τ at step k+1. Therefore, an alternative controller design may be used in cases where τ is larger than .<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In light of this, Equation 10 can be extended to determine the dynamic response of the slope deflection to the control command u(k) supplied to the speed controller 304. To capture the transient dynamics of the system controlled by the speed controller, a smaller step size is chosen such that τs is much smaller than τc. The equation system can be rewritten as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 17)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 18)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 19)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where , , and. Based on the system of equations, the representation of the state space becomes:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 20)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where and. The state space representation in Equation 20 captures the behavior of the speed controller-controlled dynamics and the resulting delay. The two remaining delays, and, can be combined into a single delay and added to the dynamics as a purely input delay, yielding:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 21)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Where it is as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 22)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The input delay in Equation 21 can be absorbed into the system dynamics by adding poles at z = zero, which yields:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 23)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Where it is as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (Equation 24)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where 0nxm represents an array with n rows and m columns where all elements are zero, and In represents an erased array of size n. The feedback control logic of Equations 12-15 can be implemented for the system represented by Equation 23.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 4 depicts a frame diagram 400 for controlling a lateral plane of the drill bit 66 by the rotary steerable system 71 according to one aspect of the present discovery. In the lateral plane 204, the position of the drill bit 66 may be determined by a lateral distance in the lateral plane 204. The lateral distance may be calculated as a function of azimuth measurements at each fixed survey depth (or periodic survey depth).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The lateral distance tracking device 402 of the trajectory control system 90 may receive a reference lateral distance and a reference azimuth angle (i.e., ΘLr) from the well plan 303. Additionally, the lateral distance tracking device 402 may receive a measured lateral distance and a measured azimuth angle ΘL from the speed control device 304 (e.g., an azimuth hold control device) 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 the ground 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 tracking device 402 may output an azimuth setpoint change (i.e., ΔθLSET) to the speed controller 304 of the rotary steerable system 71. The speed controller 304 may use the azimuth setpoint change to control the azimuth angle of the drill bit 66 until a subsequent azimuth setpoint change is received.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In one example, a change in the azimuth setpoint may be indicative of a change in the azimuth angle at which the speed controller 304 is currently operating. For example, if the speed controller 304 is operating at 0.785 radians (i.e., 45 degrees), then the azimuth setpoint change received by the speed controller 304 is 0.01 radians, the speed controller 304 will set the azimuth angle at 0.795 radians. Similarly, if the azimuth setpoint change received by the speed controller 304 is -0.01 radians, the speed controller 304 will set the azimuth angle at 0.775 radians.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The azimuth setpoint change supplied to the speed controller 304 may be specified similarly to the pitch setpoint change. In other words, Equations 1-24 described above may be used with azimuth angles, azimuth setpoint changes, and lateral distance instead of pitch angles, pitch setpoint changes, and TVD. Furthermore, in some examples, the TVD is tracked in the vertical plane 202 to control the pitch angle, while the azimuth angle remains constant in the lateral plane 204. In other examples, the lateral distance is tracked in the lateral plane 204 to control the azimuth angle, while the pitch angle remains constant in the vertical plane 204. Furthermore, both the TVD and the lateral distance may be tracked to control both the pitch angle and the azimuth angle simultaneously.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some examples, the speed controller 304 can be extended to a stochastic controller. In other words, the speed controller 304 can be designed to control a stochastic system where the behavior of the speed controller 304 results from faulty tracking in pitch angles, azimuth angles, or both. The faulty tracking can be modeled as process noise. In this example, a linear-quadratic-Gaussian (LQG) control method may be used, which is an extension of the linear-quadratic (LQR) controller method of Equations 1-24. For example, other optimal control methods may be used instead of infinite-horizon LQR, such as finite-horizon LQR or Model Predictive Control when adding operating or control constraints to the optimal control framework.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">While the trajectory control system 90 is depicted in Figures 1, 3, and 4 as being located on the surface of wellbore 12, the trajectory control system 90 can also be positioned downhole within wellbore 12. In this system, the trajectory control system 90 can be positioned at or near the rotary steerable system 71. Surveys can be conducted at fixed intervals so that the wellbore position can be calculated without downhole depth information. A wellbore trajectory plan 12 (e.g., from the well plan 303) can be included in the memory of the rotary steerable system 71 so that the downhole position error can be calculated. Additionally, a position correction can be delivered via downlink periodically (e.g., every few surveys) from the surface to correct for any downhole error accumulation.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 5 shows a flowchart describing the 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 specific examples illustrated in the figures. However, other applications may be used.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">At frame 502, process 500 includes calculating the position and orientation of the wellbore. The position and orientation of the wellbore may be calculated each time a survey is made by the measuring equipment 73 or periodically with continuous survey observations (e.g., during a drilling operation) from the measuring equipment 73. The position of the wellbore may include an indication of the true vertical depth and lateral distance of the drill bit 66. The orientation may include an indication of a current inclination angle and a current azimuth angle of the drill bit 66 (i.e., an indication of the direction in which the drill bit 66 is drilling).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> At frame 504, process 500 includes calculating a wellbore path error between the position and direction of the wellbore 12 and the position and direction found in the well plan 303. The wellbore path error may include a difference between the measured position of the drill bit 66 and the position of the drill bit 66 found in the well plan. Further, the wellbore path error may include a difference between the measured direction of the drill bit 66 and the direction of the drill bit 66 found in the well plan.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">At frame 506, process 500 includes calculating optimal inclination and azimuth setpoint change orders. As discussed above with reference to Figures 3 and 4, optimal inclination and azimuth setpoint change orders may be determined based on setpoint changes that minimize the performance index, as indicated in Equations 12 and 13. The inclination and azimuth setpoint changes that minimize the performance index provide a new path to the drill bit 66 to move the wellbore path more closely in line with the planned wellbore path indicated in the well plan 303.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some examples, an advisory mode may be used with process 500. In this example, the directional driller (e.g., the drilling process control) may provide the setpoint changes in inclination and azimuth to confirm that the directional driller wishes to implement the setpoint changes. In response, the directional driller may choose to implement or not implement the setpoint changes for various reasons.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">At frame 508, process 500 includes transmitting setpoint change commands (i.e., indicating new inclination and azimuth setpoint changes) to the speed controller 304 of the rotary steerable system 71. The setpoint change commands may remain in effect at the speed controller 304 until process 500 is repeated and a new set of setpoint change commands is supplied to the speed controller 304 of the rotary steerable system 71.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 6 shows a block diagram of a path control system 90 according to some examples of the present disclosure. The path control system 90 may include a computing device 600 having a processor 602, a display device 604, and a memory 606. In some examples, the components shown in Figure 6 (e.g., the processor 602, the display device 604, and the memory 606) may be combined into a single structure. For example, the components may be contained in a single housing. In other examples, the components shown in Figure 6 may be distributed (e.g., in separate housings) and electrically connected to each other.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The sensor(s) 610 may be connected to the computing device 600 to transmit information about the position of the drill bit 66 within the wellbore 12. Examples of the sensors 610 may include measurement-while-drilling (MWD) sensors used to measure the position and orientation of the drill bit 66. In some examples, the sensors 610 may be integrated onto the rotary steerable system (RSS) 71 (e.g., the sensors 610 are located within the RSS 71).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The processor 602 may execute one or more operations to perform some example. The processor 602 may execute instructions stored in memory 606 to perform the operations. The processor 602 may include one or more processing devices. Non-exhaustive examples of the processor 602 include a field-programmable gate array ("FPGA"), an application-specific integrated circuit ("ASIC"), a microprocessor, and so forth.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The processor 602 may be connected to the memory 606 via a bus. The non-volatile memory 606 may include any type of memory device that retains stored information when power is turned off. Non-exhaustive 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 may include a medium from which the processor 602 may read instructions. The computer-readable medium may include electronic, optical, magnetic, or other storage devices capable of providing the processor 602 with computer-readable instructions or other program code. Non-exhaustive examples of computer-readable medium include (but are not limited to) a magnetic disk(s), memory chip(s), ROM, RAM, ASIC, formatted processor, optical storage device, or any other medium from which a computer processor can read instructions.<h2 style=";text-align:left;direction:ltr">Instructions may include processor-specific instructions produced by an author or interpreter from code written in any suitable computer programming language, including, for example, C, C++, C#, and so on.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The memory 606 may include a database 608, which may contain any quantity and combination of the content described in the preceding examples. The database 608 may store, among other things, three-dimensional maps of well plans, mathematical equations used to generate the wellbore path error, or any combination thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The display device 604 may receive display signals from the processor 602 and, in response to that signal, output any wellbore trajectory information or other information that can be used to manage wellbore drilling operations. An example of the display device 604 may include a liquid crystal display. Furthermore, the rotary steerable system 71 may receive inclination and azimuth setpoint changes from the processor 602 to provide a new trajectory for the drill bit 66, which is controlled by the rotary steerable system 71.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some aspects, systems, devices, and methods are provided for controlling wellbore cement compositions based on material properties according to one or more of the following examples:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> As used hereinafter, any reference to a series of examples should be understood as a reference to each of those examples separately (e.g., “Examples 1-4” should be understood to mean “Examples 1, 2, 3, or 4”).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Example 1 is a system comprising: a sensor positionable in a wellbore to detect the position and orientation of a drill bit within the wellbore; a rotary steerable system positionable in the wellbore to steer the drill bit; a processing device positionable to be communicatively coupled to the sensor and the rotary steerable system; and a memory device comprising instructions executable by the processing device to cause the processing device to do the following: receive sensor signals from the sensor; calculate a wellbore path error between (1) the drill bit position and a position on a well plan and (2) the drill bit direction and a direction on a well plan; determine an inclination setpoint change command, an azimuth setpoint change command, or both using the wellbore path error; and transmit the inclination setpoint change command and the azimuth setpoint change command to the rotary steerable system to steer the drill bit.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 2 is the system according to Example 1, where the inclination setpoint change command and the azimuth setpoint change command are determined using the wellbore path error applied to the linear-quadratic (LQR) controller control method.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Example 3 is the system according to Examples 1-2, where the inclination setpoint change command and the azimuth setpoint change command are determined by minimizing a performance indicator.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 4 is the system according to Examples 1-3, wherein the rotary steerable system maintains a bank angle and an azimuth angle until a new bank setpoint change command and a new azimuth setpoint change command are received at the rotary steerable system.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 5 is the system according to Examples 1-4, wherein specifying the inclination setpoint change command and the azimuth setpoint change command determines a response depth comprising a spatial delay, a telemetry delay, a closed-loop drillhole propagation dynamics delay, or a combination thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 6 is the system according to Examples 1-5, where the drill bit position includes an indication of true vertical depth and lateral distance.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 7 is the system according to Examples 1-6, where the drill bit direction includes an indication of the inclination angle and the azimuth angle of the drill bit.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Example 8 is the system according to Examples 1-7, where the inclination setpoint change command and the azimuth setpoint change command are determined using the wellbore path error applied to a linear-quadratic-Gaussian (LQG) control method.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 9 is a method comprising: calculating the position and orientation of a drill bit within a wellbore; calculating a wellbore path error between (1) the drill bit position and a position on a well plan and (2) the drill bit orientation and an orientation on a well plan; specifying an inclination setpoint change command and an azimuth setpoint change command using the wellbore path error; and directing the drill bit using an inclination setpoint change command and an azimuth setpoint change command.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 10 is the method according to Example 9, wherein the inclination setpoint change command and the azimuth setpoint change command are determined using the wellbore path error applied to the linear-quadratic (LQR) controller control method.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 11 is the method according to Examples 9-10, where the inclination setpoint change command and the azimuth setpoint change command are determined by minimizing a performance indicator.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Example 12 is the method according to Examples 9-11, wherein the drill bit steering includes a rotary steerable system that maintains the inclination angle and the azimuth angle until a new inclination setpoint change command and a new azimuth setpoint change command are received at the rotary steerable system.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 13 is the method according to Examples 9-12, wherein specifying an inclination setpoint change command and an azimuth setpoint change command determines a response depth comprising a spatial delay, a telemetry delay, a closed-loop drillhole propagation dynamics delay, or a combination thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 14 is the method according to Examples 9-13, where the drill bit position includes an indication of true vertical depth and lateral distance.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 15 is the method according to Examples 9-14, where the drill bit direction includes an indication of the inclination angle and the azimuth angle of the drill bit.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Example 16 is a non-transitory computer-readable medium comprising a processing device executable program code to cause the processing device to do the following: receive sensor signals from a sensor; determine the position and orientation of a drill bit within a wellbore using the sensor signals; calculate a wellbore path error between (1) the position and the position on the well plan and (2) the direction and orientation on the well plan; determine a direction setpoint change command using the wellbore path error; and transmit the direction setpoint change command to a rotary steerable system to steer the drill bit.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 17 is the non-temporary computer-readable medium of Example 16, wherein the change direction setpoint command comprises a change inclination setpoint command, a change azimuth setpoint command, or a combination of a change inclination setpoint command and a change azimuth setpoint command.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 18 is the non-temporary computer-readable medium according to Examples 16-17, wherein the direction setpoint change command is determined using the wellbore path error applied to the linear-quadratic (LQR) controller control method.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Example 19 is the computer-readable non-transient medium of Examples 16-18, wherein specifying a direction setpoint change command specifies a response depth comprising a spatial delay, a telemetry delay, a closed-loop borehole propagation dynamics delay, or a combination thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example 20 is the non-temporary computer-readable medium according to Examples 16-19, wherein the drill bit position includes an indication of a true vertical depth and a lateral distance, and wherein the drill bit direction includes an indication of a pitch angle and an azimuth angle.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The foregoing description of specific examples, including the illustrated examples, is presented for illustrative and descriptive purposes only and is not intended to be exhaustive or limit the disclosure to the precise forms disclosed. Many of the modifications, forms, and uses of these will become apparent to those skilled in the art, without departing from the scope of this disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Graphics bookmark<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 202 - Vertical level<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 204 - Side Level<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 71 - Rotary Steerable System<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 304 - Speed ​​Controller<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A - Bottom of the well<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> b - Surface<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 302 - TVD Tracking Device<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 303 - Well Plan<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 4:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 71 - Rotary Steerable System<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 304 - Speed ​​Controller<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A - Bottom of the well<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> b - Surface<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 402 - Side-tracking device<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> C - Side distance<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> d - Side distancer<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 303 - Well Plan<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 5:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 502 - Calculating the position and direction of the wellbore<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 504 - Calculate the wellbore path error between the actual wellbore position and direction and the position and direction in the well plan<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 506 - Calculating the optimal inclination and azimuth setpoint change commands<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 508 - Sending setpoint change commands to a rotary steerable system<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 6:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 71 - Rotary Steerable System<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 610 - Sensor(s)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 600 - Computer<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 602 - Processor<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 604 - Projector<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 606 - Memory<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 608 - Database