Embodiment
Utilize electrical capacitance tomography can measure the characteristic parameter of the two-phase fluid of forming by medium with differing dielectric constant.For two-phase fluid with differing dielectric constant, when the space distribution of each phase component or concentration (containing rate) when changing, will cause that the specific inductive capacity of two-phase fluid on tube section distributes to change, thereby make potential electrode to electric capacity change.Adopt capacitive array sensor,, measure these capacitance changes, just can reflect the concentration of two-phase fluid and the phase distribution situation on tube section by combination mutually between each electrode.Measured value with these capacitance changes is a data for projection, adopts suitable image reconstruction algorithm, just can reconstruct flow through phase distributed image on the cross-section of pipeline of a certain moment two-phase fluid, realizes the visual of flow pattern.By technology such as Flame Image Process reconstructed image is further analyzed, can be drawn the differentiation result of flow pattern and the voidage of two-phase fluid.
Image reconstruction is the core link of capacitance tomography system, its essence is to find the solution following image reconstruction model:
P=WF
Wherein, P=[p
1, p
2..., p
N]
TFor measuring electric capacity data for projection vector, its element p
iMeasurement capacitance and the sensitivity profile thereof of value after by normalized determined.
In the formula, Cr
iNormalized capacitance, computing method are:
C
iBe fluid-mixing measurement capacitance, C
OiMeasurement capacitance when being full of gas phase in the pipe, C
MiMeasurement capacitance when being full of oil phase in the pipe.S
i(x y) is i the sensitivity profile function that potential electrode is right, and the value of this function on each pixel obtains by the finite element analysis of electromagnetic field.W is the weight coefficient matrix, its element w
Ij, i=1,2 ..., N, j=1,2 ..., M is determined by the sensitivity on j pixel of i measurement electric capacity and the area of this pixel.F=[f
1, f
2..., f
M]
TFor waiting to ask the gradation of image vector, element f wherein
i∈ [0,1], the medium on 0 this pixel of expression is a gas phase, the medium on 1 this pixel of expression is an oil phase.N represents the measurement data number, and the M presentation video is rebuild the pixel subdivision number of field domain.
Image reconstruction algorithm choose real-time and picture quality important influence to image reconstruction, according to the different requirements to image reconstruction speed and quality of various application scenarios, can adopt different image reconstruction algorithms.
As shown in Figure 1, at the characteristics and the application requirements of flow pattern, flow pattern shows the monitoring that is mainly used in the two-phase flow industrial system, and the image that is used for the flow pattern demonstration thus need adopt back projection's image reconstruction algorithm (LBP) of simple and fast.Flow pattern is recognized as a qualitative parameter measurement, therefore still adopts back projection's image reconstruction algorithm, through Flame Image Process, utilizes the Fuzzy Pattern Recognition technology to carry out the flow pattern identification.And voidage is a quantitative parameter, reconstructed image quality is high more, be of value to the raising measuring accuracy more, so adopt combined novel image reconstruction algorithm to reconstruct the higher dielectric distribution image of quality based on Tikhonov regularization and algebraic reconstruction technique (ART), utilize image processing techniques computed image gray scale again, thereby obtain the voidage of oil-gas two-phase flow.
Shown in Fig. 4 a, in the image reconstruction process of flow pattern demonstration and flow pattern identification, adopt the finite element triangulation that the image reconstruction field domain is split into 54 pixels, adopt backprojection algorithm to carry out image reconstruction.After reconstruction is finished, corresponding for making the dielectric distribution image with digital picture, through interpolation, technical finesse such as level and smooth, image transitions become 32 * 32 grid plan image distribute with the two-phase fluid that characterizes on the tube section.Simultaneously, choose one group of pixel on vertical diameter of all cross-sectional images in 3 seconds, show successively, can be characterized in the dielectric distribution image on the longshore current body flow direction in this time period.
The characteristics of backprojection algorithm are that calculated amount is less, and speed is fast, and the image that reconstructs also can satisfy the application requirements of online demonstration of flow pattern and qualitative flow pattern identification, and its computing formula is shown below:
In the formula, Cr
iNormalized capacitance.
According to the two-phase flow dielectric distribution image of rebuilding, adopt fuzzy pattern recognition method to carry out the flow pattern identification, its way of thinking is described below:
1. define domain U={A
1, A
2, A
3, A wherein
1={ homogeneous flow }, A
2=(laminar flow }, A
3={ annular flow }.As shown in Figure 2, typical flow pattern comprises in the moving system of oil-gas two-phase flow: be full of in laminar flow, annular flow, wave flow, slug flow, bubble flow and the pipe and be full of gas phase (being defined as blank pipe) in oil phase (being defined as full packages) and the pipe.Bubble flow, full packages and blank pipe can be summed up as homogeneous flow; Wave flow can be thought to be made up of the laminar flow of different floor heights; Slug flow can be thought to be made up of homogeneous flow and laminar flow.Therefore set three mode standard A
1={ homogeneous flow }, A
2={ laminar flow }, A
3={ annular flow }.
2. define the characteristic quantity X={x} relevant with U, randomness and fuzzy behaviour according to flow pattern, and consider the characteristic distributions of medium on pipeline section under the typical flow patterns such as homogeneous flow, laminar flow, annular flow, following three statistical natures of the dielectric distribution image of rebuilding are differentiated variable as Fuzzy: the average gray value x of (1) entire image
1(2) be positioned at the average gray of 27 pixels of first pipeline and the absolute value x of the difference of the average gray that is positioned at 27 pixels of second pipeline
2(3) near the average gray of 30 pixels of tube wall one circle and the absolute value x of the difference of the average gray that is positioned at 24 pixels of tube hub
3
3. choosing normal state Fuzzy distribution function is the version of membership function, and then flow pattern is differentiated multifactor Fuzzy Pattern Recognition problem of the question resolves itself into.At this moment, each mode standard and three corresponding membership function collection of Fuzzy characteristic quantity are:
Parameter beta wherein
Ij, σ
IjSet by artificial experience; I=1,2,3; J=1,2,3.Obtain to be used for the parameter beta of flow pattern identification by a large amount of experimental studies
Ij, σ
IjAs follows:
Pattern μ to be identified is with respect to mode standard A
1, A
2, A
3Membership function be:
M wherein
mBe called comprehensive function, its implication is that comprehensive three Fuzzy features provide an overall evaluation.Get comprehensive function M
mBe the form of mapping ∑, pattern then to be identified is with respect to A
1, A
2, A
3Degree of membership be respectively:
4. differentiate variable according to Fuzzy and obtain degree of membership value μ
A1, μ
A2, μ
A3, and differentiate current which kind of flow pattern of tube section characterization image according to the maximum membership degree criterion.
Fig. 5 shows flow pattern identification block diagram, and the flow process and the step of concrete flow pattern identification are as follows:
(1) gathers capacitance,, have 66 independent measurement capacitances for 12 electrode capacitance chromatographic imaging systems;
(2) image reconstruction obtains each grey scale pixel value of cross section;
(3) calculate three statistical characteristics x according to the reconstructed image grey scale pixel value
1, x
2, x
3
(4) utilize fuzzy pattern recognition method to carry out pattern-recognition and try to achieve three degree of membership value μ
A1, μ
A2, μ
A3
(5) differentiate flow pattern according to the maximum membership degree criterion, if μ
A1Maximum then is a homogeneous flow, if μ
A2Maximum then is a laminar flow.If μ
A3Maximum then is an annular flow.Annular flow, laminar flow just can obtain by an identification.
(6) if identification result is a homogeneous flow, can be full packages, blank pipe or bubble flow according to the current two-phase flow of the further identification of tube section liquid phase content.If the gray scale of image is then thought full packages near 1 (greater than 0.98); If gradation of image is then thought blank pipe near 0 (less than 0.02); If gradation of image between 0.02 and 0.98, is then thought bubble flow.
(7) wave flow can be thought to be made up of the laminar flow of different floor heights, is under the prerequisite of laminar flow differentiating the result therefore, and the fluctuation of analysis image gray scale if fluctuation reaches certain amplitude, is then thought wave flow.
(8) slug flow can be thought to be made up of laminar flow and homogeneous flow, therefore needs just whether the current flow pattern of further identification is slug flow when identification result is laminar flow or homogeneous flow (blank pipe, full packages, bubble flow).Its strategy is to investigate the flow pattern of this identification and the result of preceding identification several times, if laminar flow alternately occurs with homogeneous flow and certain time interval is arranged (because operating mode is different, slug length is different, so the time interval that is provided with decides according to operating mode), think that then current flow pattern is a slug flow, otherwise keep original flow pattern identification result.Be the demonstration of flow pattern identification result at last and return and carry out flow pattern identification next time.
The experiment that flow pattern shows shows that these capacitance tomography system flow pattern speed of displaying 50 frames/more than second, the image of demonstration conforms to the image of reality.Fig. 3 a~e has provided typical flow pattern in one group of horizontal tube that this gas-liquid two-phase flow measuring apparatus shows.The on-line automatic identification of flow pattern experiment shows that for homogeneous flow, laminar flow, wave flow and annular flow equal flow type, the accuracy rate of its identification is higher than 95%, differentiates the used time of flow pattern less than 0.3 second, is higher than 90% for the identification accuracy rate of slug flow; According to the clock in the computing machine, can calculate the time span (time that continuous homogeneous flow is continued) of slug.
Voidage is a quantization parameter, simple backprojection algorithm can not meet the demands, therefore native system is when measuring voidage, adopted combined novel image reconstruction algorithm, the ill-posedness that this algorithm runs into when utilizing the Tikhonov regularization to overcome the inverse problem of finding the solution the image reconstruction model is also obtained the initial pictures gray-scale value, on the basis of this initial pictures, further use algebraic reconstruction technique and carry out iterative modification, obtain high-quality reconstructed image, obtain the voidage of oil-gas two-phase flow by the computed image gray scale.
Fig. 6 shows this combined image reconstruction algorithm.This algorithm carries out in two steps: the first step, image reconstruction field domain are split into 54 pixels (shown in Fig. 4 a), adopt the Tikhonov regularization to find the solution the gray-scale value of initial cross-section image; Second step was split into 216 pixels (shown in Fig. 4 b) with the image reconstruction field domain, was iterative initial value with the gray-scale value of initial pictures, used the ART algorithm and carried out iterative modification and obtain high-quality dielectric distribution image to reconstruct.
In the image reconstruction of the first step, data for projection (measurement capacitance) has 66, with the finite element triangulation tube section is split into 54 pixels, and image reconstruction is to carry out under the complete situation of data.Because being a discomfort, the image reconstruction problem of capacitance chromatography imaging decides inverse problem.Ill-posedness mainly shows as the instability of separating, and promptly the subtle change of measurement data can cause the very great fluctuation process separated.Therefore the method that overcomes the ill-posedness of ill-posed problem is regularization, adopts the Tikhonov regularization, can overcome ill-posed problem in the image reconstruction by structure regularization generalized inverse image reconstruction algorithm, obtains the gray-scale value of initial cross-section image.Introduce regularization parameter λ>0, finding the solution of image reconstruction model can be summed up as following optimization problem:
Definition auxiliary function J (F):
J(F)=‖WF-P‖
2+λ‖F‖
2→min
By
Thereby minimization J can get the regular solution of image reconstruction model through deriving, i.e. the gray scale of initial cross-section image vector estimated value
λ is rule of thumb default, and general value is about 0.1.
Carry out the second step image reconstruction on this basis, tube section is segmented, be split into 216 pixels,, adopt the ART image reconstruction algorithm, to obtain high-quality image with the gray-scale value of 54 pixels initial value as iteration.
The main iterative formula of ART algorithm is:
Wherein
In iterative process, introduce
Priori, the iteration result is carried out filtering:
Reconstructed image is for further processing, can calculate the voidage of gas-liquid two-phase fluid because the gray-scale value of each pixel of image of rebuilding is corresponding to liquid phase content in this pixel region,, can gets voidage α and be then according to the final image that obtains:
In the formula: A
jBe the area of j pixel, A is the area of section of measuring channel.
With diesel oil and air is that medium has carried out the voidage experiments of measuring, and the static demarcating experimental result shows, the measuring error of voidage can be less than 5% (annotate: the dynamic calibrating method of tight rate still at present, can only carry out static demarcating to it).One group of typical voidage measurement result as shown in Figure 7, horizontal ordinate is the voidage setting value among the figure, the voidage value of ordinate for adopting capacitance tomography system to measure.The real-time that the voidage value is measured is also relatively good, measures to obtain the required time of voidage value less than 0.1 second.
The hardware of measuring system is formed as Fig. 8, shown in Figure 9, device has capacitive array sensor 1 successively, capacitance data collecting unit 2 and the computing machine 3 that is used for image reconstruction, data processing and demonstration, said capacitive array sensor has the insulation tube 4 of joint flange 5 as the sensing pipeline section with two ends, sensing pipeline section outboard shafts is to evenly being pasted with copper foil electrode 9 arrays, the sensing pipeline section outside is provided with fixed support 6, radome 7, radial electrode 8, is provided with electric capacity/voltage transformation module 10 on radial electrode 8.
The material that the sensing pipeline section adopts is the long 500~1000mm of polyethylene pipe (PE pipe), and the tubing specification is PE63, SDR11, nominal diameter 25mm~160mm, nominal pressure 1.0~2.0MPa.Shell is a radome, is made up of semi-circular two stainless steel substrates, and respectively there are 2 screw perforates at two ends, can be fixed on the support.Electrode slice is 12, evenly sticks on the outer wall of sensing pipeline section.The material that electrode adopted is a copper sheet, and the electrode subtended angle is 26 °, and electrode slice length is 1.2 times of internal diameter of the pipeline.Be provided with radial electrode between the electrode, electric capacity/voltage transformation module is installed on the radial electrode, has 12 modules, and each electrode pair is answered a module.
Figure 10 shows electric capacity/voltage module to carry out Small Capacitance Measuring Circuit and measures sequential.V
iBe the excitation voltage source that discharges and recharges, amplifier U
1, capacitor C
fAnd switch S
1Constitute charge amplifier; Switch S
2And S
3, amplifier U
2And U
3Constitute two sampling holders (S/H); U
4Be instrument amplifier.The course of work of circuit was divided into for two steps.The first step is measuring switch S
1The electric charge injection effect: before circuit is started working, V
iVoltage is high, switch S
1Closure, two sampling holders all are in sampling pattern.Because S
1Closure, U
1Be output as 0V.At t
1Constantly with S
1Disconnect, in the ideal case, V
1To remain 0V, but because switch S
1The electric charge injection effect, charge Q is arranged
cBe injected into C
f, cause V
1Be pulled low to V
LAt t
2Constantly, U
1Output tend towards stability, with S
3Disconnection makes sampling holder U
3Enter the maintenance pattern, then U
1Output valve by sampling holder U
3Keep, i.e. U
3Output V
3Equal V
LThe 2nd step was to measure the C that driving source causes
xIn the charge variation amount: at t
3Constantly, driving source V
iProduce saltus step from high to low, hopping amplitude is Δ V, then obtains induced charge to be on potential electrode:
Q=-ΔV
iC
x
U
1Be output as:
At t
4Constantly, S
2Disconnection makes sampling holder U
2Enter the maintenance pattern, i.e. U
2Output V
2Equal V
HWith sampling holder U
2Output V
HWith sampling holder U
3Output V
LAs instrument amplifier U
4Input, then instrument amplifier is output as:
This value is proportional with measured capacitance, can characterize the size of measured capacitance.
Shown in Figure 11 is the block scheme of capacitance data acquisition module, in a measuring period, at first be that microprocessor sends channel control signals, be used to control that a certain electrode is in foment and remaining electrode is in detected state, its excitation with testing mechanism is: select electrode 1 to be exciting electrode, electrode 2~electrode 12 is a detecting electrode, potential electrode 1 and electrode 2 successively, electrode 1 and electrode 3 ..., the capacitance between electrode 1 and the electrode 12; Select electrode 2 to be exciting electrode then, electrode 3~electrode 12 be a detecting electrode, potential electrode 2 and electrode 3 successively, and electrode 2 and electrode 4 ..., the capacitance between electrode 2 and the electrode 12; By that analogy, the capacitance between last potential electrode 11 and the electrode 12 is finished one-shot measurement.The capacitance that sensor is measured is converted to magnitude of voltage after C/V module (electric capacity/voltage transformation module), the pairing magnitude of voltage of electric capacity (these values obtain in system initialization and are stored in the microprocessor) when cutting blank pipe, obtain characterizing the voltage increment of capacitance change in the pipeline, again after programmable-gain amplifier (its gain is disposed by microprocessor according to different electrode pairs) amplifies signal, give A/D converter and carry out analog to digital conversion, be sent to the computing machine of image reconstruction and flow pattern demonstration again by microprocessor through communication unit.By communication unit, instrument can adopt RS-232 or RS-485 and computing machine to carry out communication.If adopt RS-232 to carry out communication, the serial port of instrument and computing machine need be coupled together, the transmission range under this mode is 15 meters, maximum data transfer rate is 115.2KBps.If adopt RS-485 to carry out communication, require computing machine to be furnished with the RS-232/RS-485 converter, the transmission range under this mode is 1200 meters, maximum data transfer rate is 921.6KBps.
Computing machine based on image reconstruction, data processing and the demonstration of the oil-gas two-phase flow measurement mechanism of 12 electrode capacitance chromatographic imaging systems adopts the PC-104 bus computer, its processor is Pentium MMX300MHz, internal memory 128MByte, the mainboard model is PCM3350, and display adopts 9 inches TFT display screen.