DRILLING SYSTEM CONTROL FOR REDUCING STICK-SLIP BY CALCULATING AND REDUCING ENERGY OF UPGOING ROTATIONAL WAVES IN A DRILLSTRING

20210189857 · 2021-06-24

    Inventors

    Cpc classification

    International classification

    Abstract

    An apparatus and method for controlling a drilling system in a manner that reduces stick-slip by receiving a desired rotation speed v.sub.0 of the drive system to rotate the drillstring, receiving property measurements of the drilling system, and deriving therefrom a rotation speed v.sub.up of upgoing rotational waves of the drillstring associated with upgoing rotational energy in the drillstring. An actual rotation speed v of the drive system to rotate the drillstring is determined by representing downgoing energy in the drillstring as a mathematical expression containing a sum of downgoing rotational energy produced by the drive system and downgoing rotational energy caused by the upgoing rotational waves that are reflected downwardly at an upper end of the drillstring, and then optimizing the mathematical expression, which is then used for controlling the drive system to rotate the drillstring at v.

    Claims

    1-14. (canceled)

    15. A drilling system comprising: a drillstring; a drill bit coupled to the drillstring; a drive system configured to rotate the drillstring to drill a borehole through an earth formation in a manner that reduces stick-slip; one or more sensors configured to measure properties of the drilling system; and a controller configured to: receive a desired rotation speed v.sub.0 of the drive system to rotate the drillstring; receive the property measurements of the drilling system and deriving therefrom a rotation speed v.sub.up of upgoing rotational waves of the drillstring associated with upgoing rotational energy in the drillstring; determine an actual rotation speed v of the drive system to rotate the drillstring by: representing energy in the drillstring as a mathematical expression comprising a sum of rotational energy produced by the drive system and downgoing rotational energy caused by the upgoing rotational waves that are reflected at an upper end of the drillstring into downgoing rotational waves, wherein the rotational energy produced by the drive system is a function of v and v.sub.0, and wherein the downgoing rotational energy caused by the upgoing rotational waves is a function of v and v.sub.up; and optimizing the mathematical expression, the optimized mathematical expression expressing v in terms of v.sub.0 and v.sub.up; and control the drive system to rotate the drillstring at v.

    16. The drilling system of claim 15, wherein the energy in the drillstring is proportional to the mathematical expression comprising (v−v.sub.0).sup.2+λ(v−v.sub.up).sup.2, where λ is a coefficient of relative weight ranging between zero and one.

    17. The drilling system of claim 15, wherein v.sub.up is determined by: v up = 1 2 .Math. ( v - T z ) where v is a surface measurement of rotational speed of the drillstring, T is a surface measurement of torque in the drillstring, and z is rotational impedance of the drillstring.

    18. The drilling system of claim 15, wherein the optimized mathematical expression is: v = v 0 + λ 1 + λ .Math. v up where λ is a coefficient of relative weight ranging between zero and one.

    19. The drilling system of claim 15, wherein the mathematical expression comprises the expression (v−v.sub.0).sup.2.

    20. The drilling system of claim 15, wherein the mathematical expression comprises the expression (v−v.sub.up).sup.2.

    21. The drilling system of claim 20, wherein v.sub.up is derived from surface measured properties comprising: rotational speed of the drillstring and a torque T in the drillstring.

    22. The drilling system of claim 15, wherein a maximum and/or a minimum bound is imposed on v.

    23. The drilling system of claim 15, wherein the optimized mathematical expression includes a residual correction term r to account for long term averaging of v.sub.0 over time scales greater than the resonance time of the drilling system.

    24. The drilling system of claim 15, wherein the drive system comprises a top drive.

    25. The drilling system of claim 15, wherein the drive system comprises a rotary table.

    26. The drilling system of claim 15, further comprising a high-pass filter applicable to v.sub.up, and wherein a cut-off frequency of the high-pass filter is less than the resonance frequency of the drilling system.

    27. The drilling system of claim 15, further comprising a low-pass filter applicable to v.sub.up, and wherein a cut-off frequency of the low-pass filter is greater than the resonance frequency of the drilling system.

    28. A non-transitory computer readable medium storing a computer program comprising code which, when run on a computer, causes the computer to perform a method for controlling a drilling system comprising a drive system, drillstring and drill bit, wherein the drive system rotates the drillstring during a drilling process to drill a borehole through an earth formation in a manner that reduces stick-slip, the method comprising: receiving a desired rotation speed v.sub.0 of the drive system to rotate the drillstring; receiving property measurements of the drilling system and deriving therefrom a rotation speed v.sub.up of upgoing rotational waves of the drillstring associated with upgoing rotational energy in the drillstring; determining an actual rotation speed v of the drive system to rotate the drillstring by: representing energy in the drillstring as a mathematical expression comprising a sum of rotational energy produced by the drive system and downgoing rotational energy caused by the upgoing rotational waves that are reflected at an upper end of the drillstring into downgoing rotational waves, wherein the rotational energy produced by the drive system is a function of v and v.sub.0, and wherein the downgoing rotational energy caused by the upgoing rotational waves is a function of v and v.sub.up; and optimizing the mathematical expression, the optimized mathematical expression expressing v in terms of v.sub.0 and v.sub.up; and controlling the drive system to rotate the drillstring at v, wherein v.sub.up is determined by: v up = 1 2 .Math. ( v - T z ) where v is a surface measurement of rotational speed of the drillstring, T is a surface measurement of torque in the drillstring, and z is rotational impedance of the drillstring.

    29. A non-transitory computer readable medium storing a computer program comprising code which, when run on a computer, causes the computer to perform a method for controlling a drilling system comprising a drive system, drillstring and drill bit, wherein the drive system rotates the drillstring during a drilling process to drill a borehole through an earth formation in a manner that reduces stick-slip, the method comprising: receiving a desired rotation speed v.sub.0 of the drive system to rotate the drillstring; receiving property measurements of the drilling system and deriving therefrom a rotation speed v.sub.up of upgoing rotational waves of the drillstring associated with upgoing rotational energy in the drillstring; determining an actual rotation speed v of the drive system to rotate the drillstring by: representing energy in the drillstring as a mathematical expression comprising a sum of rotational energy produced by the drive system and downgoing rotational energy caused by the upgoing rotational waves that are reflected at an upper end of the drillstring into downgoing rotational waves, wherein the rotational energy produced by the drive system is a function of v and v.sub.0, and wherein the downgoing rotational energy caused by the upgoing rotational waves is a function of v and v.sub.up; and optimizing the mathematical expression, the optimized mathematical expression expressing v in terms of v.sub.0 and v.sub.up; and controlling the drive system to rotate the drillstring at v, wherein the optimized mathematical expression is: v = v 0 + λ 1 + λ .Math. v up where λ is a coefficient of relative weight ranging between zero and one.

    30. A non-transitory computer readable medium storing a computer program comprising code which, when run on a computer, causes the computer to perform a method for controlling a drilling system comprising a drive system, drillstring and drill bit, wherein the drive system rotates the drillstring during a drilling process to drill a borehole through an earth formation in a manner that reduces stick-slip, the method comprising: receiving a desired rotation speed v.sub.0 of the drive system to rotate the drillstring; receiving property measurements of the drilling system and deriving therefrom a rotation speed v.sub.up of upgoing rotational waves of the drillstring associated with upgoing rotational energy in the drillstring; determining an actual rotation speed v of the drive system to rotate the drillstring by: representing energy in the drillstring as a mathematical expression comprising a sum of rotational energy produced by the drive system and downgoing rotational energy caused by the upgoing rotational waves that are reflected at an upper end of the drillstring into downgoing rotational waves, wherein the rotational energy produced by the drive system is a function of v and v.sub.0, and wherein the downgoing rotational energy caused by the upgoing rotational waves is a function of v and v.sub.up; and optimizing the mathematical expression, the optimized mathematical expression expressing v in terms of v.sub.0 and v.sub.up; and controlling the drive system to rotate the drillstring at v, wherein the mathematical expression comprises the expression (v−v.sub.0).sup.2.

    31. The non-transitory computer readable medium of claim 30, wherein v.sub.up is derived from surface measured properties comprising: rotational speed of the drillstring; and a torque T in the drillstring.

    32. The non-transitory computer readable medium of claim 30, wherein: the receiving of property measurements and deriving v.sub.up therefrom; the determining of v; and the controlling of the drive system are performed repeatedly.

    33. A non-transitory computer readable medium storing a computer program comprising code which, when run on a computer, causes the computer to perform a method for controlling a drilling system comprising a drive system, drillstring and drill bit, wherein the drive system rotates the drillstring during a drilling process to drill a borehole through an earth formation in a manner that reduces stick-slip, the method comprising: receiving a desired rotation speed v.sub.0 of the drive system to rotate the drillstring; receiving property measurements of the drilling system and deriving therefrom a rotation speed v.sub.up of upgoing rotational waves of the drillstring associated with upgoing rotational energy in the drillstring; determining an actual rotation speed v of the drive system to rotate the drillstring by: representing energy in the drillstring as a mathematical expression comprising a sum of rotational energy produced by the drive system and downgoing rotational energy caused by the upgoing rotational waves that are reflected at an upper end of the drillstring into downgoing rotational waves, wherein the rotational energy produced by the drive system is a function of v and v.sub.0, and wherein the downgoing rotational energy caused by the upgoing rotational waves is a function of v and v.sub.up; and optimizing the mathematical expression, the optimized mathematical expression expressing v in terms of v.sub.0 and v.sub.up; and controlling the drive system to rotate the drillstring at v, wherein the mathematical expression comprises the expression (v−v.sub.up).sup.2.

    34. The non-transitory computer readable medium of claim 33, wherein v.sub.up is derived from surface measured properties comprising: rotational speed of the drillstring and a torque T in the drillstring.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0030] The present disclosure is described in conjunction with the appended figures. It is emphasized that, in accordance with the standard practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features may be arbitrarily increased or reduced for clarity of discussion.

    [0031] FIG. 1 illustrates a drilling system for operation at a wellsite to drill a borehole through an earth formation; and

    [0032] FIG. 2 shows a flow diagram for a drilling control method, in accordance with an embodiment of the present disclosure.

    [0033] In the appended figures, similar components and/or features may have the same reference label. Further, various components of the same type may be distinguished by following the reference label by a dash and a second label that distinguishes among the similar components. If only the first reference label is used in the specification, the description is applicable to any one of the similar components having the same first reference label irrespective of the second reference label.

    DETAILED DESCRIPTION

    [0034] Embodiments of the present invention relates to controlling/driving a drilling system—comprising a top drive, a drillstring and a drill bit—to drill a borehole through an earth formation. Embodiments of the present invention provide for driving the drill bit with the top drive to optimize the speed of rotation of the drill bit while minimizing downgoing energy traveling down the drillstring during the drilling procedure.

    [0035] The ensuing description provides preferred exemplary embodiment(s) only, and is not intended to limit the scope, applicability or configuration of the invention. Rather, the ensuing description of the preferred exemplary embodiment(s) will provide those skilled in the art with an enabling description for implementing a preferred exemplary embodiment of the invention, it being understood that various changes may be made in the function and arrangement of elements without departing from the scope of the invention.

    [0036] Specific details are given in the following description to provide a thorough understanding of the embodiments. However, it will be understood by one of ordinary skill in the art that embodiments may be practiced without these specific details. For example, well-known circuits, processes, algorithms, structures, and techniques may be shown without unnecessary detail in order to avoid obscuring the embodiments.

    [0037] As disclosed herein, the term “computer readable medium” may represent one or more devices for storing data, including read only memory (ROM), random access memory (RAM), magnetic RAM, core memory, magnetic disk storage mediums, optical storage mediums, flash memory devices and/or other machine readable mediums for storing information. The term “computer-readable medium” includes, but is not limited to portable or fixed storage devices, optical storage devices, wireless channels and various other mediums capable of storing, containing or carrying instruction(s) and/or data.

    [0038] Furthermore, embodiments may be implemented by hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine readable medium such as storage medium. A processor(s) may perform the necessary tasks. A code segment may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a class, or any combination of instructions, data structures, or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and/or receiving information, data, arguments, parameters, or memory contents. Information, arguments, parameters, data, etc. may be passed, forwarded, or transmitted via any suitable means including memory sharing, message passing, token passing, network transmission, etc.

    [0039] FIG. 1 illustrates a drilling system for operation at a wellsite to drill a borehole through an earth formation. The wellsite can be located onshore or offshore. In this system, a borehole 11 is formed in subsurface formations by rotary drilling in a manner that is well known. Systems can also use be used in directional drilling systems, pilot hole drilling systems, casing drilling systems and/or the like.

    [0040] A drillstring 12 is suspended within the borehole 11 and has a bottomhole assembly 100, which includes a drill bit 105 at its lower end. The surface system includes a platform and derrick assembly 10 positioned over the borehole 11, the assembly 10 including a top drive 30, kelly 17, hook 18 and rotary swivel 19. The drillstring 12 is rotated by the top drive 30, energized by means not shown, which engages the kelly 17 at the upper end of the drillstring. The drillstring 12 is suspended from a hook 18, attached to a traveling block (also not shown), through the kelly 17 and the rotary swivel 19 which permits rotation of the drillstring relative to the hook. As is well known, a rotary table system could alternatively be used to rotate the drillstring 12 in the borehole and, thus rotate the drill bit 105 against a face of the earth formation at the bottom of the borehole.

    [0041] The surface system can further include drilling fluid or mud 26 stored in a pit 27 formed at the well site. A pump 29 delivers the drilling fluid 26 to the interior of the drillstring 12 via a port in the swivel 19, causing the drilling fluid to flow downwardly through the drillstring 12 as indicated by the directional arrow 8. The drilling fluid exits the drillstring 12 via ports in the drill bit 105, and then circulates upwardly through the annulus region between the outside of the drillstring and the wall of the borehole, as indicated by the directional arrows 9. In this well-known manner, the drilling fluid lubricates the drill bit 105 and carries formation cuttings up to the surface as it is returned to the pit 27 for recirculation.

    [0042] The bottomhole assembly 100 may include a logging-while-drilling (LWD) module 120, a measuring-while-drilling (MWD) module 130, a rotary-steerable system and motor, and drill bit 105.

    [0043] The LWD module 120 may be housed in a special type of drill collar, as is known in the art, and can contain one or a plurality of known types of logging tools. It will also be understood that more than one LWD and/or MWD module can be employed, e.g. as represented at 120′. The LWD module may include capabilities for measuring, processing, and storing information, as well as for communicating with the surface equipment. The LWD module may include a fluid sampling device.

    [0044] The MWD module 130 may also be housed in a special type of drill collar, as is known in the art, and can contain one or more devices for measuring characteristics of the drillstring and drill bit. The MWD tool may further includes an apparatus (not shown) for generating electrical power to the downhole system. This may typically include a mud turbine generator powered by the flow of the drilling fluid, it being understood that other power and/or battery systems may be employed. The MWD module may include one or more of the following types of measuring devices: a weight-on-bit measuring device, a torque measuring device, a vibration measuring device, a shock measuring device, a stick slip measuring device, a direction measuring device, a rotation speed measuring device, and an inclination measuring device.

    [0045] A control unit 370 may be used to control the top drive 30 or other drive system. The top drive 30 may rotate the drillstring 12 at a rotation speed to produce desired drilling parameters. By way of example, the speed of rotation of the drillstring may be: determined so as to optimize a rate of penetration through the earth formation, set to reduce drill bit wear, adjusted according to properties of the earth formation, or the like.

    [0046] Sensors 390 may measure properties of the drillstring 12. Conveniently, the sensors 390 may be coupled with the drillstring 12 above or near the surface, although they may be distributed along the drillstring 12. The sensors may measure properties of the drillstring 12 from which upgoing/downgoing energy in the drillstring 12 and/or upgoing/downgoing components of the rotation of the drillstring 12 may be determined/estimated. For example, a speed of rotation of the drillstring may be determined. For example, the sensors 390 may measure torque of the drillstring 12, speed of rotation of the drillstring 12 and/or rotational impedance of the drillstring 12 and the upgoing/downgoing energy in the drillstring 12 and/or upgoing/downgoing components of the rotation of the drillstring 12 may be processed from the sensed measurements.

    [0047] The approach of the present invention allows the rotational oscillations of suspended tubulars to be controlled. In this way, the rotational motion of a drillstring can be stabilized, but the approach could equally well be applied to tubulars used for completing a well, such as casing or running in a liner or completion. Both the parameters/conditions desirable for optimal/desired drilling operation of the drilling system and the parameters/conditions for preventing/mitigating stick-slip can be processed/controlled during the drilling operation.

    [0048] In the drillstring during the drilling of the borehole there are rotational waves going up and down the drillstring. The reflections of the upgoing waves into downgoing waves at the surface produce the large rotational resonances in, and repetitive stick-slip motion of, the drilling system.

    [0049] The downgoing waves in the drillstring also include those initiated by the system driving the drillstring, i.e. the top drive or the like. These downgoing waves in the drillstring produced by the drive system are required in order to drive the drill bit to drill through the earth formation. As such, the downgoing energy comprises desirable downgoing energy that is used to drive the drill bit and undesirable downward energy that causes oscillation in the drillstring and/or stick slip. Consequently, systems and methods can be provided which aim to achieve a desired rotation speed of the drillstring (hereinafter referred to as v.sub.0) while minimising the amount of energy contained in the downgoing rotation (the downgoing rotation is hereinafter referred to as v.sub.down).

    [0050] Thus in general, a processor may determine an optimized speed of rotation for the drillstring 12, wherein the optimized speed of rotation balances/optimizes delivery of rotational energy to the drill bit against reduction of energy travelling down the drillstring 12. More particularly, the control unit 370 can provide an outer control system used to control a fast, built-in control system for the top drive 30; wherein a desired/determined rotation speed is provided to the built-in control system, which attempts to achieve the particular rotation speed, and the outer control system controls the top drive to vary the rotation speed around the desired/determined rotation speed to reduce the amount of downgoing energy.

    [0051] The contrary objectives of maximizing energy sent down the drillstring to the drill bit by rotating the drillstring and minimizing downgoing energy to prevent large oscillations of the drillstring in the borehole and/or stick-slip may be viewed as a minimization constraint that can be written as minimizing E such that:

    [00001] E = ( v - v 0 ) 2 + λ .Math. v down 2 = ( v - v 0 ) 2 + λ ( v - v up ) 2 ( 1 )

    [0052] where:

    [0053] v.sub.0 is the desired average rotation speed

    [0054] v is the determined rotation speed to be fed to the top-drive and is the sum of v.sub.up and v.sub.down; and

    [0055] λ is a constant that reflects a relative weight given to the two conflicting objectives.

    [0056] Equation (1) can be embodied in an algorithm which determines a rotation speed v that is then passed to the top-drive controller, on the assumption that the controller is able to exactly achieve that speed. While modern top-drive controllers are normally able to achieve close to a commanded speed, there will inevitably be small differences between actual and the commanded speeds. Such small differences do not invalidate the control algorithm.

    [0057] Thus, when v appears on the left-hand-side of an equation it should be interpreted as the commanded rotation speed to be sent to the top-drive controller. When it appears on the right-hand-side of an equation, it is preferably the most recent actual measured rotation speed of the top-drive, although if this is not available, the most recent previous commanded rotation speed can be substituted.

    [0058] The upgoing component of the rotation speed may be estimated from simultaneous surface measurements of the rotation speed and torque in the drillstring (T). A rotational impedance of the pipe z may be determined, i.e., from pipe dimension or the like at the surface. The downgoing and upgoing components of the rotation may then be given by:

    [00002] v down = 1 2 .Math. ( v + T z ) v up = 1 2 .Math. ( v - T z )

    [0059] where z is the pipe impedance.

    [0060] The corresponding upgoing and downgoing energies are proportional to v.sup.2.sub.down and v.sup.2.sub.up and their sum is proportional to the total rotational energy of the drillstring:

    [00003] v up 2 + v down 2 = 1 2 .Math. v 2 + 1 2 .Math. z 2 .Math. T 2

    [0061] Although it is desirable for the correct value of z to be used, the controller is generally robust to errors in the value of z.

    [0062] The solution to equation (1) is given by:

    [00004] v = v 0 + λ .Math. v up 1 + λ

    [0063] However, this solution provides a slower mean rotation speed for the drillstring than is desirable, i.e., the rotation speed reduces downgoing energy and thus reduces oscillation of the drillstring, but the downgoing energy is so low it produces slow rotation of the drill bit and undesirable drilling speeds. Accordingly, the minimization constraint can be rewritten as:


    E=(v−(1+λ)v.sub.0).sup.2+λv.sub.down.sup.2

    [0064] A solution of this minimization constraint is:

    [00005] v = v 0 + λ 1 + λ .Math. v up

    [0065] The term v.sub.up on the right hand side is calculated from the most recent measurements of torque and rotation speed, and thus there is a slight lag. In some embodiments of the present disclosure, this lag is configured to be less than at least one quarter of the period of the dominant resonance of the rotation system.

    [0066] In some embodiments of the present disclosure, a residual correction term r may be included in the solution to account for the long term average of the rotation speed. This then provides the following solution for the minimization constraint, where t is the current time and δ is the sampling interval:

    [00006] v ( t ) = r ( t ) + v 0 ( t ) + λ 1 + λ .Math. v up ( t - δ ) ( 2 )

    [0067] the rate of change of the residual correction being proportional to the difference between the current and desired average rotation speed, as follows:

    [00007] d .Math. r d .Math. t = 1 k .Math. ( v - v 0 )

    [0068] and k being chosen so that it is long compared to the resonance time of the system. For example, k may be of the order of 60 seconds or longer.

    [0069] In discrete time, with sampling interval δ, r may be calculated by:

    [00008] r j = r j - 1 + δ k .Math. ( v j - v 0 .Math. ( j ) )

    [0070] A high-pass filter may be applied to the signal v.sub.up used in equation (2). This may be done using a one-pole filter, with the same value of k, where:

    [00009] v u .Math. p j l = ( 1 - δ k ) .Math. v u .Math. p j - 1 l + δ k .Math. v up j v up j h = v up j - v up j l

    [0071] and where the subscript j indicates the time step, the superscript l indicates the filtered-out low-pass signal, and the superscript h indicates the remaining high-pass signal. The value of A used in equation (2) may be 1. The λ parameter controls how much reduction in rotational resonance is to be provided by the control system. For example, when λ is set to zero, the control system will provide zero reduction in torsional resonance. The desired torsional resonance control may be selected and this selection may be weighed against other desired drilling parameters.

    [0072] FIG. 2 shows a basic flow diagram for a drilling control method in accordance with an embodiment of the present disclosure that implements a control algorithm based on equation (2). In some embodiments of the present disclosure, after v.sub.0 is set in the first step, the algorithm loops around the subsequent steps at a repeat interval that is sufficiently short that the steps are repeated multiple times during the dominant rotational resonance of the system.

    [0073] When the system is activated, the value of A may vary over time such that initially it is zero or close to zero, and subsequently increases until it reaches a chosen value. In some embodiments of the present disclosure, this method of gradual activation reduces the variation in system behaviour seen in the drilling system.

    [0074] If the high-pass filter is applied to the upgoing rotation speed v.sub.up, then theoretically, no residual correction term r is required. However, some embodiments, such a correction term may still be used to avoid drift from noise or calculation error.

    [0075] In some embodiments of the present disclosure, in order to avoid sending high-frequency noise to the drive system (i.e. the top drive controller or the like) that may interact with the internal control algorithm, the estimate of the upgoing rotation speed may be low-pass filtered. This can be done in the same way as for r, but with a smaller value of k, which can be chosen so that it does not filter out the main rotational resonance of the drillstring. A value for k may, in some embodiments of the present disclosure, be of the order of 0.1 s. A low-pass one-pole filter can be provided according to:

    [00010] v u .Math. p j f = ( 1 - δ k ) .Math. v up j - 1 f + δ k .Math. v u .Math. p j

    [0076] where the superscript f indicates the filtered signal.

    [0077] In a drilling system, if the bit sticks hard, it is possible for the drillstring rotation to stop completely. To avoid this, in some embodiments of the present disclosure, a minimum value of v may be imposed. For example, a minimum value of v may be imposed on the control system that is 25% or 50% less than the desired average value v.sub.0. It may also be desirable, for reasons such as reducing vibration on the rig, or limitations of the top drive gearbox, for there to be an upper limit on the rotation speed. In a similar manner, In some embodiments of the present disclosure, a maximum value of v may be imposed on the system.

    [0078] Equation (2) may be rewritten as:

    [00011] v j = r j + v 0 .Math. ( j ) + λ 1 + λ .Math. v up j - 1 f

    [0079] As noted above, in some embodiments of the present disclosure, the energy optimization algorithm may be processed in a processor for desired drilling speeds and the speed of rotation of the drillstring may be controlled in accordance with the output of the optimization algorithm. For example, the control unit 370 may be a secondary controller that controls the top drive 30 or the like to control the rotation speed the drillstring is being driven at in accordance with the output of the optimization algorithm. In particular, a primary (e.g. built in) control system may control the top drive or the like to drive the drillstring at a desired speed of rotation and the secondary controller may control the top drive or the like to drive the drillstring at rotation speeds around/proximal to the desired speed of rotation. Use of such a secondary controller means that existing control systems can be modified to implement control methods in accordance with the present invention.

    [0080] All references referred to above are hereby incorporated by reference for all purposes. While the principles of the disclosure have been described above in connection with specific apparatuses and methods, it is to be clearly understood that this description is made only by way of example and not as limitation on the scope of the invention.

    Numbered Clauses Relating to the Invention

    [0081] [Clause 1] A method for controlling a drilling system, comprising a drive system, drillstring and drill bit, wherein the drive system rotates the drillstring during a drilling process to drill a borehole through an earth formation, comprising: [0082] receiving a desired/set speed of rotation of the drillstring; [0083] determining an upgoing energy component for rotational energy traveling up the rotating drillstring; [0084] determining a downgoing energy component for energy traveling down the rotating drillstring; and [0085] deriving an optimal rotation speed for the drillstring that constrains the downgoing rotational energy.

    [0086] [Clause 2] The method of Clause 1, further comprising: [0087] controlling the drive system to rotate the drillstring at the optimal rotation speed.

    [0088] [Clause 3] The method of Clause 1 or 2, wherein the drive system comprises a top drive.

    [0089] [Clause 4] The method of any one of the previous Clauses, wherein the determining the upgoing energy component and the determining the downgoing energy component comprises measuring at least one of an actual rotation speed of the drillstring, a torque applied to the drillstring and a rotational impedance of the drillstring and processing the measurements of the at least one of the actual rotation speed of the drillstring, the torque applied to the drillstring and the rotational impedance of the drillstring to determine the upgoing energy component and the downgoing energy component.

    [0090] [Clause 5] The method of any one of the previous Clauses, wherein the optimal rotation speed comprises a rotation speed that combines constraints on the variation of the optimal rotation speed from the desired/set speed of rotation and on the downgoing energy component.

    [0091] [Clause 6] The method of any one of the previous Clauses, wherein additional bounds are put on the optimal rotation speed, either a maximum or a minimum rotation speed or both

    [0092] [Clause 7] The method of any one of the previous Clauses, wherein the speed of rotation of the drillstring comprises an angular velocity of the drillstring.

    [0093] [Clause 8] A system for controlling a drilling system, the drilling system comprising a drive system, drillstring and drill bit, wherein the drive system rotates the drillstring during a drilling process to drill a borehole through an earth formation, comprising: [0094] a control system configured to drive the drillstring to rotate at a desired/set speed of rotation; [0095] one or more sensors coupled with at least one of the drive system and the drillstring and configured to measure parameters for determining an upgoing energy component and a downgoing energy component of energy traveling along the rotating drillstring; and [0096] a processor configured to process an optimal rotation speed for the drillstring to provide for an optimal rotation speed for the drillstring that constrains the downgoing rotational energy.

    [0097] [Clause 9] A method for controlling a drilling system, comprising a drive system, drillstring and drill bit, wherein the drive system rotates the drillstring during a drilling process to drill a borehole through an earth formation, comprising: [0098] receiving a desired/set speed of rotation of the drillstring; [0099] determining a downgoing energy component for energy traveling down the rotating drillstring; and [0100] deriving an optimal rotation speed for the drillstring where a combination of the variation between the optimal and desired rotation speed, and the downgoing rotational energy is minimised.