EDITORIAL NOTE 2014280874 - There are 27 pages of Description - The first page is not page numbered APPARATUS FOR DOWNHOLE POWER GENERATION FIELD OF INVENTION 5 The present invention relates to power generators for use in fluid containing pipes, such as in downhole drilling environments in the oil and gas exploration and extraction industry. Generators according to the invention are particularly applicable to measurement while drilling (MWD) applications in which power is required by measurement sensors and/or communications components in a drilling well. 10 BACKGROUND Oil and gas exploration and extraction require well drilling to ever increasing depths, which increases the challenges associated with providing power to measurement 15 devices close to the drilling location and in telemetry repeaters at intervals along the drill string. Wireline measurement tools that require electrical cabling to be provided from the surface to extreme well depths cannot be used during drilling, and conventional batteries do not provide adequate power, are relatively expensive for their usable life, and the cost of periodically replacing depleted batteries is prohibitive 20 because of the high cost of delayed drilling while a MWD tool is removed. However, downhole generators are known that operate on the principle of extracting energy from the flow of drilling 'mud' through the bore of the drill pipe. As is well known in the art, a drilling fluid is pumped downhole to cool the drill bit and to provide 25 lubrication and remove cuttings, and the flow of this fluid provides a source of energy that can be exploited to power electrical components. Conventional flow-based generator systems involve turbine blades within the fluid flow pipe, which transmit energy via a central shaft to an on-axis electrical generator. A 2 bladed stator may impart angular velocity to the fluid flow before it reaches the turbine blades. A problem with these known solutions is that their arrangements of the flowgear (e.g. 5 an arrangement in which the bladed stator and turbine blades project from an outer surface of the generator) make retrieval of the flowgear or the generator extremely difficult or impossible during downhole operations. Their wires for electrical power connection between the generator and tool casing contribute to this difficulty. 10 Thus, it is impossible to change the flowgear on conventional generators, either to replace damaged parts or to change the flow rate, without removing the generator from the tool string for re-work (typically in a district workshop away from the drilling rig). To continue drilling without major delays requires additional spare generators which represent a large capital asset investment, but the drilling delay inherent in tripping the 15 drill string to remove the generator is very costly even if the generator can be promptly replaced. The inventors of the present invention have recognized that it is desirable to improve the ease with which flowgear can be interchanged, or indeed to provide a system where such changes are minimised or eliminated. Another problem with known generators implemented within a drill collar insert is that they typically fail to provide an 20 adequate power output for some applications, and fail to provide a sufficiently stable output. It is also desirable to mitigate the other problems described above. BRIEF DESCRIPTION OF DRAWINGS 25 Embodiments of the invention are described below, by way of example, with reference to the accompanying drawings in which: Figures 1A-1E show a known downhole generator for insertion into a cylindrical drill pipe, the generator insert forming an arrangement located at the central longitudinal 30 axis of the drill pipe; 3 Figures 2A-2D show a first example of a fluid-flow driven power generator according to an embodiment of the present invention, for use in a drill pipe or a similar tubular structure; 5 Figures 3A- 6D -show various components of a second embodiment of a fluid-driven power generator according to the invention, implemented as a drill collar insert; and Figure 7 shows a measurement while drilling apparatus according to an embodiment of 10 the invention. DESCRIPTION OF EMBODIMENTS Conventional flow-based generator systems typically consist of an insert in a drill 15 collar, the insert being located on the axis of the drill pipe. Figures 1A-1E show such a generator insert which would be housed inside a cylindrical drill collar. (All figures are orientated with the uphole end to the left, flow in the drill-string bore being left to right. In cross-section views, cut surfaces are hatched.) 20 In the known downhole generator of Figure 1, a bladed stator 110 is fixed into a casing or flow tube 115 to impart angular velocity to the flow. A turbine 120, which has outwardly projecting rotor vanes, is mounted on a mud-lubricated bearing system 125 to extract energy from the swirling flow generated by the stator. The turbine transmits its mechanical energy via a central shaft 151 to the on-axis electrical generator 150, 25 which houses magnets and coils. In such generators, the narrow annular gap 160 between the flow tube and the generator body produced high flow velocities, and this requires ceramic liners 165 to minimise erosion. In the arrangement shown in Figure 1A, electrical power from the 30 generator is transmitted downhole- (to the right) through the Bottom Interface Housing 4 170. The Bottom Interface Housing (or reverse flow hanger) takes the electrical connections across the fluid bore between the on-axis generator and the cylindrical tool casing or collar which houses the generator and other tools in the string. The Bottom Interface Housing also diverts the flow from the generator annulus back to the 5 bore of the tool, and requires the application of extremely hard surface coatings to minimise erosion by the diverted flow. One limitation of the on-axis arrangement of the generator is that it is difficult to pass additional electrical connections through the generator. In one example, a single wire 10 was passed through the core of the generator to provide a MIL-STD-1553 serial communications connection, but locating a wire through the core of a generator renders it susceptible to electrical noise. However, with the space constraints existing within the generator there is no alternative path, and in the core there is very little space for additional wires. 15 At the uphole end of the generator there is an on-axis connector 185, comprising an upper interface hanger and an electrical connector. The connector 185 is supported by a low-profile centraliser 175 and enables connection to other components of an insert such as an antenna. A nose cap 180 is used to divert the flow over the nose of the 20 generator core into the annular gap and past the bladed stator. The centralizer and nose cap are formed of, or coated with, erosion-resistant material such as tungsten carbide. A central rotor shaft 151 extends through the generator and carries magnets 152 such that they spin within the laminations and windings of the electrical stator 153. A space 154 is provided for a rectifier and other electrical control circuitry. 25 As noted above, there are various problems with such a generator, including the difficulty replacing damaged parts and replacing the flow gear to change the flow rate. Furthermore, the wired power connections in such generators (downhole in the example above) are either housed in shaped flownecks, which are prone to erosion 30 damage from- particles within the fluid passing through the bore within the casing, or 5 complex arrangements are required to route wires internally without crossing the fluid flow. The particles in the fluid can disrupt fluid flow past the flownecks. The inventors of the present invention have designed a fluid-flow-driven generator that 5 is suitable for use in a downhole drilling environment and/or in other fluid-containing pipes, that mitigates one or more problems of known generators. Various embodiments of the invention are described below. 1. Generator with Annular Power Generation Assembly and Detachable Axially 10 Located Flow Controller One embodiment of the invention provides a fluid-flow-driven generator, for use in a fluid containing pipe, comprising: an annular power generation assembly comprising a fluid-flow-driven impeller coupled to one of a magnet assembly or an electrical coil 15 assembly, the magnet assembly and the coil assembly being arranged for magnetic coupling between them and being arranged to enable relative movement between them, such that fluid flowing past the impeller causes relative rotation between the magnet assembly and the coil assembly for the generation of electrical power; and a flow controller located closer to the longitudinal axis of the pipe than the annular power 20 generation assembly, which flow controller is detachable from the annular power generation assembly and can be removed to leave an axially-located through bore. Such an embodiment is shown in Figures 3A-6D. According to one embodiment, the detachable flow controller, which is located 25 proximate the longitudinal axis of a fluid pipe when in its operational position, can be removed from the pipe whilst the generator is in its operational position downhole. More generally, one or more removable parts of a generator according to the invention can be retrieved from a downhole drilling environment without removing the entire drill string, and the through bore can be used for survey, maintenance and/or fishing 6 operations lower in the drill string as well as facilitating replacement of the removed parts. Various embodiments of the invention shown in the figures have this feature. In one embodiment, the annular arrangement of the power generation comprises an 5 insert for a fluid-containing pipe, in which all of the impeller, the coil assembly and the magnet assembly are located close to the outer circumference of the pipe insert. This is a feature of the embodiments of Figures 3A-6D. This not only enables a clear through-bore to be provided when one or more other parts of the generator is removed, but also enables generation of relatively high electrical power for a given fluid flow rate 10 as compared with alternative arrangements in which either the impeller, magnet assembly or coil assembly is more centrally located. According to one embodiment of the invention, the flow controller includes an adjustment mechanism for changing the size of a central aperture through the flow 15 controller, thereby to control the proportion of fluid flowing through the pipe that flows past the annular impeller. In drilling applications for example, it may be desired to change the flow rate past the impeller to generate a different electrical power output at different times according to which components of the drill string need to be operated. Such periodic changes may be automated or may be controlled by a user at the 20 surface. Alternatively, it may be desired to achieve a more constant electrical output than would normally be achieved in view of variations in the fluid flow rate through the pipe. An automated adjustment of the flow controller in response to fluid flow rates or pressure can be used to adjust the proportion of the fluid in the tube that flows past the impeller, thereby to achieve a more constant speed of rotation of the impeller and 25 hence a more constant electrical output. 2. Generator with Removable Part(s) One embodiment of the invention provides an electrical power generator for use in a 30 fluid-containing pipe, such as for inserting into a tubular drill collar. The generator 7 comprises: a magnet assembly; a coil assembly; and a fluid-flow driven impeller coupled to one of the magnet assembly and the coil assembly so as to cause rotation of the coupled assembly in response to fluid flow through the pipe. The magnet assembly and the coil assembly are arranged to enable magnetic coupling between 5 them, and the magnet assembly and the coil assembly are mounted to enable relative movement between them in response to fluid flow through the pipe, such that said relative movement generates an electric current within the coil assembly. A first part of the generator,'which first part is arranged at a position proximate a central longitudinal axis of the fluid containing pipe when in use, is a removable part that is adapted for 10 attachment to and detachment from a second part of the generator so as to leave a central through bore when the first part is detached and removed. In one embodiment, the generator comprises an insert for a tubular drill collar and, the insert comprises the impeller and the magnet assembly which is coupled to the 15 impeller. The magnet assembly is arranged for magnetic coupling with a coil assembly embedded in a wall of the drill collar insert, and is rotatably mounted relative to the coil assembly. The fluid that provides mechanical energy in such an embodiment is drilling mud. The coil assembly comprises electrical wires wound around one or more magnets. 20 In one embodiment, such as shown in Figures 3A-6D, the impeller comprises an annular component having a set of rotor vanes for use in a first annular fluid flow path proximate the tubular wall of the drill collar. The removable part comprises a flow control assembly for connection to the insert at a position proximate the central 25 longitudinal axis of the fluid-containing pipe. The flow control assembly defines a second fluid flow path along the central longitudinal axis of the fluid-containing pipe. The flow control assembly according to one embodiment comprises a combination of a spring collet having outward-facing projections on each of a plurality of fingers, and a flow controller which detachably engages the spring collet (such as by a threaded 30 engagement or latching mechanism). The spring collet's projections are biased 8 outwards to engage recesses in an inner wall of the drill collar insert. Alternative releasable engagement mechanisms are also possible. A set of different sized flow control nozzles are provided for use within the flow controller, and any one of them can be selected for use according to downhole characteristics such as expected fluid flow 5 rates and loads on the generator. The proportion of the fluid flow through the drill pipe that passes along the first fluid flow path is determined by the extent to which the flow controller restricts fluid flow along the second fluid flow path. The detachable fluid flow controller can be removed from the drill pipe to leave a clear central bore through the drill pipe. In this embodiment, the magnet assembly, coil assembly and impeller can all 10 be retained in the drill collar insert when removing the flow control assembly. 3. Drill Collar Insert with Removable Impeller and Magnet Assembly In another embodiment, the generator again comprises an insert for a tubular drill 15 collar, and the insert comprises the impeller and a coupled magnet assembly arranged for magnetic coupling with a coil assembly embedded in the tubular wall of the drill collar insert. However, the removable first part in this embodiment as shown in Figures 2A-2D comprises the impeller and the coupled magnet assembly. The removable first part is adapted for connection to the second part of the drill collar insert so as to lie at a 20 position proximate the central longitudinal axis of the fluid-containing pipe when in use. A central through bore is provided when the first part is removed. In one embodiment of the invention, the generator parts are arranged to facilitate removal of the first part while also mitigating the flow disruption and erosion problems 25 associated with wired connections crossing the fluid bore. The coil assembly, in which an electrical current is induced by magnetic coupling, is embedded in a cylindrical outer wall of the drill collar insert instead of being located on the axis of the generator. In one embodiment, electrical wires are arranged as twisted pairs in shallow longitudinal trenches in the stator coil laminations (see Figure 6A). 30 9 In the embodiments of Figures 2A-6D, the above-described impeller vanes lie within the same fluid flow path as a set of stator vanes that divert fluid flowing longitudinally along the drill pipe to impart a rotational velocity. That is, fluid flowing parallel to the longitudinal axis of the drill pipe is diverted by the stator vanes such that the fluid flow 5 is partially longitudinal and partially rotational, resulting in a swirling flow having a non zero angle to the longitudinal axis of the drill pipe. The impeller vanes are arranged to receive this swirling fluid flow generated by the stator vanes and to be rotated within the drill pipe by the force exerted on the vanes by the fluid flow. The stator vanes thus increase the torque provided by the impeller. The stator vanes may be within the 10 removable part of the generator as in Figures 2A-2D. 4. Applicability of Embodiments to Repeaters/Telemetry Generators may be used in repeaters at intermediate positions along a drill string, such 15 as for telemetry applications. Conventional generators fail to leave a clear drill pipe bore that is sufficient to facilitate 'fishing' to a lower level in the drill string, and this is a considerable constraint because of the high cost of lost drilling time resulting from removal of the drill string. The present invention enables part of the generator to be retrievable without removing the drillstring. This is an advantage for generators that are 20 used to power measuring apparatus close to the drilling location, but the ability to remove a centrally-located part of a generator to permit through access is particularly advantageous when the generator is used for powering a repeater higher up the drill string, in view of the likelihood of needing to perform operations lower in the drill string than this repeater. This is not possible with existing generator assemblies. 25 In one embodiment of the invention, there is provided an electrical power generator for generating power in a fluid containing pipe, comprising: a first part for positioning proximate a central longitudinal axis of the pipe when in use, the first part defining a first fluid flow path along the central longitudinal axis; and 10 a second part arranged to lie outside the first part and adjacent an inner wall of the pipe when in use, the second part defining a second fluid flow path. The first part is detachable from the second part and is removable from the drill pipe to provide a clear central bore through the pipe. 5 In one particular embodiment, the first part of the generator includes a fluid flow control assembly for controlling the flow of fluid along the central longitudinal axis (e.g. by the size of an aperture in a flow nozzle of the flow control assembly), thereby to control the flow of fluid past an impeller within the second fluid flow path. The impeller is coupled 10 to one of a magnet assembly and a coil assembly, to form a rotor, and the second part of the generator includes at least one of the magnet assembly and the coil assembly comprising a stator. The flow control assembly includes a sensor (e.g. pressure, flow rate) that generates a control signal for adjusting the fluid flow, or an adjustment mechanism that is responsive to a control signal generated elsewhere. 15 In one embodiment, the magnet assembly is the rotor arranged to rotate with the impeller and the coil assembly is the stator having a fixed position relative to the wall of the fluid-containing pipe. The impeller is implemented as an annular component comprising a set of rotor vanes arranged around the circumference of -the annular 20 component (preferably equidistant from each other) so as to lie within the outer fluid flow path adjacent the inner wall of the drill pipe. The rotor vanes have a non-zero angle to the received fluid flow (such as an angle of, for example, 20 or 30 degrees to the longitudinal axis of the pipe). The stator coil assembly is also located at the periphery of the drill pipe, surrounding the rotor magnet assembly. By arranging the 25 magnet and coil assemblies towards the periphery of the drill pipe, they have relatively large diameters (within the constraints of the drill pipe dimensions) and this enables a relative movement between them to generate a higher electrical power output than is typical of known downhole generators. 30 5. Generator with Controllable Output Voltage 11 Certain embodiments of the invention enable a target output voltage range to be achieved despite variations in fluid flow rates, either by facilitating replacement of at least a part of the fluid flow control assembly (e.g. replacing a fixed-size aperture flow 5 control nozzle with a flow control nozzle having a different fixed-size aperture), or by means of an adaptive flow controller. In one embodiment, a flow control assembly for use with a fluid-flow-driven electrical power generator comprises an adaptive flow nozzle, which is responsive to conditions 10 within a fluid-flow pipe to adjust the size of its central aperture. In the context of a generator having a first fluid flow path past the impeller and a second central fluid flow path through the flow nozzle's central aperture, the adjustment of the size of the aperture by the adaptive flow nozzle controls the proportion of the total fluid flow passing along the first fluid flow path and the proportion passing along the second fluid 15 flow path, enabling adjustment without replacing a first flow control nozzle with a different size nozzle. An adaptive flow controller according to one embodiment of the invention uses a control signal representative of a measured impeller rotation speed, a measured 20 hydrostatic pressure of the drilling fluid, a measured fluid flow rate or a measured output voltage from the generator, to control the size of the aperture of the flow controller. This flow controller, in turn, controls the flow of fluid through the annular gap in which the impeller is located. Controlling the fluid flow past the impeller's vanes can maintain a substantially constant output voltage, or at least help to maintain the output 25 voltage within a useable range. In a preferred embodiment, the flow through the impeller's annular chamber is controlled by adjusting the flow control assembly's flow nozzle in response to a measured rotation rate of the impeller. This is directly proportional to output voltage and so provides an effective voltage control mechanism. 30 6. Avoidance of Electrical Wires in Fluid Bore 12 In preferred embodiments of the invention as described above, the magnetic coupling between the rotor magnet assembly and its outer stator coil assembly induces an electric current in the coils without the need for a wired electrical connection across the 5 fluid bore. The lack of this wiring removes a restriction on the retrievability of components, and mitigates erosion and fluid flow disruption. The peripheral arrangement of components also enables a sufficiently large clear bore to be provided when part of the generator is detached and removed. 10 Furthermore, the inventors have determined that multiple twisted pairs of wires can be provided in shallow longitudinal trenches in the relatively large diameter stator laminations, without significantly affecting the generator power output as long as the trenches are relatively shallow. 15 7. Cylindrical Drill Collar Insert with Impeller Vanes Arranged Between Cylinders Another embodiment of the invention provides an insert for a cylindrical drill collar that comprises one section of a longitudinal drill pipe. The drill collar insert includes a stator coil assembly comprising a plurality of electrical wires wound around a set of one or 20 more magnets. The coil assembly is arranged for magnetic coupling with a rotor magnet assembly that is free to rotate relative to the stator, such that relative movement between the stator coil assembly and the rotor magnet assembly can generate an electric current within the coils. The rotor magnet assembly is arranged to be rotated by torque generated from fluid flow within the drill collar by an impeller 25 coupled to the rotor magnet assembly. The impeller and rotor magnet assembly are interconnected such that rotation of the impeller results in rotation of the rotor magnet assembly. In one embodiment, the impeller comprises a set of vanes arranged between concentric cylinders that form an annular component suitable for positioning towards the outer periphery of the fluid bore. The impeller blades define an angle to the 13 longitudinal axis of the drill collar such that fluid flowing in a substantially longitudinal direction through the bore exerts a force on the vanes to produce rotational movement. Thus, according to various embodiments of the invention, a generator insert design 5 has been developed in which certain elements can be removed from the flow bore to create a through-bore access path to points lower in the drill string or bottom-hole assembly. Relatively high electrical power can be achieved by means of a circumferentially-located annular power generation assembly, and a controlled power output can be achieved by an adjustment mechanism for an axially-located flow 10 controller. The simple construction of the generator according to preferred embodiments makes it possible to replace the retrieved components at rig site, and downhole replacement is now a possibility. Further details of various embodiments of the invention are described below with reference to Figures 2-7. 15 8. Generator Embodiment of Figures 2A and 2B A generator according to one embodiment of the invention is shown in Figure 2A. The generator comprises an annular stator lamination coil pack 252 that is embedded in the 20 housing of a drill collar, and a insert for the drill collar that includes a rotor assembly and a magnet assembly. The rotor assembly includes a retrievable central impeller 220 and magnet assembly 254 which rotates in the fluid flow. Magnetic coupling between the rotating magnets and the annular stator lamination coil pack transfers the mechanical rotating energy for the impeller into the stator coil pack 252 where it is 25 converted into electrical energy. Figures 2B-2D show the retrievable rotor assembly of the generator in more detail. A standard external fishneck 290 is attached directly to a flow-diverting stator 210 comprising a set of vanes, which is locked into the generator housing by a latching 30 mechanism. The latching mechanism provides a thrust bearing element to resist 14 downhole thrust on the rotor and to assist accurate positioning of the rotor. The rotor comprises a set of rotor vanes of an impeller 220 attached directly to the rotor section 254 which contains magnet housing features, an array of rare-earth magnets 256 and a thin outer sleeve of non-magnetic material 258. The rotor runs in mud-lubricated 5 bearings 225 and has a central attachment to the vaned stator 210 so that it is retrieved as one assembly with the stator. The rotor has tungsten carbide bearing surfaces for durability. Although the provision of a removable rotor assembly is advantageous, the solution shown in Figures 2A-2D has limitations because of the small diameter of the stator/rotor vane combination (which potentially limits the 10 available torque and the flow rate). 9. Generator Embodiment of Fiqures 3A-6D A downhole generator assembly according to another embodiment of the invention is 15 shown in Figures 3A and 3B, and subsequently in Figures 3C-6D. Although these Figures are a scaled representation of a workable embodiment, the invention is not limited to the particular dimensions and materials described herein and the described materials and dimensions are specific implementation features that can be replaced in alternative embodiments within the scope of the invention. Indeed, although 20 embodiments of the present invention are described below with reference to standard component sizes for a drill collar such as may be used in oil and gas exploration and recovery, the principles of the fluid-driven generator of the present invention can be applied to other applications that require power generation within a fluid-containing pipe. 25 The generator design is based on an insert 300 which fits into a cylindrical drill collar. This drill collar may be a standard 4 3/4", collar, with the insert having an outer diameter of approximately 4". The generator uses annular flowgear (stator vanes 310 and an impeller 320) which remain within the drill collar during retrieval of other parts of the 30 generator, and during the through-bore operations that are enabled by that retrieval.
15 The vaned impeller 320 is driven by mechanical energy imparted by a fluid flowing through channels defined between a pair of concentric cylinders 325, 330 of the impeller (as described below). The stator vanes 310 impart a swirling rotational movement and this swirling fluid flow applies a torque to the impeller, which is 5 connected to a rotatably mounted magnet assembly, so that the magnet assembly turns relative to a stator coil assembly and induces an electric current in wires around the stator. This generated electrical energy is used to provide power to measurement and/or communication components within the well bore. 10 As shown most clearly in Figures 4B and 4D, the impeller 320 is an annular component suitable for locating in close proximity to the inner wall of the cylindrical drill collar, and comprises a pair of concentric cylinders 325, 330 joined together by and integral with a plurality of helical vanes 335 that define fluid flow channels between the cylinders. The impeller is formed of a hard-wearing material - for example a cobalt-chromium alloy 15 such as a Stellite alloy. The impeller vanes 335 are equally spaced around the circumference of the impeller, so as to define a plurality of. substantially equal helical fluid flow channels. The vanes define a non-zero angle to the longitudinal axis of the cylindrical drill pipe, such that a substantially longitudinal flow of fluid along the fluid flow path proximate the inner wall of the drill pipe exerts a force on the impeller vanes 20 and causes them to rotate. By providing the impeller vanes 335 and stator vanes 310 as annular components located as far as possible away from the central longitudinal axis of the tool, higher torque can be generated than for conventional on-axis generators. 25 In the embodiment shown in Figures 3A-6D, the impeller vanes are angled at an acute angle (for example 15-40 degrees and preferably around 20-30 degrees) to the longitudinal axis of the concentric cylinders, such that a single vane traverses approximately 1/8 to 1/15 of the circumference of the cylinders. The outer cylinder of the impeller is almost flush with the inner wall of the cylindrical drill collar, but a small 30 fluid flow path remains outside this outer cylinder for the passage of a fluid flow that is 16 useful for cooling and lubricating other components (as explained below). There is generally very little debris within drilling mud when flowing through a drill string down towards the drill bit. The stator vanes are at an angle of approximately 20-50 degrees to the longitudinal axis, and preferably 30-40 degrees. 5 The inner surface of the outer cylinder of the impeller is formed integrally with an inwardly-tapering portion of the drill collar insert in a direction downhole beyond the end of the inner cylinder. The tapering portion redirects fluid flowing through the impeller's annular gap between the two concentric cylinders to flow towards the 10 longitudinal axis of the cylinders. This tapering portion defines an angle of approximately 20 to 30 degrees to the longitudinal axis, and leads inwards into a further cylindrical portion having an inner surface that aligns with the inner surface of the inner cylinder of the impeller. In the example of a 4" drill collar, this inner cylinder's internal diameter is 2" - a substantial internal bore. 15 The leading edge of each of the inner and outer cylinders of the impeller (i.e. the edge that faces pressurized fluid flowing through the drill collar) is tapered so as to avoid restricting the fluid flow as well as to reduce the erosion of this leading edge. The impeller and stator vanes are formed of hardened steel, coated with tungsten carbide 20 for improved durability. In the present embodiment, the annular gap between the inner and outer cylinders of the rotor assembly is less than half of the radius of the inner cylinder, and each of the inner and outer cylinders has a thickness of only 2mm, such that less than one third of the total radius of the drill pipe is take up by the impeller and the stator vanes that cooperate with the impeller. This leaves a significant central 25 through bore. As described above, this through bore enables various operations to be carried out through the drill collar insert if other components of the generator are removed. The generator also includes a retrievable Flow Control Assembly (490 in Figures 5A 30 and 5B), which consists of a fishneck nozzle assembly 492 formed from high density 17 stainless steel with a hardide coating. This fishneck nozzle assembly has an internal fishneck and accommodates any one of a set of flow nozzles 500. The nozzles are formed of the same material as the nozzle assembly and are available with a range of sizes of central aperture. Known diameter nozzles for use in such an environment are 5 2/9, 1/3, 4/9, 5/9, 2/3, and 7/9". The fishneck nozzle assembly attaches to a spring collet 494, for example by a threaded end portion, which latches into the bore of the stator vane housing. The spring collet is described in more detail below with reference to Figures 5A-5G. 10 The entire Flow Control Assembly can be retrieved from the generator using a standard Halliburton Otis 'GS' type running and pulling tool which latches onto the fishneck. The collet latch can then be freed by jarring (if necessary) and then pulling upwards to recover the Flow Control Assembly. Other latch and release mechanisms are equally possible. The Flow Control Assembly can then be replaced downhole, if 15 required. A collet retention force of the order 300-500 lbs is suitable to resist pressure forces on the nozzle resulting from the drilling fluid flow and downhole vibrations, and to ensure that the Flow Control Assembly remains in place. The collet 494 is formedrof titanium 20 and has a substantially cylindrical main body with an outside diameter of approximately 50mm. A plurality of parallel elongate slots (approximately 70mm long and 2mm wide) pass through the walls of the body. The slots in the main body define a plurality of flexible but resilient elongate members, each approximately 6mm wide and 2mm-3mm thick, joining the two ends of the body. The slots allow flexing of the elongate members 25 when forced inwards towards the central longitudinal axis of the cylindrical body, but the elongate members are sufficiently resilient to achieve the desired retention force. Each elongate member has an outwardly-extending projection arranged to cooperate with an annular recess in the drill collar insert's internal surface. The projections project approximately 2.5mm outwards from the outer surface of the elongate members of the 30 collet, and taper along their length from a maximum length of about 15mm where the 18 projections join the surface of the collet members and about 9mm at the outer-most point from the main body of the collet. The flexing of the spring collet -needs to be sufficient to enable the projections to be move inwardly by up to 2mm. The slots through the spring collet are sufficient to enable a fluid flow through the slots, which 5 helps to prevent 'caking' of solid material from the fluid. Figures 5D and 5E illustrate the manner in which the bit nozzle can be changed by unscrewing the fishneck-nozzle assembly 492 from the spring collet 494. When the drill string insert is at rig site, this can be achieved without removing the collet from the 10 generator by a tool that attaches to an adapter 496 which engages on features on the front face 497 of the fishneck housing 492 to enable it to be unscrewed. An O-ring 499 also engages the retention feature on the internal bore of the fishneck housing and permits the fishneck nozzle assembly 492 to be removed. 15 To change the flow control nozzle 500, the fishneck nozzle housing 492 can be unscrewed from the spring collet 494, and the nozzle released by removing from the fishneck by releasing the retaining circlip 498. According to one embodiment of the invention, the nozzle can be changed downhole. 20 In some applications, this downhole replacement will be most feasible for the first generator in a string (and possibly only for that first generator unless components are retrieved and replaced in a sequence corresponding to their position in the string, because of the difficulty fishing past an in-place nozzle). 25 Figures 3E and 4B show the rotor assembly which consists of the Rotor-Magnet Assembly 454 which rides in two mud-lubricated hybrid bearings comprising ceramic balls running on metal races 425. The races are of M50 steel coated with TiN, to resist corrosion and enhance surface hardness. The bearings are of angular contact design and are retained on the rotor shaft by the impeller 320 uphole and a nut 453 at the 30 bottom end. -A spring between the outer race of the lower bearing and the housing 19 applies an axial load of approximately 2501b to accommodate wear in the bearings. The magnets 451 are of rare earth magnetic material and are electron beam welded within the rotor magnet assembly to create a unitary body, or are otherwise firmly bonded within the rotor magnet assembly. A thin non-magnetic sleeve 452 protects the 5 magnets. Although the stator vanes are arranged in direct contact with the inner surface of the drill collar, the outer cylinder of the impeller has a slightly smaller diameter. This leaves a small annular gap of approximately 1.5mm between the impeller and the collar, into 10 which a relatively small volume of fluid can pass. This small fluid flow lubricates bearings that enable rotation of components of the generator, and cools the electromagnetic components. In a preferred embodiment, no oil seals are required between the magnet assembly and the coil assembly. 15 Removal of the bearings for replacement is achieved by first removing the upper and lower housings (Figure 4B), which facilitates access to the central section of the generator. Using a key to hold the rotor vane, the lower nut 453 can be released. The rotor assembly, including the top bearing can then be withdrawn from the generator. 20 By directly utilizing the magnetic connection between a rotor containing permanent magnets and a wire-wound stator assembly which surrounds it, and by moving the mechanical to electrical energy conversion from an axially-positioned generator into the annular space in the insert, conventional wire connections between the bore and annulus are made unnecessary. 25 The enhanced diameter of both the permanent magnets and stator coils, that this arrangement permits, makes it feasible to provide generators with higher electrical outputs (i.e. an improvement over the on-axis type of generator). The proximity of stator windings to the flow also facilitates the removal of waste heat, which is an 20 inevitable result of operation at higher electrical outputs whilst avoiding excessive rotation rates. In addition, the enhanced diameter of the stator coils makes it possible to transfer 5 multiple electrical connections past the generator. This is achieved by passing twisted pairs of wires 460 through shallow longitudinal slots or trenches 459 in the outer surface of the stator laminations 456, as shown in Figures 6A-6D. The use of suitably terminated twisted pairs minimises the electrical noise resulting 10 from the proximity of the wires to the fluctuating magnetic fields associated with the generator stator coil assembly. The shallow trenches are approximately 3mm deep, and the stator laminations are approximately 15mm thick. The inventors have determined that it is possible to pass numerous connections over the laminations without reducing the effective area of soft iron in the stator laminations to the point that 15 it compromises generator output. At each end of the stator laminations is a gap 457 separating the stator from an end housing that provides for engagement with other components and typically includes electronics powered by the generator. After the required electrical connections have been formed, the connections are encapsulated in a substantially void-free resin to add structural strength and to protect the electrical 20 connections from the pressure and wear caused by the drilling fluid. The stator is also protected from the bore fluid by a thin non-magnetic sleeve (for example of Inconel alloy). In one embodiment, the end housing holds an oil reservoir for use to achieve a 25 pressure balance. By equalizing the pressure of the drilling fluid using oil within the reservoir, some constraints on the structural design, such as material thickness, are made less critical or even avoided. Furthermore, a plurality of strengthening struts are provided in shallow trenches in the stator and in the adjacent components of the drill collar insert. These struts are welded into position. The struts are magnetic to 21 cooperate with the magnetic flux generated in the stator and hence to avoid reducing the effectiveness of the stator. The electromagnetic conversion elements of a generator (i.e. the rotor containing rare 5 earth magnets, and the stator which consists of soft iron laminations wound with copper wire) define the voltage constant of the generator, i.e. the volts per RPM of the generator. A generator according to this invention can be used to power electronic equipment which only operates over a limited voltage range, in which case it can be important to arrange that the blade angles of the flow gear (i.e. the stator vane and 10 rotor vane angles) to give the correct generator rotation rate (and hence voltage) under load. From a prior knowledge of the likely flow rate to be encountered in any particular job the flow angles can be selected. However, to cover a range of possible flow rates it is necessary to stock a wide range of stators and rotors of differing angles. Changing the flow gear in a conventional downhole generator can involve extensive disassembly 15 of the generator. Using a generator according to one of the preferred embodiments of the present invention, a single combination of stator vane and impeller vane angles can be used over an enhanced range of flow rates by simply changing the size of the central 20 aperture of the bit nozzle 500 in the Flow Control Assembly 492. In the embodiment of the invention described above, the generator has been designed to simplify changes of flow gear. The stator vane is attached to the lower part of the upper housing as shown in Figure 4B. Removal of the top housing and the rotor 25 assembly, as described earlier, enables the flow gear and bearings to be readily changed. A further embodiment of the invention is described below.
22 10. Embodiment of Active Flow Control Nozzle It is a fundamental characteristic of known generators that the voltage output varies in a linear manner with the rotation rate or RPM. This can be expressed by a number 5 called the Voltage Constant which is determined by the relative geometry and properties of the rotor magnets and the stator laminations. In turn the rotor vane RPM also varies approximately linearly with flow rate through the generator, so that the variation of voltage output with flow rate is also approximately 10 linear. The variation of output voltage with flow rate is, at best, an inconvenience which can be overcome within certain limits by electronic means. The flow rates to be used on any job are initially determined by drilling requirements including the need to lift 15 cuttings to the surface. Flow gear angles and nozzle are selected to suit the chosen flow rate. Should the driller subsequently wish to change the flow rate whilst the generator is downhole, there only exists a limited range that can be selected whilst retaining the operating viability of the generator in the configuration selected 20 It then becomes necessary to trip the generator out of the drill hole to change the flowgear. A new generator design according to the above-described embodiment of the invention enables adjustment of the flow rate/RPM characteristic by replacing the flow control nozzle, to suit changed conditions. 25 However, in an alternative embodiment, a downhole generator is provided with a substantially constant voltage output independent of flow rate or pressure. A generator according to this embodiment employs a replaceable flow control assembly as described above, except that there is no need for a set of interchangeable flow control nozzles having different fixed-size apertures. Instead, an approximately constant 30 voltage output is achieved by means of an active flow control nozzle which responds to 23 changes in fluid flow and varies the bypass rate accordingly. This is achieved by requiring that the bypass rate is higher at lower flow rates; the bypass rate can be decreased as the flow rate increases so that the actual flow through the generator's flow-driven impeller is more consistent. Furthermore, since the relationship between 5 the fluid flow rate and rotation speed of the impeller varies according to load, some embodiments of the invention monitor the rotation speed of the impeller or the output voltage of the generator, rather than only monitoring the fluid flow rate or the fluid pressure. 10 The active flow-control nozzle needs to respond to increased flow rate by opening and permitting an increased proportion of the flow to pass through the bypass. This can be achieved relatively simply by means of a spring loaded orifice which responds to fluid pressure, but other mechanisms for controlling the active control nozzle can be used and one effective solution exploits the electromagnetic coupling between the magnets 15 451 of the rotor-magnet assembly and the stator 455 to measure the speed of rotation of the impeller. Another solution samples the output voltage and uses this to generate a feedback control signal that is transmitted to a low-power electronic nozzle controller via similar electromagnetic coupling. Only a low strength signal is required for transmitting control signals to the-electronic nozzle controller. The electronic controller 20 widens or restricts the flow nozzle aperture to adjust the flow rate past the impeller to achieve a target speed of rotation that results in a target voltage. Time lags within the system prevent instantaneous adjustment, and so some variation in output voltage is to be expected, but output voltage variations can be controlled so 25 as to remain within the voltage range that is acceptable to the particular electronics being powered by the generator. The result is a reduction in unintended variation of generator output with changes to the fluid flow rate or pressure in the fluid-containing pipe, thereby increasing the usable 30 range of flow rates which can be accommodated with any configuration of flow gear. In 24 addition, intentional changes in electrical output can be achieved using the same flow gear by switching flow control nozzles or by controlling an adjustable flow control nozzle. 5 An active nozzle as described above can be retrofitted in the space occupied by the replaceable static nozzles, although variations in design of the flow control assembly to accommodate variations in the active nozzle are within the scope of the invention. Various embodiments of the invention described above thus provide advantages over 10 known apparatus, including a replaceable central assembly within a generator for use in fluid-containing pipes, which can be removed downhole to permit access through the bore to positions lower in drill string. The above-described flow control assembly incorporating exchangeable nozzles can be used to set a desired flow bypass ratio, making a single flowgear stator-rotor angle combination work over a wide range of flow 15 rates by simple change of nozzle size. Downhole adjustment is simplified by providing the ability to change a nozzle without removing the rest of the flow control assembly from the drill pipe (using an adaptor to engage and unscrew the nozzle assembly from the fishneck housing of the flow control assembly). This simple design can improve reliability and serviceability compared with typical known solutions. Embodiments have 20 been described that use relatively large diameter annular components, including a relatively large diameter coil assembly and annular flow gear, to achieve higher power outputs. Furthermore, an active control nozzle has been provided to reduce the variation of voltage output with flow rate through the pipe, giving a more nearly constant voltage output. It will be clear to a person skilled in the art that the 25 complementary nature of the various features of the invention can provide significant improvements over known generators, and yet several of the described features are not essential to all embodiments. For example, the removability of parts of a generator does not require an active flow control nozzle and vice versa.
25 The annular arrangement of the electrical windings according to one embodiment removes the need for wired electrical connections across the fluid bore, as required in a typical axially-mounted generator that supplies electricity to an annular insert. This annular arrangement of stator windings also creates space for electrical connections 5 through the generator. Direct contact between the stator windings and the drilling fluid maximise the cooling effect. Although a number of embodiments are described in detail above, the present invention encompasses various alternative implementations including additional 10 features and modification of the features described above. For example, the above described embodiments include a coil assembly and a rotating magnet assembly that induces an electric current in the coil assembly to power components such as a telemetry repeater or a measurement apparatus. In one embodiment, the electrical current generated in this way is used to replenish a battery that is then used to provide 15 a steady output voltage for powering downhole components. In another embodiment, the output voltage generated byothe generator is processed to remove any excessive voltages reaching the powered measurement or telemetry components. Electrical power generators according to the present invention = are particularly 20 applicable to logging while drilling (LWD) and measurement while drilling (MWD) applications. Figure 7 illustrates a drilling rig 702 supporting a drill string 708 that includes signal transmitters and receivers for use in the measurement of formation resistivity, and/or other apparatus for measurement of conditions of the downhole environment. Each transmitter and receiver and other electrically powered component 25 requires power to be supplied from the surface or generated downhole, or reliance must be placed on batteries that require periodic replacement. When drilling to great depths, downhole power generation is the most effective solution. There may also be a need for signal repeaters to be located at intervals along the drill string, to enable formation resistivity data and data relating to other measured properties of the 30 downhole environment to be transmitted from the measurement point near the drilling 26 location to a surface location, where it is analyzed and used to control subsequent operations. The present invention mitigates a number of problems associated with conventional downhole power generators. 5 As shown in Figure 7, a drilling rig 702 located at a surface 704 of a well 706 supports a drill string 708. The drill string may operate to penetrate a rotary table 710 for drilling a borehole 712 through subsurface formations 714. The drill string 708 incorporates a drill pipe 718 and a bottom hole assembly 720. The bottom hole assembly 720 includes a number of interconnected drill collars 724, a downhole tool 716 and a drill bit 10 726. The drill bit is operated to create the borehole 712 by penetrating the surface 704 and subsurface formations 714. A mud pump 732 pumps drilling fluid (sometimes known as "drilling mud") from a mud pit 734 through a hose 736 into the drill pipe 718 and down to the drill bit 726. The drilling fluid can flow out of the drill bit 726 and can be returned to the surface 704 through an annular area 740 between the drill pipe 718 and 15 the sides of the borehole 712. The drilling fluid may then be returned to the mud pit 734, where it is filtered. The drilling fluid typically cools the drill bit as well as providing lubrication and removing subsurface formation cuttings created by operating the drill bit. 20 The downhole tool 716 may comprise a number of different types of tools, including MWD (measurement while drilling) and LWD (logging while drilling) tools and others. The drill string 708 may incorporate one or more transmitters and one of more receivers 716 for generation and reception of signals and then analysis of conditions within the drilling environment, such as near the drill bit. For example, measurement 25 while drilling (MWD) applications may exploit such transmitters and receivers to measure formation resistivity in a region close to the drill bit, for example to detect formation boundaries via detecting changes in resistivity and to control steering of the drill bit in response to this detection to direct the drill bit towards desired fossil fuel supplies, or to identify the fluids in a material. An electromagnetic wave can be 30 transmitted into the - formation surrounding a drilling location, and the resulting 27 response signals provide information about the downhole environment. The present invention can provide electrical power to components of the MWD system while mitigating a number of problems of known MWD systems. 5 Throughout this specification and the claims which follow, unless the context requires otherwise, the word "comprise", and variations such as "comprises" and "comprising", will be understood to imply the inclusion of a stated integer or step or group of integers or steps but not the exclusion of any other integer or step or group of integers or steps. 10 The reference to any prior art in this specification is not, and should not be taken as, an acknowledgement or any form of suggestion that the prior art forms part of the common general knowledge in Australia.