Estimation of the impedance layer
By evenly distributing six electrodes on the inner wall of the pipeline, combined with Kirchhoff's and Ohm's laws, and using a neural network model to pre-calculate annular symmetrical flow, the problem of electrode deposition and layer impedance measurement under complex flow conditions is solved, and high-precision layer impedance is achieved. It is estimated that the error is less than 1.6%.
Patent Information
- Application Number
- CN202080007955.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-02-14
- Filing Date
- 2020-02-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-02-12
AI Technical Summary
When using the existing technology for impedance measurement, wax and scale are easy to deposit on the electrodes, resulting in changes in measured impedance, and it is difficult to accurately estimate the layer impedance on the pipe wall under complex flow conditions, especially when the water content is high and the layer is uneven. Down.
Six electrodes evenly distributed along the inner wall of the pipeline are used to establish the relationship between current and voltage through Kirchhoff's law and Ohm's law. Combined with the neural network model, the conductivity distribution of the annular symmetrical flow is pre-calculated. Through time average and pre-calculation model, Estimate the layer impedance and adjust it by measuring the offset value k to ensure that the measurement result is within the allowed range.
It achieves reliable and stable layer impedance measurement under multi-phase flow conditions with an error of less than 1.6%. It is effective even when the layer is uneven and has high water content, and can detect the layer impedance in the pipeline with high precision.
Smart Images

Figure CN113614494B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the use of impedance measurements to estimate layers on electrodes on the wall of a pipeline conducting a substantially annular flow. Background Art
[0002] The composition of the flow in a pipe is measured using electrodes placed on the inner surface of the pipe and connected to an instrument that measures impedance, e.g. capacitance or resistance in the flow between the electrodes. Examples of such arrangements are shown in NO307393 and NO340852, which have four electrodes distributed along the inner circumference of the pipe wall for measuring impedance in the pipe.
[0003] One problem that arises in the measurement is the deposition of a resistive layer on the electrodes, i.e. made up of wax and scale that sticks to the electrodes after use. This changes the impedance of the measurement and in order to provide a measurement of the fluid flow, the influence from the layer must be found. Systems for detecting scale and deposits in pipes are known, as described in WO2015055767, but for impedance measurements it is crucial to find the direct influence of the resistive layer on the measurement.
[0004] Another solution is described in US 2009 / 205439, where the measured data is compared with previous data and the deviations from the historical data are reported as layers of electrodes. However this requires low natural variations in the flow measurement and is not suitable for complex flow conditions. Summary of the invention
[0005] It is therefore an object of the present invention to provide a method and system which can provide measurements of layer impedance, ie resistivity and capacitance, in a pipeline containing a multiphase flow. This may be achieved as specified in the accompanying claims.
[0006] Therefore, the invention assumes that the flow is on average circularly symmetric and annular, as expected in a vertical pipe. According to the invention, a reliable and stable method is provided, which works even in the worst case with an inhomogeneous layer and a chronically high water content. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 is a cross-section of an electrode configuration used according to a preferred embodiment of the present invention;
[0008] Figure 2 is the radial distribution of conductivity in fluid flow parameterized by a, b, and c;
[0009] Figure 3 yes The x and y axes (z axis is not visible in 2D) are the center of the neural network calculation and the resistance of the wall, each point corresponding to some a,b,c. The line shows how changing k moves the answer within the allowed region.
[0010] Figure 4 Here is a histogram of the absolute error in the layers in Ohms. The layers take random values between 0-800 Ohms and we see an error of less than 1.6%. DETAILED DESCRIPTION
[0011] The basis of the method is discussed below. The method is related to resistance measurement, but similar arguments can be made for capacitance measurement.
[0012] The invention will now be discussed in more detail with reference to the accompanying drawings, illustrating the invention by way of example.
[0013] The following description is based on a 6-electrode configuration in the inner wall of a pipe as shown in Figure 1. The ground wire is omitted from this description, but can be easily included as will be appreciated by those skilled in the art.
[0014] It can be seen that the electrodes 1-6 are evenly distributed around the pipe, so the distance between adjacent electrodes 1-2, 2-3, 3-4, 4-5, 5-6 and 6-1 is the same, while the distance between the second adjacent electrodes 1-3, 2-4, 3-5, 4-6, 5-1 and 6-2 is the same, and the distance through the flow 1-4, 2-5 and 3-6 is the same. Although the present invention will be described with 6 electrodes, similar results can be obtained with other data evenly distributed on the inner pipe wall 7. Each electrode 1-6 is connected to a measuring instrument 8, which is suitable for measuring the impedance between the electrodes, and to a computer 9, which includes a suitable computer program and is suitable for comparing and analyzing the measurements as described below.
[0015] By activating different electrode pairs individually, the impedance between the pairs can be measured individually. In addition, assuming a circularly symmetrical annular flow, the first adjacent pairs are used to measure the same impedance, , the second adjacent pair is located on the surface of the flow and is used to measure the same impedance, , electrodes located on opposite sides across the flow are used to measure the impedance at the center of the flow. In this case, the values of the three layer impedances are measured at different lengths from the wall, , , By using other numbers of electrodes, the number of layers will vary accordingly.
[0016] The basic principle of the present invention is described below based on the six electrodes shown in the figure.
[0017] The electrodes labeled 1 to 6 can be included in the following equation:
[0018] (Kirchhoff's law)
[0019] (Ohm's law)
[0020] The first equation is Kirchhoff's law, which states that current is conserved, which states that the total current through the electrode, labeled i, is , equal to each individual current from the other electrodes The second equation is Ohm's law for each electrode pair. Substituting the second equation into the first, we can eliminate all .
[0021] The basic idea is to stimulate the electrodes with voltage enough times and measure the current enough times to solve the above equation. For six electrodes (plus the ground ring), six stimulations are required. Within current technology, these stimulations are performed just before the flow change, providing an instantaneous image of the flow conditions at a particular time, but instantaneous flow conditions are inherently chaotic and not necessarily circularly symmetric or annular. In order to provide a reliable measurement of the electrode layers, a time average of the impedance is preferred.
[0022] The averaging time should be significantly longer than the time for the local turbulent behavior of the equilibrium flow, for example more than two seconds, to provide an essentially symmetrical measurement, but not too long as to cause significant changes in the layer on the electrodes. The latter is in the range of hours or more. The averaging can be over a continuous time series or over successive samples.
[0023] 6x6 matrix It is called a voltage-current diagram and provides us with a complete understanding of the possible flows.
[0024] Since i and j range from 1 to 6, we should have 36 different , but because = and Unclear, only 15 independent We rearrange these 15 resistors into a vector and call the measured resistance , where i is now ranked from 1 to 15.
[0025] For the grounded ring, we know that its potential is 0 and the total current is zero, so we also know its current, so we can treat it as the seventh electrode. When we have a circularly symmetric conductivity distribution, there are only three independent resistors.
[0026] In capacitive mode, the system is governed by the same equation (Poisson's equation), but with the dielectric constant used instead of conductivity.
[0027] Substituting U = RI, we get U = (1 / C) Q. So the R matrix is simply replaced by an identical matrix using the number 1 / C. The physics is the same, conductivity is replaced by the dielectric constant and resistance is replaced by the inverse of capacitance.
[0028] refer to Figure 1 , the layer consists of six element vectors, , which is the resistance layer fixed on the nth electrode. We get the formula:
[0029] (Equation 1)
[0030] Then we formally take the average of both sides of the equation over the entire period of time we measured, so the matrix There are only three different values. This is because due to the circular symmetry of the pipe, the average value of the flow resistance between adjacent electrodes should become the same, and the same is true for the second adjacent and third adjacent. Since the layer mean does not change, the number of unknowns is reduced from 15+6 to 3+6.
[0031] Although 15 equations are available (one for each element in the matrix), this system is unsolvable. It can be shown that if there exists a solution set , then for any we can find another solution set .
[0032] (Equation 2)
[0033] This then means that there is only one variable left, k, which is called rank here and is calculated as described below.
[0034] The basis of this method is that for a given matrix , there is a corresponding ,in is the conductivity distribution. It can be transformed from left to right by tomography, or from right to left by finite element methods (FEM) such as COMSOL or real experiments. One of the basic insights of this approach is that you can take the "average" of both sides and get an approximate correspondence. This means that by finding the average of the left side over some period of time of the flow, and then tomography, you can get a conductivity distribution that corresponds to the average value of the conductivity of that flow. This is not mathematically correct, but will provide the necessary two features.
[0035] It is circularly symmetrical ( depends only on r);
[0036] It is annular, i.e. Increases as r (radius from the center) increases.
[0037] Since the instrument is cylindrically symmetrical and the gas is pushed to the center, these assumptions are considered to hold.
[0038] With these two constraints, only all possible values of A specific subset of is desirable. To find this subset, a precalculation needs to be performed, for example using COMSOL or a similar simulation tool. All annular circularly symmetric conductivity distributions are simulated as far as possible and three R values are calculated for the six electrode configurations: adjacent electrodes, , the second adjacent, , and the third adjacent, The distributions can be generated in any way that spans the space of annular circularly symmetric distributions. In our case, we parameterize them by three values a, b, c (see Figure 2), where a ranges from 0.05 to 1, b ranges from 0.05 to a, and c ranges from 0.05 to b. This results in 1540 simulations.
[0039] Then we can train a neural network to obtain These functions should provide a good span of the space of realistic toroidal conductivity distributions, but the method can be improved by adding more parameters and increasing computation time.
[0040] The flow can then be expressed as circularly symmetric and annular by Generate a space. We just need to insert random a, b, c for 1000000 values, and the result is shown in Figure 3.
[0041] Figure 3 Explained The x- and y-axes (z-axis is not visible in the 2D representation) are the center and the wall resistances calculated by our neural network. Each point corresponds to a certain a, b, c. We see that the space in the figure is quite convex. Thus, a model is obtained that includes possible flow characteristics.
[0042] We can then construct a function f(R) that takes , and , and checking whether R lies within the region shown in Figure 3, thereby checking whether there are circular and annular conductivity distributions with these R values. This is essentially based on checking whether a point is within a well-defined region in 3D space. This is a standard mathematical exercise well known to those skilled in the art.
[0043] These tools can now be used to solve the layer. This means that finding some solution to Equation 1 We are left with level k as a variable. We pass Forming a matrix . Then Equation 1 is modified as follows.
[0044] (Equation 3)
[0045] The next step is to add different k in the layer and use the constructed function Check that the resistance on the right side of Equation 3 is within the allowed region. This provides the upper and lower bounds for k. With bounds on k, you can set bounds on the layer. By taking a new time series, you can provide a new mean value and other upper and lower bounds for the layer. The maximum value of the upper bound set and the minimum value of the lower bound set can provide very good results for the layer, as shown below. (See the Results section.)
[0046] In practical applications, long time series are used To use this method more effectively, it is best to combine non-sequential To form many different averages, to obtain an average close to the edge of the convex hull, so that k is maximally restricted. The method is applied to each of them to obtain many different upper and lower limits.
[0047] More specifically, the layers can be found in the following manner, still based on a 6-electrode configuration.
[0048] There are 15 equations in each time step (because there are 15 pairs of electrodes)
[0049]
[0050] is the real flow resistance between electrodes i and j. L i is the resistance of the layer located on the electrode. Each measured resistance is a sequence of two layer resistances and the flow resistance.
[0051] There are six different L i , one for each electrode, and 15 . Everything on the right side is unknown, and everything on the left side is measured. So there are 21 unknowns and 15 equations. As mentioned above, averaging everything in this equation over a certain time series gives the following equation.
[0052]
[0053] Since the layers do not change on these time scales, L can be left out of the averaging. Due to the circular symmetry of the averaged vertical flow, = , that is, in The 15 different resistors are reduced to just three, called , and .
[0054] This results in 3+6=9 unknowns and 15 equations, but as mentioned above, they are not solvable for the following reasons.
[0055] if ,and Solving this equation, where X and Y are vectors, then Xk and Y+2k (we add the same to each element) will solve the equation the same way, no matter what k is:
[0056] .
[0057] To explain it more physically, there is no easy way to distinguish between symmetric layers and symmetric flows.
[0058] Therefore, we need to find a way to calculate k. First, set To start, then this equation is easy to solve because it's just a system of linear equations.
[0059] This leaves a value for L that can be solved, and the true physical L is this vector plus some constant k. The equation can then be solved to get some solution for these three resistors, where the actual physical values of these resistors are obtained by subtracting some constant 2k.
[0060] It is well known that, on average, the flow is circularly symmetric and annular, with some resistance to the flow [ , , ]. This can be used to constrain the possible values of 2k that can be added to the initial solution. If 2k is too large or too small, the flow resistance will become unnatural. Constrained k directly leads to constrained layer resistance, L.
[0061] Using the known model, it is possible to calculate the range of possible flow resistances that are consistent with natural laws by simulation using commercial programs such as COMSOL. By simulating a wide range of circular and annular scenarios (without layers), all plausible outcomes can be covered.
[0062] The possible [ , , ], a finite part of the "resistance space" can be defined, as described above, in Figure 3 Displayed in.
[0063] Since the region has a very well-defined boundary (the two straight lines) and is densely populated, any toroidal distribution is expected to fall within it. Instead, we assume that all points within the region correspond to toroidal distributions.
[0064] Our general solution, , , ]+2k, such as Figure 3 As shown by the straight line in the middle, it intersects the "annular" region of the solution space. Since we expect the true solution to be annular, we constrain the values to keep the solution within the annular region. Using Equation 2, this translates into upper and lower limits on the layer resistance, .
[0065] Now, when we get more time series, we repeat the same steps and get other upper and lower bounds of the stratum, we take the minimum of all upper bounds and the maximum of all lower bounds and then take the average of both to get a good estimate of the stratum.
[0066] The method according to the invention was tested as follows: A data set of 3000 R matrices was used for 3000 random flow configurations calculated. These were generated by dividing the meter into 13 regions of equal area, each with a random conductivity. The conductivity distribution was slightly biased towards having a circular distribution as expected, but of course it is not always circular. 100 random configurations from this set were used, as this was not enough to obtain a circularly symmetric distribution. Therefore, the set was rotated about the flow axis. The five conductivity configurations of the set are adjacent, n = 1, 2, 3, 4, 5. The average of the set is now circularly symmetric and the method is tested on the average. The same random layer of 1-800 ohms is added to each electrode and these values are added to the R matrix in an appropriate manner, resulting in the matrix obtained with the method being tested . Take 8 average values and the minimum and maximum values of the upper and lower limits. Do this 100 times and the result is as follows Figure 4 , which shows a histogram of the absolute error in a layer in Ohms. The layer takes random values between 0-800 Ohms and we see that the error is less than 1.6%.
[0067] The result shown in FIG4 is already good, but the hierarchy can be constrained to the greatest extent by taking the average of the maximum R value and the average of the minimum R value to obtain two different averages located on both sides of the convex hull. Only 8 averages were used in this test. In real life, this only runs for a few seconds, and if it runs longer, the accuracy of the layer may be improved accordingly. Therefore, the method according to the present invention will reliably detect layers with high accuracy in difficult flow scenarios.
[0068] In summary, the present invention relates to a method and system for estimating layers on electrodes in a pipeline. The pipeline contains an annular, circularly symmetrical multiphase pipe flow. The pipeline includes a set of electrodes evenly distributed along the inner circumference of the pipeline, which can be better used to measure the impedance in the pipeline. By measuring the impedance between each electrode and other electrodes, a set of impedance values can be obtained. The impedance values are classified according to the distance between the measured electrodes ( , , ), thus representing the range of layers from close to the pipe wall to the center of the pipe.
[0069] The method also includes providing a pre-computed model stored in a computer memory, the pre-computed model including a range of predicted impedance values in annular, circularly symmetric fluid flow based on fluid properties expected to be present in the conduit.
[0070] In a suitable computer program of the above-mentioned computer, the range of pre-calculated values is compared with the classified impedance values based on measurements in annular circular symmetric flow and from this comparison the impedance of said layer or layers L on said electrode is found, in combination with the impedance measured during the selected time period The average impedance is placed within a pre-calculated impedance range of possible impedance values in the fluid flow. The offset value k between the measured value and the allowed expected value is calculated as described above.
[0071] As shown, the number of electrodes may be six and the number of categories of impedance values representing flow may be three, but other numbers of electrodes may be considered, ie, more layers may be provided.
[0072] The measurement, comparison and calculation of the offset values are preferably repeated in a time series, assuming that the layer changes more slowly than the flow, thereby increasing the accuracy of the calculated impedance of the layer.
[0073] The measurements are averaged in at least one time series over a selected period of time, preferably more than 2 seconds for multiphase flows, to balance turbulent and chaotic states.
[0074] The method includes finding the layer impedance within a range between an upper limit and a lower limit, calculating the upper and lower limits of the electrode layer impedance, and finding an estimate of the layer impedance from the upper and lower limits. It may also include calculating the layer impedance from the maximum value of the lower limit set and the minimum value of the upper limit set. The average value between them provides an estimate of the layer impedance.
Claims
1. A method for estimating the impedance (Li, Lj) of an electrode layer in a multiphase pipeline flow, wherein the pipeline comprises a set of electrodes (i, j) uniformly distributed along the inner circumference of the pipeline, the method comprising the steps of measuring the impedance between each electrode and the other electrodes, and obtaining a set of impedance values , the flow is on average circularly symmetric and annular, The method further utilizes a pre-computed model stored in a computer memory to define a solution space of expected impedance values. ,in, The solution space of the expected impedance value The conductivity σ of depends only on r and grows with r, which is the radius from the center of the flow, and is characterized by: ,(Equation 2) k, is a variable and impedance Classification is performed by measuring the distance (i, j) between electrodes to reduce the number of unknowns in Equation 2; The method further comprises the following steps: Find the impedance of the layer on the electrode (Li, Lj), and add different k to the layer impedance (Li, Lj) so that the impedance layer (Li, Lj) is the average of the measured impedance in the selected period Combined, the resulting average impedance Placed in the precomputed solution space within the boundaries, representing the expected range of impedance values, wherein the impedance of the layer on the electrode (Li, Lj) is found to be within the range between the upper and lower limits; the upper and lower limits of the electrode layer impedance are calculated, and an estimate of the layer impedance is found from these upper and lower limits.
2. The method according to claim 1, characterized in that , the number of electrodes is 6, and the number of impedance value categories in the flow is 3.
3. The method according to claim 1, characterized in that , The measurement, comparison and calculation of the offset values are repeated in a time series, assuming that the layer changes more slowly than the flow, thereby increasing the accuracy of the calculated impedance of the layer.
4. The method according to claim 1, characterized in that , the measurements are averaged over a number of selected time series.
5. The method according to claim 4, characterized in that , the averaging should be performed for at least 2 seconds.
6. The method according to claim 1, characterized in that: This involves calculating the layer impedance by the maximum value of the lower set and the minimum value of the upper set, with the average value therebetween providing an estimate of the layer impedance.
7. A system for estimating the impedance (Li, Lj) of the upper layer of an electrode in a circularly symmetric and annular multiphase pipeline flow, comprising: The pipeline includes a set of electrodes (I, j) evenly distributed along the inner circumference of the pipeline, and the electrodes are connected to a measuring instrument for measuring the impedance between each electrode and other electrodes, thereby obtaining a set of impedance values , the flow is on average circularly symmetric and annular, the system also includes a computer having a computer memory, including a solution space for specifying the expected impedance value The solution space of the expected impedance value is The conductivity σ of depends only on r and grows with r, where r is the radius from the center of the flow, and is characterized by: ,(Equation 2) k, is a variable and impedance The distance (i, j) between the electrodes is measured for classification to reduce the number of unknowns in equation 2; the system further acts to find the impedance (Li, Lj) of the layer on the electrode, and to add different k to the layer impedance (Li, Lj) so that the impedance (Li, Lj) of the layer is equal to the average value of the measured impedance within the selected period. Combined, the resulting average impedance Placed in the precomputed solution space within the boundaries, representing the expected range of impedance values; wherein the impedance of the layer on the electrode (Li, Lj) is found to be within the range between the upper and lower limits; the upper and lower limits of the electrode layer impedance are calculated, and an estimate of the layer impedance is found from these upper and lower limits.
8. The system according to claim 7, characterized in that The number of electrodes is 6, and the number of impedance value categories in the flow is 3.
9. The system according to claim 7, characterized in that: The meter is adapted to perform repeated measurements, comparisons and calculations of offset values in a time series, assuming that the layer changes more slowly than the flow, thereby increasing the accuracy of the calculated impedance of the layer.
10. The system according to claim 7, characterized in that The measuring instrument is adapted to average the measurements over a plurality of selected time series.
11. The system according to claim 10, characterized in that The averaging takes at least 2 seconds.
12. The system according to claim 7, characterized in that The impedance of the layer on the electrode is found to be within a range between an upper limit and a lower limit.
13. The system according to claim 12, characterized in that , involves calculating upper and lower bounds on the electrode layer impedance and finding an estimate of the layer impedance from these upper and lower bounds.
14. The system according to claim 13, characterized in that , involves calculating the layer impedance by the maximum of the lower set and the minimum of the upper set, the average between which provides an estimate of the layer impedance.
