Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MAINTAINING AND INSPECTING A WELLBORE
Document Type and Number:
WIPO Patent Application WO/2022/187204
Kind Code:
A1
Abstract:
An assembly and a method for maintaining and inspecting a wellbore are described. The assembly includes a body. Multiple magnetic wheel sub-assemblies are adjustably coupled to the body. The magnetic wheel sub-assemblies position the body within the wellbore and reposition relative to the body in response to a wellbore narrowing or a wellbore widening. The assembly includes a tool connection coupled to the body. The tool connection couples a well tool to the body. The assembly includes a control sub-assembly to control the magnetic wheel sub-assemblies and operate the well tool within the wellbore. The assembly includes a power sub-assembly to supply power to the control sub-assembly and the well tool. The assembly includes a backup retrieval mechanism coupled to the body. The backup retrieval mechanism couples to a retrieval tool.

Inventors:
AL-MOUSA AHMED (SA)
Application Number:
PCT/US2022/018285
Publication Date:
September 09, 2022
Filing Date:
March 01, 2022
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SAUDI ARABIAN OIL CO (SA)
ARAMCO SERVICES CO (US)
International Classes:
E21B23/00; G01M3/00; G01M3/24; G01M3/28
Foreign References:
US6273189B12001-08-14
US20140345367A12014-11-27
US10273770B22019-04-30
US202117188870A2021-03-01
Attorney, Agent or Firm:
BRUCE, Carl E. et al. (US)
Download PDF:
Claims:
CLAIMS

1. A wellbore maintenance and inspection assembly comprising: a body configured to be disposed in a wellbore; a magnetic wheel assembly comprising a plurality of magnetic wheel sub- assemblies adjustably coupled to the body, the magnetic wheel assembly configured to: position the body within the wellbore, and reposition the plurality of magnetic wheel sub-assemblies relative to the body in response to a wellbore narrowing or a wellbore widening; a tool connection mechanically coupled to the body, the tool connection configured to couple a well tool to the body; a control sub-assembly mechanically coupled to the body, the magnetic wheel assembly, and the tool connection, the control sub-assembly configured to: control the magnetic wheel assembly, and operate the well tool within the wellbore; a power sub-assembly disposed within the body, the power sub-assembly configured to supply power to the control sub-assembly and the well tool; and a backup retrieval mechanism mechanically coupled to the body, the backup retrieval mechanism configured to couple to a retrieval tool.

2. The wellbore maintenance and inspection assembly of claim 1, wherein each of the magnetic wheel sub-assemblies comprise: a magnetic wheel configured to couple to a surface of the wellbore; a hydraulic arm coupled to the magnetic wheel and the body, the hydraulic arm configured to position the magnetic wheel in contact with the surface of the wellbore; a support arm coupled to hydraulic arm and the body, the support arm configured to support the hydraulic arm; and a drive spring arm coupled to the magnetic wheel and the body, the drive spring arm configured to: articulate in response to the hydraulic arm positioning the magnetic wheel; and rotate the magnetic wheel.

3. The wellbore maintenance and inspection assembly of claim 1, wherein the magnetic wheel assembly comprises six magnetic wheel sub-assemblies.

4. The wellbore maintenance and inspection assembly of claim 2, further comprising a hydraulic sub-assembly configured to flow a hydraulic fluid to and from each hydraulic arm of each magnetic wheel assembly.

5. The wellbore maintenance and inspection assembly of claim 4, wherein the hydraulic sub-assembly comprises: a hydraulic fluid supply reservoir; a hydraulic control valve configured to control a fluid flow to and from each hydraulic arm; and a plurality of hydraulic conduits fluidically coupled to the hydraulic fluid supply reservoir and each hydraulic arm to flow the fluid to flow a hydraulic control fluid to and from the each hydraulic arm.

6. The wellbore maintenance and inspection assembly of claim 1, further comprising a well tool configured to perform a maintenance or inspection task on the wellbore, wherein the tool comprises brushes to clean a surface of the wellbore.

7. The wellbore maintenance and inspection assembly of claim 1, wherein the control sub-assembly comprises: a sensor configured to sense a condition and transmit a signal representing the condition, wherein the condition is one or more of a pressure, a temperature, a depth, a conductivity, a pH, a dimension of the wellbore, or an orientation of the body relative to the wellbore and the surface of the Earth; one or more computer processors; and a non-transitory computer-readable storage medium storing instructions executable by the one or more computer processors to cause the one or more computer processors to perform operations comprising: receiving a signal representing the condition from the sensor; comparing the signal representing the condition to the instructions; and responsive to the comparison of the signal representing the condition and the instructions, generating a command signal to operate the magnetic wheel sub- assembly or the well tool. 8. The wellbore maintenance and inspection assembly of claim 7, wherein the condition is the dimension of the wellbore, the one or more computer processors are further configured to: receive a first dimension of the wellbore; receive a second dimension of the wellbore; compare the first dimension to the second dimension; and responsive to the comparison of the first dimension of the wellbore to the second dimension of the wellbore, wherein the comparison indicates the wellbore narrowing, generate a command signal to reposition the plurality of magnetic wheel sub-assemblies relative to the body in response to the wellbore narrowing.

9. The wellbore maintenance and inspection assembly of claim 7, wherein the condition is the dimension of the wellbore, the one or more computer processors are further configured to: receive a first dimension of the wellbore; receive a second dimension of the wellbore; compare the first dimension to the second dimension; and responsive to the comparison of the first dimension of the wellbore to the second dimension of the wellbore, wherein the comparison indicates the wellbore widening, generate a command signal to reposition the plurality of magnetic wheel sub-assemblies relative to the body in response to the wellbore widening.

10. The wellbore maintenance and inspection assembly of claim 8, wherein control sub-assembly comprises a telemetry receiver configured to receive a reprogramming signal from a remote control station, wherein the reprogramming signal instructs the one or more computer processors to perform a different operation from the operation stored in the non-transitory computer-readable storage medium.

11. The wellbore maintenance and inspection assembly of claim 8, wherein the command signal comprises a signal to the magnetic wheel assembly to rotate, stop rotating, or lock one or more of the magnetic wheels. 12. The wellbore maintenance and inspection assembly of claim 9, wherein one or more of the magnetic wheels are locked when engaged to a surface of the wellbore.

13. The wellbore maintenance and inspection assembly of claim 1, wherein the power sub-assembly further comprises a turbine configured to: generate power from a wellbore fluid flow; and supply the power to the power sub-assembly to power the control sub-assembly or the well tool.

14. The wellbore maintenance and inspection assembly of claim 1, wherein: the retrieval tool is a GS tool; and the backup retrieval mechanism is further configured to couple to the GS tool.

15. A method for maintaining a wellbore with a wellbore maintenance and inspection assembly positioned in the wellbore, the wellbore maintenance and inspection assembly comprising: a body configured to be disposed in a wellbore; a magnetic wheel assembly comprising a plurality of magnetic wheel sub-assemblies adjustably coupled to the body, the magnetic wheel assembly configured to: position the body within the wellbore, and reposition the plurality of magnetic wheel sub-assemblies relative to the body in response to a wellbore narrowing or a wellbore widening; a tool connection mechanically coupled to the body, the tool connection configured to couple a well tool to the body; a sensor mechanically coupled to the body, the sensor configured to sense a condition and transmit a signal representing the condition, wherein the condition is one or more of a pressure, a temperature, a depth, a conductivity, a pH, a dimension of the wellbore, or an orientation of the body relative to the wellbore and a surface of the Earth; a control sub-assembly coupled to the body, the control sub-assembly operatively coupled to the magnetic wheel assembly and the tool connection, the control sub-assembly comprising: one or more computer processors; and a non-transitory computer-readable storage medium storing instructions executable by the one or more computer processors to cause the one or more computer processors to perform operations comprising: receiving a signal representing the condition from the sensor; comparing the signal representing the condition to the instructions; and responsive to the comparison of the signal representing the condition and the instructions, generating a command signal to operate the magnetic wheel sub-assembly or the well tool; a power sub-assembly configured to supply power to the control sub- assembly and the well tool; and a backup retrieval mechanism mechanically coupled to the body, the backup retrieval mechanism configured to couple to a retrieval tool, the method comprising: sensing a condition; transmitting a signal representing the condition to the control sub-assembly; comparing the condition to the instruction; and responsive to the comparison of the signal representing the condition and the instruction, generating a command signal to operate the magnetic wheel sub-assembly or the well tool by the control sub-assembly. 16. The method of claim 15, wherein the well tool comprises a brush coupled to the tool connection, the method further comprises brushing a surface of the wellbore with the brush to clean the surface of the wellbore.

17. The method of claim 15, further comprising: engaging the plurality of magnetic wheel sub-assemblies to the surface of the wellbore; rotating the plurality of magnetic wheel sub-assemblies while engaged to the surface of the wellbore; responsive to rotating the plurality of magnetic wheel sub-assemblies, repositioning the wellbore maintenance and inspection assembly in the wellbore; and stopping rotating the plurality of magnetic wheel sub-assemblies. 18. The method of claim 15, further comprising: locking the plurality of magnetic wheel sub-assemblies; wherein locking the plurality of magnetic wheel sub-assemblies prevents rotation of the magnetic wheel sub-assemblies; engaging the locked plurality of magnetic wheel sub-assemblies to the surface of the wellbore; responsive to engaging the locked plurality of magnetic wheel sub-assemblies to the surface of the wellbore, maintaining the position of the wellbore maintenance and inspection assembly in the wellbore; disengaging the locked plurality of magnetic wheel sub-assemblies from the surface of the wellbore; and unlocking the plurality of magnetic wheel sub-assemblies, wherein unlocking the plurality of magnetic wheel sub-assemblies allows rotation of the magnetic wheel sub-assemblies. 19. The method of claim 15, wherein the power sub-assembly comprises a turbine, the method further comprises: generating electrical power responsive to a wellbore fluid flow; and suppling the power to the power sub-assembly to electrically power the control sub-assembly or the well tool.

20. The method of claim 15, wherein the condition is the dimension of the wellbore, the method comprises: receiving, at the controller, a first dimension of the wellbore; receiving, at the controller, a second dimension of the wellbore; comparing, by the controller, the first dimension to the second dimension; and responsive to the comparison of the first dimension of the wellbore to the second dimension of the wellbore: wherein the comparison indicates the wellbore narrowing, generating, by the controller, a command signal to reposition the plurality of magnetic wheel sub-assemblies relative to the body in response to the wellbore narrowing; and wherein the comparison indicates the wellbore widening, generating, by the controller, a command signal to reposition the plurality of magnetic wheel sub-assemblies relative to the body in response to the wellbore widening.

Description:
MAINTAINING AND INSPECTING A WELLBORE

Claim of Priority

[0001] This application claims priority to U.S. Patent Application No. 17/188,870 filed on March 1, 2021, the entire contents of which are hereby incorporated by reference.

Technical Field

[0002] This disclosure relates to a wellbore, for example, through which hydrocarbons are produced.

Background [0003] Wellbores in an oil and gas well are filled with both liquid and gaseous phases of various fluids and chemicals including water, oils, and hydrocarbon gases. A wellbore completion is installed in the wellbore to seal the wellbore from the formations of the Earth and to control the flow of oil and gas from the wellbore to the surface of the Earth. The wellbore completion can include multiple components including isolation valves, tubing, tubing joints, pumps, liners, branches, and shoes. Maintenance tasks or inspections or both may be performed on the components of the wellbore completion assembly.

Summary

[0004] This disclosure describes technologies related to maintaining and inspecting a wellbore with a wellbore maintenance and inspection assembly. Implementations of the present disclosure include a wellbore maintenance and inspection assembly. The wellbore maintenance and inspection assembly includes a body to be disposed in a wellbore.

[0005] The wellbore maintenance and inspection assembly includes a magnetic wheel assembly including multiple magnetic wheel sub-assemblies adjustably coupled to the body. The magnetic wheel assembly positions the body within the wellbore and repositions the magnetic wheel sub-assemblies relative to the body in response to a wellbore narrowing or a wellbore widening. In some implementations, each of the magnetic wheel sub-assemblies include a magnetic wheel to couple to a surface of the wellbore. In some implementations, each of the magnetic wheel sub-assemblies include l a hydraulic arm coupled to the magnetic wheel and the body. The hydraulic arm positions the magnetic wheel in contact with the surface of the wellbore. In some implementations, each of the magnetic wheel sub-assemblies include a support arm coupled to hydraulic arm and the body. The support arm supports the hydraulic arm. In some implementations, each of the magnetic wheel sub-assemblies include a drive spring arm coupled to the magnetic wheel and the body. The drive spring arm articulates in response to the hydraulic arm positioning the magnetic wheel and rotates the magnetic wheel. In some implementations, the magnetic wheel assembly includes six magnetic wheel sub-assemblies. [0006] The wellbore maintenance and inspection assembly includes a tool connection mechanically coupled to the body. The tool connection couples a well tool to the body. In some implementations, the assembly further includes a well tool to perform a maintenance or inspection task on the wellbore. The well tool includes brushes to clean a surface of the wellbore. [0007] The wellbore maintenance and inspection assembly includes a control sub- assembly mechanically coupled to the body, the magnetic wheel assembly, and the tool connection. The control sub-assembly controls the magnetic wheel assembly and operates the well tool within the wellbore. In some implementations, the control sub- assembly further includes a sensor to sense a condition and transmit a signal representing the condition. The condition is one or more of a pressure, a temperature, a depth, a conductivity, a pH, a dimension of the wellbore, or an orientation of the body relative to the wellbore and the surface of the Earth.

[0008] In some implementations, the control sub-assembly includes one or more computer processors and a non-transitory computer-readable storage medium storing instructions executable by the one or more computer processors to cause the one or more computer processors to perform operations. The operations include receiving a signal representing the condition from the sensor, comparing the signal representing the condition to the instructions, and responsive to the comparison of the signal representing the condition and the instructions, generating a command signal to operate the magnetic wheel sub-assembly or the well tool.

[0009] In some implementations, the condition is the dimension of the wellbore. In such implementations, the one or more computer processors further receive a first dimension of the wellbore, receive a second dimension of the wellbore, and compare the first dimension to the second dimension. The one or more computer processors then, where the comparison indicates the wellbore narrowing, responsive to the comparison of the first dimension of the wellbore to the second dimension of the wellbore, further generate a command signal to reposition the magnetic wheel sub-assemblies relative to the body in response to the wellbore narrowing.

[0010] In some implementations, the condition is the dimension of the wellbore. In such implementations, the one or more computer processors further receive a first dimension of the wellbore, receive a second dimension of the wellbore, and compare the first dimension to the second dimension. The one or more computer processors then, where the comparison indicates the wellbore widening, responsive to the comparison of the first dimension of the wellbore to the second dimension of the wellbore, further generate a command signal to reposition the magnetic wheel sub-assemblies relative to the body in response to the wellbore widening.

[0011] In some implementations, the control sub-assembly further includes a telemetry receiver to receive a reprogramming signal from a remote control station. The reprogramming signal instructs the one or more computer processors to perform a different operation from the operation stored in the non-transitory computer-readable storage medium.

[0012] In some implementations, the command signal includes a signal to the magnetic wheel assembly to rotate, stop rotating, or lock one or more of the magnetic wheels. In some implementations, one or more of the magnetic wheels are locked when engaged to a surface of the wellbore.

[0013] In some implementations, the assembly includes a power sub-assembly disposed within the body. The power sub-assembly supplies power to the control sub- assembly and the well tool. In some implementations, the power sub-assembly further includes a turbine to generate power from a wellbore fluid flow and supply the power to the power sub-assembly to power the control sub-assembly or the well tool.

[0014] The wellbore maintenance and inspection assembly includes a backup retrieval mechanism mechanically coupled to the body. The backup retrieval mechanism couples to a retrieval tool. In some implementations, the retrieval tool is a GS tool and the backup retrieval mechanism couples to the GS tool.

[0015] In some implementations, the assembly further includes a hydraulic sub- assembly to flow a hydraulic fluid to and from each hydraulic arm of each magnetic wheel assembly. In some implementations, the hydraulic sub-assembly includes a hydraulic fluid supply reservoir. In some implementations, the hydraulic sub-assembly includes a hydraulic control valve to control a fluid flow to and from each hydraulic arm. In some implementations, the hydraulic sub-assembly includes multiple hydraulic conduits fluidically coupled to the hydraulic fluid supply reservoir and each hydraulic arm to flow the fluid to flow a hydraulic control fluid to and from the each hydraulic arm.

[0016] Further implementations of the present disclosure include a method for maintaining a wellbore with a wellbore maintenance and inspection assembly positioned in the wellbore. The assembly includes a body to be disposed in a wellbore. The assembly includes a magnetic wheel assembly. The magnetic wheel assembly includes multiple magnetic wheel sub-assemblies adjustably coupled to the body. The magnetic wheel assembly positions the body within the wellbore and reposition the magnetic wheel sub-assemblies relative to the body in response to a wellbore narrowing or a wellbore widening. The assembly includes a tool connection mechanically coupled to the body. The tool connection couples a well tool to the body. The assembly includes a sensor mechanically coupled to the body. The sensor senses a condition and transmit a signal representing the condition. The condition is one or more of a pressure, a temperature, a depth, a conductivity, a pH, a dimension of the wellbore, or an orientation of the body relative to the wellbore and a surface of the Earth.

[0017] The assembly includes a control sub-assembly coupled to the body. The control sub-assembly is operatively coupled to the magnetic wheel assembly and the tool connection. The control sub-assembly includes one or more computer processors and a non-transitory computer-readable storage medium storing instructions executable by the one or more computer processors to cause the one or more computer processors to perform operations. The operations include receiving a signal representing the condition from the sensor. The operations include comparing the signal representing the condition to the instructions. The operations include, responsive to the comparison of the signal representing the condition and the instructions, generating a command signal to operate the magnetic wheel sub-assembly or the well tool.

[0018] The assembly includes a power sub-assembly to supply power to the control sub-assembly and the well tool. In some implementations, where the power sub- assembly includes a turbine, the method further includes generating electrical power responsive to a wellbore fluid flow and suppling the power to the power sub-assembly to electrically power the control sub-assembly or the well tool.

[0019] The assembly includes a backup retrieval mechanism mechanically coupled to the body. The backup retrieval mechanism couples to a retrieval tool. [0020] The method includes sensing a condition, transmitting a signal representing the condition to the control sub-assembly, comparing the condition to the instruction, and responsive to the comparison of the signal representing the condition and the instruction, generating a command signal to operate the magnetic wheel sub-assembly or the well tool by the control sub-assembly. [0021] In some implementations, where the well tool includes a brush coupled to the tool connection, the method further includes brushing a surface of the wellbore with the brush to clean the surface of the wellbore.

[0022] In some implementations, the method further includes engaging the magnetic wheel sub-assemblies to the surface of the wellbore. In some implementations, the method further includes rotating the magnetic wheel sub-assemblies while engaged to the surface of the wellbore. In some implementations, the method further includes, responsive to rotating the magnetic wheel sub-assemblies, repositioning the wellbore maintenance and inspection assembly in the wellbore. In some implementations, the method further includes stopping rotating the plurality of magnetic wheel sub- assemblies.

[0023] In some implementations, the method further includes locking the magnetic wheel sub-assemblies. Locking the magnetic wheel sub-assemblies prevents rotation of the magnetic wheel sub-assemblies. In some implementations, the method further includes engaging the locked magnetic wheel sub-assemblies to the surface of the wellbore. In some implementations, the method further includes, responsive to engaging the locked magnetic wheel sub-assemblies to the surface of the wellbore, maintaining the position of the wellbore maintenance and inspection assembly in the wellbore. In some implementations, the method further includes disengaging the locked magnetic wheel sub-assemblies from the surface of the wellbore. In some implementations, the method further includes unlocking the magnetic wheel sub-assemblies. Unlocking the magnetic wheel sub-assemblies allows rotation of the magnetic wheel sub-assemblies. [0024] In some implementations, where the condition is the dimension of the wellbore, the method further includes receiving, at the controller, a first dimension of the wellbore. The method further includes receiving, at the controller, a second dimension of the wellbore. The method further includes comparing, by the controller, the first dimension to the second dimension. The method further includes, responsive to the comparison of the first dimension of the wellbore to the second dimension of the wellbore, where the comparison indicates the wellbore narrowing, generating, by the controller, a command signal to reposition the magnetic wheel sub-assemblies relative to the body in response to the wellbore narrowing. The method further includes, where the comparison indicates the wellbore widening, generating, by the controller, a command signal to reposition the magnetic wheel sub-assemblies relative to the body in response to the wellbore widening.

[0025] The details of one or more implementations of the subject matter described in this disclosure are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, the drawings, and the claims. Brief Description of the Drawings

[0026] FIG. 1 is a schematic view of a wellbore maintenance and inspection assembly disposed in a wellbore.

[0027] FIG. 2 is a schematic side view of the wellbore maintenance and inspection assembly of FIG. 1 engaged to the wellbore. [0028] FIG. 3 is a schematic top view of the wellbore maintenance and inspection assembly of FIG. 1 engaged to the wellbore.

[0029] FIG. 4 is a schematic side view of the wellbore maintenance and inspection assembly moving through the wellbore in a downhole direction.

[0030] FIG. 5 is a schematic view of the wellbore maintenance and inspection assembly moving through the wellbore in an uphole direction.

[0031] FIG. 6 is a schematic view of the wellbore maintenance and inspection assembly of FIG. 1 moving through a restriction in the wellbore.

[0032] FIG. 7 is a schematic view of the wellbore maintenance and inspection assembly of FIG. 1 statically engaged to the wellbore. [0033] FIG. 8 is a schematic view of the hydraulic, power, and control sub assemblies of the wellbore maintenance and inspection assembly. [0034] FIG. 9 is a schematic view of a tool connection of the wellbore maintenance and inspection assembly.

[0035] FIG. 10 is a schematic view of a retrieval tool disposed in the wellbore to retrieve the wellbore maintenance and inspection assembly. [0036] FIGS. 1 lA-11C are schematic views of the retrieval tool of FIG. 10 engaging and retrieving the wellbore maintenance and inspection assembly.

[0037] FIG. 12 is a schematic view of a turbine coupled to the wellbore maintenance and inspection assembly.

[0038] FIG. 13 is a flowchart of a control algorithm for cleaning the wellbore with the wellbore maintenance and inspection assembly.

[0039] FIG. 14 is a flow chart of an example method of maintaining a wellbore using the wellbore maintenance and inspection assembly according to the implementations of the present disclosure.

[0040] FIG. 15 is a schematic view of another wellbore maintenance and inspection assembly disposed in a wellbore.

Detailed Description

[0041] The present disclosure describes a system and a method for maintaining and inspecting a wellbore with a wellbore maintenance and inspection assembly. The assembly includes a body to be disposed in a wellbore. The assembly include a magnetic wheel assembly which includes multiple magnetic wheel sub-assemblies, each adjustably coupled to the body. The magnetic wheel assembly positions the body within the wellbore and repositions the magnetic wheel sub-assemblies relative to the body in response to a wellbore narrowing or a wellbore widening. The assembly includes a tool connection coupled to the body. The tool connection couples a well tool to the body. [0042] The assembly includes a control sub-assembly coupled to the body, the magnetic wheel assembly, and the tool connection. The control sub-assembly controls the magnetic wheel assembly and operates the well tool within the wellbore. The assembly includes a power sub-assembly to supply power to the control sub-assembly and the well tool. The assembly includes a backup retrieval mechanism coupled to the body. The backup retrieval mechanism couples to a retrieval tool.

[0043] Implementations of the present disclosure realize one or more of the following advantages. Preventative and corrective maintenance on wellbore completion assembly components can be conducted a shorter time period. For example, a corroded or blocked tubular can be inspected and cleaned in a single operation. A tubular restriction can be navigated. The assembly can reduce its overall diameter to move through the tubular restriction. Multiple sizes of tubulars can be cleaned by the same wellbore maintenance and inspection assembly. For example, the assembly can actuate to maintain contact on tubulars of different inner diameters. Additionally, environmental safety is improved. For example, a wellbore containing tubulars of multiple sizes or with various internal restrictions can be inspected with a single wellbore maintenance and inspection assembly to insure component structural integrity and verify proper component operation. Ease of maintenance is improved as a workover rig or slickline logging tool surface equipment is not needed. The assembly is disposed in the wellbore without the workover rig or slickline logging tool surface equipment. For an offshore wellbore, a support barge is not needed. Also, the wellbore tubular and components can be maintained or inspected axially (in multiple directions) within the without surface interference, or in other words, the assembly operates autonomously or semi-autonomously. Retrieval of a wellbore maintenance and inspection assembly is simplified. For example, the assembly self-retrieves from the wellbore. A drilling rig or workover rig is not needed for assembly retrieval operations.

[0044] FIG. 1 is a schematic view of a wellbore maintenance and inspection assembly disposed in a wellbore. The wellbore maintenance and inspection assembly 102 is disposed in a wellbore 104 to perform a maintenance or inspection task (or operation). The wellbore 104 is defined by a wellbore surface 106 which separates the wellbore from the formations 108 of the Earth. The wellbore 104 extends into the formations 108 of the Earth from a surface 110 of the Earth. The formations 108 of the Earth contain pressurized liquid and gaseous phases of various fluids and chemicals including water, oils, and hydrocarbon gases. The wellbore 104 includes a casing 112 to seal portions 114 of the wellbore 104 from the formations 108 of the Earth and to control the flow of oil and gas from other portions 116 of the wellbore 104 to the surface 110 of the Earth. As shown in FIG. 1, the portion 116, in this case at the bottom or downhole end of the casing 112, is open to allow pressurized liquid and gaseous phases of various fluids and chemicals including water, oils, and hydrocarbon gases from the formations 108 to flow into the casing 112 and up to the surface 110 of the Earth. The wellbore 104 can include other components such as isolation valves, inflow control valves, tubing, tubing joints, pumps, electrical submersible pumps, liners, branches, and shoes (not shown) to control the flow of the water, oils, and hydrocarbon gases to the surface 110.

[0045] The pressurized liquid and gaseous phases of various fluids and chemicals including water, oils, and hydrocarbon gases contain particulates and debris 118 can adhere to an inner surface 120 of the casing 112. The particulates and debris 118 accumulate on the inner surface 120 of the casing 112 and cause a restriction 122 in water, oils, and hydrocarbon gas flow to the surface 110 of the Earth. Additionally, some of the gases, fluids, and chemicals are corrosive to wellbore components. The corrosive gases, fluids and chemicals can cause corrosion which accumulates to contribute to the restriction 122 or cause component failure. For example, an accumulation of corrosion on a valve (not shown) can result in the valve failing to open or shut properly. The wellbore maintenance and inspection assembly 102 can be configured to remove the restriction 122 by cleaning the inner surface 120 of the casing 112. Alternatively, the corrosive gases, fluids, and chemicals eat away a portion of the wellbore components. For example, a portion 124 of the casing 112 can be eaten away or removed by the corrosive gases, fluids, and chemicals. Removal of the portion 124 of the casing 112 can compromise the structural integrity of the wellbore 104 or the casing 112. The assembly 102 can be configured to inspect the inner surface 120 of the casing 112.

[0046] The assembly 102 includes a body 126. The body 126 is disposed in the wellbore 104. FIG. 2 is a schematic side view of the wellbore maintenance and inspection assembly of FIG. 1 engaged to the wellbore. FIG. 3 is a schematic top view of the wellbore maintenance and inspection assembly of FIG. 1 engaged to the wellbore. Referring to FIG. 3, the body 126 is a hollow, generally cylindrical metal tube. In some cases, the body can include multiple sections (not shown) which articulate as the assembly 102 traverses through the wellbore 104. Referring to FIG. 2, the body 126 has an outside surface 202 that can have portions (for example portions 224a and 224b). The portion 224a can be flat. Two portions (224a and 224b) can be at angles to each other. The body 126 is a structural member of the assembly 102. The body 126 contains, seals, and protects multiple components (described later) from downhole wellbore conditions, such as pressure and temperature. [0047] Referring to FIGS. 1-3, a magnetic wheel assembly 128 is coupled to the outside surface 202 of the body 126. The magnetic wheel assembly 128 includes multiple magnetic wheel sub-assemblies 130a, 130b, 130c, 130d, 130e, and 130f adjustably coupled to the body 126. In some cases, the magnetic wheel assembly 128 can include fewer or more magnetic wheel sub-assemblies. For example, the magnetic wheel assembly 128 can include two, three, four, five, eight, nine, ten, or twelve more magnetic wheel sub-assemblies. The magnetic wheel assembly 128 positions the body 126 within the wellbore 104. FIG. 6 is a schematic view of the wellbore maintenance and inspection assembly of FIG. 1 moving through a restriction in the wellbore. Referring to FIG. 6, the magnetic wheel assembly 128 also repositions the magnetic wheel sub-assemblies 130a-f relative to the body 126 in response to a wellbore narrowing 602 or a wellbore widening 604 as described later.

[0048] FIG. 4 is a schematic side view of the wellbore maintenance and inspection assembly of FIG. 1 moving through the wellbore. FIG. 5 is a schematic view of the wellbore maintenance and inspection assembly of FIG. 1 in a retrieval mode in the wellbore. Referring to FIGS. 2-7, each of the magnetic wheel sub-assemblies 130a-f include a respective magnetic wheel 204a-f to couple to the inner surface 120 of the casing 112. Each magnetic wheel 204a-f includes a respective magnet (not shown) which adheres to the casing 112. As each magnetic wheel 204a-f rotates to move the assembly 102 in the casing 112, the magnetic force from the respective magnet coupled to the casing 112 couples the respective magnetic wheel 204a-f to the inner surface 120 of the casing 112. As shown in FIG. 2, each magnetic wheel 204a-f include a textured or corrugated outer surface 206a-f to further couple each magnetic wheel 204a-f to the inner surface 120 of the casing 112. [0049] The magnetic wheel sub-assembly 130a includes a hydraulic arm 208a coupled to the magnetic wheel 204a and the body 126. The hydraulic arm 208a positions the magnetic wheel 204a in contact with the inner surface 120 of the casing 112. The hydraulic arm 208a changes in a length 210 to move the magnetic wheel 204a relative to the body 126 and engage or disengage from the inner surface 120 of the casing 112. The hydraulic arm 208a includes a hydraulic piston rod 212a coupled to the magnetic wheel 204a. The hydraulic piston rod 212a moves inside a hydraulic cylinder 214a when operated by a hydraulic piston (not shown) contained within the hydraulic cylinder 214. [0050] The magnetic wheel 204a is mechanically and electrically coupled to the hydraulic arm 208a and the hydraulic piston rod 212a by a suspension fork 230a. The suspension fork 230a transfers power from a drive spring arm 218a, described below, to the magnetic wheel 204a. [0051] The magnetic wheel sub-assemblies 130b-f each include a hydraulic arm, a hydraulic piston rod, a hydraulic cylinder, and a hydraulic piston substantially similar to the hydraulic arm 208a, the hydraulic piston rod 212a, the hydraulic cylinder 214a, and the hydraulic piston (not shown) previously discussed. The magnetic wheel sub- assembly 130b includes a hydraulic arm 208b, a hydraulic piston rod 212b, a hydraulic cylinder 214b, and a hydraulic piston (not shown). The magnetic wheel sub-assembly 130c includes a hydraulic arm 208c, a hydraulic piston rod 212c, a hydraulic cylinder 214c, and a hydraulic piston (not shown). The magnetic wheel sub-assembly 130d includes a hydraulic arm 208d, a hydraulic piston rod 212d, a hydraulic cylinder 214d, and a hydraulic piston (not shown). The magnetic wheel sub-assembly 130e includes a hydraulic arm (not shown), a hydraulic piston rod (not shown), a hydraulic cylinder (not shown), and a hydraulic piston (not shown). The magnetic wheel sub-assembly 130f includes a hydraulic arm 208f, a hydraulic piston rod 212f, a hydraulic cylinder 214f, and a hydraulic piston (not shown).

[0052] The magnetic wheel sub-assembly 130a includes a support arm 216a coupled to hydraulic arm 208a and the body 126 to support the hydraulic arm 208a. The support arm 216a provides structural rigidity to the hydraulic arm 208a. The support arm 216a is a movable mechanism with a knuckle joint (not shown) to allow the support arm 216a to move laterally and adjust according to the casing 112 dimensions as described later in reference to FIG. 6. The telescopic nature of support arms allow the support arms 216 to extend or retract to access smaller inner diameter wellbores 112 as described in reference to FIG. 6 or hold in position as described in reference to FIG. 7. The magnetic wheel sub-assemblies 130b-f each include a support arm substantially similar to support arm 216. The magnetic wheel sub-assembly 130b includes a support arm 216b. The magnetic wheel sub-assembly 130c includes a support arm 216c. The magnetic wheel sub-assembly 130d includes a support arm 216d. The magnetic wheel sub-assembly 130e includes a support arm (not shown). The magnetic wheel sub-assembly 130f includes a support arm (not shown). [0053] The magnetic wheel sub-assembly 130a includes a drive spring arm 218a coupled to the magnetic wheel 204a and the body 126. The drive spring arm 218a is coupled to the body 126 by a pivot joint 220a. The pivot joint 220a allows the drive spring arm 218a to articulate in response to a change in the length 210 of the hydraulic arm 208a. The drive spring arm 218a is coupled to the magnetic wheel 204a by a spring assembly 222a. The spring assembly 222a adjusts an overall length 224 of the drive spring arm 218a in response to a change in the overall length of the hydraulic arm 208a. The drive spring arm 218a includes a geared drive mechanism (not shown) similar to a tractor shaft, to operate the magnetic wheel 204a, causing the magnetic wheel 204a to rotate.

[0054] The magnetic wheel sub-assemblies 130b-f each include a drive spring arm, pivot joint, spring assembly, and geared drive mechanism substantially similar to the drive spring arm 218a, pivot joint 220a, spring assembly 222a, and geared drive mechanism (not shown) previously discussed. The magnetic wheel sub-assembly 130b includes a drive spring arm 218b, pivot joint 220b, spring assembly 222b, and geared drive mechanism (not shown). The magnetic wheel sub-assembly 130c includes a drive spring arm 218c, pivot joint 220c, spring assembly 222c, and geared drive mechanism (not shown). The magnetic wheel sub-assembly 130d includes a drive spring arm 218d, pivot joint 220d, spring assembly 222d, and geared drive mechanism (not shown). The magnetic wheel sub-assembly 130e includes a drive spring arm (not shown), pivot joint (not shown), spring assembly (not shown), and geared drive mechanism (not shown). The magnetic wheel sub-assembly 130f includes a drive spring arm 218f, pivot joint 220f, spring assembly (not shown), and geared drive mechanism (not shown).

[0055] FIG. 15 is a schematic view of another wellbore maintenance and inspection assembly 1500 disposed in the wellbore 104. Referring to FIG. 15, the wellbore maintenance and inspection assembly 1500 is generally similar to the wellbore maintenance and inspection assembly 102 previously described. The wellbore maintenance and inspection assembly 1500 is positioned in the wellbore 104. The wellbore maintenance and inspection assembly 102 is magnetically coupled to the inner surface 120 of the casing 112 by a magnetic wheel assembly 1502 coupled to the outside surface 202 of the body 126.

[0056] The magnetic wheel assembly 1502 is generally similar to the magnetic wheel assembly 128 previously described. The magnetic wheel assembly 1502 includes multiple magnetic wheel sub-assemblies 1504a, 1504b, 1504c, 1504d, 1504e, and 1504f adjustably coupled to the body 126. In some cases, the magnetic wheel assembly 128 can include fewer or more magnetic wheel sub-assemblies. For example, the magnetic wheel assembly 128 can include two, three, four, five, eight, nine, ten, or twelve more magnetic wheel sub-assemblies. The magnetic wheel assembly 128 positions the body 126 within the wellbore 104. Substantially similarly functionally to the magnetic wheel assembly 128, as described in respect to FIG. 6, the magnetic wheel assembly 1502 also repositions the magnetic wheel sub-assemblies 1504a-f relative to the body 126 in response to a wellbore narrowing 602 or a wellbore widening 604 as described later. [0057] Referring to FIG. 15, each of the magnetic wheel sub-assemblies 1504a-f are substantially similar to the magnetic wheel sub-assemblies 130a-f described previously. A first chain 1506a is mechanically and magnetically coupled to a first pair of magnetic wheel sub-assemblies 1504a and 1504b. The first chain 1506a is mechanically coupled to an outside surface 1508a of a first magnetic wheel 1510a of the first magnetic wheel sub-assembly 1504a and an outside surface 1508b of a second magnetic wheel 1510b of the second magnetic wheel sub-assembly 1504b. The first chain 1506a is magnetically coupled to the first pair of magnetic wheel sub-assemblies 1504a and 1504b which increases an overall surface area of contact between the magnetic wheel assembly 1502 and 120 of the casing 112 that the first magnetic wheel 204a and the second magnetic wheel 204b alone, increasing the wellbore maintenance and inspection assembly’s 1500 engagement to the inner surface 120 and control and maneuverability in the wellbore 104.

[0058] A second chain 1506b is mechanically and magnetically coupled to a second pair of magnetic wheel sub-assemblies 1504c and 1504d. A third chain 1506c is mechanically and magnetically coupled to a third pair of magnetic wheel sub-assemblies 1504e and 1504f. The second chain 1506b and the third chain 1506c are substantially similar to the first chain 1506a previously described. Otherwise, the magnetic wheel assembly 1502 is substantially similar to the magnetic wheel assembly 128 previously described. [0059] FIG. 8 is a schematic view of the hydraulic, power, and control sub- assemblies of the wellbore maintenance and inspection assembly. Referring to FIG. 8, a hydraulic sub-assembly 802 is coupled to and positioned within the body 126. The hydraulic sub-assembly 802 supplies and controls the flow a hydraulic fluid to and from each of the magnetic wheel sub-assemblies 130a-f to control the respective hydraulic arms 208a-f. The hydraulic sub-assembly 802 includes a hydraulic fluid supply reservoir 804. The hydraulic fluid supply reservoir 804 is a pressure vessel which contains a hydraulic fluid to flow to and from each of the magnetic wheel sub-assemblies 130a-f to control the respective hydraulic arms 208a-f. The hydraulic fluid supply reservoir 804 can be pressurized, for example with a pump, a piston, or a nitrogen cylinder.

[0060] The hydraulic sub-assembly 802 includes a hydraulic valve 806. The hydraulic valve 806 controls the fluid flow to and from the hydraulic fluid supply reservoir 804 through multiple hydraulic conduits to each of the magnetic wheel sub assemblies 130a-f. A first hydraulic conduit 808a fluidically connects the hydraulic fluid supply reservoir 804 to the hydraulic valve 806. A second hydraulic conduit 808b fluidically connects the hydraulic valve 806 to the hydraulic arm 208a. A third hydraulic conduit 808c fluidically connects the hydraulic valve 806 to the hydraulic arm 208b. A fourth hydraulic conduit 808d fluidically connects the hydraulic valve 806 to the hydraulic arm 208c. A fifth hydraulic conduit 808e fluidically connects the hydraulic valve 806 to the hydraulic arm 208d. A sixth hydraulic conduit (not shown) fluidically connects the hydraulic valve 806 to the hydraulic arm 208e (shown in FIGS. 2-8). A seventh hydraulic conduit (not shown) fluidically connects the hydraulic valve 806 to the hydraulic arm 208f (shown in FIGS. 2-8).

[0061] Referring to FIGS. 2, 3, and 8, the hydraulic valve 806 actuates to supply hydraulic fluid from the hydraulic fluid supply reservoir 804 to each of the hydraulic arms 208a-f. As described in reference to hydraulic arm 208a, supplying the hydraulic fluid to the hydraulic arm 208a extends the length 210 of hydraulic arm 208a. Supplying hydraulic fluid to hydraulic arms 208a pressurizes hydraulic cylinder 214a and forces the hydraulic piston (not shown) to move hydraulic piston rod 212a in the direction of arrow 226. Moving the hydraulic piston rod 212a in the direction of arrow 226 engages the magnetic wheel 204a to the inner surface 120 of the casing 112. Additionally, in response to the hydraulic piston rod 212a extending in the direction of arrow 226 to engage the magnetic wheel 204a to the inner surface 120, the hydraulic arm 208a rotates about the pivot joint 220a in the direction of arrow 228 to maintain proper alignment of the magnetic wheel 204a with respect to the inner surface 120. Each of the remaining hydraulic arms 208b-f extend substantially similar to extending the hydraulic arm 208a. Referring to FIG. 3, the drive spring arms 218a, 218c, and 218e are rotated about pivot joints 220a, 220c, and 220e to engage the magnetic wheels 204a, 204c, and 204e to the inner surface 120 of the casing 112 in the direction of arrows 302a, 302b, and 302c, respectively. One or more of magnetic wheel sub-assemblies 130a-f can be extended individual or a group, sequentially or simultaneously, to engage the inner surface 120 of the casing 112.

[0062] Referring to FIGS. 2, 6, and 8, in a similar manner to extending the hydraulic arms 208a-f, the hydraulic arms 208a-f are retracted to disengage from the inner surface 120 of the casing 112. As described in reference to hydraulic arm 208b, flowing the hydraulic fluid to the hydraulic arm 208b shortens the length 210 of hydraulic arm 208b.

Flowing the hydraulic fluid to hydraulic arm 208b to an opposite side of the hydraulic piston (not shown) pressurizes the opposite side of the hydraulic cylinder 214b and forces the hydraulic piston (not shown) to move hydraulic piston rod 212b in the direction of arrow 606 (as shown in FIG. 6). Moving the hydraulic piston rod 212b in the direction of arrow 606 disengages the second magnetic wheel 204b to the inner surface 120 of the casing 112. Additionally, in response to the hydraulic piston rod 212b retracting in the direction of arrow 606 to disengage the second magnetic wheel 204b from the inner surface 120, the hydraulic arm 208b rotates about the pivot joint 220b in the direction of arrow 608 to maintain proper alignment of the second magnetic wheel 204b with respect to the inner surface 120. Each of the remaining hydraulic arms 208a and 208c-f retract substantially similar to retracting the hydraulic arm 208b. One or more of magnetic wheel sub-assemblies 130a-f can be retracted individual or i a group, sequentially or simultaneously, to disengage from the inner surface 120 of the casing 112. [0063] Referring to FIG. 6, as the assembly 102 moves through the casing in the direction of arrow 610, a set of magnetic wheel sub-assemblies 130b, 130d, and 130f actuate to maintain contact with the inner surface 120 when the inner surface is 120 changes, such as with the wellbore narrowing 602 or the wellbore widening 604. The set of magnetic wheel sub-assemblies 130b, 130d, and 130f can actuate partially or completely depending on the degree to which the wellbore narrows or widens. A second set of magnetic wheel sub-assemblies 130a, 130c, and 130e can likewise actuate partially or completely to maintain contact with the inner surface 120. In the same manner, while moving opposite to the direction of arrow 310, the magnetic wheel sub- assemblies 130a-f can actuate to maintain contact with the inner surface 120 when the inner surface 120 changes, such as with the wellbore narrowing 602 or the wellbore widening 604.

[0064] FIG. 4 is a schematic side view of the wellbore maintenance and inspection assembly moving through the wellbore in a downhole direction. The downhole direction is indicated by the arrow 402. Referring to FIG. 1, the downhole direction is from an opening 134 on the surface 110 of the Earth towards a bottom 132 of the wellbore 104. In a vertical well or vertical portion of a well, the downhole direction is downward from the surface 110 of the Earth. However, in a lateral wellbore, the downhole direction may be in a lateral direction. The hydraulic arms 208a-f are extended from the assembly 102 to contact the inner surface 120 of the casing 112. Hydraulic arm 208a is fully extended in the direction of arrow 404a. Hydraulic arm 208b is fully extended in the direction of arrow 404b. Hydraulic arm 208c is fully extended in the direction of arrow 404c. Hydraulic arm 208d is fully extended in the direction of arrow 404d. Hydraulic arm 208e (not shown) is fully extended. Hydraulic arm 208f is fully extended. The magnetic wheels 204a-f rotate in the direction of arrows 406a-f, respectively, to move the assembly 102 in the downward direction (arrow 402) in the casing 112. This can be referred to as a running mode.

[0065] FIG. 5 is a schematic view of the wellbore maintenance and inspection assembly moving through the wellbore in an uphole direction. The uphole direction is indicated by arrow 502. Referring to FIG. 1, the uphole direction is from the bottom 132 of the wellbore 104 towards the opening 134 on the surface 110 of the Earth. In a vertical well or vertical portion of a well, the uphole direction is toward the surface 110 of the Earth. However, in a lateral wellbore, the uphole direction may be in a lateral direction. The hydraulic arms 208a-f of the assembly 102 are extended to contact the inner surface 120 of the casing 112. Hydraulic arm 208a is fully extended in the direction of arrow 504a. Hydraulic arm 208b is fully extended in the direction of arrow 504b. Hydraulic arm 208c is fully extended in the direction of arrow 504c. Hydraulic arm 208d is fully extended in the direction of arrow 504d. Hydraulic arm 208e (not shown) is fully extended. Hydraulic arm 208f is fully extended. The magnetic wheels 204a-f rotate in the direction of arrows 506a-f respectively, to move the assembly 102 in the downward direction (arrow 502) in the casing 112. This can be referred to as a retrieval mode. [0066] FIG. 7 is a schematic view of the wellbore maintenance and inspection assembly of FIG. 1 statically engaged to the wellbore. Referring to FIG. 7, the hydraulic arms 208a-f of the assembly 102 are extended to contact the inner surface 120 of the casing 112. Hydraulic arm 208a is fully extended in the direction of arrow 702a. Hydraulic arm 208b is fully extended in the direction of arrow 702b. Hydraulic arm 208c is fully extended in the direction of arrow 702c. Hydraulic arm 208d is fully extended in the direction of arrow 702d. Hydraulic arm 208e (not shown) is fully extended. Hydraulic arm 208f is fully extended. The magnetic wheels 204a-f are not rotating. The magnetic wheels 204a-f are held engaged to the inner surface 120 of the casing 112. This can be referred to as a static mode. The magnetic wheels 204a-f are held engaged to the inner surface 120 of the casing 112 when a maintenance task or inspection of a time duration is conducted. For example, the magnetic wheels 204a-f can be held engaged to the inner surface 120 for five seconds, one minute, fifteen minutes, or ten or more hours. [0067] Referring to FIG. 1, the assembly 102 includes a tool connection 136 to couple a tool 138 to the body 126. FIG. 9 is a schematic view of a tool connection of the wellbore maintenance and inspection assembly. Referring to FIG. 9, the tool connection 136 includes a pin connection 902. The pin connection 902 includes threads 904 on an external surface 906 to couple to a box connection 908 of the tool 138. The box connection 908 includes threads 910 on an internal surface 912 of the tool 138 to couple to the threads 904 of the pin connection 902. The threads 904 and 910 can be trapezoidal shaped such as an ACME thread form. The tool connection 136 includes a sealing element 914 to prevent wellbore 104 fluid from entering the body 126 through the tool connection 136. For example, the sealing element can be an O-ring. The tool connection 136 can include cables and/or connections (not shown) to conduct electrical power, control signals, status signals, and other data to and from the tool 138 to the assembly 102.

[0068] As shown in FIGS. 1 and 9, the tool 138 performs a maintenance or inspection task on the wellbore 104. The tool 138 includes a brush assembly 140 to clean the inner surface 120 of the wellbore 104. The brush assembly 140 rotate to remove debris 118 adhering to the inner surface 120 of the casing 112.

[0069] The brush assembly 140 includes a multiple brush heads 916a and 916b to scrape and clean the inner surface 120 of the wellbore 104. The brush heads 916a and 916b are each mechanically coupled to a brush shaft, 918a and 918b respectively. The brush drive shafts 918a and 918b rotate to cause the brush heads 916a and 916b to rotate. The brush drive shafts 918a and 918b are mechanically coupled to a gearbox 920. The gearbox is also mechanically coupled to a rotatable shaft 922. The rotatable shaft 922 is mechanically coupled a gear connection 924. The gear connection 924 is mechanically coupled to a tool motor 926. The tool motor 926 is positioned within the box connection 908. The tool motor 926 is electrically coupled to and powered by a battery 928. Alternatively or in addition, the brush assembly 140 can be powered by the assembly 102 as described later in reference to FIGS. 1 and 8. [0070] The tool motor 926 operates to rotate the gear connection 924. The gear connection 924 rotates the rotatable shaft 922, which in turn rotates the gearbox 920. The gearbox 920 changes the direction and splits the rotational energy to rotate each of the brush drive shafts 918a and 918b, which then in turn each rotate the brush heads 916a and 916b, respectively. [0071] The tool 138 can include one or multiple implements (such as the brush assembly 140) to perform one or multiple maintenance or inspection tasks. Additionally or alternatively the tool 138 can be a survey tool to measure conditions of the wellbore 104. For example, the tool 138 can be a temperature sensor, a pressure sensor, a flow rate sensor, or a caliper. Additionally or alternatively, the tool 138 can be an inclination measurement tool such as a drift tool.

[0072] Referring to FIG. 1 , the assembly 102 includes a backup retrieval mechanism 142 coupled to the body 126. FIG. 10 is a schematic view of a retrieval tool disposed in the wellbore to retrieve the wellbore maintenance and inspection assembly. Referring to FIG. 10, the assembly 102 can be coupled to a retrieval tool 1002 by the backup retrieval mechanism 142. The retrieval tool 1002 includes a fish neck 1004 to engage the backup retrieval mechanism 142. The retrieval tool 1002 can be a GS tool. The retrieval tool 1002 can include a slickline tool 1006 to position the retrieval tool 1002 to couple to the assembly 102. The retrieval tool 1002 can be coupled to the backup retrieval mechanism 142 in an emergency, for example if the assembly 102 loses power or becomes stuck in the casing 112.

[0073] FIGS. 1 lA-11C are schematic views of the retrieval tool of FIG. 10 engaging and retrieving the wellbore maintenance and inspection assembly. Referring to FIG. 11 A, the retrieval tool 1002 moves in a downward direction as shown by arrow 1102 and toward the backup retrieval mechanism 142. The backup retrieval mechanism 142 includes an inner surface 1104 with a profile to engage the fish neck 1004 of the retrieval tool 1002. Referring to FIG. 11B, the fish neck 1004 of the retrieval tool 1002 slides relative to the inner surface 1104 and is then coupled to the inner surface 1104 profile as shown by arrow 1106. Referring to FIG. 11C, the retrieval tool 1002 coupled to the backup retrieval mechanism 142 retrieves the assembly 102 (not shown) out of the casing 112 (not shown) in the direction of arrow 1108.

[0074] Referring to FIG. 8, the assembly 102 includes a power sub-assembly 810 to supply power to a control sub-assembly 812, the hydraulic sub-assembly 802, and the tool 138. The power sub-assembly 810 includes a motor 814 coupled to a gearbox assembly 816. The motor 814 powers the gearbox assembly 816 to drive (rotate) the magnetic wheels 204a-f via the drive spring arms 218a-f as described with respect to FIGS. 2-7. The gearbox assembly 816 is coupled to the drive spring arms 218a-f by gearbox linkages 830. [0075] The power sub-assembly 810 includes a battery 818. The battery 818 stores electrical power. The battery 818 supplies electrical power to the motor 814, the control sub-assembly 812, and the tool 138. The battery 818 is electrically coupled to the motor 814 by a power cable 820a. The battery 818 is electrically coupled to the control sub- assembly 812 by a power cable 820b. The battery 818 is electrically coupled to the tool 138 by a power cable 820c.

[0076] In some cases, as shown in FIG. 8, the power sub-assembly 810 can include a turbine 822 to power the battery 818. FIG. 12 is a schematic view of a turbine coupled to the wellbore maintenance and inspection assembly. Referring to FIGS. 8 and 12, the turbine 822 includes vanes 824. The fluid in the casing 112 flows over the vanes 824 in the direction of arrows 1202 to generate electrical power which is supplied to the battery 818 through a power cable 820d.

[0077] Referring to FIG. 1, the assembly 102 includes the control sub-assembly 812. The control sub-assembly 812 controls the magnetic wheel sub-assemblies 130a-f and operates the tool 138 within the wellbore 104. [0078] The control sub-assembly 812 includes a controller 826. The controller 826 can be a computer and a microprocessor. The controller 826 has one or more sets of programmed instructions stored in a memory or other non-transitory computer-readable media that stores data (e.g., connected with the printed circuit board), which can be accessed and processed by a microprocessor. The programmed instructions can include, for example, instructions for sending or receiving signals and commands to operate the magnetic wheel sub-assemblies 130a-f, operate the tool 138, and/or collect and store data from a sensor 828. The controller 826 stores values (signals and commands) against which sensed values (signals and commands) representing the condition are compared. [0079] The sensor 828 is positioned within the body 126. The sensor 828 senses a condition in the wellbore 104 and transmits a signal representing the condition to the controller 826. For example, the sensor can sense a pressure, a temperature, a flow rate, a depth, a conductivity, a pH, a dimension of the wellbore 104, an orientation of the body 126 relative to the wellbore 104 and the surface 110 of the Earth, or an optical condition of the wellbore 104.

[0080] The controller 826 receives the signal representing the condition from the sensor 828. The controller 826 then compares the signal representing the wellbore condition to the instructions. The recorded values are stored for the logging purposes and evaluated at the surface, similar to other logging tools. While running into or out of the wellbore 104, the controller 826 follows the trajectory that is stored in the processor and keep matching. Additionally, a maximum operating temperature and pressure values can be sensed and stored in the controller 826 when the controller 826 measure any value greater than a maximum operating limit (a maximum safe operating temperature of pressure), the assembly 102 can stop running into (deeper into the) wellbore 104 and proceed toward the surface 110 until a safe operating temperature or pressure is sensed.

[0081] In response to the comparison of the signal representing the wellbore condition and the instructions, the controller 826 generates a command signal to operate the magnetic wheel sub-assemblies 130a-f or the tool 138. The command signal can operate the magnetic wheel sub-assemblies 130a-f to rotate, stop rotating, or lock one or more of the magnetic wheels by operating the gearbox assembly 816 to control the gearbox linkages 830 as described in reference to FIGS. 2-5 and 7.

[0082] The command signal can operate the magnetic wheel sub-assemblies 130a-f to extend or retract the hydraulic arms 208a-f as described in reference to FIG. 6. For example, when the condition is the dimension of the casing 112, the controller 826 receives a first dimension 612 of the casing 112. Then, the controller 826 receives a second dimension 614 of the casing 112, for example, when the assembly 102 approaches the narrowing 602 as shown in FIG. 6. The controller 826 then compares the first dimension 612 to the second dimension 614. In response to the comparison of the first dimension 612 to the second dimension 614 indicating a wellbore narrowing 602, the controller generates a command signal to reposition the magnetic wheel sub- assemblies 130b, 130d, and 130f relative to the body 126 in response to the wellbore narrowing 602. As the assembly 102 continues through the wellbore narrowing 602, the controller 826 generates a command signal to reposition the magnetic wheel sub assemblies 130a, 130c, and 130e relative to the body 126.

[0083] In a similar manner, the controller 826 generates a command signal to reposition the magnetic wheel sub-assemblies 130b, 130d, and 130f relative to the body 126 in response to the wellbore widening 604, then the magnetic wheel sub-assemblies 130a, 130c, and 130e relative to the wellbore widening 604. The controller 826 receives the second dimension 614 of the casing 112. Then, the controller 826 receives the first dimension 612 of the casing 112. The controller 826 then compares the second dimension 614 to the first dimension 612. In response to the comparison of the second dimension 614 and first dimension 612 indicating the wellbore widening 604, the controller generates a command signal to reposition the magnetic wheel sub-assemblies 130b, 130d, and 130f relative to the body 126 in response to a wellbore widening 604. As the assembly 102 continues through the wellbore widening 604, the controller 826 generates a command signal to reposition the magnetic wheel sub-assemblies 130a, 130c, and 130e relative to the body 126.

[0084] The control sub-assembly 812 includes a telemetry receiver 832. The telemetry receiver 832 receives a reprogramming signal from a remote control station (not shown). The remote control station can be an operating station at the surface 110 which transmits the reprogramming signal through the wellbore 104 and is received by the telemetry receiver 832. For example, the telemetry receiver 832 can be an antenna. The reprogramming signal instructs the one or more computer processors to perform a different operation from the operation stored in the non-transitory computer-readable storage medium. For example, when the assembly 102 includes multiple tools 138 and an operator re-tasks the assembly 102 based on a sensed wellbore condition, for example, excessive debris 118 requiring a specific type of brush assembly 140 to clean, the operator can direct the brush assembly 140 to be exchanged, such as between a wire bristle brush or a nylon bristle brush. For example, when the assembly 102 approaches the wellbore narrowing 602 to narrow to pass, the operator can direct the assembly 102 to return to the surface 110 or enter another portion of the wellbore 104, for example a lateral branch of a multi-lateral well. For example, when the assembly 102 become stuck in the wellbore 104, the operator can send a command to the assembly 102 to transmit any stored data so the operator can evaluate downhole conditions (for example pressure and temperature. The operator can then use the downhole conditions to prepare a plan to mechanically retrieve the assembly 102 as described in reference to FIGS. 10- 11C.

[0085] FIG. 13 is a flowchart of a control algorithm for cleaning the wellbore with the wellbore maintenance and inspection assembly. Referring to FIGS. 1, 8, and 13, at

1302, the sensor 828 senses a condition requiring a maintenance task, for example, the accumulation of debris 118 creating the restriction 122. The sensor 828 can sense where the pressure, the flow rate, the dimension of the casing 112, or the optical condition indicate the restriction 122 in the casing 112. At 1304, the sensor 828 generates a signal representing the condition requiring the maintenance task, for example the restriction 122. At 1306, the sensor 828 transmits the signal representing the condition requiring the maintenance task, for example, restriction 122 in the casing 112 to the controller 826.

[0086] At 1308, the controller 826 compares the signal representing the condition requiring a maintenance task, for example, the restriction 122, to a previous condition indicating that no maintenance task was required, for example a casing diameter or surface condition (cleanliness, pitting). At 1310, when the controller 826 determines that no action is needed based on the results of the comparison, the controller 826 records data correlating to the location and condition for further analysis and returns to step 1302. When the controller 826 determines that action is needed based on the results of the comparison, the controller 826 generates a command signal to the tool 138 to operate while the condition requiring the maintenance task is met. The controller 826 saves data correlating to the location and condition. For example, when the controller 826 senses the restriction 122 due to debris 118 accumulation, the controller 826 generates a commands signal to the brush assembly 140 to engage the inner surface and rotate, removing the restriction 122.

[0087] At 1312, the sensor 828 senses a condition indicating that the maintenance task is no longer required. For example, the accumulation of debris 118 creating the restriction 122 is clear. For example, the sensor 828 senses when the pressure, the flow rate, the dimension of the casing 112, or the optical condition indicate the restriction 122 is removed. At 1314, the sensor 828 generates a signal representing the condition indicating that the maintenance task is no longer required, for example, the restriction 122 is removed. At 1316, the sensor 828 transmits the signal representing the condition indicating that the maintenance task is no longer required, for example, the restriction 122 is removed, to the controller 826.

[0088] At 1318, the controller 826 compares the signal representing the condition indicating that the maintenance task is no longer required (the restriction 122 is removed) to another condition, for example the previous condition indicating that the maintenance task is required (the restriction 122 in the casing 112). At 1320, when the controller 826 determines that action is no longer needed, the controller records data correlating to the location and condition for further analysis and returns to step 1302. When the controller 826 determines that further action is needed, the controller 826 generates a command signal to the tool 138 to continue operating while the condition is met. The controller 826 saves data correlating to the location and condition of the condition.

[0089] FIG. 14 is a flow chart of an example method of maintaining a wellbore using the wellbore maintenance and inspection assembly according to the implementations of the present disclosure. The wellbore maintenance and inspection assembly includes a body, a magnetic wheel assembly, a tool connection, a sensor, a control sub-assembly, a power sub-assembly, and a backup retrieval mechanism. The body is configured to be disposed in a wellbore. The magnetic wheel assembly includes multiple magnetic wheel sub-assemblies adjustably coupled to the body. The magnetic wheel assembly positions the body within the wellbore and reposition the magnetic wheel sub-assemblies relative to the body in response to a wellbore narrowing or a wellbore widening. The tool connection is coupled to the body to couple to couple a well tool to the body.

[0090] The sensor senses a condition and transmits a signal representing the condition. The condition is one or more of a pressure, a temperature, a depth, a conductivity, a pH, a dimension of the wellbore, or an orientation of the body relative to the wellbore and a surface of the Earth. The control sub-assembly is coupled to the body. The control sub-assembly is operatively coupled to the magnetic wheel assembly and to the tool connection. The control sub-assembly includes one or more computer processors and a non-transitory computer-readable storage medium storing instructions executable by the one or more computer processors to cause the one or more computer processors to perform operations. The operations include receiving a signal representing the condition from the sensor; comparing the signal representing the wellbore condition to the instructions; and responsive to the comparison of the signal representing the wellbore condition and the instructions; generating a command signal to operate the magnetic wheel sub-assembly or the well tool.

[0091] The power sub-assembly supplies power to the control sub-assembly and the well tool. The backup retrieval mechanism is coupled to the body. The backup retrieval mechanism couples a retrieval tool to the body.

[0092] At 1402, a wellbore condition is sensed. For example, the sensor 828 senses a condition requiring a maintenance task (the accumulation of debris 118 creating the restriction 122). For example, the sensor 828 can sense where the pressure, the flow rate, the dimension of the casing 112, or the optical condition indicate the restriction 122 in the casing 112. At 1404, a signal representing the wellbore condition is transmitted to the control sub-assembly. For example, the sensor 828 senses the wellbore narrowing 602 caused by a change in casing 112 size.

[0093] At 1406, the wellbore condition is compared to the instruction. The controller 826 compares the signal representing the condition requiring a maintenance task, for example, the restriction 122, to a previous condition indicating that no maintenance task was required, for example a casing diameter or surface condition (cleanliness, pitting). For example, the controller 826 compares the casing 112 first dimension 612 (inner diameter) to the wellbore narrowing 602 second dimension 614.

[0094] At 1408, responsive to the comparison of the signal representing the wellbore condition and the instruction, a command signal is generated to operate the magnetic wheel sub-assembly or the well tool by the control sub-assembly. Where the well tool includes a brush, the command signal directs the well tool to brush a surface of the wellbore to clean the surface of the wellbore. For example, the magnetic wheel sub- assemblies 130b, 130f, and 130d actuate to navigate the assembly 102 into the wellbore narrowing 602.

[0095] The command signal can direct the magnetic wheel assembly to engage the magnetic wheel sub-assemblies to the surface of the wellbore. The command signal can direct the magnetic wheel assembly to rotating the magnetic wheel sub-assemblies while engaged to the surface of the wellbore. Responsive to rotating the magnetic wheel sub assemblies, the wellbore maintenance and inspection assembly is repositioned in the wellbore. The command signal and direct the magnetic wheel sub-assemblies to stop rotating. [0096] The command signal can direct the magnetic wheel assembly to lock the magnetic wheel sub-assemblies. Locking the magnetic wheel sub-assemblies prevents rotation of the magnetic wheel sub-assemblies. The command signal can direct the magnetic wheel assembly to engage the locked magnetic wheel sub-assemblies to the surface of the wellbore. Responsive to engaging the locked magnetic wheel sub- assemblies to the surface of the wellbore, the wellbore maintenance and inspection assembly is maintained the position of in the wellbore. The command signal can direct the magnetic wheel assembly to disengage the locked magnetic wheel sub-assemblies from the surface of the wellbore. The command signal can direct the magnetic wheel assembly to unlock the magnetic wheel sub-assemblies. Unlocking the magnetic wheel sub-assemblies allows rotation of the magnetic wheel sub-assemblies.

[0097] In some implementations, the power sub-assembly includes a turbine. Where the power sub-assembly includes a turbine, the method further includes generating power responsive to a wellbore fluid flow. The method then includes supplying the power to the power sub-assembly to power the control sub-assembly or the well tool.

[0098] In some implementations, where the condition is the dimension of the wellbore, the method includes receiving a first dimension of the wellbore. The method includes receiving a second dimension of the wellbore. The method includes comparing the first dimension to the second dimension. The method includes, responsive to the comparison of the first dimension of the wellbore to the second dimension of the wellbore, where the comparison indicates the wellbore narrowing, generating a command signal to reposition the magnetic wheel sub-assemblies relative to the body in response to the wellbore narrowing. The method includes, where the comparison indicates the wellbore widening, generating a command signal to reposition the magnetic wheel sub-assemblies relative to the body in response to the wellbore widening.

[0099] Although the following detailed description contains many specific details for purposes of illustration, it is understood that one of ordinary skill in the art will appreciate that many examples, variations, and alterations to the following details are within the scope and spirit of the disclosure. Accordingly, the example implementations described herein and provided in the appended figures are set forth without any loss of generality, and without imposing limitations on the claimed implementations. [00100] Although the present implementations have been described in detail, it should be understood that various changes, substitutions, and alterations can be made hereupon without departing from the principle and scope of the disclosure. Accordingly, the scope of the present disclosure should be determined by the following claims and their appropriate legal equivalents.