CN103197692B - A kind of flow control methods, Apparatus and system - Google Patents

A kind of flow control methods, Apparatus and system Download PDF

Info

Publication number
CN103197692B
CN103197692B CN201310125813.9A CN201310125813A CN103197692B CN 103197692 B CN103197692 B CN 103197692B CN 201310125813 A CN201310125813 A CN 201310125813A CN 103197692 B CN103197692 B CN 103197692B
Authority
CN
China
Prior art keywords
liquid
gas flow
parameter
controling parameters
group data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201310125813.9A
Other languages
Chinese (zh)
Other versions
CN103197692A (en
Inventor
张元华
谈建功
王文为
李振刚
许文菊
王巧鸾
黄鑫
康凯
董京帅
展杰
刘文奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Laiwu Iron and Steel Group Co Ltd
Original Assignee
Laiwu Iron and Steel Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Laiwu Iron and Steel Group Co Ltd filed Critical Laiwu Iron and Steel Group Co Ltd
Priority to CN201310125813.9A priority Critical patent/CN103197692B/en
Publication of CN103197692A publication Critical patent/CN103197692A/en
Application granted granted Critical
Publication of CN103197692B publication Critical patent/CN103197692B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of flow control methods, Apparatus and system, its core concept is based on liquid or the flow of gas and the data group of controling parameters composition, utilize least square method to carry out computing and obtain two parameters, obtain the linear relationship corresponding to the flow of liquid or gas and controling parameters by described two parameters.And according to liquid or gas flow with the linear relationship of the correspondence of controling parameters, just can obtain corresponding controling parameters according to the flow of liquid or gas.Thus pid control mode or other control modes need not be adopted to explore the size of controling parameters, thus can not the over-control that produces of pid control mode.The present invention can liquid with precise control or gas flow, realize stable, in real time, flow control reliably, meet the expection of technological requirement and enterprise.

Description

A kind of flow control methods, Apparatus and system
Technical field
The invention belongs to automatic field, particularly a kind of flow control methods, Apparatus and system.
Background technology
In the system for liquid and air supply system of metallurgy industry, along with technique promotes and the raising of automatic controlling level, to for liquid with the control accuracy of gas supply flow and requirement of real-time more and more stricter, but due to the reason such as layout of equipment itself (inherent characteristic such as dead band as variable frequency pump and valve body for liquid) and process pipeline, determine system and air supply system be for liquid one non-linear and there is the system of large time delay.How under such large time delay, nonlinear operating mode, realize stable, real-time, flow control reliably? people are to the research and practice that this has been various control strategy, and comparatively advanced, adopt most often proportional-integral-differential (ProportionIntegrationDifferentiation, PID) control mode.
In production application, pid control mode achieves rapid adjustment, but pid control mode but cannot meet not only quick but also stable adjustment in this Large-lag System simultaneously, particularly when operating mode is changeable, often there is the phenomenon of overshoot, thus generation is significantly vibrated, and makes control effects obviously reduce.
Such as: in actual applications, pid control mode is adopted to control liquid or gas flow, if now need flow value to be liquid or the gas of X, then flow value X is the desired value in pid control mode, when adopting pid control mode to control, regulates according to when the flow value of liquid or gas in preceding pipeline, if less than desired value flow X, so will increase the output quantity of liquid or gas, namely increase the valve position opening degree controlling liquid or gas flow, or choose variable frequency pump frequency; If output quantity is still little than desired value flow X, then continue to increase valve position opening degree, or choose variable frequency pump frequency, after output quantity meets desired value X, just stop increasing valve position opening degree or choosing variable frequency pump frequency, then the variable adopting current valve position opening degree or variable frequency pump frequency control liquid or gas is continued, but due to the hysteresis quality of system, under current valve position opening degree or variable frequency pump frequency, the output quantity of liquid or gas can continue to choose large, the phenomenon causing liquid or gas flow values to be greater than desired value occurring overshoot.
If larger than desired value, carry out at use pid control mode the phenomenon that also there will be overshoot in the process controlled.
Due in prior art when needing flow value to be liquid or the gas of X, do not know valve position opening degree, or variable frequency pump frequency just should can reach required flow value for how many, therefore pid control mode is used to control, so that enable valve position opening degree or variable frequency pump frequency produce liquid or gas that required flow value is X, but because pid control mode itself has the defect of certain hysteresis quality, in addition the system for liquid of metallurgy industry and the value of feedback of air supply system also have larger hysteresis quality, when therefore adopting pid control mode to control liquid or gas flow, often occur that output quantity exceeds the over-control of desired value, cause control effects not good, and also result in unnecessary waste, the expection of this and technological requirement and enterprise is not inconsistent.
Therefore how to adopt a kind of new flow control mode, under the operating mode of such large time delay, realizing stable, real-time, reliable flow control becomes present stage urgent problem.
Summary of the invention
Given this, the present invention proposes a kind of flow control methods, Apparatus and system, for liquid with precise control or gas flow, realize stable, real-time, flow control reliably, meet the expection of technological requirement and enterprise.
A kind of flow control methods, comprising:
The N group data (X preset is obtained according to least square method 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) corresponding to the parameter a of linear equation and parameter b;
Wherein, described default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in X be liquid or gas flow, Y is the controling parameters controlling described liquid or gas flow X, and wherein i is natural number and 2<i<N, N are natural number and N>=4;
Wherein, the computing formula of parameter a described in least square method formula is: the computing formula of parameter b described in least square method formula is: wherein, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of liquid or gas flow X, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of controling parameters Y;
Linear equation Y=aX+b is built by described parameter a and described parameter b;
Liquid needed for acquisition or gas flow X1;
According to described linear equation Y=aX+b, obtain the controling parameters Y1 of the described liquid corresponding with described liquid or gas flow X1 or gas flow.
A kind of flow control methods, comprising:
Obtain the N group data (X preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), at the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1M, or at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4;
According to X 11, X 12x 1jx 1Mor Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4;
Obtain and M+2 group data (X according to least square method formula 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1i, Y 1i) ... (X 1j, Y 1j), (X 2, Y 2) corresponding to the parameter a of linear equation 1with parameter b 1;
Wherein, parameter a described in least square method formula 1computing formula be:
a 1 = ( X 1 Y 1 + &Sigma; j = 1 M X 1 j Y 1 j + X 2 Y 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) Y &OverBar; ( X 1 2 + &Sigma; j = 1 M X 1 j 2 + X 2 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) X &OverBar; , Parameter b described in least square method formula 1computing formula be: wherein, for M+2 group data group (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1i, Y 1i) ... (X 1j, Y 1j), (X 2, Y 2) in the mean value of liquid or gas flow X, for M+2 group data (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of controling parameters Y;
According to described parameter a 1with described parameter b 1build linear equation Y=a 1x+b 1;
By the method obtaining linear equation in first is interval, respectively at the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) middle acquisition linear equation Y=a 2x+b 2y=a kx+b ky=a n-1x+b n-1, wherein k is natural number and 2<k<N-1, N are natural number and N>=4;
Liquid needed for acquisition or gas flow X2;
Judge liquid or the interval of the kth belonging to gas flow X2;
Linear equation Y=a is obtained according to described kth interval kx+b k;
According to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow.
A kind of volume control device, comprising:
Parameter calculation unit, for obtaining the N group data (X preset according to least square method 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) corresponding to the parameter a of linear equation and parameter b, wherein, described default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in X be liquid or gas flow, Y is the controling parameters controlling described liquid or gas flow X, and wherein i is natural number and 2<i<N, N are natural number and N>=4, wherein, the computing formula of parameter a described in least square method formula is: the computing formula of parameter b described in least square method formula is: wherein, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of liquid or gas flow X, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of controling parameters Y;
First equation acquiring unit, for building linear equation Y=aX+b by described parameter a and described parameter b;
First acquiring unit, for obtaining required liquid or gas flow X1, according to described linear equation Y=aX+b, obtains the controling parameters Y1 of the described liquid corresponding with described liquid or gas flow X1 or gas flow.
A kind of volume control device, comprising:
Choose unit, for obtaining default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), at the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1Mx 1M, or at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4;
Second acquisition unit, for foundation X 11, X 12x 1jx 1Mor Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4;
Second equation acquiring unit, for obtaining and M+2 group data (X according to least square method formula 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) corresponding to the parameter a of linear equation 1with parameter b 1, wherein, parameter a described in least square method formula 1computing formula be:
a 1 = ( X 1 Y 1 + &Sigma; j = 1 M X 1 j Y 1 j + X 2 Y 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) Y &OverBar; ( X 1 2 + &Sigma; j = 1 M X 1 j 2 + X 2 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) X &OverBar; , Parameter b described in least square method formula 1computing formula be: wherein, for M+2 group data group (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of liquid or gas flow X, for M+2 group data (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of controling parameters Y, according to described parameter a 1with described parameter b 1build linear equation Y=a 1x+b 1, by the method obtaining linear equation in first is interval, respectively at the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) middle acquisition linear equation Y=a 2x+b 2y=a kx+b ky=a n-1x+b n-1, wherein k is natural number and 2<k<N-1, N are natural number and N>=4;
Third party's journey acquiring unit, for obtaining required liquid or gas flow X2, judging liquid or the interval of the kth belonging to gas flow X2, obtaining linear equation Y=a according to described kth interval kx+b k;
3rd acquiring unit, for according to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow.
A kind of flow control system, comprising:
First processor, for obtaining the N group data (X preset according to least square method 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) corresponding to the parameter a of linear equation and parameter b, wherein, described default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in X be liquid or gas flow, Y is the controling parameters controlling described liquid or gas flow X, and wherein i is natural number and 2<i<N, N are natural number and N>=4, wherein, the computing formula of parameter a described in least square method formula is: the computing formula of parameter b described in least square method formula is: wherein, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of liquid or gas flow X, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of controling parameters Y;
First controller, for building linear equation Y=aX+b by described parameter a and described parameter b, liquid needed for acquisition or gas flow X1, according to described linear equation Y=aX+b, obtain the controling parameters Y1 of the described liquid corresponding with described liquid or gas flow X1 or gas flow;
First equipment to be controlled, for being connected with described first controller, receives the controling parameters Y1 of described liquid or gas flow, and performs corresponding operating according to described controling parameters Y1.
A kind of flow control system, comprising:
Second processor, for obtaining default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), at the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1Mor at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4, according to X 11, X 12x 1jx 1Mor Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4, obtains and M+2 group data (X according to least square method formula 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) corresponding to the parameter a of linear equation 1with parameter b 1, wherein, parameter a described in least square method formula 1computing formula be:
a 1 = ( X 1 Y 1 + &Sigma; j = 1 M X 1 j Y 1 j + X 2 Y 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) Y &OverBar; ( X 1 2 + &Sigma; j = 1 M X 1 j 2 + X 2 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) X &OverBar; , Parameter b described in least square method formula 1computing formula be: wherein, for M+2 group data group (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of liquid or gas flow X, for M+2 group data (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of controling parameters Y, according to described parameter a 1with described parameter b 1build linear equation Y=a 1x+b 1, by the method obtaining linear equation in first is interval, respectively at the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) middle acquisition linear equation Y=a 2x+b 2y=a kx+b ky=a n-1x+b n-1, wherein k is natural number and 2<k<N-1, N are natural number and N>=4;
Second controller, for obtaining required liquid or gas flow X2, judging liquid or the interval of the kth belonging to gas flow X2, obtaining linear equation Y=a according to described kth interval kx+b k, according to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow;
Second equipment to be controlled, for being connected with described second controller, receives the controling parameters Y2 of described liquid or gas flow, and performs corresponding operating according to described controling parameters Y2.
The invention provides two kinds of flow control methods, its core concept is all based on the liquid preset or the flow of gas and the data group of controling parameters composition, utilize least square method to carry out computing and obtain two parameters, obtain the linear relationship between the flow of liquid or gas and controling parameters by described two parameters.And according to liquid or gas flow and linear relationship between controling parameters, obtain the value of the controling parameters corresponding with the value of the flow of required liquid or gas.Thus pid control mode or other control modes need not be adopted to go to explore the size of controling parameters, and then PID control over-control can not be produced, thus realize stable, flow control reliably, meet the expection of technological requirement and enterprise.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of Fig. 1 flow control methods disclosed in the embodiment of the present invention;
The structural representation of PLC in Fig. 2 flow control methods disclosed in the embodiment of the present invention;
The process flow diagram of Fig. 3 another flow control methods disclosed in the embodiment of the present invention;
Fig. 4 is flow control methods linear equation schematic diagram disclosed in the embodiment of the present invention;
Fig. 5 is another flow control methods disclosed in the embodiment of the present invention;
Fig. 6 is another flow control methods disclosed in the embodiment of the present invention;
Fig. 7 is flow control methods linear equation schematic diagram disclosed in the embodiment of the present invention;
The structural representation of Fig. 8 volume control device disclosed in the embodiment of the present invention;
The structural representation of Fig. 9 another volume control device disclosed in the embodiment of the present invention;
The structural representation of Figure 10 flow control system disclosed in the embodiment of the present invention;
The structural representation of Figure 11 another flow control system disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Reader before introducing the present invention in detail, introduces least square method in detail, so that can better understand implementation procedure of the present invention.
Least square method (also known as least square method) is a kind of mathematical optimization techniques.It finds the optimal function coupling of data by the quadratic sum of minimum error.Utilize least square method can try to achieve unknown data easily, and between the data that these are tried to achieve and real data, the quadratic sum of error is minimum.
When we study the mutual relationship between Two Variables (X, Y), a series of paired data (X usually can be obtained 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X m, Y m); These data be depicted in X-Y rectangular coordinate system, if find, these points are near straight line, can make this straight-line equation as (formula 1-1).
Yj=aX+b ... (formula 1-1)
Wherein: a, b are any real numbers, and Yj is calculated value.
Will determine parameter a and parameter b for setting up this straight-line equation, application " principle of least square method ", by the quadratic sum [(Yi – Yj) of the deviation (Yi-Yj) of measured value Yi and theoretical value Yj 2] minimum be " optimized criterion ".
Order: (formula 1-2)
(formula 1-1) is substituted in (formula 1-2) and obtains:
(formula 1-3)
When ∑ (Yi-Yj) is square minimum, available functions partial derivative is asked to a, b, makes these two partial derivatives equal zero.
Mb+ (∑ Xi) a=∑ Yi ... (formula 1-4)
(∑ Xi) b+ (∑ Xi 2) a=∑ (Xi, Yi) ... (formula 1-5)
Two that obtain is two system of equations of unknown number about a, b, separates these two system of equations and draws:
B=(∑ Yi)/m-a (∑ Xi)/m ... (formula 1-6)
A=[m ∑ XiYi-(∑ Xi ∑ Yi)]/[m ∑ Xi 2-(∑ Xi) 2)] ... (formula 1-7)
That is:
b = y &OverBar; - l x &OverBar; (formula 1-8)
a = ( &Sigma; x y ) - ( &Sigma; x ) y &OverBar; ( &Sigma;x 2 ) - ( &Sigma; x ) x &OverBar; (formula 1-9)
At this moment a, b are substituted in (formula 1-1), (formula 1-1) is now exactly first linear equation that we return.
The invention provides two kinds of flow control methods, its core concept is all based on liquid or the flow of gas and the data group of controling parameters composition, utilize least square method to carry out computing and obtain two parameters, obtain the linear relationship between the flow of liquid or gas and controling parameters by described two parameters.And according to liquid or gas flow and linear relationship between controling parameters, just can obtain the value of controling parameters corresponding with it according to the value of the flow of required liquid or gas.Thus pid control mode or other control modes need not be adopted to go to explore the size of controling parameters, thus can not the over-control that produces of pid control mode.In the following embodiments, will be described in detail one by one.
As shown in Figure 1, the invention provides a kind of flow control methods, comprising:
Step 101: obtain the N group data (X preset according to least square method 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) corresponding to the parameter a of linear equation and parameter b; Namely least square method is adopted to get parms a and parameter b;
The N group data (X wherein preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) acquisition process comprise: according to liquid in actual conditions or gas flow X and the magnitude relationship of controling parameters Y controlling described liquid or gas flow X, obtain N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), wherein i is natural number and 2<i<N, N are natural number and N>=4;
Controling parameters Y comprises: valve position opening degree or variable frequency pump frequency, valve position and variable frequency pump are all the controllers controlling flow, choose when valve position opening degree increases delivery rate, reduce when valve position opening degree reduces delivery rate, in like manner, when variable frequency pump frequency selection purposes delivery rate is chosen, reduce when variable frequency pump frequency reduces delivery rate.
The relation of the controling parameters Y of liquid or gas flow X and the described liquid of control or gas flow X in foundation actual conditions, namely when valve position opening degree is determined, the relation of the liquid of actual measurement or gas output and valve position opening degree now, or, when variable frequency pump frequency is determined, the relation of the liquid of actual measurement or gas output and variable frequency pump frequency now.
For valve position opening degree: when actual measurement, according to the minimum value of valve position opening degree and the situation of maximal value, control valve position by valve positioner and reach an opening degree Y, after waiting for that liquid or gas flow are stablized, liquid under current opening degree or gas flow is read by transmitter, and record the reading X of now transmitter, and then obtain this group data (X, Y).
According to said method, the order increased progressively with valve position opening degree in principle increases valve position opening degree Y successively i, and according to valve position opening degree Y irecord the reading X of transmitter successively i, and then obtain N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), wherein i is natural number and 2<i<N, N are natural number and N>=4, is understandable that, the follow-up linear equation obtained of the larger the present invention of N more closing to reality.
Be understandable that, valve position opening degree in N group data can in being evenly distributed in the middle of valve position opening degree minimum value and maximal value, also can valve position opening degree higher limit according to actual needs and lower limit, in being evenly distributed in the middle of higher limit and lower limit, it is appreciated of course that, to make this curve can be suitable for overall liquid or gas flow to the threshold value opening degree value that is averaged, can't too concentrate due to value thus make the curve finally obtained produce larger error, uneven value can certainly be carried out as required to the valve position opening degree in N group data.Do not limit at this.
When control variable is variable frequency pump frequency, the method used is the same, according to variable frequency pump frequency Y iwith the X of liquid or gas under this frequency iflow, obtain N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), wherein i is natural number and 2<i<N, N are natural number and N>=4.
Wherein, the computing formula of parameter a described in least square method formula is: the computing formula of parameter b described in least square method formula is: wherein, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of liquid or gas flow X, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of controling parameters Y;
The formula of least square method mainly for the linear equation of Y=aX+b form, first according to N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) obtain the mean value X of liquid or gas flow X, according to N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) obtain the mean value of controling parameters Y then according to the formula of calculating parameter a in least square method by the value of N group data liquid or gas flow X and controling parameters Y, N group data obtain the mean value of liquid or gas flow X n group data obtain the mean value of controling parameters Y substitute in the formula of calculating parameter a, calculate the value of parameter a.
According to the formula of calculating parameter b in least square method formula by the value of parameter a, N group data obtain the mean value of liquid or gas flow X n group data obtain the mean value of controling parameters Y substitute in the formula of calculating parameter b, calculate the value of parameter b.
This parameter a and parameter b is a and b in thread equation Y=aX+b.
Step 102: build linear equation Y=aX+b by described parameter a and described parameter b; Namely linear equation is built by parameter a and parameter b.
Linear equation Y=aX+b can be obtained by the parameter a obtained in above-mentioned steps and parameter b.In working control, the present invention adopts programmable logic controller (PLC) (ProgrammableLogicController, the mode of PLC) programming realizes linear equation Y=aX+b by parameter a and parameter b, and realizes the process of input quantity X (liquid or gas flow X) to output quantity Y (controling parameters).
As shown in Figure 2, the present invention realizes the function of linear equation Y=aX+b by PLC, concrete, value above-mentioned steps being obtained parameter a inputs to pin a, the value of parameter b is inputed to pin b, liquid or gas flow are inputted by pin X, is then exported the value of control variable Y by pin Y.
Step 103: the liquid needed for acquisition or gas flow X1;
Liquid required for actual conditions or gas flow X1, if be understandable that, required liquid or gas flow X1 change according to certain rules, then obtain liquid or gas flow X1 by certain Changing Pattern, and the value of flow X1 is sent to the pin X input end of PLC.
Step 104: according to described linear equation Y=aX+b, obtains the controling parameters Y1 of the described liquid corresponding with described liquid or gas flow X1 or gas flow; Namely controling parameters Y1 is calculated by linear equation.
Present embodiments provide flow control methods, based on the N group data preset, utilize least square method to carry out computing and obtain two parameter a and b, build a linear equation by parameter a and b, i.e. the liquid of N group data or the linear relationship between the flow of gas and controling parameters.According to liquid or the linear relationship between gas flow and controling parameters, obtain the value Y1 of controling parameters corresponding with it according to the value X1 of the flow of required liquid or gas.Thus pid control mode or other control modes need not be adopted to go to explore the size of controling parameters, thus can not the over-control that produces of pid control mode, realize stable, in real time, flow control reliably, meet the expection of technological requirement and enterprise.
The concrete content of scene embodiment to above-described embodiment is adopted to be described in detail below.
As shown in Figure 3, the invention provides the scene embodiment of flow control methods, comprising:
Step S201: obtain eight groups of data groups under actual conditions;
Adopt the mode of opened loop control to take the value Y of liquid under actual conditions or gas flow X and control variable, the present embodiment is for electric control valve and liquid, and the present embodiment employing N=8 group data instance, according to a valve position opening degree Y i, then wait the reading X of fluid flow transmitter iafter stable, write down this group data, in principle, test with the order that valve position opening degree increases progressively, then obtain 8 groups of data (X i, Y i), as (1.1,1.5), (2.2,3.5), (3.3,4.2), (4.4,5.0), (5.5,5.8), (6.6,7.5), (7.7,8.0) and (8.8,9.0).
What the valve position opening degree in the N group data in the present embodiment adopted is in valve position opening degree minimum value and maximal value intermediate means value, make valve position opening degree and minimum value and maximal value in the form be evenly distributed, in the present embodiment, the be averaged advantage of value of valve position opening degree is the flow enabling this curve be suitable for overall liquid, can't too concentrate due to value thus make the curve finally obtained produce larger error, actual production is impacted.
It should be noted that, valve position opening degree Y and fluid flow X should be complete one-to-one relationship, i.e. Y=X but due to the relation of hardware in actual conditions, can not accomplish valve position opening degree and fluid flow X completely the same, above-mentioned eight groups of data, for what obtain according to a certain machine, are understandable that, these data are one group of general data, may obtain other data by other machines.
Step S202: adopt least square method calculating parameter a and parameter b;
The process of calculating parameter a and parameter b is as follows:
1. foundation calculate the mean value of liquid or gas flow X
By eight groups of data (1.1,1.5), (2.2,3.5), (3.3,4.2), (4.4,5.0), (5.5,5.8), (6.6,7.5), (7.7,8.0) and (8.8,9.0) obtain the value of liquid wherein or gas flow X: 1.1,2.2,3.3,4.4,5.5,6.6,7.7,8.8, obtained by formula:
&Sigma; i = 1 N X i = &Sigma; i = 1 8 ( 1.1 + 2.2 + 3.3 + 4.4 + 5.5 + 6.6 + 7.7 + 8.8 ) = 39.6 ... ( 1 )
X &OverBar; = &Sigma; i = 1 N X i / N = &Sigma; i = 1 8 ( 1.1 + 2.2 + 3.3 + 4.4 + 5.5 + 6.6 + 7.7 + 8.8 ) / 8 = 4.95 ... ( 2 )
2. foundation calculate the mean value of controling parameters Y
By 8 groups of data (1.1,1.5), (2.2,3.5), (3.3,4.2), (4.4,5.0), (5.5,5.8), (6.6,7.5), (7.7,8.0) and (8.8,9.0) obtain the value of liquid wherein or gas flow X: 1.5,3.5,4.2,5.0,5.8,7.5,8.0,9.0, obtained by formula:
&Sigma; i = 1 N Y i = &Sigma; i = 1 8 ( 1.5 + 3.5 + 4.2 + 5.0 + 5.8 + 7.5 + 8.0 + 9.0 ) = 44.5 ... ( 3 )
Y &OverBar; = &Sigma; i = 1 N Y i / N = &Sigma; i = 1 8 ( 1.5 + 3.5 + 4.2 + 5.0 + 5.8 + 7.5 + 8.0 + 9.0 ) / 8 = 5.5625 ... ( 4 )
3. calculate
&Sigma; i = 1 N X i Y i = &Sigma; i = 1 8 ( X 1 Y 1 + X 2 Y 2 + X 3 Y 3 + X 4 Y 4 + X 5 Y 5 + X 6 Y 6 + X 7 Y 7 + X 8 Y 8 ) = 1.1 &times; 1.5 + 2.2 &times; 3.5 + 3.3 &times; 4.2 + 4.4 &times; 5.0 + 5.5 &times; 5.8 + 6.6 &times; 7.5 + 7.7 &times; 8.0 + 8.8 &times; 9.0 = 267.41 ... ( 5 )
&Sigma; i = 0 N X i 2 = &Sigma; i = 1 8 ( X 1 2 + X 2 2 + X 3 2 + X 4 2 + X 5 2 + X 6 2 + X 7 2 + X 8 2 ) = 1.1 &times; 1.1 + 2.2 &times; 2.2 + 3.3 &times; 3.3 + 4.4 &times; 4.4 + 5.5 &times; 5.5 + 6.6 &times; 6.6 + 7.7 &times; 7.7 + 8.8 &times; 8.8 = 246.84 ... ( 6 )
4. formula (1) (2) (3) (4) (5) and (6) are substituted in formulae discovery parameter a formula
a = ( &Sigma; i = 1 N X i Y i ) - ( &Sigma; i = 1 N X i ) Y &OverBar; ( &Sigma; i = 1 N X i 2 ) - ( &Sigma; i = 1 N X i ) X &OverBar; = 0.927
5. calculating parameter b, by formula (1) (2) and parameter a, substitutes in formula
b = Y &OverBar; - a X &OverBar; = 0.971
Step S203: namely build linear equation by parameter a and parameter b.
The above-mentioned parameter a=0.927 that calculates and parameter b=0.971 obtains linear equation, Y=0.927X+0.971.
Step S204: the flow X1 of the liquid needed for acquisition.
Step S205: calculate controling parameters Y1.
Required flow X1 is substituted into the value obtaining valve position opening degree now in linear equation Y=0.927X+0.971.
As shown in Figure 4, be the linear equation that the present embodiment adopts software emulation to obtain, its cathetus is for obtaining linear equation, and ◇ is the data group of eight groups of inputs.
For electric control valve and liquid in the present embodiment, describe the computation process being obtained parameter a and parameter b by data group through the formulae discovery of least square method in detail, the controling parameters of linear equation of the present invention adopts the method for least square method in mathematics, actual conditions output valve can be made more close to idea output owing to adopting the method for least square method, therefore least square method obtains controling parameters and can reach ideal effect accurately, makes the realistic requirement of the control procedure of control variable and enterprise demand.
Above-described embodiment describes a kind of flow control methods, and two embodiments will introduce another flow control methods below.
As shown in Figure 5, the invention provides a kind of flow control methods, comprising:
Step S301: obtain the N group data (X preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), at the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1M, or at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4, namely in each interval, chooses data point;
At the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4; Or at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4;
Liquid in N group data or gas flow X value are divided into N-1 interval, are respectively the first interval (X 1, X 2), the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n), for the first interval, choose M numerical value in the first interval inside, X 11, X 12x 1jx 1M, M is natural number.
Or, the value of the control variable Y in N group data is divided into N-1 interval, is respectively the first interval (Y 1, Y 2), the second interval (Y 2, Y 3) ... kth interval (X k, X k+1) ... (N-1) interval (Y n-1, Y n.) for the first interval, choose M numerical value in the first interval inside, Y 11, Y 12y 1jy 1M, M is natural number.
Because the liquid in the present invention or gas flow are nonlinear in a practical situation, therefore in order to control the linear equation of flow more accurately, liquid or gas flow X are divided into N-1 interval by the present invention, use each interval inner linear equation of least square method in each interval.Choose M numerical value in the first interval inside, M is natural number, both can not choose numerical value in the first interval, and also can choose limitless number value.Be understandable that, can be interval inner in being evenly distributed first in M group data, also can become uneven distribution, not limit at this.
Be understandable that, the precision obtaining linear equation during M=0 in the first interval is lower, and along with the increase of M, the precision of linear equation can improve gradually, certainly be as the criterion with required precision in actual implementation procedure, the troublesome calculation avoiding the excessive M value of employing to bring and implementation.
Step S302: according to X 11, X 12x 1jx 1Mor Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4, namely obtains data group according to data point;
Namely according to liquid in actual conditions or gas flow X and the relation of controling parameters Y controlling described liquid or gas flow X, according to X 11, X 12x 1jx 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4;
For variable frequency pump frequency: when actual measurement, the reading X that reading and needs according to current transmitter reach 1j(liquid or gas flow), adjustment variable frequency pump frequency, waits for that liquid or the stable rear reading of gas flow are X 1j, namely record variable frequency pump frequency Y now 1j, and then obtain this group data (X, Y).
According to said method, according to the M group data needing to obtain, the order increased progressively successively with liquid or gas flow in principle increases X successively 1j, and according to liquid or gas flow X 1jrecord variable frequency pump frequency Y successively 1j, and then obtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4.
Or the relation of the controling parameters Y of liquid or gas flow X and the described liquid of control or gas flow X in foundation actual conditions, according to Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4;
For variable frequency pump frequency: when actual measurement, arranging variable frequency pump frequency by variable frequency pump is Y 1j, after waiting for that liquid or gas flow are stable, read liquid under current variable frequency pump frequency or gas flow by transmitter, and record the reading X of now transmitter 1j, and then obtain these group data (X 1j, Y 1j).
According to said method, according to the M group data needing to obtain, choose variable frequency pump frequency Y with the order of variable frequency pump frequency increments in principle i, and according to variable frequency pump frequency Y irecord the reading X of transmitter successively i, and then obtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein i=2,3 ... M, M are natural number and M>=2, are understandable that, the follow-up linear equation obtained of the larger the present invention of M more closing to reality.
Step S303: obtain and M+2 group data (X according to least square method formula 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) corresponding to the parameter a of linear equation 1with parameter b 1, namely adopt least square method calculating parameter a and parameter b;
Wherein, parameter a described in least square method formula 1computing formula be:
a 1 = ( X 1 Y 1 + &Sigma; j = 1 M X 1 j Y 1 j + X 2 Y 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) Y &OverBar; ( X 1 2 + &Sigma; j = 1 M X 1 j 2 + X 2 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) X &OverBar; , Parameter b described in least square method formula 1computing formula be: wherein, for M+2 group data group (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of liquid or gas flow X, for M+2 group data (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of controling parameters Y;
Step S304: according to described parameter a 1with described parameter b 1obtain linear equation Y=a 1x+b 1, by being parameter a and parameter b structure linear equation;
Step S305: by the method obtaining linear equation in first is interval, respectively at the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) middle acquisition linear equation Y=a 2x+b 2y=a kx+b ky=a n-1x+b n-1, wherein k is natural number and 2<k<N-1, N are natural number and N>=4, namely obtains the linear equation in each interval by the method for step S301-S304;
By choosing numerical value in the first interval and obtaining the method for data group, interval second ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) in choose numerical value respectively and obtain data group, be understandable that, the numerical value can choosing varying number in different interval obtains the data group of varying number, or chooses the numerical value of identical data quantity in different intervals, obtains identical data group.
Step S306: the liquid needed for acquisition or gas flow X2;
Step S307: judge liquid or the interval of the kth belonging to gas flow X2;
Because by liquid or gas flow X2 in above-mentioned steps, be divided into different intervals, different interval neutral line equations is different, therefore needs to judge liquid or the interval belonging to gas flow, obtains linear equation according to interval.
Step S308: obtain linear equation Y=a according to described kth interval kx+b k;
Having described in the known liquid of above-mentioned steps or gas flow interval is k, obtains the linear equation Y=a belonging to liquid now or gas according to kth interval kx+b k.
Step S309: according to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow, namely calculate controling parameters by linear equation.
Because the liquid in the present invention or gas flow are nonlinear in a practical situation, therefore in order to control the linear equation of flow more accurately, liquid in default N group data or gas flow X or control variable Y are divided into N-1 interval by the present invention, and in N-1 interval, choose M data group respectively, in each interval, carry out computing according to M data separate least square method obtain two parameter a and b, a linear equation is built by parameter a and b, namely the linear relationship in this interval between the flow of liquid or gas and controling parameters, the linear equation of the linear relationship between the flow of liquid or gas and controling parameters is represented at N-1 the interval N-1 of acquisition altogether bar, according to the value X2 of required liquid or gas flow, first the interval belonging to X2 is judged, and according to the linear relationship between the flow of liquid or gas in affiliated interval and controling parameters, obtain the value Y2 of the controling parameters corresponding with the value X2 of the flow of liquid or gas.The present embodiment has linear relationship corresponding with it in different intervals, and the linear relationship between the flow of linear relationship liquid or gas and controling parameters is tallied with the actual situation more, the flow of liquid or gas is exported and more tallies with the actual situation.
In the present embodiment, flow control methods is consistent with the core idea of the flow control methods of the first embodiment, all based on the liquid preset or the flow of gas and the data group of controling parameters composition, utilize least square method to carry out computing and obtain two parameters, obtain the linear relationship between the flow of liquid or gas and controling parameters by described two parameters.Just on embodiment, the first flow control methods obtains a linear equation according to the N group data preset, the present invention obtains N-1 bar linear equation according to the N group data preset, compared with the first flow control methods, the N-1 bar linear equation obtained in the present embodiment has reacted the linear relationship between the flow of liquid or gas and controling parameters more accurately, make flow control process more accurate, more meet enterprise requirements.
As shown in Figure 6, the invention provides the scene embodiment of flow control methods, comprising:
Step S401: obtain 4 groups of data groups under actual conditions.
Adopt the mode of opened loop control to take the value Y of liquid under actual conditions or gas flow X and control variable, the present embodiment, for electric control valve and liquid, in principle, is tested with the order that valve position opening degree increases progressively, is then obtained 4 groups of data (X i, Y i), as (1.1,1.5), (2.2,3.5), (3.3,4.2) and (4.4,5.0).For liquid or gas flow X: by X value in data group, liquid or gas flow X are divided into three intervals: the first interval is (1.1,2.2), and the second interval is (2.2,3.3), and the 3rd interval is (3.3,4.4).
Step S402: choose data group in each interval.
The present embodiment is with at the first interval (X 1, X 2) in choose 2 numerical value: X 11, X 12x 1jx 1Mfor example, the relation of the controling parameters Y of liquid or gas flow X and the described liquid of control or gas flow X in foundation actual conditions, according to X 11, X 12x 1jx 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4;
The present embodiment, for M=2, chooses two data groups in each interval.Such as between (1.1,1.5), (2.2,3.5) these two data groups, choose two data groups (1.4,1.9), (1.8,2.5); (2.2,3.5), (3.3,4.2) two data groups (2.6 are got again between these two data groups, 3.8), (3.0,4.0), (3.3,4.2), (4.4,5.0) two data groups (3.6,4.5), (4.0,4.7) are got again between these two data groups.
Step S403: calculate each interval inner linear equation.
For the first interval:
1. the mean value of liquid or gas flow X is calculated by 4 groups of data (1.1,1.5), (1.4,1.9), (1.8,2.5) and (2.2,3.5)
&Sigma; i = 1 N X i = &Sigma; i = 1 4 ( 1.1 + 1.4 + 1.8 + 2.2 ) = = 6.5 ... ( 1 )
X &OverBar; = &Sigma; i = 1 M + 2 X i / N = &Sigma; i = 1 4 ( 1.1 + 1.4 + 1.8 + 2.2 ) / 4 = 1.625 ... ( 2 )
2. foundation calculate the mean value of controling parameters Y
&Sigma; i = 1 M + 2 Y i = &Sigma; i = 1 4 ( 1.5 + 1.9 + 2.5 + 3.5 ) = 9.4 ... ( 3 )
Y &OverBar; = &Sigma; i = 1 M + 2 Y i / M + 2 = &Sigma; i = 1 4 ( 1.5 + 1.9 + 2.5 + 3.5 ) / 4 = 2.35 ... ( 4 )
3. calculate
&Sigma; i = 1 M + 2 X i Y i = &Sigma; i = 1 4 ( X 1 Y 1 + X 2 Y 2 + X 3 Y 3 + X 4 Y 4 ) = 1.1 &times; 1.5 + 1.4 &times; 1.9 + 1.8 &times; 2.5 + 2.2 &times; 3.5 = 16.51 ... ( 5 )
&Sigma; i = 0 M + 2 X i 2 = &Sigma; i = 1 8 ( X 1 2 + X 2 2 + X 3 2 + X 4 2 + X 5 2 + X 6 2 + X 7 2 + X 8 2 ) = 1.1 &times; 1.1 + 1.4 &times; 1.4 + 1.8 &times; 1.8 + 2.2 &times; 2.2 = 11.25 ... ( 6 )
4. formula (1) (2) (3) (4) (5) and (6) are substituted in formulae discovery parameter a1 formula
a 1 = ( &Sigma; i = 1 M + 2 X i Y i ) - ( &Sigma; i = 1 M + 2 X i ) Y &OverBar; ( &Sigma; i = 1 M + 2 X i 2 ) - ( &Sigma; i = 1 M + 2 X i ) X &OverBar; = 1.796
5. calculating parameter b1, by formula (1) (2) and parameter a1, substitutes in formula
b 1 = Y &OverBar; - a X &OverBar; = - 0.569
Obtain the linear equation Y=1.796X-0.569 that parameter a1 and parameter b1 builds the first interval.
Calculate the second interval respectively by above-mentioned steps, the linear equation in the 3rd interval is:
Y=0.622X2.149。Y=0.698X-1.929。
As shown in Figure 7, for the present embodiment adopts the linear equation that obtains of software emulation.
Step S404: obtain control variable according to required liquid or gas flow X2.
Flow needed for supposing is X=2.0, then judge that flow is interval first according to this flow X=2.0, according to the linear equation Y=1.796X-0.569 in the first interval, X=2.0 is substituted in linear equation and obtain Y=3.023, now the value of control variable Y is the value of valve positioner or variable frequency pump frequency, adopts the duty control valve level controller of control variable Y and variable frequency pump to make it to reach the value of now Y.
Because by liquid or gas flow X2 in above-mentioned steps, be divided into different intervals, different interval neutral line equations is different, therefore needs to judge liquid or the interval belonging to gas flow, obtains linear equation according to interval.
Step S406: obtain linear equation Y=a according to described kth interval kx+b k;
Having described in the known liquid of above-mentioned steps or gas flow interval is k, obtains the linear equation Y=a belonging to liquid now or gas according to kth interval kx+b k.
Step S407: according to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow., namely calculate controling parameters by linear equation.
The present embodiment describes in detail chooses data at demarcation interval and in interval, and the process of linear equation is obtained by data, by judging the interval belonging to liquid or gas flow, the linear equation that flow now should use is obtained according to interval, it is more accurate to make the control of control variable, closing to reality situation, reaches ideal effect more.The present invention can liquid with precise control or gas flow, realize stable, in real time, flow control reliably, meet the expection of technological requirement and enterprise.
As shown in Figure 8, the invention provides a kind of volume control device, comprising:
Parameter calculation unit 100, for obtaining the N group data (X preset according to least square method 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) corresponding to the parameter a of linear equation and parameter b, wherein, described default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in X be liquid or gas flow, Y is the controling parameters controlling described liquid or gas flow X, and wherein i is natural number and 2<i<N, N are natural number and N>=4, wherein, the computing formula of parameter a described in least square method formula is: the computing formula of parameter b described in least square method formula is: wherein, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of liquid or gas flow X, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of controling parameters Y;
First equation acquiring unit 200, for building linear equation Y=aX+b by described parameter a and described parameter b;
First acquiring unit 300, for obtaining required liquid or gas flow X1, according to described linear equation Y=aX+b, obtains the controling parameters Y1 of the described liquid corresponding with described liquid or gas flow X1 or gas flow.
As shown in Figure 9, the invention provides a kind of volume control device, comprising:
Choose unit 400, for obtaining default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), at the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1Mx 1M, or at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4;
Second acquisition unit 500, for foundation X 11, X 12x 1jx 1Mor Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4;
Second equation acquiring unit 600, for obtaining and M+2 group data (X according to least square method formula 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) corresponding to the parameter a of linear equation 1with parameter b 1, wherein, parameter a described in least square method formula 1computing formula be:
a 1 = ( X 1 Y 1 + &Sigma; j = 1 M X 1 j Y 1 j + X 2 Y 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) Y &OverBar; ( X 1 2 + &Sigma; j = 1 M X 1 j 2 + X 2 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) X &OverBar; , Parameter b described in least square method formula 1computing formula be: wherein, for M+2 group data group (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of liquid or gas flow X, for M+2 group data (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) mean value of controling parameters Y, according to described parameter a 1with described parameter b 1build linear equation Y=a 1x+b 1, by the method obtaining linear equation in first is interval, respectively at the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) middle acquisition linear equation Y=a 2x+b 2y=a kx+b ky=a n-1x+b n-1, wherein k is natural number and 2<k<N-1, N are natural number and N>=4;
Third party's journey acquiring unit 700, for obtaining required liquid or gas flow X2, judging liquid or the interval of the kth belonging to gas flow X2, obtaining linear equation Y=a according to described kth interval kx+b k;
3rd acquiring unit 800, for according to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow.。
As shown in Figure 10, the invention provides a kind of flow control system, comprising:
First processor 900, for obtaining the N group data (X preset according to least square method 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) corresponding to the parameter a of linear equation and parameter b, wherein, described default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in X be liquid or gas flow, Y is the controling parameters controlling described liquid or gas flow X, and wherein i is natural number and 2<i<N, N are natural number and N>=4, wherein, the computing formula of parameter a described in least square method formula is: the computing formula of parameter b described in least square method formula is: wherein, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of liquid or gas flow X, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of controling parameters Y;
First controller 1000, for building linear equation Y=aX+b by described parameter a and described parameter b, liquid needed for acquisition or gas flow X1, according to described linear equation Y=aX+b, obtain the controling parameters Y1 of the described liquid corresponding with described liquid or gas flow X1 or gas flow;
First equipment 1100 to be controlled, for being connected with described first controller, receives the controling parameters Y1 of described liquid or gas flow, and performs corresponding operating according to described controling parameters Y1.
Described first processor or described second processor are for running Matlab process computer.
Described first controller or described second controller comprise: programmable logic controller (PLC) PLC.
Described first equipment to be controlled or described second equipment to be controlled comprise: variable frequency pump or valve positioner.
In a practical situation, first processor and the first controller can have annexation also without annexation, first processor can calculated off-line parameter a and parameter b, first controller only needs to use this parameter a and parameter b when artificial programming, or first processor and the first controller are by annexation, directly by first processor calculating parameter a and parameter b, and the calculating parameter a obtained and parameter b is transferred to the first controller, be further processed according to parameter by controller.
As shown in figure 11, the invention provides a kind of flow control system, comprising:
Second processor 1200, for obtaining default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), at the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1Mor at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4, according to X 11, X 12x 1jx 1Mor Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4, obtains and M+2 group data (X according to least square method formula 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) corresponding to the parameter a of linear equation 1with parameter b 1, wherein, parameter a described in least square method formula 1computing formula be: a 1 = ( X 1 Y 1 + &Sigma; j = 1 M X 1 j Y 1 j + X 2 Y 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) Y &OverBar; ( X 1 2 + &Sigma; j = 1 M X 1 j 2 + X 2 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) X &OverBar; , Parameter b described in least square method formula 1computing formula be: wherein, for M+2 group data group (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of liquid or gas flow X, for M+2 group data (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) mean value of controling parameters Y, according to described parameter a 1with described parameter b 1build linear equation Y=a 1x+b 1, by the method obtaining linear equation in first is interval, respectively at the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) middle acquisition linear equation Y=a 2x+b 2y=a kx+b ky=a n-1x+b n-1, wherein k is natural number and 2<k<N-1, N are natural number and N>=4;
Second controller 1300, for obtaining required liquid or gas flow X2, judging liquid or the interval of the kth belonging to gas flow X2, obtaining linear equation Y=a according to described kth interval kx+b k, according to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow;
Second equipment 1400 to be controlled, for being connected with described second controller, receives the controling parameters Y2 of described liquid or gas flow, and performs corresponding operating according to described controling parameters Y2.
Described first processor or described second processor are for running Matlab process computer.
Described first controller or described second controller comprise: programmable logic controller (PLC) PLC.
Described first equipment to be controlled or described second equipment to be controlled comprise: variable frequency pump or valve positioner.
If the function described in the present embodiment method using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computing equipment read/write memory medium.Based on such understanding, the part of the part that the embodiment of the present invention contributes to prior art or this technical scheme can embody with the form of software product, this software product is stored in a storage medium, comprising some instructions in order to make a computing equipment (can be personal computer, server, mobile computing device or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RXM, RandomXccessMemory), magnetic disc or CD etc. various can be program code stored medium.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiment, between each embodiment same or similar part mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (8)

1. a flow control methods, is characterized in that, comprising:
The N group data (X preset is obtained according to least square method 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) corresponding to the parameter a of linear equation and parameter b;
Wherein, described default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in X be liquid or gas flow, Y is the controling parameters controlling described liquid or gas flow X, controling parameters Y comprises valve position opening degree or variable frequency pump frequency, and wherein i is natural number and 2<i<N, N are natural number and N>=4;
Wherein, the computing formula of parameter a described in least square method formula is: a = ( &Sigma; i = 1 N X i Y i ) - ( &Sigma; i = 1 N X i ) Y &OverBar; ( &Sigma; i = 1 N X i 2 ) - ( &Sigma; i = 1 N X i ) X &OverBar; , The computing formula of parameter b described in least square method formula is: wherein, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of liquid or gas flow X, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of controling parameters Y;
Wherein, the N group data (X preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) acquisition process comprise: according to liquid in actual conditions or gas flow X and the magnitude relationship of controling parameters Y controlling described liquid or gas flow X, obtain N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), wherein i is natural number and 2<i<N, N are natural number and N>=4; The relation of the controling parameters Y of liquid or gas flow X and the described liquid of control or gas flow X in foundation actual conditions, namely when valve position opening degree is determined, the relation of the liquid of actual measurement or gas output and valve position opening degree now, or, when variable frequency pump frequency is determined, the relation of the liquid of actual measurement or gas output and variable frequency pump frequency now;
Linear equation Y=aX+b is built by described parameter a and described parameter b;
Wherein, adopt the mode of PLC Programmable Logic Controller Programming to realize linear equation Y=aX+b by parameter a and parameter b, and realize the process of input quantity to output quantity, input quantity is liquid or gas flow X, and output quantity is controling parameters;
Liquid needed for acquisition or gas flow X1;
According to described linear equation Y=aX+b, obtain the controling parameters Y1 of the described liquid corresponding with described liquid or gas flow X1 or gas flow.
2. a flow control methods, is characterized in that, comprising:
Obtain the N group data (X preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), at the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1M, or at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4;
According to X 11, X 12x 1jx 1Mor Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4;
Obtain and M+2 group data (X according to least square method formula 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) corresponding to the parameter a of linear equation 1with parameter b 1;
Wherein, parameter a described in least square method formula 1computing formula be:
a 1 = ( X 1 Y 1 + &Sigma; j = 1 M X 1 j Y 1 j + X 2 Y 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) Y &OverBar; ( X 1 2 + &Sigma; j = 1 M X 1 j 2 + X 2 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) X &OverBar; , Parameter b described in least square method formula 1computing formula be: wherein, for M+2 group data group (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of liquid or gas flow X, for M+2 group data (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of controling parameters Y, controling parameters Y comprises valve position opening degree or variable frequency pump frequency;
Wherein, the N group data (X preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) acquisition process comprise: according to liquid in actual conditions or gas flow X and the magnitude relationship of controling parameters Y controlling described liquid or gas flow X, obtain N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), wherein i is natural number and 2<i<N, N are natural number and N>=4; The relation of the controling parameters Y of liquid or gas flow X and the described liquid of control or gas flow X in foundation actual conditions, namely when valve position opening degree is determined, the relation of the liquid of actual measurement or gas output and valve position opening degree now, or, when variable frequency pump frequency is determined, the relation of the liquid of actual measurement or gas output and variable frequency pump frequency now;
According to described parameter a 1with described parameter b 1build linear equation Y=a 1x+b 1;
Wherein, adopt the mode of PLC Programmable Logic Controller Programming by parameter a 1with parameter b 1realize linear equation Y=a 1x+b 1, and realizing the process of input quantity to output quantity, input quantity is liquid or gas flow X, and output quantity is controling parameters;
By the method obtaining linear equation in first is interval, respectively at the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) middle acquisition linear equation Y=a 2x+b 2y=a kx+b ky=a n-1x+b n-1, wherein k is natural number and 2<k<N-1, N are natural number and N>=4;
Liquid needed for acquisition or gas flow X2;
Judge liquid or the interval of the kth belonging to gas flow X2;
Linear equation Y=a is obtained according to described kth interval kx+b k;
According to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow.
3. a volume control device, is characterized in that, comprising:
Parameter calculation unit, for obtaining the N group data (X preset according to least square method 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) corresponding to the parameter a of linear equation and parameter b, wherein, described default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in X be liquid or gas flow, Y is the controling parameters controlling described liquid or gas flow X, controling parameters Y comprises valve position opening degree or variable frequency pump frequency, wherein i is natural number and 2<i<N, N is natural number and N>=4, wherein, the computing formula of parameter a described in least square method formula is: a = ( &Sigma; i = 1 N X i Y i ) - ( &Sigma; i = 1 N X i ) Y &OverBar; ( &Sigma; i = 1 N X i 2 ) - ( &Sigma; i = 1 N X i ) X &OverBar; , The computing formula of parameter b described in least square method formula is: wherein, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of liquid or gas flow X, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of controling parameters Y; Wherein, the N group data (X preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) acquisition process comprise: according to liquid in actual conditions or gas flow X and the magnitude relationship of controling parameters Y controlling described liquid or gas flow X, obtain N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), i is natural number and 2<i<N, N are natural number and N>=4; The relation of the controling parameters Y of liquid or gas flow X and the described liquid of control or gas flow X in foundation actual conditions, namely when valve position opening degree is determined, the relation of the liquid of actual measurement or gas output and valve position opening degree now, or, when variable frequency pump frequency is determined, the relation of the liquid of actual measurement or gas output and variable frequency pump frequency now;
First equation acquiring unit, for building linear equation Y=aX+b by described parameter a and described parameter b; Wherein, adopt the mode of PLC Programmable Logic Controller Programming to realize linear equation Y=aX+b by parameter a and parameter b, and realize the process of input quantity to output quantity, input quantity is liquid or gas flow X, and output quantity is controling parameters; First acquiring unit, for obtaining required liquid or gas flow X1, according to described linear equation Y=aX+b, obtains the controling parameters Y1 of the described liquid corresponding with described liquid or gas flow X1 or gas flow.
4. a volume control device, is characterized in that, comprising:
Choose unit, for obtaining default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), at the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1Mx 1M, or at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4;
Second acquisition unit, for foundation X 11, X 12x 1jx 1Mor Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4;
Second equation acquiring unit, for obtaining and M+2 group data (X according to least square method formula 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) corresponding to the parameter a of linear equation 1with parameter b 1, wherein, parameter a described in least square method formula 1computing formula be:
a 1 = ( X 1 Y 1 + &Sigma; j = 1 M X 1 j Y 1 j + X 2 Y 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) Y &OverBar; ( X 1 2 + &Sigma; j = 1 M X 1 j 2 + X 2 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) X &OverBar; , Parameter b described in least square method formula 1computing formula be: wherein, for M+2 group data group (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of liquid or gas flow X, for M+2 group data (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of controling parameters Y, controling parameters Y comprises valve position opening degree or variable frequency pump frequency, according to described parameter a 1with described parameter b 1build linear equation Y=a 1x+b 1, by the method obtaining linear equation in first is interval, respectively at the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) middle acquisition linear equation Y=a 2x+b 2y=a kx+b ky=a n-1x+b n-1, wherein k is natural number and 2<k<N-1, N are natural number and N>=4; Wherein, the N group data (X preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) acquisition process comprise: according to liquid in actual conditions or gas flow X and the magnitude relationship of controling parameters Y controlling described liquid or gas flow X, obtain N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), wherein i is natural number and 2<i<N, N are natural number and N>=4; The relation of the controling parameters Y of liquid or gas flow X and the described liquid of control or gas flow X in foundation actual conditions, namely when valve position opening degree is determined, the relation of the liquid of actual measurement or gas output and valve position opening degree now, when variable frequency pump frequency is determined, the relation of actual measurement liquid or gas output and variable frequency pump frequency now;
Third party's journey acquiring unit, for obtaining required liquid or gas flow X2, judging liquid or the interval of the kth belonging to gas flow X2, obtaining linear equation Y=a according to described kth interval kx+b k; Wherein, adopt the mode of PLC Programmable Logic Controller Programming by parameter a 1with parameter b 1realize linear equation Y=a 1x+b 1, and realizing the process of input quantity to output quantity, input quantity is liquid or gas flow X2, and output quantity is controling parameters; 3rd acquiring unit, for according to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow.
5. a flow control system, is characterized in that, comprising:
First processor, for obtaining the N group data (X preset according to least square method 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) corresponding to the parameter a of linear equation and parameter b, wherein, described default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in X be liquid or gas flow, Y is the controling parameters controlling described liquid or gas flow X, controling parameters Y comprises valve position opening degree or variable frequency pump frequency, wherein i is natural number and 2<i<N, N is natural number and N>=4, wherein, the computing formula of parameter a described in least square method formula is: a = ( &Sigma; i = 1 N X i Y i ) - ( &Sigma; i = 1 N X i ) Y &OverBar; ( &Sigma; i = 1 N X i 2 ) - ( &Sigma; i = 1 N X i ) X &OverBar; , The computing formula of parameter b described in least square method formula is: wherein, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of liquid or gas flow X, for N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) in the mean value of controling parameters Y; Wherein, the N group data (X preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) acquisition process comprise: according to liquid in actual conditions or gas flow X and the magnitude relationship of controling parameters Y controlling described liquid or gas flow X, obtain N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), wherein i is natural number and 2<i<N, N are natural number and N>=4; The relation of the controling parameters Y of liquid or gas flow X and the described liquid of control or gas flow X in foundation actual conditions, namely when valve position opening degree is determined, the relation of the liquid of actual measurement or gas output and valve position opening degree now, or, when variable frequency pump frequency is determined, the relation of the liquid of actual measurement or gas output and variable frequency pump frequency now;
First controller, for building linear equation Y=aX+b by described parameter a and described parameter b, liquid needed for acquisition or gas flow X1, according to described linear equation Y=aX+b, obtain the controling parameters Y1 of the described liquid corresponding with described liquid or gas flow X1 or gas flow; Wherein, adopt the mode of PLC Programmable Logic Controller Programming to realize linear equation Y=aX+b by parameter a and parameter b, and realize the process of input quantity to output quantity, input quantity is liquid or gas flow X1, and output quantity is controling parameters; First equipment to be controlled, for being connected with described first controller, receives the controling parameters Y1 of described liquid or gas flow, and performs corresponding operating according to described controling parameters Y1.
6. a flow control system, is characterized in that, comprising:
Second processor, for obtaining default N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), at the first interval (X 1, X 2) in choose M numerical value: X 11, X 12x 1jx 1Mor at the first interval (Y 1, Y 2) in choose M numerical value: Y 11, Y 12y 1jy 1M, wherein j is natural number and 2<j<M, M are natural number and M>=4, according to X 11, X 12x 1jx 1Mor Y 11, Y 12y 1jy 1Mobtain M group data (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), wherein j is natural number and 2<j<M, M are natural number and M>=4, obtains and M+2 group data (X according to least square method formula 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) corresponding to the parameter a of linear equation 1with parameter b 1, wherein, parameter a described in least square method formula 1computing formula be:
a 1 = ( X 1 Y 1 + &Sigma; j = 1 M X 1 j Y 1 j + X 2 Y 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) Y &OverBar; ( X 1 2 + &Sigma; j = 1 M X 1 j 2 + X 2 2 ) - ( X 1 + &Sigma; j = 1 M X 1 j + X 2 ) X &OverBar; , Parameter b described in least square method formula 1computing formula be: wherein, for M+2 group data group (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of liquid or gas flow X, for M+2 group data (X 1, Y 1), (X 11, Y 11), (X 12, Y 12) ... (X 1j, Y 1j) ... (X 1M, Y 1M), (X 2, Y 2) in the mean value of controling parameters Y, controling parameters Y comprises valve position opening degree or variable frequency pump frequency, according to described parameter a 1with described parameter b 1build linear equation Y=a 1x+b 1, by the method obtaining linear equation in first is interval, respectively at the second interval (X 2, X 3) ... kth interval (X k, X k+1) ... (N-1) interval (X n-1, X n) middle acquisition linear equation Y=a 2x+b 2y=a kx+b ky=a n-1x+b n-1, wherein k is natural number and 2<k<N-1, N are natural number and N>=4; Wherein, the N group data (X preset 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n) acquisition process comprise: according to liquid in actual conditions or gas flow X and the magnitude relationship of controling parameters Y controlling described liquid or gas flow X, obtain N group data (X 1, Y 1), (X 2, Y 2) ... (X i, Y i) ... (X n, Y n), wherein i is natural number and 2<i<N, N are natural number and N>=4; The relation of the controling parameters Y of liquid or gas flow X and the described liquid of control or gas flow X in foundation actual conditions, namely when valve position opening degree is determined, the relation of the liquid of actual measurement or gas output and valve position opening degree now, when variable frequency pump frequency is determined, the relation of the liquid of actual measurement or gas output and variable frequency pump frequency now;
Second controller, for obtaining required liquid or gas flow X2, judging liquid or the interval of the kth belonging to gas flow X2, obtaining linear equation Y=a according to described kth interval kx+b k, according to described linear equation Y=a kx+b k, obtain the controling parameters Y2 of the described liquid corresponding with described liquid or gas flow X2 or gas flow; Wherein, adopt the mode of PLC Programmable Logic Controller Programming by parameter a 1with parameter b 1realize linear equation Y=a 1x+b 1, and realizing the process of input quantity to output quantity, input quantity is liquid or gas flow X2, and output quantity is controling parameters; Second equipment to be controlled, for being connected with described second controller, receives the controling parameters Y2 of described liquid or gas flow, and performs corresponding operating according to described controling parameters Y2.
7. the system as described in claim 5 or 6, is characterized in that, described first processor or described second processor are:
Run the computing machine of Matlab program.
8. the system as described in claim 5 or 6, is characterized in that, described first equipment to be controlled or described second equipment to be controlled comprise:
Variable frequency pump or valve positioner.
CN201310125813.9A 2013-04-12 2013-04-12 A kind of flow control methods, Apparatus and system Expired - Fee Related CN103197692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310125813.9A CN103197692B (en) 2013-04-12 2013-04-12 A kind of flow control methods, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310125813.9A CN103197692B (en) 2013-04-12 2013-04-12 A kind of flow control methods, Apparatus and system

Publications (2)

Publication Number Publication Date
CN103197692A CN103197692A (en) 2013-07-10
CN103197692B true CN103197692B (en) 2016-04-06

Family

ID=48720355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310125813.9A Expired - Fee Related CN103197692B (en) 2013-04-12 2013-04-12 A kind of flow control methods, Apparatus and system

Country Status (1)

Country Link
CN (1) CN103197692B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766972B (en) * 2017-09-30 2021-04-27 新智能源系统控制有限责任公司 Method and device for acquiring energy flow delay time
CN108016899A (en) * 2017-11-30 2018-05-11 上海岫峤机电工程有限公司 A kind of overturning stability of flow control method
CN108939209B (en) * 2018-06-05 2021-07-09 浙江迈帝康医疗器械有限公司 Intelligent infusion pump
CN109578262B (en) * 2018-12-13 2020-02-07 保定申辰泵业有限公司 Control method and device for conveying viscous liquid by peristaltic pump and peristaltic pump

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3875955A (en) * 1974-01-10 1975-04-08 Process Systems Digital fluid flow rate measurement or control system
CN1862423A (en) * 2005-04-19 2006-11-15 通用汽车环球科技运作公司 Application of linear splines to internal combustion engine control
CN101105687A (en) * 2007-08-03 2008-01-16 西北工业大学 Design method for control system
CN101201365A (en) * 2007-07-13 2008-06-18 北京工业大学 System and method for measuring and analyzing voltage frequency
CN101661620A (en) * 2009-09-18 2010-03-03 北京航空航天大学 Camera response curve calibration method based on single image
CN101770445A (en) * 2008-12-31 2010-07-07 上海申瑞电力科技股份有限公司 Multiple linear regression calculating method of reactive compensation capacity of substation
CN102279163A (en) * 2011-07-06 2011-12-14 湖南利尔康生物有限公司 Method for simulation evaluation of quality of liquid feed composite enzyme in vitro
CN102564661A (en) * 2011-12-27 2012-07-11 北京工业大学 Computer calculation method for maximum stress and stress gradient of surface of titanium alloy
CN102915406A (en) * 2012-10-26 2013-02-06 中国石油大学(华东) Calculation method for relative permeability curve of oil and water in radial flow condition

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3875955A (en) * 1974-01-10 1975-04-08 Process Systems Digital fluid flow rate measurement or control system
CN1862423A (en) * 2005-04-19 2006-11-15 通用汽车环球科技运作公司 Application of linear splines to internal combustion engine control
CN101201365A (en) * 2007-07-13 2008-06-18 北京工业大学 System and method for measuring and analyzing voltage frequency
CN101105687A (en) * 2007-08-03 2008-01-16 西北工业大学 Design method for control system
CN101770445A (en) * 2008-12-31 2010-07-07 上海申瑞电力科技股份有限公司 Multiple linear regression calculating method of reactive compensation capacity of substation
CN101661620A (en) * 2009-09-18 2010-03-03 北京航空航天大学 Camera response curve calibration method based on single image
CN102279163A (en) * 2011-07-06 2011-12-14 湖南利尔康生物有限公司 Method for simulation evaluation of quality of liquid feed composite enzyme in vitro
CN102564661A (en) * 2011-12-27 2012-07-11 北京工业大学 Computer calculation method for maximum stress and stress gradient of surface of titanium alloy
CN102915406A (en) * 2012-10-26 2013-02-06 中国石油大学(华东) Calculation method for relative permeability curve of oil and water in radial flow condition

Also Published As

Publication number Publication date
CN103197692A (en) 2013-07-10

Similar Documents

Publication Publication Date Title
CN103197692B (en) A kind of flow control methods, Apparatus and system
CN102073270B (en) The Fractional Order PID control method of single-input single-output time lag system
CN103984234A (en) Electro hydraulic servo system self-correction fuzzy PID control method
CN104199283A (en) Test system and control method for electro-hydraulic servo online self-adjusting fuzzy PID control
CN106877746B (en) Method for control speed and speed control unit
CN104698842B (en) A kind of LPV model nonlinear forecast Control Algorithms based on interior point method
CN103197596B (en) A kind of digital control processing parameters self-adaptive fuzzy control rule optimization method
CN107272412B (en) Identification method for temporary-impulse type wind tunnel flow field control
CN108107723A (en) The 2D Design of Optimized Fuzzy Controller methods of nonlinear batch process
CN103197542A (en) Time delay system PID controller stabilization method based on data drive
CN103513612A (en) System and method for controlling coordination movement of industrial robot and position changing machine
CN103700036A (en) Transient stability projection integral method suitable for multi-time scale of electrical power system
CN103810646A (en) Improved projection integral algorithm based active power distribution system dynamic simulation method
CN102870309A (en) Method and system for facilitating design of a high voltage (HVDC) control system, an HVDC system and a method for optimising an HVDC system
CN105470953A (en) Electronic regulator model for water turbine adjusting system
CN103955136A (en) Electromagnetic drive positioning control method and application of the same
CN106026200A (en) Power system reactive power optimization method of wind power field
CN102591203A (en) Direct nerve network control method based on differentiator for servo motor
CN106877769A (en) A kind of method of servomotor plus of speed controller parameter self-tuning
CN106325104A (en) Setting and adjustment method for thermal control PID parameters based on MATLAB modeling and simulation
CN103294522A (en) Reduction scheme for numerical wind tunnel simulation flow of ship and warship radar antenna devices
CN101189560A (en) Control of processes
CN106126871A (en) A kind of governor model modeling method of PSCAD electromagnetic transient simulation
CN102540901A (en) Pump truck load-sensitive proportional multi-way valve simulation modeling method based on Modelica language
CN104932260A (en) Electromechanical system PID parameter setting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160406

Termination date: 20210412