Well Kick Detection
Patent Information
- Application Number
- SA521422623
- Authority / Receiving Office
- SA · SA
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-22
- Publication Date
- 2024-03-13
- Estimated Expiration
- 2040-01-23
AI Technical Summary
Existing methods for detecting wellbore flow surges are delayed, unreliable, and ineffective under conditions of total loss circulation, often relying on operator judgment and lacking accurate downhole monitoring.
A flow-surge detection system with pressure sensors and a flow detector mounted on production tubing, capable of measuring hydrostatic pressure differentials and fluid flow direction, transmitting alarm signals to the surface for timely intervention.
Enables early detection of flow surges, allowing operators to intervene before they become uncontrollable, even under total circulation loss conditions, and can be reused without modifying the drill string design.
Abstract
Description
<h2 style=";text-align:left;direction:ltr">well kick detection<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Full description<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Background of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> This disclosure relates to well operations, for example, in wells formed in hydrocarbon-bearing reservoirs.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Hydrocarbons, such as oil or natural gas, can be accessed from underground reservoirs by drilling wells. In some cases, a well blowdown can occur. A well blowdown is the unwanted inflow of a subsurface fluid or gas flow from underground reservoirs into a wellbore. A blowdown can occur during drilling tubing, completion operations, or other well operations. A blowdown can be caused by a pressure imbalance between formation fluids and wellbore fluids such as drilling mud or cement. The likelihood of blowdown increases as the well deepens due to increased pressure in deep wells. Uncontrolled blowdowns can result in blowouts, which have severe environmental and financial consequences. Therefore, early detection and mitigation of blowdowns in wells is desirable in hydrocarbon exploration and production operations.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">International application 2016040310 discloses that in some embodiments, the drilling operations method comprises indicating a flow event by detecting that the flow rate of a drilling fluid outside the annular space increases, and determining the location and orientation of a drill bit in a wellbore at the flow event. Based on the determination of the flow event occurring in a gravity-dominant flow section of the wellbore, the method further comprises obtaining an annular pressure profile from a downhole pressure sensor and comparing the obtained annular pressure profile with a simulated annular pressure profile. The simulated annular pressure profile is based on a set of multiphase flow equations.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">International Application 2018170838 discloses a sensor system (200) for a resource recovery system. The sensor system (200) includes at least one sensor subassembly (201) and a sensor computing device (105). The sensor computing device (105) is configured to receive, from the at least one sensor subassembly (201), at least one signal comprising at least one pulse having at least one pulse peak. The sensor computing device (105) is further configured to identify at least one pulse peak with a magnitude and signal-to-noise ratio, and retrieve at least one pulse peak from the at least one signal using the magnitude and signal-to-noise ratio of the at least one pulse peak. The sensor computing device (105) is further configured to store at least one pulse peak within a database comprising one or more pulse peaks, and generate a component report identifying one or more changes of the at least one component.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">US application 20100185394 discloses that an apparatus 1 for measuring the speed and direction of fluid flow FF comprises: - an axial means 2 adapted to rotate at a rotational speed and direction of the axial means depending on the speed and direction of the fluid flow when in contact with the fluid flow, - a modulator 3 coupled to the axial means and adapted to rotate along with the axial means, - a fiber optic arrangement for providing an incident beam IB to the modulator and for receiving a return beam RB from the modulator, wherein the incident beam IB comprises an incident signal, the return beam RB comprises a modulated signal, and the modulator 3 modulates the incident signal so as to form a modulated signal depending on the rotational speed and direction of the axial means 2. The modulator 3 comprises an encoder 30 comprising at least a first angular sector 34, a second angular sector 35, and a third angular sector 36, each angular sector having a defined attenuation factor such that the modulated signal comprises a first segment 64, A second part 65 and a third part 66 for at least each complete revolution of the encoder 30. The apparatus 1 further includes a processing means 6 for determining the velocity and direction of fluid flow FF based on the first part 64, the second part 65 and the third part 66 of the modulated signal.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">U.S. Application 2013008647 discloses that a method for modifying a wellbore return fluid comprises disposing at least one valve along a drill pipe section of a drill string in a wellbore. At least one variable of interest is determined at at least one location along the wellbore. The at least one valve is controllably operated to discharge at least a portion of at least one fluid from within the drill string into an annular space in the wellbore to modify a local property of the return fluid in the annular space based on the at least partially measured variable of interest.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> General description of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The present disclosure relates to a description of techniques associated with the detection of flow bursts in wells.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Certain aspects of the subject matter described herein may be implemented in the form of a flow-surge detection system. The present invention relates to a well flow-surge detection system including an apparatus adapted to be retrievably attached to production tubing in a well. The apparatus includes a housing, a first pressure sensor, a second pressure sensor, and a flow-surge detection device. The second pressure sensor is distal to the first pressure sensor. The first and second pressure sensors are configured to sense the relevant local pressure of a downhole fluid flowing through the housing and transmit a relevant signal representing the relevant local pressure sensed. The flow-surge detection device is configured to detect the direction of the downhole fluid flowing through the housing and transmit a relevant signal representing the detected direction of fluid flow. It includes a computer system configured to determine one or more downhole properties of the downhole fluid based on the relevant signals received from the first pressure sensor, the second pressure sensor, and the flow-surge detection device.<h2 style=";text-align:left;direction:ltr">The computer is configured to determine whether a flow surge occurs in a well based on one or more specific downhole properties of the downhole fluid.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> These and other aspects may include one or more of the following features:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The computer may include memory and a processor mutually coupled to the memory. The processor may be designed to determine the density of the downhole fluid flowing through the housing based on the distance between the first pressure sensor and the second pressure sensor and the respective signals received from the first pressure sensor and the second pressure sensor. The processor may be configured to send an alarm signal in response to determine that a flow surge is occurring in the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The device may include a centering device surrounding the outer diameter of the housing. The centering device may be designed to connect to the well's production tubing. The processor may be designed to couple to the production tubing in the well. The device and processor may be designed to work together to establish communication with each other across the well's production tubing.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The housing may include a recovery flat designed to be attached to a fine cable, so that the device can be installed inside the production pipe and retrieved from the production pipe.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The processor can be connected to a pump. The processor can be designed to trigger the pumping of fluid into the well in response to the detection of flow surges occurring in the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The processor can be communicatively coupled to a blowout preventer inside the well. The processor can be designed to cause the blowout preventer to close in response to the detection of flow surges occurring in the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The flow detector may include a rotatable vane flowmeter. The processor may be configured to determine the direction of downhole fluid flow through the housing based on the direction of rotation of the rotatable vane flowmeter in response to downhole fluid flowing through the rotatable vane flowmeter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The device may include a temperature sensor located within the housing. The temperature sensor is designed to sense the local temperature of the downhole fluid flowing through the housing and to transmit a signal representing the sensed local temperature. The process of determining whether flow surges are occurring in the well may include determining whether the change in the sensed local temperature is equal to or greater than a threshold temperature change value over a predetermined period of time.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The device may include a seal on the outer circumferential surface of the housing. The seal may be designed to form a seal with the production tube.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Certain aspects of the subject matter described herein may be implemented in the form of a method for using a flow surge detection system. A first local downhole fluid pressure is measured at a first location in a well. A first signal representing the first local pressure is transmitted. A second local downhole fluid pressure is measured at a second location in the well. The second location is dissimilar to the first location. A second signal representing the second local pressure is transmitted. Thus, the direction of downhole fluid flow is detected. A third signal is transmitted, representing the detected flow direction. One or more downhole properties are determined based on the reception of at least one of the first signals, the second signals, or the third signals. Whether a flow surge occurs in the well is determined based on one or more specific downhole properties of the downhole fluid.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> These and other aspects may include one or more of the following features:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Determining one or more downhole properties may include determining the density of the downhole fluid based on a first signal, a second signal, and the distance between the first and second locations. Detecting the direction of downhole fluid flow may include determining the direction of rotation of a rotary vane flowmeter for a surge detection system in response to downhole fluid flowing through the rotary vane flowmeter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A pump can be designed to cause fluid to flow into a well in response to determining that flow surges occur in the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A well blowout preventer can be designed to shut down in response to the occurrence of flow surges within the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> An alarm signal can be sent in response to determine that flow surges are occurring in the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A local downhole fluid temperature may be measured, and a fourth signal representing the measured local temperature may be transmitted. It may be determined whether the change in the measured local temperature is equal to or greater than a threshold temperature change over a predetermined time period. An alarm signal may be transmitted in response to determine whether the change in the measured local temperature is equal to or greater than a threshold temperature change over a predetermined time period.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> At least a portion of the surge detection system may be connected to a downhole portion of the production tubing in the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The burst detection system portion can be separated from the production tubing, and the burst detection system portion can be recovered from the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Certain aspects of the subject matter described herein may be implemented in the form of a flow-surge detection system. The well flow-surge detection system includes a device adapted for retrievable attachment to a well production tubing installed in the well. The device includes a housing comprising a first end and a second end. The housing has a longitudinal axis defined through the first end and the second end. The housing is designed so that, when connected to the production tubing placed in the well, it allows downhole fluid to flow through the first end and the second end. The device includes a first pressure sensor positioned within the housing at a first distance from the first end. The first pressure sensor is designed to measure a first local pressure of the downhole fluid flowing through the housing and to transmit a first signal representing the first local pressure. The device includes a second pressure sensor positioned within the housing at a second distance from the first end. The second distance is different from the first distance. The second pressure sensor is designed to measure a second local pressure of the downhole fluid flowing through the housing and to transmit a second signal representing the second local pressure.<h2 style=";text-align:left;direction:ltr">The device includes a flow detector inside the housing. The flow detector is designed to detect the direction of downhole fluid flowing through the housing and transmit a third signal representing the detected direction of downhole fluid flow. The flow surge detection system includes a memory and a processor mutually coupled to the memory. The processor is designed to be communicatively coupled to a first pressure sensor, a second pressure sensor, and the flow detector. The processor is designed to determine the density of the downhole fluid flowing through the housing based on the first signal, the second signal, and the difference between the first and second distances. The processor is designed to determine whether a flow surge is occurring in the well based on at least one of determining that the difference between a specified density of the downhole fluid flowing through the housing and a predetermined fluid density is equal to or greater than a threshold density difference value, or determining a change in the direction of downhole fluid flow through the housing based on the third signal. The processor may be designed to transmit an alarm signal in response to determine that a flow surge is occurring in the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Details of one or more implementations of the subject matter of the present disclosure are illustrated in the accompanying figures and in the specification. Other features and characteristics of the subject matter of the invention will become apparent from the description and from the figures and claims.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Brief explanation of the drawings<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1 is a schematic diagram of an illustrative system that can be used to detect flow surges in a well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2a is a schematic diagram of an illustrative device that could be implemented in the system of Figure 1.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2b is a schematic diagram of an illustrative device that could be implemented in the system of Figure 1.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3 is a block diagram of an illustrative computer system that could be implemented in the system of Figure 1.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 4 is a flow chart of an illustrative method that can be used to detect flow surges in a well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Detailed description:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">This disclosure describes a system for detecting flow surges in a well by monitoring downhole conditions. One problem with detecting flow surges is that conditions that indicate a flow surge has occurred or is about to occur typically develop at the bottom of the well. Often, downhole conditions cannot be easily detected by conventional methods, such as monitoring mudhole volume. Although some conditions may eventually be detected at the well surface, the delay between downhole occurrence and surface detection can delay timely action that could mitigate the undesirable consequences of flow surges. Another drawback associated with conventional methods is the inability to detect flow surges under conditions of total loss circulation because the wellbore fluids are lost to the formation and do not return to the surface. Another potential issue is reliance on operator judgment. For example, many measured well conditions may be associated with a surge without the operator realizing their significance or the urgent need to take action.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The objective of this study is to solve, or at least reduce, the problems associated with delayed detection of wellbore flow surges. The detected early surge detection system monitors various well conditions, such as fluid flow direction and changes in fluid density, and transmits alarm signals to alert operators at the surface. The system includes pressure sensors positioned remotely in the wellbore to measure differences in hydrostatic pressure, which can be used to calculate wellbore fluid density. The system also includes a flow meter to measure the direction of wellbore fluid flow. A certain amount of change in fluid density or flow direction can indicate the occurrence of flow surges and can trigger an alarm. The alarm is transmitted to the surface, where the operator can intervene to counter the incoming flow into the wellbore before the flow surges become uncontrollable.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The detection described in this disclosure can be implemented in certain applications to achieve one or more of the following advantages. The system can be used, retrieved, and reused in drilling, tubing-out, completions, or other phases of well operations. The system can be mounted on a drill or tubing string without the use of downhole cables to transmit measurements without modifying the tubing or drill string designs themselves. Under conditions of total circulation loss, the system can detect the rate and direction of wellbore fluids, regardless of the mud hole size. Because the system monitors downhole conditions, it can detect early flow before it develops into a jet. Measuring pressure at specific downhole points to calculate the density of wellbore fluids is more accurate than other methods that use acoustic instruments to estimate density, which can be affected by the presence of impurities. The jet detector can be recovered, for example, by microcable intervention.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 1 illustrates the illustrative well 100 with the illustrative flow jet detection system. The well 100 extends from the surface 106 to the ground 108. The well 100 is shown as a vertical well, but in other cases, the well 100 can be a deviated well with a wellbore deviating from the vertical (e.g., horizontally or obliquely). The wellbore 100 is usually, but not necessarily, cylindrical. All or part of the wellbore is lined with tubing, such as casing 112. The casing 112 extends from the surface 106 down the well to the wellbore. The casing 112 isolates the wellbore 100 and tubing 128 from the surrounding ground 108. The casing 112 can be formed from a single continuous tubing or multiple lengths of tubing connected (e.g., threaded, welded, or both) end-to-end. In some cases, the wellbore 100 is not specified (e.g., open hole).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The well 100 includes tubular portion 128. In some applications, tubular portion 128 is a tubular portion mounted within the casing 112 and used to produce reservoir fluids. The tubular portion 128 is made of materials compatible with the wellbore geometry, production requirements, and wellbore fluids. In some applications, tubular portion 128 is a drill string. As illustrated in Figure 1, tubular portion 128 may be suspended from an upper drive 150. The upper drive 150 is a device that is suspended from and attached to tubular portion 128 in the wellbore. In some applications, the upper drive portion 150 applies torque to rotate the drill string. In some applications, the upper drive portion 150 may include one or more hydraulic motors or electric motors. Although not illustrated, a rotary table and a Kelly motor are used in place of the upper drive portion 150.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The well 100 also includes a surge detector 200 that is installed in the wellbore as illustrated by Figure 1. The surge detector 200 is of a type designed to fit into a tubular portion 128 within the well 100. The device 200 is designed to interface with and be retrieved from the inside wall of the tubular portion 128. In some implementations, the device 200 interfaces with a downhole portion of the tubular portion 128 that is installed within the wellbore 100. In this description, and in the context of a wellbore, "uphole portion" means near the surface while "downhole portion" means farthest from the surface. In vertical wells, for example, "uphole portion" is synonymous with "upper portion" and "downhole portion" is synonymous with "downhole portion." The device 200 measures one or more operating variables of the downhole fluids and transmits the corresponding signals to the surge detection computer 300. The signals are transmitted from the device 200 to the computer 300 via the tubing 128.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The surge detection computer 300 is a data processing computing device located on the surface 106 and connected to the tubing 128 via one or more cables, as illustrated in Figure 1. The computer 300 receives signals from the surge detection device 200 that represent one or more operating variables of the downhole fluids. The computer 300 may calculate one or more downhole well properties based on the signals received from the device 200. The computer 300 may determine, based on one or more of the calculated downhole well properties, whether a surge is occurring in the well 100 and send an alarm signal to an operator who can take action to counter the flow entering the wellbore. In some implementations, the computer 300 may send a signal to trigger an automatically controllable device to implement a countermeasure against surges (e.g., closing the blowout preventer or pumping fluid into the well 100).<h2 style=";text-align:left;direction:ltr">Although it is shown as located at the surface in Figure 1, in some applications, the computer 300 (or an additional computer 300) may be located at the bottom of the well to perform downhole calculations (e.g., calculating fluid density based on measured pressure values) and transmitting the calculation results to another computer located at the surface.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 2A illustrates a schematic of an example of a surge detector 200 lowered into tubular portion 128. The device 200 includes a housing 202, a tubular portion having a first end 204A and a second end 204B. The housing 202 has a longitudinal axis defined by the first end 204A and the second end 204B. For example, when the surge detector 200 is placed in well 100, the first end 204A is the uphole end of the housing 202, and the second end 204B is the downhole end of the housing 202. The housing 202 is sized to fit within the tubular portion 128 and is constructed of materials robust enough to withstand the downhole environment (e.g., downhole operating temperatures, pressures, and exposure to downhole fluids). Downhole fluids may include one or a combination of the following: oil, natural gas, formation water, brine, or drilling fluids (also known as drilling mud). The housing 202 may be connected to an inner circumferential wall of the tubular portion 128, for example, through a tubular nipple 130 with a tubular nipple closing mechanism mounted opposite the seal 212.<h2 style=";text-align:left;direction:ltr">In some applications, the pipe nipple 130 may have an X-shaped or XN-shaped pipe. In some applications, the pipe nipple's closing mechanism may be a PX or PXN pipe plug. The closing mechanism may engage with the pipe nipple profile 130 using matching sliding sections. The matching sliding sections may engage and disengage by repulsion. Since the outer diameter of the pipe nipple 130 may have the same dimension as the inner diameter of the pipe 128, the pipe nipple 130 may lock onto the pipe 128, for example, through a fitting by interference or friction. The housing 202 may form a seal with the pipe nipple 130 using the seal 212. The seal 212 may therefore be an annular portion between the housing 202 and the pipe portion 128 to prevent downhole fluids from passing through the surge detector 200.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some applications, the housing 202 includes a recovery flat designed to be attached to the wireline to facilitate lowering and retrieving the device 200 from the tubing 128. The recovery flat may be attached, for example, to the first end 204a. In some applications, the first end 204a is machined to resemble the recovery flat. In some applications, the recovery flat is a separate component that is attached to the first end 204a. During completion or other well operation, the device 200 may be temporarily attached to the tubing 128 to detect flow surges. In some applications, the length of the housing 202, including the recovery flat, does not exceed the typical length of the wireline lubricant of 12.19 m.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The flow detection device 200 includes a first pressure sensor 206a and a second pressure sensor 206b. The first pressure sensor 206a and the second pressure sensor 206b (in some cases, referred to together as the pressure sensors) are positioned within the housing 202. The first pressure sensor 206a is positioned at a first distance from the first terminal 204a, and the second pressure sensor 206b is positioned at a second distance from the first terminal 204a. The first distance is different from the second distance. In some applications, the first distance is less than the second distance. The difference between the first distance and the second distance (i.e., the distance between the pressure sensors 206a and 206b) is at least such a minimum distance as to achieve a separation of the true vertical depth even at the maximum incline for easy access and retrieval of the instrument. In some applications, the difference between the first distance and the second distance is approximately 6.1 m or at least 6.1 m. For example, the distance between the pressure sensors may be set at 6.<h2 style=";text-align:left;direction:ltr">Approximately 1 meter, so that adequate true vertical separation can be achieved at slopes up to 48 degrees (the typical maximum slope for accessing the exact line for pipe retrieval). In this disclosure, the term "approximate" refers to a deviation or tolerance of up to 10 percent (%), and any variation from the stated value is within the tolerance limits of any machine used to manufacture the part.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The pressure sensors are designed to measure the hydrostatic pressures of the downhole fluid flowing through the housing 202. The first pressure sensor 206a measures the first local pressure of the downhole fluid, and the second pressure sensor 206b measures the second local pressure of the downhole fluid. In this disclosure, "local" means close to—for example, the first pressure sensor 206a measures a first local pressure, which is a pressure local to (close to) the first pressure sensor 206a. In this context, the pressure sensors 206a and 206b are spaced apart within the housing 202 to allow each sensor (206a, 206b) to measure a local pressure corresponding to its location and different from the other sensors, from which it can determine a pressure differential. Furthermore, the pressure sensors are configured to transmit electromagnetic signals representing the local pressures to the surge detection computer 300 (FIG. 1). For example, pressure sensors 206a and 206b each comprise a transmitter. The first pressure sensor 206a sends a first signal representing the first local pressure, while the second pressure sensor 206b sends a second signal representing the second local pressure.<h2 style=";text-align:left;direction:ltr">In some applications, pressure sensors 206A and 206B are high-precision pressure gauges. In some applications, high-precision pressure gauges require a minimum accuracy of 0.1 pounds per square inch (psi), 0.01 psi, 0.001 psi, or smaller. "Minimum accuracy" means that the gauge can measure fluid pressure within an accuracy at its lower limit. For example, a high-precision pressure gauge with a minimum accuracy of 0.001 psi can measure fluid pressure with an accuracy of 0.001 psi. This good accuracy allows the pressure difference between two high-precision pressure gauges to be measured with high accuracy within the short separation distance within the housing 202.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The flow detector 200 includes a flow detector 208 mounted within the housing 202. The flow detector 208 (in some cases, referred to as a flow meter) can detect the direction of flow of the downhole fluid flowing through the housing 202. The flow detector 208 can include a transmitter, such that the flow detector 208 can transmit a third signal representing the detected direction of downhole fluid flow to the computer 300 (FIG. 1). In some implementations, the flow detector 208 can detect the flow rate of the downhole fluid flowing through the housing 202, and the third signal can also represent the detected flow rate. In some implementations, the flow detector 208 can be a rotary type. The flow detector 208 can include a rotary vane 208a. The flow detector 208 may be a device for measuring the downhole fluid flow velocity in a production or injection well based on the rotational speed of the vanes 208a. The vanes 208a rotate in response to the downhole fluid flow.<h2 style=";text-align:left;direction:ltr">The clockwise or counterclockwise direction of rotation of the quill 208A depends on whether the downhole fluid is flowing up (indicating a surge of flow) or down (indicating normal well operating conditions). The flow detector 208 is sized to fit the inner diameter of the housing 202 and made of a material strong enough to withstand the flow of downhole fluids. In some applications, the flow detector 208 is a rotary-type flowmeter covering the entire bore area of the housing 202 that can capture all of the downhole fluid flowing through the housing 202. In some applications, the flow detector 208 is a rotary-type flowmeter covering less than the full bore area of the housing 202.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As illustrated in Figure 2B, other applications may be implemented. Figure 2B illustrates an example of a surge detector 200 mounted within tubular portion 128. The surge detector 200 may include a sliding mechanism 222. The seal 212 and the sliding mechanism 222 are positioned on an outer circumferential surface of the housing 202. The seal 212 and the sliding mechanism 222 secure the housing 202 against the tubular portion 128 by forming a seal. As the surge detector 200 is lowered within the tubular portion 128, the seal 212 and the sliding mechanism 222 seal the annulus between the housing 202 and the tubular portion 128. The seal 212 and the sliding portions 222 thus prevent downhole fluids from bypassing the device 200.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some applications, as illustrated in Figures 2A and 2B, the surge detector 200 includes a centering device 210. The centering device 210 is a device that surrounds the outer circumferential surface of the housing 202 and maintains the device 200 in the center of the tubing 128. Centralizing the device 200 can prevent the device 200 from obstructing downhole fluids and allow fluids to flow efficiently through the housing 202 for better measurements. The centering portion 210 can ensure proper installation of the housing 202 within the tubing 128 (as opposed to the tubing nipple 130 or the seal 212 and the sliding mechanism 222). The centering portion 210 can align the housing 202 with a retrieval tool (e.g., the thin cable) to facilitate lowering and retrieving the device 200. The centering portion 210 can also serve as a metal contact for the tubular portion 128, so that signals from the pressure sensors 206a and 206b and the flow detector 208 can be transmitted to the flow detection computer 300 (as shown in Fig. 1) without the need for cables inside the wellbore.<h2 style=";text-align:left;direction:ltr">The cable connections made from the computer 300 to the downhole device 200 can slow the lowering and retrieval of the device 200. The tubular portion 128 and the centering portion 210 are conductive and can transmit signals from the sensors to the computer 300 at a rate similar to a cable or wired connection.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some applications, as illustrated in Figure 2b, the surge detection device may include a temperature sensor 214 located within the housing 202. The temperature sensor 214 is designed to sense the local temperature of the downhole fluid flowing through the housing 202. The temperature sensor 214 may include a transmitter, such that the temperature sensor 214 may transmit a signal representing the sensed local temperature to the surge detection computer 300 (Figure 1). The temperature sensor 214, together with the pressure sensors and the surge detection device 208, are in some cases collectively referred to as the sensors. Each of the sensors transmits a specific signal, which are collectively referred to as the signals. The signals from the sensors may be transmitted to the computer 300 (Figure 1) via the centering unit 210 and the tubular portion 128. Each signal may be transmitted to the computer 300 in a different digital encoding to prevent interference between the signals.<h2 style=";text-align:left;direction:ltr">Although shown in Figure 2A as being located between the second terminal 204B and the second pressure sensor 206B, the flow detector 208 may, in some applications, be located between the second pressure sensor 206B and the first pressure sensor 206A (as shown in Figure 2B). In some applications, the flow detector 208 is located between the first pressure sensor 206B and the first terminal 204A.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 3 is a block diagram of an illustrative computer system 300 that can be used to detect flow surges in a well 100 (Figure 1). The flow surge detection computer 300 is communicatively connected to the sensors through the tubing 128 (e.g., by one or more cables, as illustrated in Figure 1). The computer 300 is designed to determine one or more downhole properties with respect to the downhole fluid based on relevant signals received from the sensors. In some applications, pressure, temperature, and flow rate are measured at various locations within the tubing 128 (Figure 1B) that are used as relevant variables. As described in more detail below and with reference to Figure 4, the computer 300 detects a flow surge by comparing data measurements received from sensors corresponding to one or more downhole well properties with predetermined values associated with the occurrence of a flow surge. If the data measurements received from the sensors exceed these predetermined values, the computer 300 sends an alarm signal indicating that a flow surge is about to occur.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The computer 300 includes a processor 305. Although illustrated as a single processor 305 in Figure 3, two or more processors may be used according to the specific needs, desires, or applications of the computer 300. In general, the processor 305 executes instructions and processes data to perform computer operations 300 and any algorithms, methods, functions, processes, flows, and procedures as described in this specification. The processor 305 and the surge detector 200 are designed to communicate with each other via tubing 128 of the well 100 (Figure 1). The processor 305 is designed to receive data measurements from the device 200 (Figure 1) and to determine the density of the downhole fluid flowing through the housing 202 based on the distance between the first pressure sensor 206a and the second pressure sensor 206b and the respective signals received from the first pressure sensor 206a and the second pressure sensor 206b (Figures 2A-2B). The processor 305 is also designed to determine the direction of downhole fluid flow through the housing 202 based on the direction of rotation of the flow detector 208 in response to the downhole fluid flowing through the flow detector 208 (FIGS: 2A-2B).<h2 style=";text-align:left;direction:ltr">In some applications, the processor 305 is designed to receive local temperature data from the downhole fluid from the temperature sensor 214 and determine whether the local temperature change is equal to or greater than the temperature change at the threshold value within a predetermined time range (Figures 2A-2B).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Processor 305 is the component of computer 300 responsible for processing data received from the sensors and determining whether flow surges are occurring in well 100. In some applications, processor 305 is communicatively coupled to a pump, and processor 305 is designed to cause the pump to pump fluid into well 100 in response to a determination that flow surges have occurred in the well. In some applications, processor 305 is communicatively coupled to the well blowout preventer 100, and processor 305 is designed to close the blowout preventer in response to a determination that flow surges have occurred within well 100.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The computer 300 also includes a memory 307 mutually coupled to the processor 305. The memory 307 can hold measurement data received from sensors within the computer 300. Although illustrated as a single memory 307, two or more memories 307 (of the same type or a combination of types) may be used according to particular requirements, desires, or implementations of the computer 300 and the functions described. While the memory 307 is illustrated as an essential component of the computer 300, the memory 307 may be external to the computer 300. The memory 307 may be a temporary or non-transient storage medium. The memory 307 stores computer-readable instructions executable by the processor 305, which, when executed, cause the processor 305 to perform operations, such as sending an alarm signal in response to the detection of a flow surge.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The computer 300 includes interface 304. Although illustrated as a single interface 304 in Figure 3, two or more interfaces 304 may be used according to the specific needs, desires, or applications of the computer 300. Although not illustrated in Figure 3, the computer 300 may be communicatively coupled to a network. The interface 304 may be used by the computer 300 to communicate with other networked systems in a distributed medium. Generally, the interface 304 includes logic coded in software or hardware (or a combination of software and hardware) and is operable for communication with the network. More specifically, the interface 304 may include software that supports one or more communications-related communication protocols such that the network or interface devices are operable for communicating physical signals into and out of the computer 300.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The computer 300 may also include a database 306 that can store data for the computer 300 or other components (or both) that can be networked. While illustrated as a single database 306 in Figure 3, two or more databases (of the same type or a combination of types) may be used depending on the particular needs, desires, or applications of the computer 300 and the described function. While the database 306 is illustrated as an integral component of the computer 300, the database 306 may be external to the computer 300.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The computer 300 may also include a power supply 314. The power supply 314 may include a rechargeable or non-rechargeable battery that can be configured to be either user-replaceable or non-user-replaceable. The power supply 314 may be hard-wired. There may be any number of computers 300 associated with or external to a computer system containing computer 300, each computer 300 connected via a network. Furthermore, the terms "client," "user," "operator," and other appropriate terms may be used interchangeably, as appropriate, without going beyond the scope of this specification. Furthermore, this specification assumes that multiple users may use a single computer 300, or that a single user may use multiple computers 300.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The computer described 300 is intended to include any computer device such as a server, desktop computer, laptop / notebook, one or more processors within such devices, or any other suitable processing device, including similar physical or virtual computing devices (or both). Additionally, the computer 300 may include a computer device that includes an input device, such as a keyboard, keyboard, touchscreen, or other device capable of accepting user information, and an output device that transmits information associated with the operation of the computer 300, including digital data, visual or audio information, or a combination of such information.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 4 illustrates a flow diagram of the illustrative method 400 for detecting flow surges in well 100 using a surge detector 200. At step 402, downhole fluid is allowed to flow through the housing 202 of the surge detector 200 so that the fluid can be monitored downhole. At step 404a, the first pressure sensor 206a measures the first local downhole fluid pressure at the first location in well 100 (i.e., the location of the first pressure sensor 206a). Similarly, at step 404b, the second pressure sensor 206b measures the second local downhole fluid pressure at a second location in well 100 (i.e., the location of the second pressure sensor 206b), the second location distal to the first location. In some implementations, the distance between the first and second locations is approximately 6.1 m. In steps 406a and 406b, the pressure sensors send the first and second relevant signals representing the first local pressure and the second local pressure, for example, to computer 300.<h2 style=";text-align:left;direction:ltr">The signal transmission frequency can be set based on one or a combination of the following factors: the length of the tubing 128, the type of well (e.g., gas or oil), the expected type of flow (e.g., gas or oil flow), the expected deployment time of the tubing 128 within the wellbore, and the battery life of the sensors. For example, the signal transmission frequency can be set to one signal per minute for an oil well. For example, the signal transmission frequency can be set to four signals per minute for a gas well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In step 408, one or more downhole properties of the downhole fluid are determined based on signals received from pressure sensors. One or more downhole properties of the well may be determined using the computer 300. For example, the processor 305 may calculate the density of the downhole fluid based on the first signal, the second signal, and the distance between the first and second locations. In some implementations, the calculation results from converting the differential pressure between the two pressure sensors into a pressure gradient based on the true vertical distance between the two pressure sensors (taking into account the deflection slope of the tubing 128). For example, the pressure gradient may be calculated using Equation 1:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where Δ is the pressure difference between two local pressure values measured by pressure sensors 206A and 206B, and TVD is the actual virtual distance between pressure sensors 206A and 206B.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> TVD can be calculated using Equation 2:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">where d is the distance between pressure sensors 206a and 206b and d is the tilt angle of the flow detection device 200 relative to the virtual image (e.g., 0° for a vertical well and 90° for a horizontal well).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Once the pressure gradient is calculated, the fluid density can be determined by a simple unit conversion. An example of a unit conversion to English units is shown in Equation 3:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where the pressure gradient is in pounds per square inch (psi) per foot (ft), and the density is in pounds per cubic foot (pcf). Although Equation 3 is written in English units, any appropriate unit conversion can be used to obtain the density in the desired units. The unit conversion can also be used to convert from density to pressure gradient.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The pressure gradient refers to the type of fluid flowing within the tube 128 (e.g., brine > 3.14 kPa / 0.3 m; 2.96 kPa / 0.3 m < water < 3.14 kPa / 0.3 m; 1.72 kPa / 0.3 m < oil < 2.41 kPa / 0.3 m; and gas < 0.05 kgf / 0.3 m). The pressure gradient is the rate of change of the pressure of the downhole fluid with depth (i.e., the pressure change per unit distance or depth). The downhole fluid can be a formation fluid, such as oil or water, or a wellbore fluid, such as brine or mud. The pressure of a downhole fluid increases with depth; therefore, the pressure gradient is used to calculate the pressure of any fluid at the bottom of a well at a known depth. The pressure gradient for any given fluid can be calculated from the density of that fluid, as described previously.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some applications, data on known fluid properties (e.g., brine, water, oil, or gas) may be entered into the computer 300 (e.g., stored in memory 307) and the calculated properties of the downhole fluid may be compared to the stored data. In step 410, if the calculated property of the downhole fluid (ρ) differs from the expected value of that property from the brine (0) used as a kill fluid in workover operations, the occurrence of flow surges in well 100 may be determined. In some applications, in step 410, the computer 300, via the processor 305, sends an alarm signal to the interface 304 to alert operators if the calculated property is not within a 5%-10% margin of the expected (known) property. The density (gradient) killing brine, formation fluid density (gradient), well deflection scan, and any other useful information may be entered as input data into the computer 300, so that the necessary calculations and comparisons performed by the processor 305 can be made. For example, the calculated pressure gradient may be compared against the predicted pressure gradient.<h2 style=";text-align:left;direction:ltr">For example, the calculated density can be compared with the predicted density.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Another property of the well being monitored downhole is the direction of flow passing through the housing 202 (step 402). In step 412, the flow detector 208 detects the direction of downhole fluid flow. In step 414, the flow detector 208 sends a third signal representing the detected flow direction to the processor 305. In step 416, the processor 305 determines the direction of downhole fluid flow by determining the direction of rotation of the rotatable vanes 208a of the flow detector 208 in response to downhole fluid flowing through the flow detector 208. In some implementations, clockwise rotation can be caused by upward fluid flow, and counterclockwise rotation can be caused by downward fluid flow. In some implementations, clockwise rotation can be caused by downward fluid flow, and counterclockwise rotation can be caused by upward fluid flow.<h2 style=";text-align:left;direction:ltr">In cases where the fluid flow direction is expected to be downward, if the flow direction detector 208 detects an upward fluid flow (toward the surface 106), the method 400 proceeds to step 410, and the processor 305 transmits an alarm signal indicating that well flow surges have occurred in the well flow 100. In cases where the fluid flow direction is expected to be upward, if the flow detector 208 detects an increase in the fluid flow rate toward the surface (e.g., a 15% increase), the method 400 proceeds to step 410, and the processor 305 transmits an alarm signal indicating that well flow surges have occurred in the well flow 100. In some applications, a threshold value change in the fluid flow rate that demonstrates surges at an increase of 15%–20% can be set. The threshold value can be set while the tubing portion 128 is operating in the hole based on downhole well conditions. The tubular portion 128 may initially be maintained at a constant flow velocity while the tubular filling rate is measured to determine the limit value for the flow rate increase.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Although differential pressure may be sufficient to determine the density (gradient) of the downhole fluid, a sudden increase in fluid temperature can also indicate the presence of a wellbore flow. In some implementations, the temperature sensor 214 measures the local downhole fluid temperature in step 418 and sends a fourth signal representing the measured local temperature to the processor 305 in step 420. The processor 305 determines whether the measured local temperature change is equal to or greater than a threshold temperature change value over a predetermined time period in step 422. The processor 305 determines that wellbore flow surges 100 have occurred if the sensed local temperature change is equal to or greater than the threshold temperature change value (e.g., a 10% change) over the predetermined time period (e.g., 10 seconds). The method then proceeds to step 410, and computer 300, via processor 305, sends an alarm signal to alert operators to the occurrence of flow bursts in well 100.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some implementations, method 400 proceeds from step 410 to step 410a. Processor 305 may be communicatively coupled to a pump, and processor 305 may cause the pump to pump fluid into well 100 in response to a determination of flow surges occurring in the well. In some implementations, method 400 proceeds from step 410 to step 410b. Processor 305 is communicatively coupled to the well blowout preventer, and processor 305 may cause the blowout preventer to close in response to a determination of flow surges occurring within the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some applications, the surge detection computer 300 may be connected to the drilling rig computing system to receive other data related to the current tubing depth and pumping rate. The computer 300 may also be connected to the drilling rig computing system to receive current velocity data related to the tubing removal during tubing changeover operations. When the velocity related to the tubing removal operation ceases, indicating that the tubing segment 128 has been placed on the slip sections and is held stationary, the computer 300 sends an alarm signal if the surge detection device 208 detects the surge.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some applications, the surge detector 200 is coupled to a downhole portion of at least a partial portion of the tubular portion 128 that is installed within the well 100. The surge detector 200 may then be separated from the tubular portion 128 and retrieved from the well 100.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Example<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The flow impulse detector 200 measures local pressure values using a first pressure sensor 206a and a second pressure sensor 206b. The first pressure sensor 206a reads P1 = 2423.678 pounds per square inch (psig), and the second pressure sensor 206b reads P2 = 2430.556 psi. Pressure sensors 206a and 206b are separated by a distance of 6.1 meters and an angle of inclination of 45°. The true vertical distance (TVD) between pressure sensors 206a and 206b is calculated (see Equation 2): 20 feet × cos(45°) = 14.147 feet (ft).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The kill fluid used in the wellbore (in this example, brine) has a known density of 1121.29 kg / m³ (pcf). The pressure gradient for the kill fluid was calculated as 3.35 kPa / 0.3 m (see Equation 3). This was the reference pressure gradient to which the measured pressure gradient was compared.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The fluid pressure gradient at the bottom of the hole (see Equation 1) was calculated from the measured pressure values (P1 and P2) and the true vertical distance (TVD) between the pressure sensors (206a and 206b) to determine whether the flow (flow impulse force) of one fluid was occurring other than the kill fluid occurring in the wellbore:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Fluid pressure flow at the bottom of the hole = =<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The 400 surge detection computer is pre-configured to send an alarm signal if the calculated downhole fluid pressure gradient falls below a ±5% margin of the known gradient range for the kill fluid (i.e., if the calculated downhole fluid pressure gradient is less than 3.18 kPa / 6.1 m or greater than 3.52 kPa / 0.3 m). In this example, the calculated downhole fluid gradient is the same as the pre-determined kill fluid pressure gradient, meaning no surge has occurred and no alarm is issued.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In this disclosure, the indefinite article or the definite article are used to imply one or more than one unless the context clearly indicates otherwise. The term "or" is used to indicate "or" is non-exclusive unless otherwise noted. The phrase "at least one of A and B" has the same meaning as "A, B, or A and B." In addition, it should be understood that phrases or terms used in this disclosure, not otherwise defined, are included for descriptive purposes only and are not limiting. Any use of section headings is intended to aid reading of the document and should not be construed as limiting; information related to a section heading occurs within or outside that particular section.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Values expressed in range format should be interpreted flexibly to include not only the numeric values explicitly listed as range limits, but also all individual numeric values or subranges included within that range as if each numeric value and subrange were explicitly listed. For example, a range of "0.1% to about 5%" or "0.1% to 5%" should be interpreted to include about 0.1% to about 5%, as well as individual values (e.g., 1%, 2%, 3%, and 4%) and subranges (e.g., 0.1% to 0.5%, 1.1% to 2.2%, 3.3% to 4.4%) within the indicated range. The phrase "X to Y" has the same meaning as "about X to about Y," unless otherwise noted. Similarly, the phrase "X, Y, or Z" has the same meaning as "about X, about Y, or about Z," unless otherwise noted. The term "about" can allow for a degree of variation in a value or range, for example, within 10%, within 5%, or within 1% of the stated value or of the stated limit of the range.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Although this disclosure contains numerous specific implementation details, these should not be construed as limitations of the subject matter claimed to be protected, but rather as descriptions of specific features of particular implementations. Certain features described in this disclosure may also be implemented in the context of separate implementations in combination, or in a single implementation. Conversely, various features described in the context of a single implementation may also be implemented in multiple implementations, separately, or in any suitable subcombination. Furthermore, although the above features may be described as operating in certain combinations and even initially claimed to be protected on that basis, in some cases one or more features of a claimed combination may be removed from the combination, and the claimed combination may be directed to a subcombination or a variant of the subcombination.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Certain methods of implementing the subject matter are described. However, it will be understood that numerous modifications, substitutions, and changes may be made. Although the operations in the figures or in the claims are shown in a particular order, this should not be understood to require those operations to be performed in the particular order shown or in a sequential order, or that all of the described operations be performed (some operations are optional) to achieve the desired results. As a result, the illustrative applications described above do not limit or restrict the scope of the present disclosure.
Claims
Protections 1. A flow surge detection system, comprising: a device designed to be retrievably coupled to a tubing that is secured in a well, the device comprising: a housing designed so that, when the device is coupled to the tubing, it is secured in the well and allows downhole fluid to flow through the housing; a first pressure sensor that is secured within the housing; a second pressure sensor that is secured within the housing, the second pressure sensor being distal to the first pressure sensor, the first pressure sensor and the second pressure sensor being designed to sense the relevant local pressure of the downhole fluid flowing through the housing and to transmit the relevant signal representing the relevant local pressure sensed; a flow detection means within the housing, the flow detection means being designed to detect the direction of the downhole fluid flowing through the housing and to transmit the relevant signal representing the detected direction of fluid flow; and a computer comprising: memory; An interoperable memory-coupled processor, the processor is configured to be coupled to the well's production tubing, the processor is configured to: identifyOne or more downhole properties of a downhole fluid based on respective signals received from a first pressure sensor, a second pressure sensor, and a flow detection device; and determining whether a flow surge is occurring in the well based on the one or more of the identified downhole properties of the downhole fluid, wherein the device and processor are disposed to cooperatively establish communication between each other via the production tubing of the well.
2. A flow surge detection system according to claim 1, wherein the processor is disposed to: determine the density of the downhole fluid flowing through the housing based on the distance between the first pressure sensor and the second pressure sensor and respective signals received from the first pressure sensor and the second pressure sensor; and transmit an alarm signal in response to determine that a flow surge is occurring in the well.
3. A flow surge detection system according to claim 2, wherein: the device includes a centering device enclosing the outer diameter of the housing; and the centering device is disposed to communicate with the production tubing of the well.
4. Surge detection system according to claim 3, wherein the housing includes a flatA recovery device designed to be attached to a microcable, such that the device can be installed inside the production tubing and retrieved from the production tubing.
5. The flow-surge detection system according to claim 4, wherein: the flow-surge detection device may include a rotatable vane flowmeter; and the processor is configured to determine the direction of downhole fluid flow through the housing based on the direction of rotation of the rotatable vane flowmeter in response to downhole fluid flowing through the rotatable vane flowmeter.
6. The flow-surge detection system according to claim 4, wherein: the device includes a temperature sensor disposed within the housing; the temperature sensor is configured to sense the local temperature of the downhole fluid flowing through the housing and to transmit a signal representing the local temperature; and to determine whether flow-surges occur in the well, which includes determining whether the sensible local temperature change is equal to or greater than a threshold temperature change value over a predetermined period of time.
7. The flow-surge detection system according to claim 4, wherein the device includes a seal on the outer circumference surface of the housing,8. A flow surge detection system, comprising: a device configured to be retrievably coupled to a production tubing installed in a well, the device comprising: a housing having a first end and a second end, the housing having a longitudinal axis defined by the first end and the second end, the housing configured to allow downhole fluid to flow through the first and second ends when coupled to the downhole production tubing; a first pressure sensor installed within the housing at a first distance from the first end, the first pressure sensor configured to measure a local pressure from the downhole fluid flowing through the housing and to transmit a first signal representing a first local pressure; a second pressure sensor installed within the housing at a second distance from the first end, the second distance being different from the first, the second pressure sensor configured to measure a second local pressure from the downhole fluid flowing through the housing and to transmit a second signal representing a second local pressure; a flow detection means within the housing, the meansFlow detection to detect the direction of the downhole fluid flowing through the housing, and, say, the third signal representing the detected direction of downhole fluid flow; memory; and a processor interactively coupled with the memory and designed to be communicatively coupled with the first pressure sensor, the second pressure sensor and the flow detection device, and the processor designed to: determine the density of the downhole fluid flowing through the housing based on the first signal, the second signal, and the difference between the first and second distances; determine whether a surge of flow is occurring in the well based on at least one of the following: determine that the difference between the specified density of the downhole fluid flowing through the housing and the specified fluid density is equal to or greater than a threshold value for the density difference; or determine a change in the direction of the downhole fluid flowing through the housing based on the third signal; and send an alarm signal in response to determine that a surge of flow is occurring in the well, wherein the device and processor are designed to cooperatively establish communication with each other across the well's production tubing.
