Flow rate optimizer

SA522441553B1Active Publication Date: 2024-06-12WEATHERFORD TECHNOLOGY HOLDINGS LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
SA522441553
Authority / Receiving Office
SA · SA
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2024-06-12
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

Existing multiphase flow measurement technologies in the petroleum industry, such as those described in US Patent No. 2014/0076547, face challenges in harsh environments with issues of reliability, survivability, and complexity, leading to less than desired accuracy in measuring oil, water, and gas flow rates in high gas-volume-fraction flows.

Method used

A method and system that adjusts the speed of sound (SoS) for a first phase using surface measurements as a reference, combined with downhole measurements, to improve flowmeter accuracy by updating phase fractions and flow rates, utilizing optical flow meters and distributed acoustic sensing, and applying interpolation and extrapolation techniques based on pressure and temperature data.

Benefits of technology

Enhances the accuracy of multiphase flow rate measurements by using surface and downhole data to adjust SoS, resulting in improved phase fraction determination and flow rate calculations, overcoming the limitations of existing technologies.

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

Abstract

Methods and apparatus for hydrocarbon monitoring are provided. A method that may be performed by a flowmeter or monitoring system includes receiving downhole measurements of a flowing fluid from a flowmeter; determining a standard phase fraction of the flowing fluid based on the downhole measurements from the flowmeter; receiving surface measurements of the flowing fluid; determining a surface phase fraction of the flowing fluid based on the surface measurements; comparing the standard phase fraction to the surface phase fraction; based on the comparison being greater than a predetermined threshold, using the surface measurements as a reference to adjust a speed of sound (SoS) of a first phase until a target value is achieved; and receiving additional downhole measurements of the flowing fluid from the flowmeter, wherein the flowmeter is operating using the adjusted SoS of the first phase. Fig.7
Need to check novelty before this filing date? Find Prior Art

Description

<h2 style=";text-align:left;direction:ltr">Full description<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Background of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspects of the present disclosure relate generally to the production of hydrocarbon and, more specifically, to the derivation of phase component fractions and the determination of phase flow rates for a fluid mixture flowing in a channel.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In the petroleum industry, as in many other industries, the ability to monitor fluid flow in process pipelines in real time provides significant value. Oil and gas operators measure individual oil, water, and / or gas flow rates within an overall production flow stream containing a mixture of these three-phase components. This information can be used to optimize and enhance well production, allocate revenue, prevent corrosion based on water quantity, and determine well performance.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Production from gas wells may also include significant liquid content (water, hydrocarbon oil, condensate, or combinations thereof). Streams with relatively high gas volumes are described in terms of volumes<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Liquid (e.g., about or less than 5% liquid by volume) flows are considered wet gas flows and represent the high gas-volume-fraction (GVF) end of multiphase flows. Various previous flowmeters attempt to enable flow rate measurements or phase component determinations for high GVF flows using complex and difficult-to-implement methodologies, yet still yield results with less than desired accuracy.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> For example, US Patent No. 2014 / 0076547 stated that performing multiphase flow measurements in harsh environments can be difficult for several reasons including issues of reliability, survivability, longevity; equipment accessibility; and the complexity of the flow field varying as a function of position and time.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">U.S. Patent No. 0076547 / 2014 provides techniques and devices for performing multiphase flow measurement by combining two technologies. One technology, based on infrared water-drop measurement, is capable of measuring water and oil concentrations in multiphase flows with accuracy up to 99.5% for gas volume fractions. The second technology, based on in-hole fiber optic flow measurement, is capable of analyzing gas and total fluid flow resolution through measurements of flow velocity, the speed of sound of the fluid mixture, and the temperature and absolute pressure at the measurement device location. This hybrid system represents a multiphase measurement method that can offer advantages over conventional systems for certain applications.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> However, the techniques and devices described in US Patent No. 2014 / 0076547 still provide results with less than desired accuracy. The techniques and devices in the present disclosure are intended to overcome these difficulties.<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">Certain aspects of the present disclosure provide a method for monitoring hydrocarbons. The method generally includes receiving downhole measurements of a flowing fluid from a flow meter; determining a standard phase fraction of the flowing fluid based on the downhole measurements from the flow meter; receiving surface measurements of the flowing fluid; determining<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Surface phase fraction of the flowing fluid based on surface measurements; compare the standard phase fraction to the surface phase fraction; based on the comparison being greater than a predetermined threshold value, use the surface measurements as a reference to adjust the speed of sound (SoS) of a first phase until a target value is achieved; receive additional downhole measurements of the flowing fluid from the flowmeter, where the flowmeter operates using the SoS adjusted for the first phase.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to certain aspects, the method further includes determining at least one of an in-situ updated phase fraction, an updated standard phase fraction, or updated phase flow rates of the flowing fluid, based on additional downhole measurements.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to certain aspects, the standard phase fraction comprises the water-in-liquid ratio (WLR) at standard conditions.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In accordance with certain aspects, surface measurements of the flowing fluid are received from at least one of the wellheads.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Or the separator.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In certain aspects, the target value includes the SoS of a target mixture. For some aspects, using surface measurements as a reference to adjust the SoS of the first phase includes: calculating the density of a target mixture based on the surface phase fraction; calculating the SoS of the target mixture based on the density of the target mixture and downhole measurements; and changing the SoS of the first phase until it becomes the SoS of the resulting mixture.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">obtained from the Wood's equation within a predetermined deviation from the SoS of the target mixture, leaving the SoS as a second phase constant. For other aspects, the SoS of the first phase is the SoS of the oil and the SoS of the second phase is the SoS of the water. Still for other aspects, the SoS of the first phase is the SoS of the gases in the fluid, the SoS of the second phase is the SoS of the liquids in the fluid, and the phase fraction includes the liquid volume fraction (HL) of the fluid. Still for other aspects, the calculation of the target mixture density involves: predicting the in-situ phase fraction based on the surface phase fraction, standard phase fraction, measured downhole pressure, measured downhole temperature, measured surface pressure, measured surface temperature, standard pressure, and standard temperature; and calculating the target mixture density based on the in-situ phase fraction. Still for other aspects, the calculation of the SoS of the target mixture is based on the Korteweg-Lamb equation.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to certain aspects, the method further includes updating a parameter file for the flowmeter using the SoS.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> which is set for the first phase. For some aspects, the SoS that is set for the phase<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The first is at the measured downhole temperature and downhole pressure and the update includes: extrapolation of additional sound velocities adjusted for the first phase to temperatures other than the temperature<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Measured downhole and pressure values ​​other than the measured downhole pressure; write the SoS set for the first phase at the measured downhole temperature and pressure and the additional derived sound velocities set for the first phase in the parameter file of the flow meter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to certain aspects, the method further includes applying a conversion factor to at least one of the standard phase portion or the surface phase portion prior to comparison.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to certain aspects, the flow meter is an optical flow meter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">According to certain aspects, the method further includes: determining an updated standard phase fraction of the flowing fluid based on additional downhole measurements; receiving additional surface measurements of the flowing fluid; determining an updated surface phase fraction of the flowing fluid based on additional surface measurements; comparing the updated standard phase fraction with the updated surface phase fraction; based on comparing the updated measurement and surface phase fractions that are greater than a predetermined threshold value, using the additional surface measurements as an updated reference for changing the SoS of the first phase until an updated target value is achieved; and receiving further downhole measurements of the flowing fluid from a flowmeter, wherein the flowmeter operates using the modified SoS of the first phase. For some such aspects, the method further includes calculating adjustments to previous downhole measurements based on the modified SoS of the first phase.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to certain aspects, the method also includes: calculating adjustments to previous downhole measurements<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Based on the SoS set for the first phase.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Certain aspects of the present disclosure provide a processing system for monitoring hydrocarbons. The processing system is configured to receive downhole measurements of a flowing fluid from a flow meter; to receive downhole measurements of a flowing fluid<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> From a flowmeter; to receive surface measurements of the flowing fluid; to determine a surface phase fraction of the flowing fluid based on the surface measurements; to compare the standard phase fraction to the surface phase fraction; to use the surface measurements as a reference to adjust the SoS for a first phase until a target value is achieved, based on the comparison being greater than a predetermined threshold value; and to receive additional downhole measurements of the flowing fluid from the flowmeter, the flowmeter is configured to operate using the SoS that has been adjusted for the first phase.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Certain aspects of the present disclosure provide a computer-readable medium (e.g., a computer-readable storage device) for hydrocarbon monitoring. The computer-readable medium generally includes instructions which, when executed by a processing system, cause the processing system to perform operations including receiving downhole measurements of a flowing fluid from a flowmeter; determining a standard phase fraction of the flowing fluid based on the downhole measurements from the flowmeter; receiving surface measurements of the flowing fluid; determining a surface phase fraction of the flowing fluid based on the surface measurements; comparing the standard phase fraction to the surface phase fraction; based on the comparison being greater than a threshold value<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Pre-specified, use surface measurements as a reference to adjust the SoS for the first stage until a target value is achieved; and receive additional downhole measurements of the flowing fluid from the flow meter, where it operates<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Flow meter with SoS set for first phase.<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">In order to understand in detail how the above features of the present disclosure are to be understood, a more specific description of the disclosure, briefly summarized above, may be obtained by reference to the aspects,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Some of which are illustrated in the accompanying drawings. However, it should be noted that the accompanying drawings only illustrate typical aspects of this disclosure and should therefore not be considered a limitation of its scope, as the disclosure may permit other aspects with equal effectiveness.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1 illustrates an exemplary system that can be used to make multiphase flow rate measurements, in accordance with aspects of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2 is a representative set of curves illustrating a representative set of parameters for deriving phase fractions and volumetric flow rates for each phase component of a well, in accordance with aspects of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3 illustrates exemplary processes for a primary flow meter measurement of a particular flow condition, in accordance with aspects of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 4 is a representative set of curves / lines illustrating a representative set of parameters for deriving phase fractions and volumetric flow rates for each phase component while treating a water component as stable, in accordance with aspects of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 5 is a representative set of curves / lines illustrating a representative set of parameters for deriving phase fractions and volumetric flow rates for each phase component while treating an oil component as stable, in accordance with aspects of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 6 illustrates exemplary processes for adjusting flow meter parameters for a particular flow condition, in accordance with aspects of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 7 illustrates representative hydrocarbon monitoring processes, according to aspects of the present disclosure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Detailed description:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Certain aspects of the present disclosure provide techniques and apparatus for monitoring hydrocarbons by deriving downhole phase fractions and determining downhole flow rates for individual phases of a multiphase flow. The techniques and apparatus derive downhole phase fractions and flow rates based on several parameters: downhole pressure (Pd), downhole temperature (Td), speed of sound (SoS) of the mixture, downhole flow velocity of the mixture, well test pressure (PWT), well test temperature (TWT), and surface phase fraction of the mixture. The described parameters can also be measured directly and used to derive downhole phase fractions and single-phase parameters. The single-phase parameters can be used to update a flowmeter parameter file to improve the accuracy of the flowmeter in measuring flow parameters in a well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Techniques and apparatus for deriving downhole phase fractions and determining downhole flow rates can be based on measuring downhole fluid parameters, determining an initial phase fraction, measuring fluid parameters at the surface, calculating an updated phase fraction, and updating a parameter file used with the flowmeter based on differences between the initial phase fraction and the updated phase fraction.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Pre-known downhole flow meters typically consist of Venturi-type devices, which are typically suitable for single-phase flows and have limited flow rate ranges due to their low slope ratios (i.e., the ratio of maximum flow rate to minimum flow rate). Since these devices<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Since they measure single-phase flows, such devices do not provide important measurements, such as water cut at the surface, which are typically involved in measurements of two-phase flow rates.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Some techniques involving distributed acoustic sensing (DAS) can be used for downhole monitoring. A DAS system is typically capable of measuring SoS and, depending on its installation / configuration and the type of application, may also be capable of measuring flow velocity. However, data obtained with a full-length fiber DAS system typically adds up to very large amounts, and therefore selective processing and data reduction are desirable. In the current state of DAS technology, data is typically post-processed and not reported in real time.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">One technique for improving flowmeter performance is to obtain the correct SoS for the single-phase fluids in the mixture. In most cases, this is a difficult process and involves analyzing downhole fluid samples in the laboratory using reliable SoS measurement techniques. This difficult and costly process typically consumes resources and time. In some cases, the single-phase SoS measured in the laboratory is not a good representation of the actual SoS. In some cases, satisfactory single-phase sound velocities are not obtained from the laboratory due to laboratory-related issues.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1 illustrates an exemplary system 100 that can be used to make multiphase flow rate measurements of a fluid mixture 110 (i.e., fluid flow) flowing in a conduit 105 in accordance with aspects of the present disclosure. For example, the conduit 105 may be a production tubing placed in a wellbore.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As illustrated, the exemplary system 100 includes a flow meter 130 that includes at least one pressure sensor 108 (e.g., a constant pressure sensor) and at least one temperature sensor 120 in a section 131 to measure the pressure at point 114 and the temperature of the fluid mixture within the conduit 105. The pressure sensor may be any suitable type of sensor that directly measures pressure, such as a diaphragm adapted to bend and apply a force to the optical fiber within the flow meter 130. The system 100 also includes one or more temperature sensors 120, which may measure the mixture temperature at or near the same point 114 at which the pressure is sensed by the pressure sensor 108. The pressure and temperature readings taken from the sensors may be used to determine the component density and the viscosity of the oil, water, and gas phases of the fluid mixture. The component density and viscosity of the oil, water, and gas phases may then be used in an iterative algorithm described in more detail below.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The flow meter 130 may be an optical flow meter or an electrical flow meter. While illustrated with a flow meter 130, the analog system 100 is not so limited and may include an acoustic measurement system (electronic or optical) for determining a fluid flow rate, such as a distributed acoustic sensing (DAS) system, which may include an optical waveguide 132.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The system 100 may also include a fluid diffusion velocity sensor 106 and a SoS meter 104.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> which allows the SoS measurement of the fluid mixture. In some cases, the SoS meter 104, the diffusion velocity sensor 106, or both measuring devices may include a pressure sensor array.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> An example of this SoS measure 104 may include two or more sensing elements forming an array. The spacing between the sensing elements may enable the sensing of audio signals transmitted<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The SoS is transmitted through the fluid flow 110 within the channel 105 (referred to as “acoustic sensing”) and can enable the sensing of short-duration local pressure changes that travel with the fluid flow (referred to as “flow velocity sensing”). Acoustic signals and / or local pressure changes commonly arise from naturally occurring phenomena. In some aspects, the sensor elements may be configured with optical fibers in the flowmeter 130 within the channel 105. Other pressure measuring devices, such as piezoelectric-based detectors or polyvinylidene fluoride (PVDF), may also be used.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The system 100 may also include one or more sensors (e.g., pressure and / or temperature sensors) at the wellhead 150 or the separator 160 of the well.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The processor 112 may receive signals that transmit measurements from the flowmeter 130 and / or sensors at the wellhead 150 or the separator 160 via one or more cables 170. The cables 170 may include, for example, optical waveguides and / or electrical wires.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Representative techniques for deriving downhole phase component fractions and determining downhole flow rates<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspects of the present disclosure use surface well test data to derive a downstream phase fraction.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The well is targeted (e.g., water cut). The derivation process uses the initial measurements downstream.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The well and the standard flow meter, as detailed below. Part<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Downhole phase based on surface phase fraction (e.g., as determined by well test<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> or separator test), initial measurements downhole and phase fraction by flow meter,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Pressure measurements at the flow meter locations, test separator, and conditions<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Standard. The process involves first-order interpolation of phase parts along<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Compression interval. An example of the parameters involved in the interpolation process is shown in Table 1:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Table 1 – Interpolation parameters<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Expected locations and relationships<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The teacher down the well The relationship The interval The relationship The standard<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Pressure (P) Pd ≈ 10 MPa > Psep ≈ 10 bar > Ps Td ≈ 0.01 MPa<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Local phase part (Φ) Φd ? Φsep ? Φs Td<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Water-in-liquid ratio (WLR)-1 (WLRd)-1 > (WLRsep)-1 > (WLRs Td)-1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Liquid volume fraction (HL) HLd > HLsep > HLs Td<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In accordance with aspects of the present disclosure, the pressure separator for the interpolation process is selected based on the pressure that represents the primary guiding mechanism for the fluid to move from the reservoir to the surface, and where pressure is a dominant factor in the performance of the fluid, specifically oil. Unlike water, oil (in the mixture in<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The well is a compressible fluid that may contain dissolved gas at high pressures. As the oil moves from the reservoir (a high-pressure environment) to the surface (a low-pressure environment), the gas dissolves in the oil effervescing (i.e., is released) from the oil phase. As a result, the flow rate of the oil from the well decreases, and the water-in-liquid ratio (WLR) of the flowing mixture increases as the mixture moves toward the surface (i.e., in the direction opposite to the pressure contrast). Therefore, interpolating the inverse of the WLR along the pressure interval may be accurate enough for well operation purposes. The HL (liquid volume fraction) also decreases.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> As the fluid mixture moves to the surface (i.e., in the same direction as the pressure difference), the expressions for WLR and HL, and the relationship between HL and GVF (gas volume fraction), are shown below:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (1)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (2)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where Q represents the volume flow rate.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, when the phase fraction to be derived is WLR, an initial derivation of WLRd may be obtained in situ using the interpolation described above (i.e., interpolation over the pressure interval) as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (3)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Where A represents the pressure ratio.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">(4)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (5)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Equation 5 can be used to derive the in-situ phase fraction (i.e., the phase fraction of interest). All terms on the right-hand side are known, including the ratio WLRd / WLRstd, which is obtained directly from existing flowmeter data, and the variance is not expected to change.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> This percentage.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, when the phase fraction to be derived is HL, an initial derivation of HLd may be obtained in situ using the interpolation described above (i.e., interpolation over the pressure interval) as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (6)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Solution for HLd,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (7)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Equation 7 can be used to derive the in-situ phase fraction (i.e., the phase fraction of interest). All terms on the right-hand side are known from the separator and primary flowmeter measurements.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Once the target phase fraction is determined, the density of the mixture at the meter location can be calculated as shown below:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (8)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ρmix: Density of the mixture downhole at downhole pressure (P) and temperature (T)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">ρ1: Density of phase 1 of the mixture at the bottom of the well P and T<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ρ2: Density of phase 2 of the mixture at the bottom of the well P and T<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Φd: derived target phase fraction {e.g., WLR (water-in-liquid ratio), GVF (gas volume fraction), or HL}<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">

[0043] In aspects of the present disclosure, the SoS of the corresponding target mixture can be calculated inversely using the Korteweg-Lamb equation, as shown below in Equation 9:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (9)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> SoSpipe: Speed ​​of sound of a medium in a pipe as measured by a flow meter<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> SoSmix: Speed ​​of sound of the mixture in an infinite medium<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> d: pipe diameter<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> t: pipe wall thickness<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> E: Modulus of elasticity of the pipe material<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ν: Poisson's ratio of the tube material (~0.3 for solids such as steel)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In aspects of the present disclosure, once the target mixture density and SoS of the target mixture are determined, the single-phase SoS of the stable phase (e.g., water) may be kept constant while the single-phase SoS of the unstable phase (e.g., oil) is systematically varied until the SoS of the mixture obtained from the Wood equation (see Equation 10, below)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Equal to the SoS of the target mixture specified in Equation 9.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (10)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> SoSmix: Speed ​​of sound of the mixture in an infinite medium<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> a1: SoS for phase 1 at the bottom of the well P and T<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> a2: SoS for phase 2 at the bottom of the well P and T<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ρ1: Density of phase 1 of the mixture at the bottom of the well P and T<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ρ2: Density of phase 2 of the mixture at the bottom of the well P and T<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Φd: Local phase fraction measured by a downhole flow meter<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, the single-phase SoS value is updated for the unstable phase that<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Equation 10 is satisfied when the measured downhole pressure (P) and temperature (T) in a parameter coil are used to calculate phase flow rates. Similarly, a relative change in the single-phase SoS for other grid points is extrapolated to the pressure and temperature (P / T) of the parameter coil. The standard flow rates and calculated phase fractions are then redirected using the flow algorithm of the flowmeter and verified.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> From the match between the well test results and the flow meter results. Once the match is achieved, it may continue.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Flow metering provides correct phase fractions and flow rates in the absence of well tests.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The above sections describe how to derive or predict the target phase fraction included when<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The surface phase fraction is available. Since the phase fraction, density, and SoS are all coupled,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The external information in the equations above can be used to solve for the other unknown in inverse calculation mode using Equations 8 and 9 to determine the target ρmix and target Φd, respectively. In<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In the absence of surface information, the inverse calculation starting from Equation 8 cannot be performed, since there are two unknowns: ρmix and ϕd.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In accordance with aspects of the present disclosure, ρmix and ϕd may be calculated, and flow measurements may be made, in the steady-state operation of a flow meter (e.g., flow meter 130). In aspects of the disclosure<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Currently, a solution can be reached by calculating the associated quantities. When<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> External information is available. Once the SoS table (contained in the flowmeter parameter table) is optimized for the unsteady phase (i.e., updated to incorporate modifications based on well measurements), the flowmeter algorithm described in this application can be used continuously to determine unknown quantities in forward calculation mode. The forward calculation mode uses the available information in the parameter file, which includes (unoptimized or optimized) SoS tables and other fluid property tables, such as density and viscosity, for the individual phases.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, the compressibility of the fluid has the following relationship with density and SoS:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (11)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">ρ: fluid density,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> a: SoS in the middle of the infinite fluid, and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> κ: compressibility of the fluid.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When dealing with multiphase flows, a typical method is to use the volume proportional approach to calculate the mixture's compressibility. For example, in a well-mixed two-phase flow<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> For oil and water, the compressibility of the mixture can be written as<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (12)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where ϕ: phase fraction, with the indices “mix, o, w” denoting mixture, oil, and water, respectively.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Using Equation 11 in Equation 12 and realizing that in an oil-water mixture, ϕo = 1 - WLR and ϕw = WLR yields:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (13)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The SoS values ​​in the above expression (amix or SoSmix, ao, and aw) all refer to the SoS in the infinite medium for the mixture, oil, and water, respectively. It should be noted that Equation 13 is Wood's equation (Equation 10) written in a slightly different form. At this point, Equation 13 has three unknowns: ρmix and amix (=SoSmix) on the left-hand side of the equation and WLR on the right-hand side of the equation. In aspects of the present disclosure, ρmix and SoSmix may be written in terms of WLR, changing Equation 13 into an equation with one unknown. This can be achieved as follows: ρmix may be written directly in terms of WLR using Equation 8, above. For the SoS of the mixture, the Korteweg-Lamb equation (Equation 9) can be used to write SoSmix in terms of SoSpipe, which is measured by the flowmeter, and ρmix, which can be rewritten in terms of WLR using Equation 8. Thus, the left-hand side of Equation 13 becomes:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (14)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Equation 14 can be used on the left-hand side of Equation 13 to derive a system of one equation with one unknown, with the unknown being WLR, as shown below:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (15)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In aspects of the present disclosure, Equation 15 can be rearranged to become a quadratic polynomial with WLR as the variable. The steps of this rearrangement are:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> replacing<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> , and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Produces:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> .<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> replacing<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Produces:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> .<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> replacing<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Produces:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (16)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> , and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In accordance with aspects of the present disclosure, in a typical oil-water mixture, the correct root of Equation 16 is always the positive root. This can be seen from the shift of a uniquely well-performing curve (e.g., curve 202 in Figure 2) to which each SoS value corresponds to a unique WLR. However, this may not be true in a gas-liquid mixture (see

[0053] below). Once the WLR for the included phase fraction is determined, the included phase flow rates can be calculated as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Qtotal = V ∙ Area<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Qoil = Qtotal ∙ (1 – WLR) (17)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> QWater = Qtotal ∙ WLR<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, the procedure for calculating a gas-liquid solution may be similar to the procedure described above for an oil-water mixture. The procedure may be repeated for a well-mixed flow in two phases of gas and liquid, as shown below:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (18)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (19)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (20)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (21)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (22)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> , and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to aspects of the present disclosure, unlike WLR in oil-water mixture, both radicals<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The HL in Equation 22 is valid. The positive root represents a liquid-rich mixture, while the negative root represents a gas-rich mixture. This is because the curve based on the Wood equation takes a minimum value within the possible HL range (0 to 1). Therefore, for some values ​​of SoS, there is a dual solution corresponding to positive and negative roots of HL.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In aspects of the present disclosure, once the HL of the included phase portion is determined, the included phase flow rates may be calculated as shown below:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Qtotal = V ∙ Area<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Qgas = Qtotal ∙ (1 – HL) (23)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Qliquid = Qtotal ∙ HL<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> where<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Q: Volumetric flow rate,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> V: fluid velocity, and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Area: The cross-sectional area of ​​the flow meter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In accordance with aspects of the present disclosure, the flow rate derivations using Equations 17 and 23 assume well-mixed flows. For gas-liquid flows, it is also possible to implement algorithms<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Multiphase flow considers the possible gradient conditions between phases.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, standard phase flow rates may be obtained using embedded phase flow rates and conversion factors (derived from PVT analysis of a primary fluid report) in a parameter file for the flow meter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A detailed description of the disclosed techniques for deriving target downhole phase fractions and determining downhole flow rates is presented below with reference to Figures 2-6, in accordance with aspects of the present disclosure. Initially, the operator typically provides a report on the analysis of a downhole fluid sample. The data in the report are fed into a pressure, volume, and temperature (PVT) software package to create an initial parameter file for the flowmeter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2 is a representative set of curves 200 illustrating a representative set of parameters (e.g., for inclusion in a parameter file) for deriving phase fractions and volumetric flow rates for each phase component of a well (e.g., an oil well), in accordance with certain aspects of the present disclosure. The curves may also be defined using the components shown in Figure 1. Curve 202 is the SoS-ϕd(t) curve showing the relationship between SoS and the downhole phase fraction. This initial curve may be plotted once measurements of the pressure Pd(t) and temperature Td(t) have been made at time t: the SoS values ​​are satisfied<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">For each phase of Pd(t) and Td(t) measured from the tabulated SoS values ​​for a range of P and T grid values ​​in the parameter file, the phase part Φd is systematically varied from 0 to 1 in the Wood's equation (Eq. 10) to obtain the SoS corresponding to the mixture. This is followed by a plot of the SoS-Φd pairs. In<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Where curve 202 in Figure 2 is a representative SoS-ϕd(t) curve with ϕd = WLR, and horizontal line 204 is a corresponding SoS(t) as measured by a flow meter (e.g.,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Flow meter 130) independently. The horizontal line 206 is the SoSmix(t) corresponding to the infinite medium obtained using Equation 9. The vertical line 208 is determined based on the intersection of curve 202 and line 206 and shows the WLRinline(t) value. The vertical line 210 indicates the WLRstandard(t) value, i.e., calculated based on the flow rates being calculated.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Based on the detected flow measurements and algorithm.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In accordance with aspects of the present disclosure, once WLRstandard(t) is calculated, the flow meter continues to report flow rates based on the five curves / lines 202, 204, 206, 208, and 210. Typically, this is the time frame from installation of the flow meter in the well to testing<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The first well or first separator test. The frequency of well or separator tests may be determined by the operator. When well or separator test data becomes available, a comparative analysis can be performed to determine the phase flow rate performance of the flowmeter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, the vertical line 212 (see Figure 2) is the specified phase portion of the well tests, which may become available later (e.g., weeks or months after the flowmeter is installed). If the discrepancy between the phase portions of the well tests (line 212) and the flowmeter (line 210) is greater than the allowable delta (typically ≤5%), then a correction may be made.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3 illustrates representative processes 300 for measuring a primary flow meter for a particular flow condition, in accordance with aspects of the present disclosure. In 302, a downhole fluid sample analysis report is obtained.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (e.g., fluid mixture). Data from the downhole fluid sample analysis report are also analyzed using the PVT software package in 304 to determine single-phase parameters (e.g., density, ρ; viscosity, µ; and SoS,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> a) of the analyzed mixture at various pressures (P) and temperatures (T), such as downhole, separator, and standard pressures and temperatures. Single-phase parameters are represented in 306. A flow meter (e.g., the flow meter 130 shown in Fig. 1) measures the downhole pressure (Pd), downhole temperature (Td), fluid velocity (V), and SoS in the medium in the tubing (SoSp, e.g., curve 204 in Fig. 2) for the fluid mixture in 312. The Wood equation (see Eq. 10, above) is used with the single-phase parameters, Pd, and Td, in 308 to determine an unimproved phase fraction curve (e.g., curve 202 in Fig. 2). The unimproved phase fraction curve is represented<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">At 310. While the SoSp determined by the flowmeter and Wood's equation with the Korteweg-Lamb equation (see Eq. 9, above) in 314 is used to determine SoS in the infinite medium (SoS∞, also referred to herein as SoSmix, e.g., line 206 in<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2). The unoptimized phase fraction curve and SoS∞ in 316 are also used to determine the nonoptimized inline WLR (nonoptimized inline WLR, e.g., line 208 in Figure 2). The nonoptimized inline WLR, fluid velocity, and multiphase flow algorithm 318 in 320 are used to determine the flow rates of the mixture at standard temperature and pressure (STd). The flow rates of the mixture at standard temperature and pressure are used in calculating the nonoptimized WLR.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">For the mixture at standard temperature and pressure (WLRnonoptimized STd, e.g., line 210 in Figure 2) in 330. In 322, the pressure (PWT), temperature (TWT), and water-in-fluid ratio (WLRWT, e.g., line 212 in Figure 2) are determined from the well test. WLRWT 324 is also used to determine the delta limit value (∆, e.g., 5%) in 326. In 328, WLRnonoptimized STd is compared to WLRWT. If the difference between WLRnonoptimized STd and WLRWT is less than or equal to ∆, then the flowmeter is considered to be providing accurate measurements.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> For downhole WLR and standard WLR, no adjustment of the measurements from the flowmeter is required, and operations 300 are completed at 340. If the difference between WLRnonoptimized STd and WLRWT is greater<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> From ∆, it is then considered that the flowmeter does not provide accurate measurements of downhole WLR and standard WLR, and the processes progress from 300 to 350.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 4 is a representative set of curves 400 illustrating a representative set of parameters (e.g., for inclusion in a parameter file) for deriving phase fractions and volumetric flow rates for each phase component from a well (e.g., the same well discussed above with reference to Figure 2), in accordance with certain aspects of the present disclosure. Curves 202, 204, 206, 208, 210, and 212 are the same as the curves shown in Figure 2 and will not be further described. The set of curves 400 is for use in an optimization process that assumes an unsteady single-phase SoS<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">It belongs to oil. Typically, this approach is desirable when two-phase flow is expected. In this case, the water phase can be chosen as the stable phase due to the incompressibility of water. However, in some cases, it is possible that the primary fluid exiting the well is dry oil (i.e., 100% oil). For such cases, the single-phase SoS for oil is based on accurate direct flowmeter measurement. It may then be desirable to treat the oil phase as the stable phase, while the production water can be chosen as the unstable phase. This is discussed below with reference to Figure 5. In Figure 4, curve 414 is the derived inline phase fraction. The derivation also depends on the ratio of the flowmeter phase fraction (ϕinline / ϕsTd), the standard flowmeter phase fraction (ϕsTd), the phase fraction of the well / separator tests (ϕWT), downhole pressure and temperature measurements (Pd, Td),<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Well / separator test pressure and temperature measurements (PWT, TWT), and standard pressure and temperature conditions (PsTd, TsTd). Representative techniques for deriving the included phase fractions are described above with reference to Equations 5 and 7. Using this derived phase fraction, the mixture density (ρmix) and corresponding mixture speed of sound (SoSmix) are calculated using Equations 8 and 9, respectively. Curve 416 is a derived SoS-ϕd(t) curve showing the relationship between the adjusted SoS and the downhole phase fraction. The derived SoS-ϕd(t) curve is obtained by changing the single-phase SoS value for the unsteady phase in Equation 10 and utilizing known and expected parameters. The derivation of curve 416 can be followed by updating the single-phase SoS value in the<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The parameter is calculated at the measured Pd and Td values ​​and then the updates are extrapolated to the other P and T values ​​in the parameter file. Once the parameter file is updated, the flowmeter measurements can be used to obtain the standard phase flow rates. Line 418 is the standard phase derivative, ϕsTd, which can be obtained using the standard flow rates reported by the flowmeter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 5 is a representative set of curves 500 illustrating a representative set of parameters (e.g., for inclusion in a parameter file) for deriving phase fractions and volumetric flow rates for each phase component from a well (e.g., the same well discussed above with reference to Figures 2 and 4), in accordance with certain aspects of the present disclosure. Curves 202, 204, 206, 208, 210, and 212 are the same as those shown in Figures 2 and 4 and will not be further described. The set of curves 500 is for use in an optimization process that assumes an unsteady single-phase SoS to be water. Typically, this approach is desirable when the primary fluid exiting the well is dry oil (i.e., 100% oil). The single-phase SoS for oil may be based on an accurate direct flowmeter measurement. It may be desirable to treat the oil phase as the stable phase, while the production water may be chosen as the unstable phase. In Figure 5, line 514 is the derived included phase portion.<h2 style=";text-align:left;direction:ltr">The derivation is based on the flowmeter phase fraction ratio (ϕinline / ϕsTd), the flowmeter standard phase fraction (ϕsTd), the well / separator test phase fraction (ϕWT), downhole pressure and temperature measurements (Pd, Td), well / separator test pressure and temperature measurements (PWT, TWT), and standard pressure and temperature conditions (PsTd, TsTd). Using this derived phase fraction, the mixture density (ρmix) and the mixture velocity of sound are calculated.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The SoS mix is ​​performed using Equations 8 and 9, respectively. Curve 516 is a derived SoS-ϕd(t) curve that illustrates the relationship between the adjusted SoS and the downhole phase fraction. The derived SoS-ϕd(t) curve is obtained by varying the single-phase SoS value for the unsteady phase in Equation 10 and utilizing known and predicted parameters. Derivation of curve 516 can be followed by updating the single-phase SoS value in the parameter file at the measured Pd and Td values ​​and then extrapolating the updates to the other P and T values ​​in the parameter file. Once the parameter file is updated, the flowmeter measurements can be used to obtain standard phase flow rates. Line 518 is the derived standard phase fraction, ϕsTd, which can be obtained using the standard flow rates reported by the flowmeter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 6 illustrates representative operations 600 for adjusting flow meter parameters for a particular flow condition, in accordance with aspects of the present disclosure. Operations 600 may follow operations 300 (see Figure 3) if the difference between WLRnonoptimized STd and WLRWT is greater than ∆, as denoted by operations<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">600 which starts at 350 (see Figure 3). At 602, the ratio is calculated<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">WLRinline / WLRstd. Data from the well test (e.g., PWT, TWT) and from the flowmeter (e.g., Pd, Td) in 604 are used with PsTd and TsTd in 608 to derive a target adjusted ratio WLRinline (e.g., curve 414 in Figure 4 or curve 514 in Figure 5) as shown in Equations 5 and 7. In 610, the mixture density (ρmix) is calculated based on the target adjusted ratio WLRinline. While the Korteweg-Lamb equation (see Eq. 9, above) is used to calculate the SoS of the target mixture in the infinite medium (SoS∞) in 612, the SoS∞ of the target mixture, ρmix, and WLRinline are used with the Wood equation (see Eq. 10, above) to determine the single-phase SoS∞ of the unstable phase in 614. The optimized phase fraction curve in 616 is determined by adjusting the unoptimized phase fraction curve based on the SoS∞ determined for the unstable phase. In 618, the SoS∞ of the unstable phase at the measured downhole pressure (Pd) and downhole temperature (Td) is updated to the value specified in 614. The SoS∞ of the unstable phase is also extrapolated to other pressure and temperature values ​​in 618.<h2 style=";text-align:left;direction:ltr">While the parameter file for the flow meter is updated based on the SoS∞ for the unsteady phase in 620. The updated parameters and measurements 622 for Pd, Td, fluid velocity, and SoS in the pipe are used with the multiphase flow algorithm 624 in 626 to determine the flow rates for the mixture at temperature and pressure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Standards (STd). The flow rates of the mixture at standard temperature and pressure are used to calculate an optimized WLR for the mixture at standard temperature and pressure (WLRoptimized STD, e.g., line 418 in Figure 4 or line 518 in Figure 5) in 630. In 640, the pressure (PWT), temperature (TWT), and water-in-fluid ratio (WLRWT, e.g., line 212 in Figure 2) are determined from the well test. A delta limit value (∆, e.g., 5%) is set based on user specifications independently in 644. In 646, a comparison is made<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">WLRoptimized STD with WLRWT. If the difference between WLRoptimized STD and WLRWT is less than or equal to ∆, then the flowmeter is considered to provide accurate measurements of downhole WLR and standard WLR. No further adjustment of the measurements from the flowmeter is required, and operations 600 are completed at 650. If the difference between WLRoptimized STD and WLRWT is greater than<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ∆, then the flowmeter is considered not to be giving accurate measurements of downhole WLR and standard WLR, and the 600 processes return to 350.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 7 illustrates exemplary processes 700 for hydrocarbon monitoring, in accordance with aspects of the present disclosure. The processes 700 may be performed by or using the flow meter 130 shown in Figure 1, a treatment system, and / or other components of the system for hydrocarbon monitoring.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Operations 700 begin at block 705 by receiving downhole measurements of a flowing fluid from a flow meter. For example, processor 112 (see Figure 1) may receive measurements of downhole pressure (Pd), downhole temperature (Td), fluid velocity (V), and SoS of the fluid 110 in channel 105 (SoSp) from flow meter 130.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">At block 710, processes 700 continue to determine a standard phase fraction for the flowing fluid based on downhole measurements from the flowmeter. Continuing with the above example, processor 112 may determine a standard conditions water-in-liquid ratio (WLRstd) for the flowing fluid 110 based on Pd, Td, V, and SoSp received from flowmeter 130 at block 705. In the example, the processor may determine WLRstd using the techniques described above, referring to Figure 2.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Processes 700 continue at block 715 by receiving surface measurements of the flowing fluid. Continuing the example, the processor may receive measurements from sensors at break 160 of the pressure (Psep) and temperature (Tsep) of the flowing fluid 110.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> At block 720, processes 700 continue to determine a surface phase fraction of the flowing fluid based on surface measurements. Continuing the example above, processor 112 may determine a water-liquid ratio at the separator (WLRsep) based on the Psep and Tsep received at block 715.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Operations 700 continue at block 725 by comparing the standard phase portion with the surface phase portion. Continuing the example above, processor 112 may compare WLRstd from block 710 with WLRsep from block 720.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> At block 730, processes 700 continue using the surface measurements as a reference to adjust the SoS of a first phase until a target value is achieved, based on the comparison being greater than a predetermined threshold value. Continuing the example above, the processor may, based on the comparison from block 725 being greater than a predetermined threshold value (∆), use Tsep, Psep, and the surface phase fraction from block 720 as a reference to derive an included target phase fraction, an included target mixture density, an included target SoSmix using the SoS measured at block 705, and adjust the SoS of a first phase (SoS1), e.g., the oil phase, until the SoS of the fluid mixture (SoSmix) matches the target SoSmix.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Operations 700 continue at block 735 by receiving additional downhole measurements of the flowing fluid from the flowmeter, where the flowmeter operates using the SoS set for the first phase. Continuing the example above, processor 112 may receive additional measurements of Pd, Td, V, and SoSp, where the flowmeter 130 may use the SoS1 set from block 730 to perform the additional measurements.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In accordance with aspects of the present disclosure, an apparatus or system performing the operations 700 can determine at least one of an in-situ updated phase fraction, an updated standard phase fraction, or updated phase flow rates of the flowing fluid, based on additional downhole measurements from the block 735.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, the standard phase fraction of the mass 710 may comprise a water-in-liquid ratio (WLR) at standard conditions.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In accordance with aspects of the present disclosure, surface measurements of the fluid flowing from the block 715 may be received from at least one of the wellhead (e.g., wellhead 150, see FIG. 1) or separator (e.g., separator 160, see FIG. 1).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In aspects of the present disclosure, the target value of block 730 may include the SoS of a target mixture (SoSmix). In some such aspects, using the surface measurements as a reference for adjusting the SoS of the first phase as in block 730 may include: calculating the density of a target mixture based on the surface phase fraction; calculating the SoS of the target mixture based on the density of the target mixture; and varying the SoS of the first phase until the SoS of the resulting mixture obtained from the Wood's equation is within a predetermined deviation from the SoS of the target mixture, leaving the SoS of a second phase constant. In some other such aspects, the SoS of the first phase is the SoS of the oil and the SoS of the second phase is the SoS of the water. In some other such aspects, the SoS of the first phase is the SoS of the gases in the fluid, the SoS of the second phase is the SoS of the liquids in the fluid, and the phase fraction includes a liquid volume fraction (HL) of the fluid.<h2 style=";text-align:left;direction:ltr">In some other aspects such as these, the calculation of the target mixture density may include: predicting the in-situ phase fraction based on the surface phase fraction, standard phase fraction, measured bottomhole pressure, measured bottomhole temperature, measured surface pressure, measured surface temperature, standard pressure, and standard temperature; and calculating the target mixture density based on the in-situ phase fraction. Still in other aspects such as these, the calculation of the SoS of the target mixture may be based on the Korteweg-Lamb equation.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In accordance with aspects of the present disclosure, an apparatus or system performing the operations 700 may update a parameter file for the flowmeter using the SoS set for the first phase of block 730. In some of these aspects, the SoS set for the first phase is at the measured downhole temperature and measured downhole pressure and the update may include: extrapolating additional sound velocities set for the first phase to temperatures other than the measured downhole temperature and to pressure values ​​other than the measured downhole pressure; and writing the SoS set for the first phase at the temperature<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The measured downhole pressure and the inferred additional sound velocities are set for the first phase in the parameter file of the flow meter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, an apparatus or system performing the operations 700 can apply a conversion factor to at least one of the standard phase portion of block 710 or the surface phase portion of block 720 prior to comparison from block 725.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In accordance with aspects of the present disclosure, the mass flow meter 705 may include an optical flow meter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Or an electric flow meter.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In aspects of the present disclosure, an apparatus or system performing operations 700 can determine an updated standard phase fraction of the flowing fluid based on additional downhole measurements from block 735; receive additional surface measurements of the flowing fluid; determine an updated surface phase fraction of the flowing fluid based on the additional surface measurements; compare the updated standard phase fraction to the updated surface phase fraction; based on the comparison of the updated measurement and surface phase fractions that are greater than a predetermined threshold value, use the additional surface measurements as an updated reference to change the SoS of the first phase until an updated target value is achieved; and receive further downhole measurements of the flowing fluid from a flowmeter, wherein the flowmeter operates using the modified SoS of the first phase. In some aspects of the present disclosure, an apparatus or system performing operations 700 can calculate adjustments to prior downhole measurements (e.g., the database of historical downhole measurements collected by the flowmeter prior to operations 700) based on the modified SoS of the first phase.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In aspects of the present disclosure, an apparatus or system performing operations 700 can calculate adjustments to prior downhole measurements (e.g., the database of historical downhole measurements collected by the flowmeter begins prior to operations 700) based on the SoS that has been adjusted for the first phase.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Aspects and advantages<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The challenges associated with measuring multiphase flow in a well are numerous. Consequently, there are not many technologies available for this challenging task. One approach that has been used is the Venturi-based solution, in which the Venturi is combined with other technologies. However, it is well known that Venturi-based solutions have some fundamental problems in a downhole and multiphase environment. First, the solution<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Venturi-based meters are not full-bore, and the basic design causes significant pressure loss due to flow restriction. This restriction may also inhibit some well operations, and as a result, this may not be the preferred solution for operators. Second, venturi meters have limited flow rate ranges due to low slope ratios. Third, venturi meters are suitable for single-phase flows and do not provide phase fraction measurements, such as water cut. Fourth, most venturi-based solutions rely on electronic technology, which may not be suitable for harsh well conditions. Also, lifespans are longer.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Electronic measuring instruments, as well as their measurement drift, are also major reasons why these meters are not used frequently.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> However, there is a growing trend in the design of “smart completions” where the well is equipped with in-flow control valves (ICV) or in-flow control devices (ICDs) so that the well’s production can be optimized.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">(or at least increase the well's production efficiency) by creating a uniform flow distribution, particularly for multi-scale applications. To achieve this, flow in the well may be measured for the life of the well. Clearly, there is a gap between what is expected from in-well flow measurement and what is currently provided. Aspects of the present disclosure may bridge this gap and offer significant advantages over current flow measurement solutions. Some of these advantages are listed below. Eliminating the reliance on fresh downhole samples and reservoir analysis:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The composition of the reservoir fluid is important for any type of flowmeter. The flowmeter described here also uses a parameter file consisting of fluid properties, including density, viscosity, SoS, and formation volume factor for the individual phases that make up the fluid mixture. These values ​​are typically based on analysis of downhole samples. The flowmeter then takes the parameter file and combines the values ​​in the file with the flowmeter's own measurements to interpret downhole flow rates and standard phase flow rates. Consequently, phase flow rates are affected by the accuracy of the data obtained from the downhole fluid samples. The most difficult parameter to measure, which is also closely related to other parameters in a given application, is the single-phase SoS. Naturally, since the composition of the fluids produced from the well can change over time, it is expected that a new parameter file will be generated in response to changes in fluid composition, especially for the SoS of the individual phases.<h2 style=";text-align:left;direction:ltr">In aspects of the present disclosure, it is not necessary to create new parameter files, as aspects of the present disclosure update the parameter files in use based on test results and ongoing operations.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Non-interference in well operations:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Because it is not necessary to obtain additional downhole fluid samples later in the well run when using aspects of the current discovery, well operation interventions are significantly reduced to improve the accuracy of those aspects. This may result in reduced production time losses compared to previously known techniques.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Better economics:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Even if the production losses described above were excluded, the cost of obtaining downhole fluid samples by the operator, performing reservoir analysis and reporting of downhole samples by a third party, and creating flowmeter parameter files (e.g., optical flow meter (OFM)) using PVT software packages could result in very significant expenses when combined. Aspects of the present disclosure may also reduce many or all of these costly and time-consuming activities.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Fast response time:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Once well test data and corresponding flow meter measurements (e.g., OFM) are available, implementation of aspects of the present disclosure may be rapid (e.g., one day).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Better accuracy and performance:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In aspects of the present disclosure, the flow meter velocity and SoS measurements, in addition to<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Pressure and temperature measurements are independent of fluid composition. Therefore, there is no change in the accuracy of flowmeter measurements due to changes in fluid composition. However, since aspects of the present disclosure use well test results as a reference for back-calculating and determining the sound velocity of the unsteady phase, the result may be a high-performance measurement. In contrast, this type of performance increase is not expected from actual downhole sample analysis. Potential errors in sampling activities used in other techniques include sample production from a different zone, insufficient flow or "head" rate, fluid and solids loss due to drawdown, compositional gradation in the reservoir, poor drilling and workover fluid cleanup, gas loss due to drawdown, gas cone formation, loss of tubing reactive components, release of contaminants from tubing, transfer of an inhomogeneous sample, and separator instability.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Fluid migration from the separator, emulsion or gas migration from the separator, flow rate errors, poor sampling practices, and data recording errors. All of these potential errors can mean that samples may not be fully representative of the reservoir fluid. Furthermore,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Good fluid samples can also be studied under unsuitable conditions. Apart from P and T errors that can affect measurements, errors in the gas / oil ratio (GOR) can have a significant impact on PVT studies.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Sensor type independence:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Although aspects of the present disclosure are described using an optical flow meter as an example, the implementation of the disclosed aspects is independent of the sensor type and can therefore be applied to electronic sensors, as long as the sensors measure SoS.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Conclusion<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Certain aspects of the present disclosure provide a flow algorithm based on fluid mixture SoS measurements and single-phase SoS refinements. The algorithm also uses well test results as a reference for back-calculating and determining the SoS for the unsteady phase.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Any of the operations described above, such as operations 700 of Figure 7, as instructions in a computer-readable medium for execution by a processor (e.g., processor 112 of Figure 1)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Or any other suitable processing system. The computer-readable medium may include:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Any memory suitable for storing instructions, such as read-only memory (ROM), random access memory (RAM), flash memory, electrically ejectable programmable RAM (EEPROM), CD-ROM, or floppy disk.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> While the foregoing is directed to aspects of the present disclosure, further aspects may be devised without departing from its basic scope, the scope of which is defined by the following claims.

Claims

Protection Elements 1. A hydrocarbon monitoring method, comprising: receiving (705) downhole measurements of a flowing fluid (110) from a flowmeter (130); and receiving (715) surface measurements of the flowing fluid (110); wherein the method has the following steps: determining (710) a standard phase fraction (ϕstd) and speed of sound (SoS) for the first phase of the flowing fluid (110) based on downhole measurements from the flowmeter (130); determining (720) a surface phase fraction of the flowing fluid (110) based on surface measurements; comparing (725) a standard phase fraction (ϕstd) with the surface phase fraction to establish a comparison; Based on the comparison being greater than the pre-determined limit value and using surface measurements as a reference, the speed of sound (SoS) of the first phase is adjusted until a target value is achieved to establish an adjusted speed of sound (SoS) for the first phase; and receiving (735) additional downhole measurements of the flowing fluid (110) from the flow meter (130), where the flow meter (130) operatesusing the speed of sound (SoS) set for the first phase to make additional downhole measurements.

2. The method according to claim 1, further comprising determining at least one of an in situ updated phase fraction, an updated standard phase fraction, or updated phase flow rates of the flowing fluid (110), based on the additional downhole measurements.

3. The method according to claim 1, wherein the standard phase fraction (ϕstd) comprises a water-in-liquid ratio (WLR) at standard conditions.

4. The method according to claim 1, wherein the surface measurements of the flowing fluid (110) are received from at least one of the wellhead (150) or separator (160).

5. The method according to claim 1, wherein the target value comprises the speed of sound (SoS) of a target mixture.

6. The method according to claim 5, wherein the use of surface measurements as a reference for setting the speed of sound (SoS) of the first phase comprises: calculating the density of a target mixture based on the surface phase fraction; calculating the speed of sound (SoS) of the target mixture based on the mixture densitytarget; and changing the speed of sound (SoS) of the first phase until the speed of sound (SoS) of the resulting mixture obtained from Wood's equation is within a predetermined deviation from the speed of sound (SoS) of the target mixture, leaving the speed of sound (SoS) as a second phase constant.

7. The method according to claim 6, wherein the speed of sound (SoS) of the first phase is the speed of sound (SoS) of the oil and wherein the speed of sound (SoS) of the second phase is the speed of sound (SoS) of the water.

8. The method according to claim 6, wherein the speed of sound (SoS) of the first phase is the speed of sound (SoS) of the gases in the fluid, wherein the speed of sound (SoS) of the second phase is the speed of sound (SoS) of the liquids in the fluid, and wherein the phase fraction comprises a liquid volume fraction (HL) of the fluid.

9. The method according to claim 6, wherein the calculation of the target mixture density comprises: predicting an in-situ phase fraction based on the surface phase fraction, and a standard phase fraction(ϕstd), downhole pressure measurement (Pd), downhole temperature measurement (Td), surface pressure measurement, surface temperature measurement, standard pressure, and standard temperature; and calculating the density of the target mixture based on the in-situ phase fraction.

10. The method according to claim 6, wherein the speed of sound (SoS) of the target mixture is calculated based on the Korteweg-Lamb equation.

11. The method according to claim 1, further comprising updating a parameter file for the flowmeter (130) using the speed of sound (SoS) set for the first phase.

12. The method according to claim 11, wherein the speed of sound (SoS) set for the first phase is at a measured downhole temperature and a measured downhole pressure and wherein the update comprises: extrapolating the additional speeds of sound set for the first phase to temperatures other than the downhole temperature measurement (Td) and to pressure values ​​other than the downhole pressure measurement (Pd); and writing the speed of sound(SoS) set for the first phase at the downhole temperature measurement (Td) and downhole pressure measurement (Pd) and the derived additional sound velocities set for the first phase in the parameter file of the flowmeter (130).

13. The method according to claim 1, further comprising applying a conversion factor to at least one of the standard phase fraction (ϕstd) or surface phase fraction before comparison.

14. The method according to claim 1, wherein the flowmeter (130) includes an optical flowmeter (130).

15. The method according to claim 1, further comprising: determining an updated standard phase fraction (ϕstd) of the flowing fluid (110) based on the additional downhole measurements; receiving additional surface measurements of the flowing fluid (110); determining an updated surface phase fraction of the flowing fluid (110) based on the additional surface measurements; Compare the updated standard phase fraction (ϕstd) to the updated surface phase fraction to create a comparison of the updated standard and surface phase fractions; based on the comparison of the updated measurement and surface phase fractionswhich is greater than the predetermined limit value and using additional surface measurements as an updated reference, the speed of sound (SoS) set for the first phase is changed until an updated target value is achieved to establish the modified speed of sound (SoS) for the first phase; and receiving further downhole measurements of the flowing fluid (110) from the flowmeter (130), wherein the flowmeter (130) operates using the modified speed of sound (SoS) for the first phase to make additional downhole measurements.

16. The method according to claim 15 further comprising calculating adjustments to prior downhole measurements based on the modified speed of sound (SoS) for the first phase.

17. The method according to claim 1 further comprising calculating adjustments to prior downhole measurements based on the modified speed of sound (SoS) for the first phase.

18. Hydrocarbon Monitoring Processing System, the processing system is configured to: receive (705) downhole measurements of a flowing fluid (110) from a flow meter (130); and receive (715) surface measurements of the fluidThe flowing fluid (110), wherein the treatment system is configured to: determine (710) a standard phase fraction (ϕstd) and speed of sound (SoS) for the first phase of the flowing fluid (110) based on downhole measurements from a flow meter (130); determine (720) a surface phase fraction of the flowing fluid (110) based on surface measurements; compare (725) a standard phase fraction (ϕstd) with the surface phase fraction to establish a comparison; based on the comparison being greater than a predetermined threshold value and using the surface measurements as a reference, the speed of sound (SoS) for the first phase is adjusted until a target value is achieved, to establish the adjusted speed of sound (SoS) for the first phase; and receiving (735) additional downhole measurements of the flowing fluid (110) from the flowmeter (130), the flowmeter (130) is configured to operate using the speed of sound (SoS) set for the first phase to make the additional downhole measurements.

19. The processing system according to claim 18, wherein the processing system is further configured to determine at least one of an in-situ updated phase fraction, or a standard phase fractionUpdated standard phase fraction (ϕstd), or updated phase flow rates of the flowing fluid (110), based on additional downhole measurements.

20. The treatment system according to claim 18, wherein the standard phase fraction (ϕstd) comprises a water-in-liquid ratio (WLR) at standard conditions.

21. The treatment system according to claim 18, wherein the treatment system is configured to receive surface measurements of the flowing fluid (110) from at least one wellhead or separator.

22. The treatment system according to claim 18, wherein the target value comprises the speed of sound (SoS) of a target mixture.

23. The treatment system according to claim 22, wherein the treatment system is configured to use the surface measurements as a reference to set the speed of sound (SoS) of the first phase by: calculating the density of a target mixture based on the surface phase fraction; Calculate the speed of sound (SoS) of the target mixture based on the density of the target mixture; and change the speed of sound (SoS) of the first phase until it becomes the speed of sound (SoS) of the resulting mixture obtained fromWood's equation within a predetermined deviation from the speed of sound (SoS) of the target mixture, leaving the speed of sound (SoS) as a second phase constant.

24. The treatment system according to claim 18, wherein the treatment system is further configured to update a parameter file for the flowmeter (130) using the speed of sound (SoS) set for the first phase.

25. The treatment system according to claim 18, wherein the treatment system is further configured to apply a conversion factor to at least one of the standard phase fraction (ϕstd) or surface phase fraction prior to comparison.

26. The treatment system according to claim 18, wherein the flowmeter (130) includes an optical flowmeter (130).

27. The treatment system according to claim 18, wherein the treatment system is further configured to: determine an updated standard phase fraction (ϕstd) for the flowing fluid (110) based on additional downhole measurements; Receive additional surface measurements of the flowing fluid (110); determine an updated surface phase fraction of the flowing fluid (110) based on the additional surface measurements; compare to a standard phase fraction (ϕstd)updated with the updated surface phase portion to create a comparison for the updated surface phase portion and standard; based on the comparison of the updated measurement and the surface phase portions that are greater than a predetermined threshold value and using the additional surface measurements as an updated reference, the first phase's speed of sound (SoS) is changed until an updated target value is achieved, to create the modified first phase's speed of sound (SoS); further downhole measurements of the flowing fluid (110) are received from the flowmeter (130), and the flowmeter (130) is configured to operate using the modified first phase's speed of sound (SoS) to make further downhole measurements.

28. The processing system according to claim 27, wherein the processing system is further configured to account for adjustments to previous downhole measurements based on the modified first phase's speed of sound (SoS).

29. The processing system in accordance with claim 18, wherein the processing system is further configured to calculate adjustments to previous downhole measurements based on the speed of sound (SoS) set for the first phase. 30.A non-transitory computer-readable medium comprising instructions that can be executed by a processing system to perform hydrocarbon monitoring operations, the operations comprising: receiving downhole measurements of a flowing fluid (110) from a flowmeter (130); and receiving surface measurements of the flowing fluid (110); wherein the operations are characterized by: determining a standard phase fraction (ϕstd) and speed of sound (SoS) of the flowing fluid phase (110) based on downhole measurements from the flowmeter (130); determining a surface phase fraction of the flowing fluid (110) based on surface measurements; comparing a standard phase fraction (ϕstd) with the surface phase fraction to establish a comparison; Based on the comparison being greater than the pre-determined limit value and using surface measurements as a reference, the speed of sound (SoS) of the first phase is adjusted until a target value is achieved, to establish the speed of sound (SoS) that is adjusted for the first phase; and receiving additional downhole measurements of the flowing fluid (110) from the flow meter (130), where the meter operatesFlow (130) using the speed of sound (SoS) adjusted for phase to make additional measurements downhole.