CN113944621B - Pipeline compressor energy consumption measurement method, system and computer storage medium - Google Patents
Pipeline compressor energy consumption measurement method, system and computer storage medium Download PDFInfo
- Publication number
- CN113944621B CN113944621B CN202111203586.8A CN202111203586A CN113944621B CN 113944621 B CN113944621 B CN 113944621B CN 202111203586 A CN202111203586 A CN 202111203586A CN 113944621 B CN113944621 B CN 113944621B
- Authority
- CN
- China
- Prior art keywords
- variable compression
- outlet
- compression sub
- inlet
- sub
- 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.)
- Active
Links
- 238000005265 energy consumption Methods 0.000 title claims abstract description 24
- 238000000691 measurement method Methods 0.000 title claims description 10
- 238000007906 compression Methods 0.000 claims abstract description 394
- 230000006835 compression Effects 0.000 claims abstract description 350
- 238000000034 method Methods 0.000 claims abstract description 214
- 238000004364 calculation method Methods 0.000 claims description 48
- 230000008569 process Effects 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 5
- 238000005259 measurement Methods 0.000 claims description 4
- 238000000354 decomposition reaction Methods 0.000 claims description 3
- 230000009466 transformation Effects 0.000 claims 2
- VNWKTOKETHGBQD-UHFFFAOYSA-N methane Chemical compound C VNWKTOKETHGBQD-UHFFFAOYSA-N 0.000 abstract description 24
- 239000003345 natural gas Substances 0.000 abstract description 12
- 230000008859 change Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 2
- 239000007789 gas Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F04—POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
- F04B—POSITIVE-DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS
- F04B51/00—Testing machines, pumps, or pumping installations
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Control Of Positive-Displacement Pumps (AREA)
Abstract
Description
技术领域technical field
本发明涉及能耗管理领域,具体涉及一种管线压缩机能耗测量方法、系统及计算机存储介质。The invention relates to the field of energy management, in particular to a method, system and computer storage medium for measuring energy consumption of pipeline compressors.
背景技术Background technique
管线压缩机是在天燃气长输管线的压气站上使用的一种通用机械,天燃气在管线压缩机中被压缩到一定压力,由输气管道向下游用户进行输送。天燃气在管线压缩机中的压缩过程是多变压缩过程,功耗对应为多变压缩功。多变压缩功计算的准确性对于管线压缩机优化运行非常重要。现有多变压缩过程压缩功Wpol通常采用的计算公式是:The pipeline compressor is a general-purpose machine used in the compressor station of the natural gas long-distance pipeline. The natural gas is compressed to a certain pressure in the pipeline compressor and then transported to the downstream users by the gas pipeline. The compression process of natural gas in the pipeline compressor is a variable compression process, and the power consumption corresponds to the variable compression work. The accuracy of polyvariable compression work calculation is very important for the optimal operation of pipeline compressors. The calculation formula usually adopted for the compression work W pol in the existing variable compression process is:
压缩机的总能耗Wtot采用下式计算即可:The total energy consumption W tot of the compressor can be calculated by the following formula:
式中,m是多变过程指数,Z是压缩因子,R是气体常数,T1、p1分别是压缩机进口温度、进口压力,p2是压缩机出口压力,ηpol是管线压缩机在整个多变压缩过程中的多变压缩效率。In the formula, m is the variable process index, Z is the compressibility factor, R is the gas constant, T 1 and p 1 are the compressor inlet temperature and inlet pressure respectively, p 2 is the compressor outlet pressure, η pol is the pipeline compressor at Polytropic compression efficiency throughout the polytropic compression process.
影响多变过程压缩功Wpol计算准确性的关键因素是多变过程指数的计算,不同的过程指数选取方法对多变功的计算误差最大可以达到4%以上,因此,需要研究一种计算精度更高的多变过程压缩功测量方法。The key factor affecting the calculation accuracy of the variable process compression work W pol is the calculation of the variable process index. The calculation error of the variable process index can reach more than 4% in different process index selection methods. Therefore, it is necessary to study a calculation accuracy Higher variable process compression work measurement method.
发明内容Contents of the invention
本发明所要解决的技术问题是提供一种管线压缩机能耗测量方法、系统及计算机存储介质,可以精确的计算出管线压缩机的整个多变过程中压缩功,进而可以为管线压缩机的优化运行提供可靠的依据。The technical problem to be solved by the present invention is to provide a pipeline compressor energy consumption measurement method, system and computer storage medium, which can accurately calculate the compression work in the entire variable process of the pipeline compressor, and then can provide an optimal operation for the pipeline compressor Provide reliable evidence.
本发明解决上述技术问题的技术方案如下:一种管线压缩机能耗测量方法,包括以下步骤,The technical solution of the present invention to solve the above-mentioned technical problems is as follows: a method for measuring energy consumption of pipeline compressors, comprising the following steps,
S1,根据管线压缩机的进、出口压力将管线压缩机的整个多变压缩过程分为多个多变压缩子过程;S1, according to the inlet and outlet pressures of the pipeline compressor, the entire variable compression process of the pipeline compressor is divided into multiple variable compression sub-processes;
S2,基于多变功求解模型依次求解每个多变压缩子过程的多变压缩子功;S2, based on the multivariable work solution model, sequentially solve the multivariable compression sub-work of each multivariable compression sub-process;
S3,将所有多变压缩子过程的多变压缩子功进行叠加,得到管线压缩机整个多变压缩过程的多变压缩功。S3, superimposing the polyvariable compression sub-works of all polyvariable compression sub-processes to obtain the polyvariable compression work of the entire polyvariable compression process of the pipeline compressor.
在上述技术方案的基础上,本发明还可以做如下改进。On the basis of the above technical solutions, the present invention can also be improved as follows.
进一步,所述S2具体为,Further, the S2 is specifically,
S21,基于多变功求解模型和设定条件M,根据管线压缩机的已知入口条件K0,计算出多变压缩子过程G1的出口条件K1和多变压缩子功Wpol(1);S21, based on the polyvariable work solution model and the set condition M, and according to the known inlet condition K 0 of the pipeline compressor, calculate the outlet condition K 1 of the polyvariable compression sub-process G 1 and the polyvariable compression sub-work W pol(1 ) ;
S22,将多变压缩子过程Gx的出口条件Kx,作为多变压缩子过程Gx+1的入口条件Fx+1;在多变压缩子过程Gx+1中,基于所述多变功求解模型和所述设定条件M,根据多变压缩子过程Gx+1的入口条件Fx+1,计算出多变压缩子过程Gx+1的出口条件Kx+1和多变压缩子功Wpol(x+1);其中x=1,2,3......n-1,n为管线压缩机的多变压缩子过程的总数。S22, using the exit condition K x of the variable compression sub-process G x as the entry condition F x+1 of the variable compression sub-process G x+1 ; in the variable compression sub-process G x+1 , based on the multiple According to the variable power solution model and the set condition M, the outlet condition K x+1 and the multivariable compression subprocess G x+1 of the multivariable compression subprocess G x+1 are calculated according to the entry condition F x+ 1 of the multivariable compression subprocess G x +1 Variable compression sub-work W pol(x+1) ; where x=1, 2, 3...n-1, n is the total number of variable compression sub-processes of the pipeline compressor.
进一步,所述已知入口条件K0包括管线压缩机的入口压力P1和入口温度T1;其中,所述已知入口条件K0为多变压缩子过程G1的的入口条件;Further, the known inlet condition K 0 includes the inlet pressure P1 and the inlet temperature T1 of the pipeline compressor; wherein, the known inlet condition K 0 is the inlet condition of the variable compression sub-process G 1 ;
所述设定条件M包括预先设置的压比Alfa、预先设置的迭代终止判据ε和预先设置的温度增量α;The set condition M includes a preset pressure ratio Alfa, a preset iteration termination criterion ε, and a preset temperature increment α;
多变压缩子过程Gx的出口条件Kx包括出口压力P(x)j、出口温度T(x)j、出口比焓h(x)j和出口比熵s(x)j;The outlet condition K x of the polyvariable compression sub-process G x includes outlet pressure P (x)j , outlet temperature T (x)j , outlet specific enthalpy h (x)j and outlet specific entropy s (x)j ;
多变压缩子过程Gx+1的入口条件Fx+1包括入口压力P(x+1)i、入口温度T(x+1)i、入口比焓h(x+1)i和入口比熵s(x+1)i;且P(x+1)i=P(x)j,T(x+1)i=T(x)j,h(x+1)i=h(x)j,s(x+1)i=s(x)j;The inlet conditions F x+1 of polyvariable compression sub-process G x+ 1 include inlet pressure P (x+1)i , inlet temperature T (x+1)i , inlet specific enthalpy h (x+1)i and inlet ratio Entropy s (x+1)i ; and P (x+1)i = P (x)j , T (x+1)i = T (x)j , h (x+1)i = h (x) j , s (x+1)i = s (x)j ;
所述S2的计算终止条件为多变压缩子过程Gn的出口条件Kn中的出口压力P(n)j大于或等于管线压缩机的已知出口条件,其中,管线压缩机的已知出口条件为管线压缩机的出口压力P2。The calculation termination condition of said S2 is that the outlet pressure P (n)j in the outlet condition Kn of the polyvariable compression subprocess Gn is greater than or equal to the known outlet condition of the pipeline compressor, wherein the known outlet condition of the pipeline compressor The condition is the outlet pressure P2 of the line compressor.
进一步,所述多变功求解模型包括Mallen模型和多变过程压缩功定义模型;Further, the multivariable work solution model includes a Mallen model and a multivariable process compression work definition model;
所述Mallen模型具体为,其中,Wp′ol(x)为多变压缩子过程Gx的多变压缩子功计算值,h(x)i、s(x)i和T(x)i分别为多变压缩子过程Gx的入口比焓、入口比熵和入口温度,且h(x)i=h(x-1)j,s(x)i=s(x-1)j,T(x)i=T(x-1)j;The Mallen model is specifically, Among them, W p ′ ol(x) is the calculated value of the variable compression sub-work of the variable compression sub-process G x , h (x)i , s (x)i and T (x)i are the variable compression sub-process The inlet specific enthalpy, inlet specific entropy and inlet temperature of G x , and h (x)i = h (x-1)j , s (x)i = s (x-1)j , T (x)i = T (x-1)j ;
所述多变过程压缩功定义模型具体为,Wp″ol(x)=ηpol(h(x)j-h(x)i),其中,Wp″ol(x)为多变压缩子过程Gx的多变压缩子功定义值,ηpol为管线压缩机在整个多变压缩过程中的多变压缩效率。The definition model of the multivariate process compression work is specifically, W p ″ ol(x) = η pol (h (x)j -h (x)i ), wherein, W p ″ ol(x) is the multivariate compressor The defined value of the polyvariable compression subwork of the process G x , η pol is the polyvariable compression efficiency of the pipeline compressor in the entire polytropic compression process.
进一步,令多变压缩子过程G1的入口压力P(1)i=P1,令多变压缩子过程G1的入口温度为T(1)i=T1;Further, let the inlet pressure P (1)i =P1 of the multivariable compression subprocess G1 , and let the inlet temperature of the multivariate compression subprocess G1 be T (1)i =T1;
所述S21具体为,The S21 is specifically,
S211,在入口压力P(1)i和入口温度T(1)i的条件下,调用NIST数据库,计算多变压缩子过程G1的入口比焓h(1)i和入口比熵s(1)i;S211, under the conditions of inlet pressure P (1)i and inlet temperature T (1)i , call the NIST database to calculate the inlet specific enthalpy h ( 1 )i and inlet specific entropy s (1 )i ;
S212,根据入口压力P(1)i和预设的压比Alfa,通过公式P(1)j=P(1)i*Alfa,计算得到多变压缩子过程G1的出口压力P(1)j;S212, according to the inlet pressure P (1)i and the preset pressure ratio Alfa, through the formula P (1)j = P (1)i *Alfa, calculate the outlet pressure P (1) of the variable compression sub-process G 1 j ;
S213,假设多变压缩子过程G1的出口比熵s(1)j与入口比熵s(1)i相等,即令s(1)j=s(1)i;则在出口压力P(1)j和出口比熵s(1)j的条件下,调用NIST数据库,计算多变压缩子过程G1的拟定出口温度Ts(1)j;并令多变压缩子过程G1的出口温度T(1)j=Ts(1)j;S213, assuming that the outlet specific entropy s (1)j of the variable compression sub-process G 1 is equal to the inlet specific entropy s (1)i , that is, s (1)j = s (1)i ; then at the outlet pressure P (1 )j and the outlet specific entropy s (1)j , call the NIST database to calculate the proposed outlet temperature T s(1)j of the variable compression sub-process G 1 ; and make the outlet temperature of the variable compression sub-process G 1 T (1)j = T s(1)j ;
S214,在出口温度T(1)j和出口压力P(1)j的条件下,调用NIST数据库,计算多变压缩子过程G1的出口比焓h(1)j和出口比熵s(1)j;S214, under the conditions of the outlet temperature T (1)j and the outlet pressure P (1)j , call the NIST database to calculate the outlet specific enthalpy h (1)j and the outlet specific entropy s (1) of the variable compression subprocess G 1 )j ;
S215,根据所述S211中的入口比焓h(1)i、入口比熵s(1)i和入口温度T(1)i,以及所述S214中的出口比焓h(1)j、出口比熵s(1)j和出口温度T(1)j,利用Mallen模型,计算出多变压缩子过程G1的多变压缩子功计算值W′pol(1),以及利用多变过程压缩功定义模型,计算出多变压缩子过程G1的多变压缩子功定义值W″pol(1);S215, according to the inlet specific enthalpy h (1)i , inlet specific entropy s (1)i and inlet temperature T (1)i in S211, and the outlet specific enthalpy h (1)j and outlet Specific entropy s (1)j and outlet temperature T (1)j , use the Mallen model to calculate the multivariate compression sub-work calculation value W′ pol(1) of the multivariate compression sub-process G 1 , and use the multivariate process compression Work definition model, calculate the variable compression sub-work definition value W″ pol(1) of the variable compression sub-process G1 ;
S216,判断多变压缩子过程G1的多变压缩子功计算值W′pol(1)与多变压缩子功定义值W″pol(1)之差的绝对值是否小于或等于预设的迭代终止判据ε,若否,则将出口温度T(1)j加上预设的温度增量α,即令T(1)j=T(1)j+α,更新出口温度T(1)j,并重复循环执行所述S214~S215,直至多变压缩子过程G1的多变压缩子功计算值W′pol(1)与多变压缩子功定义值W″pol(1)之差的绝对值小于或等于所述迭代终止判据ε;S216, judging whether the absolute value of the difference between the multivariable compression sub-work calculation value W′ pol (1) of the multivariable compression sub-process G 1 and the defined value W″ pol (1) of the multivariable compression sub-work is less than or equal to the preset The iteration termination criterion ε, if not, add the outlet temperature T (1)j to the preset temperature increment α, that is, T (1)j = T (1)j + α, and update the outlet temperature T (1) j , and repeatedly execute the said S214~S215 in a loop until the difference between the multivariable compression sub-work calculation value W′ pol(1) of the multivariable compression sub-process G1 and the multivariable compression sub-work defined value W″ pol(1) The absolute value of is less than or equal to the iteration termination criterion ε;
S217,当多变压缩子过程G1的多变压缩子功计算值W′pol(1)与多变压缩子功定义值W″pol(1)之差的绝对值小于或等于所述迭代终止判据ε时,将多变压缩子过程G1的多变压缩子功计算值W′pol(1)与多变压缩子功定义值W″pol(1)的平均值作为多变压缩子过程G1的多变压缩子功Wpol(1)。S217, when the absolute value of the difference between the multivariable compression sub-work calculation value W' pol(1) and the multivariable compression sub-work definition value W" pol(1) of the multivariable compression sub-process G1 is less than or equal to the iteration termination When the criterion ε is used, the average value of the multivariable compression sub-work calculation value W′ pol(1) and the multivariable compression sub-work definition value W″ pol(1) of the multivariable compression sub-process G 1 is used as the multivariable compression sub-process The variable compression subwork W pol(1) of G 1 .
进一步,多变压缩子过程G1最终的出口温度T(1)j为所述S216中最终更新的出口温度T(1)j,多变压缩子过程G1最终的出口比焓h(1)j和出口比熵s(1)j为,将所述S214中的出口温度T(1)j更新为所述S216中最终更新的出口温度T(1)j后,计算得出的出口比焓h(1)j和出口比熵s(1)j。Further, the final outlet temperature T (1)j of the polyvariable compression sub-process G 1 is the final updated outlet temperature T (1)j in S216, and the final outlet specific enthalpy h (1) of the polyvariable compression sub-process G 1 j and the outlet specific entropy s (1)j are, after the outlet temperature T (1)j in the S214 is updated to the outlet temperature T (1)j finally updated in the S216, the calculated outlet specific enthalpy h (1)j and export ratio entropy s (1)j .
进一步,令多变压缩子过程Gx+1的入口压力P(x+1)i=P(x)j,令多变压缩子过程Gx+1的入口温度为T(x+1)i=T(x)j;其中,x=1,2,3......n-1,n为管线压缩机的多变压缩子过程的总数;Further, let the inlet pressure P (x+1)i of the polyvariable compression subprocess G x+1 = P (x)j , let the inlet temperature of the polyvariable compression subprocess G x+1 be T (x+1)i =T (x)j ; Wherein, x=1,2,3...n-1, n is the total number of variable compression sub-processes of the pipeline compressor;
所述S22具体为,The S22 is specifically,
S221,在入口压力P(x+1)i和入口温度T(x+1)i的条件下,调用NIST数据库,计算多变压缩子过程Gx+1的入口比焓h(x+1)i和入口比熵s(x+1)i;S221, under the conditions of the inlet pressure P (x+1)i and the inlet temperature T (x+1)i , call the NIST database to calculate the inlet specific enthalpy h (x+1) of the variable compression sub-process G x+1 i and the entrance ratio entropy s (x+1)i ;
S222,根据入口压力P(x+1)i和预设的压比Alfa,通过公式P(x+1)j=P(x+1)i*Alfa,计算得到多变压缩子过程Gx+1的出口压力P(x+1)j;S222, according to the inlet pressure P (x+1)i and the preset pressure ratio Alfa, through the formula P (x+1)j =P (x+1)i *Alfa, calculate the variable compression sub-process G x+ 1 outlet pressure P (x+1)j ;
S223,假设多变压缩子过程Gx+1的出口比熵s(x+1)j与入口比熵s(x+1)i相等,即令s(x+1)j=s(x+1)i;则在出口压力P(x+1)j和出口比熵s(x+1)j的条件下,调用NIST数据库,计算多变压缩子过程Gx+1的拟定出口温度Ts(x+1)j;并令多变压缩子过程Gx+1的出口温度T(x+1)j=Ts(x+1)j;S223, assuming that the outlet specific entropy s (x+1)j of the variable compression sub-process G x+1 is equal to the inlet specific entropy s (x+1)i , that is, s (x+1)j = s (x+1 )i ; then under the conditions of outlet pressure P (x+1)j and outlet specific entropy s (x+1)j , the NIST database is called to calculate the planned outlet temperature T s of the variable compression sub-process G x+1 ( x+1)j ; And make the outlet temperature T (x+1)j =T s(x+1)j of the variable compression subprocess G x+1 ;
S224,在出口温度T(x+1)j和出口压力P(x+1)j的条件下,调用NIST数据库,计算多变压缩子过程Gx+1的出口比焓h(x+1)j和出口比熵s(x+1)j;S224, under the conditions of the outlet temperature T (x+1)j and the outlet pressure P (x+1)j , call the NIST database to calculate the outlet specific enthalpy h (x +1) of the variable compression sub-process G x+ 1 j and export ratio entropy s (x+1)j ;
S225,根据所述S221中的入口比焓h(x+1)i、入口比熵s(x+1)i和入口温度T(x+1)i,以及所述S224中的出口比焓h(x+1)j、出口比熵s(x+1)j和出口温度T(x+1)j,利用Mallen模型,计算出多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1),以及利用多变过程压缩功定义模型,计算出多变压缩子过程Gx+1的多变压缩子功定义值W″pol(x+1);S225, according to the inlet specific enthalpy h (x+1)i , the inlet specific entropy s (x+1)i , and the inlet temperature T (x+1)i in S221 , and the outlet specific enthalpy h in S224 (x+1)j , outlet specific entropy s (x+1)j and outlet temperature T (x+1)j , using the Mallen model to calculate the multivariate compression sub-work calculation of the multivariate compression subprocess G x+1 Value W′ pol(x+1) , and utilize the definition model of the multivariable process compression work to calculate the multivariate compression sub-work definition value W″ pol(x+1) of the multivariate compression subprocess G x+1 ;
S226,判断多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1)与多变压缩子功定义值W″pol(x+1)之差的绝对值是否小于或等于预设的迭代终止判据ε,若否,则将出口温度T(x+1)j加上预设的温度增量α,即令T(x+1)j=T(x+1)j+α,更新出口温度T(x+1)j,并重复循环执行所述S224~S225,直至多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1)与多变压缩子功定义值W″pol(x+1)之差的绝对值小于或等于所述迭代终止判据ε;S226, judge whether the absolute value of the difference between the multivariable compression sub-work calculation value W′ pol (x+1) of the multivariable compression sub-process G x+1 and the multivariable compression sub-work definition value W″ pol (x+1) is less than or equal to the preset iteration termination criterion ε, if not, add the outlet temperature T (x+1)j to the preset temperature increment α, that is, T (x+1)j = T (x+1 )j +α, update the outlet temperature T (x+1)j , and execute the S224~S225 repeatedly until the multivariable compression sub-work calculation value W ′ pol(x+ 1) The absolute value of the difference with the variable compression subwork definition value W″ pol(x+1) is less than or equal to the iteration termination criterion ε;
S227,当多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1)与多变压缩子功定义值W″pol(x+1)之差的绝对值小于或等于所述迭代终止判据ε时,将多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1)与多变压缩子功定义值W″pol(x+1)的平均值作为多变压缩子过程Gx+1的多变压缩子功Wpol(x+1)。S227, when the absolute value of the difference between the multivariable compression sub-work calculation value W′ pol (x+1) and the multivariable compression sub-work defined value W″ pol (x+1) of the multivariable compression sub-process G x+ 1 is less than Or when it is equal to the iteration termination criterion ε, the multivariable compression sub-work calculation value W′ pol(x+1) of the multivariable compression sub-process G x+1 and the multivariate compression sub-work definition value W″ pol(x +1) as the polymorphic compression subwork W pol(x+1) of the polymorphic compression subprocess G x+1 .
进一步,多变压缩子过程Gx+1最终的出口温度T(x+1)j为所述S226中最终更新的出口温度T(x+1)j,多变压缩子过程Gx+1最终的出口比焓h(x+1)j和出口比熵s(x+1)j为,将所述S224中的出口温度T(x+1)j更新为所述S226中最终更新的出口温度T(x+1)j后,计算得出的出口比焓h(x+1)j和出口比熵s(x+1)j。Further, the final outlet temperature T (x+1)j of the multivariable compression sub-process G x+1 is the final updated outlet temperature T (x+1)j in S226, and the final outlet temperature T (x+1)j of the multivariable compression sub-process G x+1 The outlet specific enthalpy h (x+1)j and outlet specific entropy s (x+1)j are, the outlet temperature T (x+1)j in the S224 is updated to the final updated outlet temperature in the S226 After T (x+1)j , the calculated outlet specific enthalpy h (x+1)j and outlet specific entropy s (x+1)j .
基于上述一种管线压缩机能耗测量方法,本发明还提供一种管线压缩机能耗测量系统。Based on the above method for measuring energy consumption of a pipeline compressor, the present invention also provides a system for measuring energy consumption of a pipeline compressor.
一种管线压缩机能耗测量系统,包括以下模块,A pipeline compressor energy consumption measurement system, including the following modules,
多变压缩过程分解模块,其用于根据管线压缩机的进、出口压力将管线压缩机的整个多变压缩过程分为多个多变压缩子过程;A polyvariable compression process decomposition module, which is used to divide the entire polyvariable compression process of the pipeline compressor into multiple polyvariable compression sub-processes according to the inlet and outlet pressures of the pipeline compressor;
多变压缩子功计算模块,其用于基于多变功求解模型依次求解每个多变压缩子过程的多变压缩子功;A multivariable compression sub-work calculation module, which is used to sequentially solve the multivariable compression sub-work of each multivariable compression sub-process based on the multivariable work solution model;
多变压缩子功叠加求和模块,其用于将所有多变压缩子过程的多变压缩子功进行叠加,得到管线压缩机整个多变压缩过程的多变压缩功。The polyvariable compression sub-work superposition and summation module is used to superimpose the polyvariable compression sub-works of all the polyvariable compression sub-processes to obtain the polyvariable compression work of the entire polyvariable compression process of the pipeline compressor.
基于上述一种管线压缩机能耗测量方法,本发明还提供一种计算机存储介质。Based on the above method for measuring energy consumption of a pipeline compressor, the present invention further provides a computer storage medium.
一种计算机存储介质,包括存储器,以及存储在所述存储器上的计算机程序,当所述计算机程序被处理器执行时实现如上述所述的管线压缩机能耗测量方法。A computer storage medium includes a memory, and a computer program stored on the memory, when the computer program is executed by a processor, the method for measuring energy consumption of a pipeline compressor as described above is implemented.
本发明的有益效果是:本发明采用直接积分模型对多变过程压缩功进行计算,直接积分模型就是将整个多变压缩过程分成若干个子过程,对每一个子过程分别进行求解,因此能够更好地模拟天燃气在压缩过程中的变化,因而直接积分模型的适用范围更广,还可以适用于有相变的压缩过程。另外,本发明采用更精确的多变功求解模型——Mallen模型对多变压缩子过程的多变压缩子功进行求解,从第一个多变压缩子过程求解到最后一个多变压缩子过程,然后将所有多变压缩子过程的多变压缩子功相加得到整个多变压缩过程的多变压缩功,这样就可以对整个多变压缩过程的多变压缩功进行更加精确的计算;同时这种计算方法避免了求解多变过程指数m带来的计算误差。The beneficial effects of the present invention are: the present invention adopts the direct integral model to calculate the compression work of the polyvariable process, and the direct integral model divides the entire polyvariable compression process into several sub-processes, and solves each sub-process separately, so it can be better Therefore, the application range of the direct integral model is wider, and it can also be applied to the compression process with phase change. In addition, the present invention adopts a more accurate multivariable work solution model—Mallen model to solve the multivariable compression sub-work of the multivariate compression subprocess, from the first multivariate compression subprocess to the last multivariate compression subprocess , and then add the polyvariable compression sub-works of all polyvariable compression sub-processes to obtain the polyvariable compression work of the entire polyvariable compression process, so that the polyvariable compression work of the entire polyvariable compression process can be calculated more accurately; at the same time This calculation method avoids the calculation error caused by solving the multivariate process exponent m.
附图说明Description of drawings
图1为本发明一种管线压缩机能耗测量方法的流程图;Fig. 1 is the flowchart of a kind of pipeline compressor energy consumption measurement method of the present invention;
图2为本发明一种管线压缩机能耗测量方法的原理图;Fig. 2 is a schematic diagram of a method for measuring energy consumption of pipeline compressors according to the present invention;
图3为本发明一种管线压缩机能耗测量系统的结构框图。Fig. 3 is a structural block diagram of a pipeline compressor energy consumption measurement system according to the present invention.
具体实施方式Detailed ways
以下结合附图对本发明的原理和特征进行描述,所举实例只用于解释本发明,并非用于限定本发明的范围。The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.
如图1所示,一种管线压缩机能耗测量方法,包括以下步骤,As shown in Figure 1, a method for measuring energy consumption of a pipeline compressor includes the following steps,
S1,根据管线压缩机的进、出口压力将管线压缩机的整个多变压缩过程分为多个多变压缩子过程;S1, according to the inlet and outlet pressures of the pipeline compressor, the entire variable compression process of the pipeline compressor is divided into multiple variable compression sub-processes;
S2,基于多变功求解模型依次求解每个多变压缩子过程的多变压缩子功;S2, based on the multivariable work solution model, sequentially solve the multivariable compression sub-work of each multivariable compression sub-process;
S3,将所有多变压缩子过程的多变压缩子功进行叠加,得到管线压缩机整个多变压缩过程的多变压缩功。S3, superimposing the polyvariable compression sub-works of all polyvariable compression sub-processes to obtain the polyvariable compression work of the entire polyvariable compression process of the pipeline compressor.
在本具体实施例中:In this specific example:
在所述S1中,可以将管线压缩机的整个多变压缩过程平均分为多个多变压缩子过程。In the S1, the entire polyvariable compression process of the pipeline compressor can be equally divided into multiple polyvariable compression sub-processes.
具体的所述S2具体为,Specifically, the S2 is specifically,
S21,基于多变功求解模型和设定条件M,根据管线压缩机的已知入口条件K0,计算出多变压缩子过程G1的出口条件K1和多变压缩子功Wpol(1);S21, based on the polyvariable work solution model and the set condition M, and according to the known inlet condition K 0 of the pipeline compressor, calculate the outlet condition K 1 of the polyvariable compression sub-process G 1 and the polyvariable compression sub-work W pol(1 ) ;
S22,将多变压缩子过程Gx的出口条件Kx,作为多变压缩子过程Gx+1的入口条件Fx+1;在多变压缩子过程Gx+1中,基于所述多变功求解模型和所述设定条件M,根据多变压缩子过程Gx+1的入口条件Fx+1,计算出多变压缩子过程Gx+1的出口条件Kx+1和多变压缩子功Wpol(x+1);其中x=1,2,3......n-1,n为管线压缩机的多变压缩子过程的总数。S22, using the exit condition K x of the variable compression sub-process G x as the entry condition F x+1 of the variable compression sub-process G x+1 ; in the variable compression sub-process G x+1 , based on the multiple According to the variable power solution model and the set condition M, the outlet condition K x+1 and the multivariable compression subprocess G x+1 of the multivariable compression subprocess G x+1 are calculated according to the entry condition F x+ 1 of the multivariable compression subprocess G x +1 Variable compression sub-work W pol(x+1) ; where x=1, 2, 3...n-1, n is the total number of variable compression sub-processes of the pipeline compressor.
更进一步,所述已知入口条件K0包括管线压缩机的入口压力P1和入口温度T1;其中,所述已知入口条件K0为多变压缩子过程G1的的入口条件;Further, the known inlet condition K 0 includes inlet pressure P1 and inlet temperature T1 of the pipeline compressor; wherein, the known inlet condition K 0 is the inlet condition of the polyvariable compression sub-process G 1 ;
所述设定条件M包括预先设置的压比Alfa、预先设置的迭代终止判据ε和预先设置的温度增量α;The set condition M includes a preset pressure ratio Alfa, a preset iteration termination criterion ε, and a preset temperature increment α;
多变压缩子过程Gx的出口条件Kx包括出口压力P(x)j、出口温度T(x)j、出口比焓h(x)j和出口比熵s(x)j;The outlet condition K x of the polyvariable compression sub-process G x includes outlet pressure P (x)j , outlet temperature T (x)j , outlet specific enthalpy h (x)j and outlet specific entropy s (x)j ;
多变压缩子过程Gx+1的入口条件Fx+1包括入口压力P(x+1)i、入口温度T(x+1)i、入口比焓h(x+1)i和入口比熵s(x+1)i;且P(x+1)i=P(x)j,T(x+1)i=T(x)j,h(x+1)i=h(x)j,s(x+1)i=s(x)j;The inlet conditions F x+1 of polyvariable compression sub-process G x+ 1 include inlet pressure P (x+1)i , inlet temperature T (x+1)i , inlet specific enthalpy h (x+1)i and inlet ratio Entropy s (x+1)i ; and P (x+1)i = P (x)j , T (x+1)i = T (x)j , h (x+1)i = h (x) j , s (x+1)i = s (x)j ;
所述S2的计算终止条件为多变压缩子过程Gn的出口条件Kn中的出口压力P(n)j大于或等于管线压缩机的已知出口条件,其中,管线压缩机的已知出口条件为管线压缩机的出口压力P2。The calculation termination condition of said S2 is that the outlet pressure P (n)j in the outlet condition Kn of the polyvariable compression subprocess Gn is greater than or equal to the known outlet condition of the pipeline compressor, wherein the known outlet condition of the pipeline compressor The condition is the outlet pressure P2 of the line compressor.
更进一步,所述多变功求解模型包括Mallen模型和多变过程压缩功定义模型;Further, the multivariable work solution model includes a Mallen model and a multivariable process compression work definition model;
所述Mallen模型具体为,其中,W′pol(x)为多变压缩子过程Gx的多变压缩子功计算值,h(x)i、s(x)i和T(x)i分别为多变压缩子过程Gx的入口比焓、入口比熵和入口温度,且h(x)i=h(x-1)j,s(x)i=s(x-1)j,T(x)i=T(x-1)j;The Mallen model is specifically, Among them, W′ pol(x) is the calculated value of the variable compression sub-work of the variable compression sub-process G x , h (x)i , s (x)i and T (x)i are the variable compression sub-process G The inlet specific enthalpy, inlet specific entropy and inlet temperature of x , and h (x)i = h (x-1)j , s (x)i = s (x-1)j , T (x)i = T ( x-1)j ;
所述多变过程压缩功定义模型具体为,W″pol(x)=ηpol(h(x)j-h(x)i),其中,W″pol(x)为多变压缩子过程Gx的多变压缩子功定义值,ηpol为管线压缩机在整个多变压缩过程中的多变压缩效率。The definition model of the polyvariable process compression work is specifically, W″ pol (x) = η pol (h (x)j -h (x)i ), wherein, W″ pol (x) is the polyvariable compression subprocess G The polyvariable compression sub-work definition value of x , η pol is the polyvariable compression efficiency of the pipeline compressor in the entire polyvariable compression process.
通过调用美国国家标准与技术研究院(NIST)数据库,可以获取天燃气物性参数。例如,在已知P、T的条件下,可以求解出v、s和h;在已知P、s条件下,可以求解出v、h、T;在已知P、h条件下,可以求解出v、s、T;其中,P为压力,T为温度,v为比容,s为比熵,h为比焓。The physical parameters of natural gas can be obtained by calling the database of the National Institute of Standards and Technology (NIST). For example, under the condition of known P and T, v, s and h can be solved; under the condition of known P and s, v, h and T can be solved; under the condition of known P and h, the solution Output v, s, T; among them, P is the pressure, T is the temperature, v is the specific volume, s is the specific entropy, h is the specific enthalpy.
具体的,令多变压缩子过程G1的入口压力P(1)i=P1,令多变压缩子过程G1的入口温度为T(1)i=T1;Specifically, let the inlet pressure P (1)i = P1 of the polyvariable compression subprocess G1 , and let the inlet temperature of the polyvariate compression subprocess G1 be T (1)i = T1;
所述S21具体为,The S21 is specifically,
S211,在入口压力P(1)i和入口温度T(1)i的条件下,调用NIST数据库,计算多变压缩子过程G1的入口比容v(1)i、入口比焓h(1)i和入口比熵s(1)i;S211, under the conditions of inlet pressure P (1)i and inlet temperature T (1)i , call the NIST database to calculate the inlet specific volume v ( 1 )i and inlet specific enthalpy h (1 )i and entrance ratio entropy s (1)i ;
S212,根据入口压力P(1)i和预设的压比Alfa,通过公式P(1)j=P(1)i*Alfa,计算得到多变压缩子过程G1的出口压力P(1)j;S212, according to the inlet pressure P (1)i and the preset pressure ratio Alfa, through the formula P (1)j = P (1)i *Alfa, calculate the outlet pressure P (1) of the variable compression sub-process G 1 j ;
S213,假设多变压缩子过程G1的出口比熵s(1)j与入口比熵s(1)i相等,即令s(1)j=s(1)i;则在出口压力P(1)j和出口比熵s(1)j的条件下,调用NIST数据库,计算多变压缩子过程G1的拟定出口温度Ts(1)j;并令多变压缩子过程G1的出口温度T(1)j=Ts(1)j;S213, assuming that the outlet specific entropy s (1)j of the variable compression sub-process G 1 is equal to the inlet specific entropy s (1)i , that is, s (1)j = s (1)i ; then at the outlet pressure P (1 )j and the outlet specific entropy s (1)j , call the NIST database to calculate the proposed outlet temperature T s(1)j of the variable compression sub-process G 1 ; and make the outlet temperature of the variable compression sub-process G 1 T (1)j = T s(1)j ;
S214,在出口温度T(1)j和出口压力P(1)j的条件下,调用NIST数据库,计算多变压缩子过程G1的出口比容v(1)j、出口比焓h(1)j和出口比熵s(1)j;S214. Under the conditions of outlet temperature T (1)j and outlet pressure P (1)j , call the NIST database to calculate outlet specific volume v ( 1 )j and outlet specific enthalpy h (1 )j and export ratio entropy s (1)j ;
S215,根据所述S211中的入口比焓h(1)i、入口比熵s(1)i和入口温度T(1)i,以及所述S214中的出口比焓h(1)j、出口比熵s(1)j和出口温度T(1)j,利用Mallen模型,计算出多变压缩子过程G1的多变压缩子功计算值W′pol(1),以及利用多变过程压缩功定义模型,计算出多变压缩子过程G1的多变压缩子功定义值W″pol(1);S215, according to the inlet specific enthalpy h (1)i , inlet specific entropy s (1)i and inlet temperature T (1)i in S211, and the outlet specific enthalpy h (1)j and outlet Specific entropy s (1)j and outlet temperature T (1)j , use the Mallen model to calculate the multivariate compression sub-work calculation value W′ pol(1) of the multivariate compression sub-process G 1 , and use the multivariate process compression Work definition model, calculate the variable compression sub-work definition value W″ pol(1) of the variable compression sub-process G1 ;
S216,判断多变压缩子过程G1的多变压缩子功计算值W′pol(1)与多变压缩子功定义值W″pol(1)之差的绝对值是否小于或等于预设的迭代终止判据ε,若否,则将出口温度T(1)j加上预设的温度增量α,即令T(1)j=T(1)j+α,更新出口温度T(1)j,并重复循环执行所述S214~S215,直至多变压缩子过程G1的多变压缩子功计算值W′pol(1)与多变压缩子功定义值W″pol(1)之差的绝对值小于或等于所述迭代终止判据ε;S216, judging whether the absolute value of the difference between the multivariable compression sub-work calculation value W′ pol (1) of the multivariable compression sub-process G 1 and the defined value W″ pol (1) of the multivariable compression sub-work is less than or equal to the preset The iteration termination criterion ε, if not, add the outlet temperature T (1)j to the preset temperature increment α, that is, T (1)j = T (1)j + α, and update the outlet temperature T (1) j , and repeatedly execute the said S214~S215 in a loop until the difference between the multivariable compression sub-work calculation value W′ pol(1) of the multivariable compression sub-process G1 and the multivariable compression sub-work defined value W″ pol(1) The absolute value of is less than or equal to the iteration termination criterion ε;
S217,当多变压缩子过程G1的多变压缩子功计算值W′pol(1)与多变压缩子功定义值W″pol(1)之差的绝对值小于或等于所述迭代终止判据ε时,将多变压缩子过程G1的多变压缩子功计算值W′pol(1)与多变压缩子功定义值W″pol(1)的平均值作为多变压缩子过程G1的多变压缩子功Wpol(1)。S217, when the absolute value of the difference between the multivariable compression sub-work calculation value W' pol(1) and the multivariable compression sub-work definition value W" pol(1) of the multivariable compression sub-process G1 is less than or equal to the iteration termination When the criterion ε is used, the average value of the multivariable compression sub-work calculation value W′ pol(1) and the multivariable compression sub-work definition value W″ pol(1) of the multivariable compression sub-process G 1 is used as the multivariable compression sub-process The variable compression subwork W pol(1) of G 1 .
更进一步,多变压缩子过程G1最终的出口温度T(1)j为所述S216中最终更新的出口温度T(1)j,多变压缩子过程G1最终的出口比焓h(1)j和出口比熵s(1)j为,将所述S214中的出口温度T(1)j更新为所述S216中最终更新的出口温度T(1)j后,计算得出的出口比焓h(1)j和出口比熵s(1)j。Furthermore, the final outlet temperature T (1)j of the polyvariable compression sub-process G 1 is the final updated outlet temperature T (1)j in S216, and the final outlet specific enthalpy h (1 )j and the outlet specific entropy s (1)j are, after the outlet temperature T (1)j in the S214 is updated to the outlet temperature T (1)j finally updated in the S216, the calculated outlet ratio Enthalpy h (1)j and outlet specific entropy s (1)j .
具体的,令多变压缩子过程Gx+1的入口压力P(x+1)i=P(x)j,令多变压缩子过程Gx+1的入口温度为T(x+1)i=T(x)j;其中,x=1,2,3......n-1,n为管线压缩机的多变压缩子过程的总数;Specifically, let the inlet pressure P (x+1)i of the polyvariable compression subprocess G x+ 1 =P (x)j , let the inlet temperature of the polyvariable compression subprocess G x+1 be T (x+1) i =T (x)j ; where, x=1,2,3...n-1, n is the total number of variable compression sub-processes of the pipeline compressor;
所述S22具体为,The S22 is specifically,
S221,在入口压力P(x+1)i和入口温度T(x+1)i的条件下,调用NIST数据库,计算多变压缩子过程Gx+1的入口比容v(x+1)i、入口比焓h(x+1)i和入口比熵s(x+1)i;S221, under the conditions of the inlet pressure P (x+1)i and the inlet temperature T (x+1)i , call the NIST database to calculate the inlet specific volume v (x +1) of the variable compression sub-process G x+1 i , entrance specific enthalpy h (x+1)i and entrance specific entropy s (x+1)i ;
S222,根据入口压力P(x+1)i和预设的压比Alfa,通过公式P(x+1)j=P(x+1)i*Alfa,计算得到多变压缩子过程Gx+1的出口压力P(x+1)j;S222, according to the inlet pressure P (x+1)i and the preset pressure ratio Alfa, through the formula P (x+1)j =P (x+1)i *Alfa, calculate the variable compression sub-process G x+ 1 outlet pressure P (x+1)j ;
S223,假设多变压缩子过程Gx+1的出口比熵s(x+1)j与入口比熵s(x+1)i相等,即令s(x+1)j=s(x+1)i;则在出口压力P(x+1)j和出口比熵s(x+1)j的条件下,调用NIST数据库,计算多变压缩子过程Gx+1的拟定出口温度Ts(x+1)j;并令多变压缩子过程Gx+1的出口温度T(x+1)j=Ts(x+1)j;S223, assuming that the outlet specific entropy s (x+1)j of the variable compression sub-process G x+1 is equal to the inlet specific entropy s (x+1)i , that is, s (x+1)j = s (x+1 )i ; then under the conditions of outlet pressure P (x+1)j and outlet specific entropy s (x+1)j , the NIST database is called to calculate the planned outlet temperature T s of the variable compression sub-process G x+1 ( x+1)j ; And make the outlet temperature T (x+1)j =T s(x+1)j of the variable compression subprocess G x+1 ;
S224,在出口温度T(x+1)j和出口压力P(x+1)j的条件下,调用NIST数据库,计算多变压缩子过程Gx+1的出口比容v(x+1)j、出口比焓h(x+1)j和出口比熵s(x+1)j;S224, under the conditions of the outlet temperature T (x+1)j and the outlet pressure P (x+1)j , call the NIST database to calculate the outlet specific volume v (x+1) of the variable compression subprocess G x+1 j , outlet specific enthalpy h (x+1)j and outlet specific entropy s (x+1)j ;
S225,根据所述S221中的入口比焓h(x+1)i、入口比熵s(x+1)i和入口温度T(x+1)i,以及所述S224中的出口比焓h(x+1)j、出口比熵s(x+1)j和出口温度T(x+1)j,利用Mallen模型,计算出多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1),以及利用多变过程压缩功定义模型,计算出多变压缩子过程Gx+1的多变压缩子功定义值W″pol(x+1);S225, according to the inlet specific enthalpy h (x+1)i , the inlet specific entropy s (x+1)i , and the inlet temperature T (x+1)i in S221 , and the outlet specific enthalpy h in S224 (x+1)j , outlet specific entropy s (x+1)j and outlet temperature T (x+1)j , using the Mallen model to calculate the multivariate compression sub-work calculation of the multivariate compression subprocess G x+1 Value W′ pol(x+1) , and utilize the definition model of the multivariable process compression work to calculate the multivariate compression sub-work definition value W″ pol(x+1) of the multivariate compression subprocess G x+1 ;
S226,判断多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1)与多变压缩子功定义值W″pol(x+1)之差的绝对值是否小于或等于预设的迭代终止判据ε,若否,则将出口温度T(x+1)j加上预设的温度增量α,即令T(x+1)j=T(x+1)j+α,更新出口温度T(x+1)j,并重复循环执行所述S224~S225,直至多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1)与多变压缩子功定义值W″pol(x+1)之差的绝对值小于或等于所述迭代终止判据ε;S226, judge whether the absolute value of the difference between the multivariable compression sub-work calculation value W′ pol (x+1) of the multivariable compression sub-process G x+1 and the multivariable compression sub-work definition value W″ pol (x+1) is less than or equal to the preset iteration termination criterion ε, if not, add the outlet temperature T (x+1)j to the preset temperature increment α, that is, T (x+1)j = T (x+1 )j +α, update the outlet temperature T (x+1)j , and execute the S224~S225 repeatedly until the multivariable compression sub-work calculation value W ′ pol(x+ 1) The absolute value of the difference with the variable compression subwork definition value W″ pol(x+1) is less than or equal to the iteration termination criterion ε;
S227,当多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1)与多变压缩子功定义值W″pol(x+1)之差的绝对值小于或等于所述迭代终止判据ε时,将多变压缩子过程Gx+1的多变压缩子功计算值W′pol(x+1)与多变压缩子功定义值W″pol(x+1)的平均值作为多变压缩子过程Gx+1的多变压缩子功Wpol(x+1)。S227, when the absolute value of the difference between the multivariable compression sub-work calculation value W′ pol (x+1) and the multivariable compression sub-work defined value W″ pol (x+1) of the multivariable compression sub-process G x+ 1 is less than Or when it is equal to the iteration termination criterion ε, the multivariable compression sub-work calculation value W′ pol(x+1) of the multivariable compression sub-process G x+1 and the multivariate compression sub-work definition value W″ pol(x +1) as the polymorphic compression subwork W pol(x+1) of the polymorphic compression subprocess G x+1 .
更进一步,多变压缩子过程Gx+1最终的出口温度T(x+1)j为所述S226中最终更新的出口温度T(x+1)j,多变压缩子过程Gx+1最终的出口比焓h(x+1)j和出口比熵s(x+1)j为,将所述S224中的出口温度T(x+1)j更新为所述S226中最终更新的出口温度T(x+1)j后,计算得出的出口比焓h(x+1)j和出口比熵s(x+1)j。Furthermore, the final outlet temperature T (x+1)j of the variable compression sub-process G x +1 is the final updated outlet temperature T (x+1)j in S226, and the variable compression sub-process G x+1 The final outlet specific enthalpy h (x+1)j and outlet specific entropy s (x+1)j are, and the outlet temperature T (x+1)j in the S224 is updated as the final updated outlet in the S226 After temperature T (x+1)j , the calculated outlet specific enthalpy h (x+1)j and outlet specific entropy s (x+1)j .
综上,整个多变压缩过程的多变压缩功为:In summary, the polyvariable compression work of the entire polyvariable compression process is:
在本具体实施例中,将所述S21和所述S22综合在一起,得到如图2所示的综合方案。如图2所示:In this specific embodiment, the above S21 and the above S22 are combined to obtain the comprehensive solution shown in FIG. 2 . as shown in picture 2:
已知条件:管线压缩机的进口温度T1、进口压力p1、出口压力p2、整个多变压缩过程中的多变压缩效率ηpol。Known conditions: inlet temperature T 1 , inlet pressure p 1 , outlet pressure p 2 of the pipeline compressor, polytropic compression efficiency η pol in the entire polytropic compression process.
设定条件:迭代终止判据ε,微小的温度增量α,多变压缩子过程的压比Alfa。Setting conditions: iteration termination criterion ε, small temperature increment α, and pressure ratio Alfa of the variable compression sub-process.
综合方案如下:The comprehensive plan is as follows:
首先将整个多变压缩过程分成若干个多变压缩子过程。第一个多变压缩子过程的进口温度Ti=T1,进口压力pi=p1,下面对任意一个多变压缩子过程的多变压缩子功Wpoli的计算步骤进行说明。Firstly, the whole multivariate compression process is divided into several multivariate compression sub-processes. The inlet temperature T i =T 1 and the inlet pressure p i =p 1 of the first polyvariable compression sub-process. The calculation steps of the polyvariable compression sub-work W poli of any polyvariable compression sub-process will be described below.
(1)调用NIST数据库计算多变压缩子过程进口温度Ti,进口压力pi条件下天燃气的比容vi,比焓hi和比熵si;(1) Calculating the specific volume v i , specific enthalpy h i and specific entropy s i of natural gas under the conditions of inlet temperature T i and inlet pressure p i by calling NIST database;
(2)多变压缩子过程出口压力pj=pi*Alfa,判断pj与p2的大小关系,如果pj>p2,令pj=p2;(2) The variable compression sub-process outlet pressure p j =p i *Alfa, judge the size relationship between p j and p 2 , if p j >p 2 , set p j =p 2 ;
(3)多变压缩子过程出口压力为pj,假设多变压缩子过程出口天燃气比熵与进口相等,同为si,调用NIST数据库计算该条件下天燃气的比焓hsj,温度Tsj,以及比容vsj。令该多变压缩子过程的出口温度Tj=Tsj;(3) The outlet pressure of the variable compression sub-process is p j , assuming that the specific entropy of natural gas at the outlet of the variable compression sub-process is equal to that of the inlet, which is also s i , call the NIST database to calculate the specific enthalpy h sj of natural gas under this condition, and the temperature T sj , and specific volume v sj . Let the outlet temperature T j =T sj of the variable compression sub-process;
(4)多变压缩子过程出口温度为Tj,出口压力为pj,调用NIST数据库计算该条件下天燃气的比容vj,比焓hj和比熵sj;(4) The outlet temperature of the variable compression sub-process is T j , the outlet pressure is p j , and the specific volume v j , specific enthalpy h j and specific entropy s j of natural gas are calculated by calling the NIST database under this condition;
(5)步骤(1)获得进口参数,步骤(4)获得出口参数,分别将计算结果代入式(4)进行计算,得到多变功Wpoli1,代入式(5)进行计算,得到多变功Wpoli2;(5) Step (1) obtains the import parameters, and step (4) obtains the export parameters, and respectively substitutes the calculation results into formula (4) for calculation to obtain the polyvariable work W poli1 , which is substituted into formula (5) for calculation to obtain the polyvariable work W poli2 ;
(6)定义Wpoli1和Wpoli2之差的绝对值为abs(Wpoli1-Wpoli2)。如果abs(Wpoli1-Wpoli2)>ε,给Tj加上α,更新Tj的值,重复步骤(4)、(5),直到abs(Wpoli1-Wpoli2)≤ε;(6) Define the absolute value of the difference between W poli1 and W poli2 as abs(W poli1 −W poli2 ). If abs(W poli1 -W poli2 )>ε, add α to T j , update the value of T j , repeat steps (4), (5) until abs(W poli1 -W poli2 )≤ε;
(7)令Wpoli=(Wpoli1+Wpoli2)/2,得到该多变压缩子过程的多变功Wpoli的值,多变压缩子过程多变功Wpoli的计算完成。(7) Set W poli =(W poli1 +W poli2 )/2 to obtain the value of the variable work W poli of the variable compression sub-process, and the calculation of the variable work W poli of the variable compression sub-process is completed.
上一个多变压缩子过程的出口条件是下一个多变压缩子过程的入口条件,即计算完某一个多变压缩子过程的多变功之后,令pi=pj,Ti=Tj,即可进入下一个多变压缩子过程的多变功的计算,整个多变压缩过程计算终止条件是某一多变压缩子过程的出口压力pj≥p2。将所有多变压缩子过程的多变功相加,得到整个多变压缩过程的多变压缩功。The exit condition of the last polyvariable compression sub-process is the entry condition of the next polyvariable compression sub-process, that is, after calculating the polyvariable work of a certain polyvariable compression sub-process, let p i =p j , T i =T j , that is to enter the calculation of the polyvariable work of the next polyvariable compression sub-process. The calculation termination condition of the entire polyvariable compression process is that the outlet pressure p j ≥ p 2 of a certain polyvariable compression sub-process. The polyvariable compression work of all polyvariable compression sub-processes is added to obtain the polyvariable compression work of the entire polyvariable compression process.
在本具体实施例中,某天燃气的管线压缩机的进出口参数如下:进口温度为307.55K,进口压力为6927kPa,出口温度为338.95K,出口压力为6927kPa,多变压缩效率ηpol为87.4%。利用本发明的方法和现有技术的方法(背景技术中公式(1)的计算方法)对该天燃气管线压缩机压缩过程多变功进行计算,得到如下表1所示的结果。由表1可以看出本发明的方法计算精度较传统方法计算精度有很大提高。In this specific embodiment, the inlet and outlet parameters of a natural gas pipeline compressor are as follows: the inlet temperature is 307.55K, the inlet pressure is 6927kPa, the outlet temperature is 338.95K, the outlet pressure is 6927kPa, and the variable compression efficiency η pol is 87.4 %. Using the method of the present invention and the method of the prior art (the calculation method of the formula (1) in the background art) to calculate the multivariate work of the natural gas pipeline compressor during the compression process, the results shown in Table 1 below are obtained. It can be seen from Table 1 that the calculation accuracy of the method of the present invention is greatly improved compared with the calculation accuracy of the traditional method.
表1:不同方法计算管线压缩机多变压缩功的结果Table 1: Calculation results of variable compression work of pipeline compressors by different methods
基于上述一种管线压缩机能耗测量方法,本发明还提供一种管线压缩机能耗测量系统。Based on the above method for measuring energy consumption of a pipeline compressor, the present invention also provides a system for measuring energy consumption of a pipeline compressor.
如图3所示,一种管线压缩机能耗测量系统,包括以下模块,As shown in Figure 3, a pipeline compressor energy consumption measurement system includes the following modules,
多变压缩过程分解模块,其用于根据管线压缩机的进、出口压力将管线压缩机的整个多变压缩过程分为多个多变压缩子过程;A polyvariable compression process decomposition module, which is used to divide the entire polyvariable compression process of the pipeline compressor into multiple polyvariable compression sub-processes according to the inlet and outlet pressures of the pipeline compressor;
多变压缩子功计算模块,其用于基于多变功求解模型依次求解每个多变压缩子过程的多变压缩子功;A multivariable compression sub-work calculation module, which is used to sequentially solve the multivariable compression sub-work of each multivariable compression sub-process based on the multivariable work solution model;
多变压缩子功叠加求和模块,其用于将所有多变压缩子过程的多变压缩子功进行叠加,得到管线压缩机整个多变压缩过程的多变压缩功。The polyvariable compression sub-work superposition and summation module is used to superimpose the polyvariable compression sub-works of all the polyvariable compression sub-processes to obtain the polyvariable compression work of the entire polyvariable compression process of the pipeline compressor.
基于上述一种管线压缩机能耗测量方法,本发明还提供一种计算机存储介质。Based on the above method for measuring energy consumption of a pipeline compressor, the present invention further provides a computer storage medium.
一种计算机存储介质,包括存储器,以及存储在所述存储器上的计算机程序,当所述计算机程序被处理器执行时实现如上述所述的管线压缩机能耗测量方法。A computer storage medium includes a memory, and a computer program stored on the memory, when the computer program is executed by a processor, the method for measuring energy consumption of a pipeline compressor as described above is implemented.
本发明采用直接积分模型对多变过程压缩功进行计算,直接积分模型就是将整个多变压缩过程分成若干个子过程,对每一个子过程分别进行求解,因此能够更好地模拟天燃气在压缩过程中的变化,因而直接积分模型的适用范围更广,还可以适用于有相变的压缩过程。另外,本发明采用更精确的多变功求解模型——Mallen模型对多变压缩子过程的多变压缩子功进行求解,从第一个多变压缩子过程求解到最后一个多变压缩子过程,然后将所有多变压缩子过程的多变压缩子功相加得到整个多变压缩过程的多变压缩功,这样就可以对整个多变压缩过程的多变压缩功进行更加精确的计算;同时这种计算方法避免了求解多变过程指数m带来的计算误差。The present invention uses the direct integral model to calculate the compression work of the variable process. The direct integral model divides the entire variable compression process into several sub-processes, and solves each sub-process separately, so it can better simulate the compression process of natural gas. Therefore, the application range of the direct integration model is wider, and it can also be applied to the compression process with phase change. In addition, the present invention adopts a more accurate multivariable work solution model—Mallen model to solve the multivariable compression sub-work of the multivariate compression subprocess, from the first multivariate compression subprocess to the last multivariate compression subprocess , and then add the polyvariable compression sub-works of all polyvariable compression sub-processes to obtain the polyvariable compression work of the entire polyvariable compression process, so that the polyvariable compression work of the entire polyvariable compression process can be calculated more accurately; at the same time This calculation method avoids the calculation error caused by solving the multivariate process exponent m.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111203586.8A CN113944621B (en) | 2021-10-15 | 2021-10-15 | Pipeline compressor energy consumption measurement method, system and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111203586.8A CN113944621B (en) | 2021-10-15 | 2021-10-15 | Pipeline compressor energy consumption measurement method, system and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113944621A CN113944621A (en) | 2022-01-18 |
CN113944621B true CN113944621B (en) | 2023-06-13 |
Family
ID=79330640
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111203586.8A Active CN113944621B (en) | 2021-10-15 | 2021-10-15 | Pipeline compressor energy consumption measurement method, system and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113944621B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104964167A (en) * | 2015-07-07 | 2015-10-07 | 成都国光电子仪表有限责任公司 | Natural gas station linkage system with good system stability |
CN109408869B (en) * | 2018-09-12 | 2019-08-23 | 西安交通大学 | A kind of reciprocating compressor selection designing method |
CN110705079B (en) * | 2019-09-25 | 2023-01-03 | 哈尔滨工程大学 | Centrifugal compressor structure optimization method based on simulated annealing algorithm |
CN111503025B (en) * | 2020-03-27 | 2021-04-02 | 西安联创分布式可再生能源研究院有限公司 | Low-pressure-ratio axial flow compressor model level performance calculation method |
CN113032935B (en) * | 2021-03-12 | 2022-04-05 | 西南石油大学 | A large-scale parallel natural gas pipeline network optimization operation model and solution method |
-
2021
- 2021-10-15 CN CN202111203586.8A patent/CN113944621B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113944621A (en) | 2022-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108197432B (en) | A Reconstruction Method of Gene Regulatory Network Based on Gene Expression Data | |
CN112417632B (en) | Simulation calculation method and system for town gas pipe network | |
CN111313403B (en) | A method for network topology identification of low-voltage distribution system based on Markov random field | |
CN107885951A (en) | A kind of Time series hydrological forecasting method based on built-up pattern | |
CN110866773B (en) | Electric-gas combined market distributed clearing method based on alternative direction multiplier method | |
CN113944621B (en) | Pipeline compressor energy consumption measurement method, system and computer storage medium | |
CN112736902B (en) | STL decomposition-based time series short-term power load prediction method | |
Colera et al. | A numerical scheme for the thermodynamic analysis of gas turbines | |
CN111104734B (en) | Inversion prediction method for pumped storage power station unit load shedding test | |
CN112231993A (en) | Generalized method and device of channel section based on Douglas-Pucker | |
CN108537380A (en) | A kind of Methods of electric load forecasting based on rarefaction representation | |
CN110796295A (en) | Energy internet air network transmission optimization method | |
CN108509692B (en) | A Modeling Method for High Sulfur Natural Gas Desulfurization Process Based on MiUKFNN Algorithm | |
CN113641733A (en) | Real-time intelligent estimation method for river cross section flow | |
CN112862063A (en) | Complex pipe network leakage positioning method based on deep belief network | |
CN113297813B (en) | Power flow calculation method for electric-gas energy system based on improved third-order Newton iteration method | |
CN117406121A (en) | SOH estimation method for lithium ion battery of energy storage power station | |
CN114298446B (en) | Wind power prediction method and device based on digital-analog dual-drive and storage medium | |
CN116613740A (en) | Intelligent load prediction method based on transform and TCN combined model | |
CN112488550B (en) | Uncertainty power grid static safety analysis method and system based on deep learning | |
CN115599927A (en) | Timing sequence knowledge graph completion method and system based on metric learning | |
CN111616686B (en) | Physiological signal imbalance analysis method based on Heaviside kernel function | |
CN114840591A (en) | A method and device for determining power data of segmented switch | |
US20220309214A1 (en) | Cfd numerical simulation based fluid equipment resistance optimization algorithm | |
CN110009036A (en) | A method to improve the comprehensive benefit of hydropower station |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20241028 Address after: Room 08-10, 6 / F, block a, No. 5, Dongtucheng Road, Chaoyang District, Beijing 100013 Patentee after: National Petroleum and natural gas pipeline network Group Co.,Ltd. Country or region after: China Patentee after: Sichuan East Natural Gas Pipeline Co.,Ltd. Address before: 1-5 / F, Wuhan control center, No.126 Guanggu Avenue, Donghu New Technology Development Zone, Wuhan City, Hubei Province, 430074 Patentee before: Sichuan East Natural Gas Pipeline Co.,Ltd. Country or region before: China |