DEVICE FOR MEASURING AND CONTROLLING A GAS
20220229949 · 2022-07-21
Assignee
Inventors
Cpc classification
G06F30/18
PHYSICS
F17D3/12
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F17C2265/027
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
International classification
G06F30/18
PHYSICS
F17D1/04
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F17D3/12
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
G01F23/18
PHYSICS
Abstract
The present invention concerns a calculation method (1000) for the positioning of sensors for measuring an odorant gas in a natural gas network (2000), comprising the steps of: acquisition (1010) of data representing the physical state of the natural gas network (2000), simulation (1020) of the natural gas network (2000), calculation (1030) of the position of odorant gas sensors.
Claims
1. Calculation method (1000) for the positioning of sensors designed to measure an odorant gas in a natural gas network (2000), including the steps of: acquisition (1010) of data representing the physical state of the natural gas network (2000), simulation (1020) of the natural gas network (2000), calculation (1030) for the positioning of odorant gas sensors.
2. Method according to claim 1, wherein the data acquisition step (1010) includes the acquisition of one or more among: topographic data of network nodes (2101-2105), geometric data of the pipelines (2201-2206), load conditions, coverage factor of the measuring sensors with respect to the critical areas defined on the basis of the residence time of the natural gas inside the pipelines (2201-2206).
3. Method according to claim 2, wherein the load conditions include one or more among natural gas inlet points, natural gas outlet points, maximum outlet values, and the input of the pressure levels at the control stations.
4. Method according to claim 1, wherein the simulation step (1020) includes a Monte Carlo simulation of the structure of the natural gas network (2000).
5. Method according to claim 1, wherein the natural gas network (2000) comprises a plurality of network nodes (2101-2105) and a plurality of pipelines (2201-2206) and the simulation step (1020) includes the calculation of the average travel time for each pair of nodes (2201-2206).
6. Method according to claim 5, wherein the calculation of the average travel time includes the calculation of the pressure drop in an i-th pipeline according to the equation
7. Method for controlling odorant gas injectors in a natural gas network (2000), including the steps of: calculation for the positioning of sensors for measuring an odorant gas according to any of the preceding claims, positioning of the sensors according to the result of the position calculation, feedback control of the odorant gas injectors using the odorant gas values measured by said sensors as input.
Description
BRIEF LIST OF THE DRAWINGS
[0036] Further characteristics and advantages of the invention are highlighted more clearly in the following detailed description of preferred but not exclusive embodiments, illustrated by way of non-limiting example making reference to the attached drawings.
[0037] In the drawings, the same reference numbers identify the same components.
[0038] In particular:
[0039]
[0040]
[0041]
DESCRIPTION OF PREFERRED EMBODIMENTS
[0042] The following detailed description illustrates several embodiments, making reference to the figures. It is clear, however, that the present invention is not limited to the embodiments described and/or illustrated herein. More specifically, it is clear that different characteristics belonging to different embodiments may be combined with one another to obtain different embodiments. It is also clear that not all the characteristics of an individual embodiment are to be considered necessary for obtaining said embodiment. More specifically, in some cases certain characteristics may be described only for the purpose of clarifying the specific operation of the embodiment being described, even though they are not strictly necessary for the implementation of the invention. Furthermore, individual characteristics of a first and of a second embodiment may be combined with one another in such a way as to create a third embodiment of the invention without requiring the presence of all the other characteristics of the first and of the second embodiment.
[0043] Generally speaking, the invention concerns a control procedure that makes it possible to control the injector based on measurement data provided by a gas chromatography sensor. Such control poses inherent difficulties due to the correlation between the input data, meaning the sensor's output, and the output data, meaning the injector's input. In other words, it is difficult to optimize the introduction of the odorant based on a physical-analytical model capable of correctly describing the physics of the problem and thus of predicting/optimizing operation. There is also another difficulty related to the need to measure the odorant compound continuously with sufficient precision.
[0044] Again, generally speaking, the invention makes it possible to calculate the ideal position of the sensors for different types of natural gas network. Generally speaking, the invention resolves these problems by measuring a plurality of inputs which, for example, may comprise: [0045] gas pressure at various points of the network [0046] volumetric gas flow rate at various points of the network [0047] concentration of compounds at various points of the network
and inputting these values in a physical-mathematical model, in such a way as to optimize a certain target function, for example the quantity of odorant to be introduced in the network and/or the specific injection points. This physical-mathematical model thus makes it possible to define the points where the sensors must be positioned. Once the sensors have been positioned, the invention provides for a control strategy based on a simplified dynamic model representing the network, an example of which can be a PID, Proportional-Integral-Derivative, feedback control, that is, a negative feedback system.
[0048]
[0049] As can be seen in
[0050] The acquired data may comprise, specifically, one or more among: [0051] topographic data of the network nodes 2101-2105, for example their position in space, [0052] geometric data of the pipelines 2201-2206, for example diameter, length and roughness, [0053] load conditions such as, for example, one or more among natural gas inlet points, natural gas outlet points, maximum outlet values, and the input of the pressure levels at the control stations, meaning that the outlet pressure at the stations is assigned as boundary condition of the model, [0054] coverage factor of the measuring sensors with respect to the critical areas defined on the basis of the residence time of the natural gas inside the pipelines 2201-2206.
[0055] More specifically, the concentration of one or more odorant gases can be measured by means of a gas chromatography sensor.
[0056] Some of the data, in particular those related to pressure, flow rate and concentration, can be measured at one or more points of the natural gas network 2000. It will thus be possible to combine different values measured at different points in relation to the same type of data.
[0057] Step 1020 consists in the simulation of the natural gas network 2000.
[0058] In general terms, in some embodiments the network 2000 can be simulated through a simplified fluid dynamic model, whose boundary conditions represent different load conditions, for example: [0059] the night and day conditions in summer, [0060] the night and day conditions in winter, [0061] intermediate conditions.
[0062] The simulation model is generally based on the conservation of the mass applied to nodes 2101-2105 of the network 2000 and the momentum balance applied to pipelines 2201-2206. Furthermore, it is also possible to apply some hypotheses related to the conditions being examined, for example the assumption of isothermality of the gas in the network and the assumption of ideality of the gas for the simulated mixture.
[0063] In some embodiments, the simulation step 1020 may comprise a Monte Carlo simulation of the structure of the network 2000.
[0064] Furthermore, in some embodiments, the simulation step 1020 may comprise the calculation of the average travel time for each pair of network nodes 2201-2206. Based on this data, it is possible to define critical areas, such as those areas where the average travel time of the natural gas exceeds a predefined value, for example is more than 8 hours, more preferably more than 24 hours.
[0065] In particular, for a given pair of nodes, for example 2102 and 2103, there can be several routes, in turn made up of several pipelines, in this example the route through pipeline 2201, the route through pipelines 2203 and 2202, and the route through pipelines 2204, 2205 and 2206. The calculation of the average travel time for the pair of nodes 2102 and 2103 is thus made considering all the possible routes, using the individual flow rates of each route as weight. In some embodiments, this analysis can be made for all load conditions, with a Monte Carlo simulation, in such a way as to obtain a distribution of average travel times between the two nodes. From this distribution it is possible to establish the characteristic average time between the pair of nodes.
[0066] The calculation of the average travel time is preferably repeated for all the pairs of nodes of the network 2000, in such a way as to identify the critical nodes in terms of longer travel time.
[0067]
[0068] In a first step the first trial values are selected for the flow rates of each pipeline 2201-2203 and for the pressure at nodes 2101-2103. On the first iteration the pressures at nodes 2101-2103 are assumed to be the same as the pressure at node 2101, while the flow rates are such as to guarantee mass conservation in the network, the loads being known.
[0069] In a second step the pressure drops are linearized. As can be seen in the following equation 1
the pressure drops in the pipeline are non-linearly dependent on the flow rate. In equation 1), the symbols are defined as follows: [0070] ΔP=pressure drop [0071] P=pressure [0072] m=mass flow rate [0073] f=friction factor [0074] L=pipeline length [0075] D=pipeline diameter [0076] P=reference pressure for the pipeline [0077] M=molar mass of the gas in transit [0078] R=universal gas constant [0079] T=reference temperature for the pipeline under assumption of isothermality [0080] A=pipeline cross section [0081] Pout=pressure at pipeline outlet
and where the “i” subscript indicates the i-th pipeline.
[0082] In order to solve the system made up by the mass balances at nodes 2101-2103, defined by equation 2
where Ln is the load at node n, and the momentum balances at pipelines 2201-2203, defined by equation 3
equation 4) defining the pressure drops
ΔP.sub.i=P.sub.i,in−P.sub.i,out Eq. 4)
is linearized and the system is solved with an iterative method, in equation 5) index k indicates the iteration:
[0083] As shown in the equation above, the linearization is obtained by using a Taylor series expansion truncated at the first order. The derivative of the pressure drops as a function of the flow rate can be calculated analytically using the equation above.
[0084] In a third step the linear system is solved. Once the momentum balances at pipelines 2201-2203 have been linearized, it is possible to solve the linear system by using LU decomposition.
[0085] In a fourth step the convergence of the solution is verified. The convergence of the solution can be verified by comparing the solution to the preceding iteration with the new solution. If the two solutions are similar, the system is convergent. If the two solutions are different, the iterative process is resumed starting from the second step.
[0086] An example of application of the steps described above for the calculation of the average travel time is provided below.
[0087] The following table specifies the pipeline geometrical data, for example for pipelines 2201-2203, as input in the data acquisition step 1010:
TABLE-US-00001 Diameter [mm] Length [m] Roughness [mm] Pipeline 2201 100 300 0.3 Pipeline 2202 125 400 0.3 Pipeline 2203 75 500 0.3
[0088] The loads applied to nodes 2101-2103, for example, are specified in the following table:
TABLE-US-00002 Load [Nm.sup.3/h] Node 2101 0 Node 2102 2124 Node 2103 3158
[0089] The pressure at node 2101 is assumed to be equal to 4 bars and the gas properties are the average properties of the natural gas present in Italy.
[0090] Iteration 0: the following flow rates and pressures are assumed for the first iteration:
TABLE-US-00003 Flow rate [Nm.sup.3/h] Node Pressure [bar] Pipeline 2201 1760.67 2101 4 Pipeline 2202 1760.67 2102 4 Pipeline 2203 1760.67 2103 4
[0091] In some embodiments, the initial values are selected by distributing the load set as boundary condition on the pipelines. This gives an initial estimation, which obviously does not take in consideration the pressure drops but makes it possible to satisfy the mass balance and accelerates the convergence of the iterative solver. With these initial conditions, the following values are obtained for the derivative and the pressure drops:
TABLE-US-00004 Derivative [barh/Nm.sup.3] Pressure drops [bar] Pipeline 2201 0.00027589 0.237 Pipeline 2202 0.00011072 0.096 Pipeline 2203 0.00369924 2.281
which lead to the following solution to the linear system:
TABLE-US-00005 Flow rate [Nm.sup.3/h] Node Pressure [bar] Pipeline 2201 −764.84 2101 4 Pipeline 2202 3922.84 2102 3.152 Pipeline 2203 1359.16 2103 3.612
[0092] By comparing the table above with the one assumed in iteration 0, it is possible to conclude that the two solutions are different and therefore it is necessary to proceed with a new iteration.
[0093] Iteration 1: the initial values of this iteration are the results given in the last table of iteration 0, which generate the following values for derivative and pressure drops:
TABLE-US-00006 Derivative [barh/Nm.sup.3] Pressure drops [bar] Pipeline 2201 0 −0.052 Pipeline 2202 0 0.495 Pipeline 2203 0.002 1.191
[0094] Using these values to solve the linear system, the following is obtained:
TABLE-US-00007 Flow rate [Nm.sup.3/h] Node Pressure [bar] Pipeline 2201 −1029.59 2101 4 Pipeline 2202 4187.59 2102 3.294 Pipeline 2203 1094.41 2103 3.383
[0095] Comparing the solution of the previous iteration with that of the current one, it is possible to observe a difference in the order of 300 Nm.sup.3/h for the flow rates and of 0.3 bar for the pressures. These differences exceed a threshold level, therefore it is necessary to proceed with a further iteration.
[0096] In order to determine when the difference between the solutions of successive iterations can be considered acceptable, a realistic pattern of threshold values can be used. In some embodiments of the invention, the threshold values can be selected as: [0097] threshold for the calculation of the ΔP value between two steps lower than 1%, more preferably lower than 0.5% and even more preferably lower than or equal to 0.1% [0098] threshold for the flow rate, between two steps, preferably lower than 10-5, more preferably lower than 10-6 [0099] threshold for the total vector, between two steps, preferably lower than 10-6, more preferably lower than 10-7.
[0100] When all the convergence criteria are met, the cycle can be abandoned and the iterative system is considered solved.
[0101] Iteration 2: the new values for the derivatives and the pressure drops are the following:
TABLE-US-00008 Derivative [barh/Nm.sup.3] Pressure drops [bar] Pipeline 2201 0 −0.091 Pipeline 2202 0 0.568 Pipeline 2203 0.001 0.735
[0102] Using these values to solve the linear system, the following is obtained:
TABLE-US-00009 Flow rate [Nm.sup.3/h] Name Pressure [bar] Pipeline 2201 −1069.43 2101 4 Pipeline 2202 4227.43 2102 3.271 Pipeline 2203 1054.56 2103 3.368
[0103] After this second iteration, the difference related to the flow rates has lowered to approximately 40 Nm3/h, while the difference related to the pressures to 0.03 bar. This value still exceeds the predetermined threshold value for this exemplification case and thus it is necessary to proceed with a new iteration.
[0104] Iteration 3: the results of the previous iteration give the following flow rate and pressure drop values:
TABLE-US-00010 Name Derivative [barh/Nm.sup.3] Pressure drop [bar] Pipeline 2201 0 −0.098 Pipeline 2202 0 0.579 Pipeline 2203 0.001 0.679
[0105] Using these values to solve the linear system, the following is obtained:
TABLE-US-00011 Flow rate [Nm.sup.3/h] Node Pressure [bar] Pipeline 2201 −1070.03 2101 4 Pipeline 2202 4228.03 2102 3.271 Pipeline 2203 1053.97 2103 3.368
[0106] After the third iteration, the difference related to the flow rates has lowered to approximately 1 Nm.sup.3/h , while the difference related to the pressures is zero. It can thus be concluded that the solution is convergent, since both the differences are below their respective threshold values.
[0107] The solution obtained and the decay kinetics specified in the following equation:
using a K value equal to 10 1/h make it possible to calculate the concentration of odorant at the nodes. In embodiments of the invention, the K value can be selected within the range between 10 and 1000000.
[0108] The result is given in the following table:
TABLE-US-00012 Node mg/Nm.sup.3 2101 10 2102 9.76 2103 9.89
[0109] From this analysis provided by way of example it can thus be concluded that the two nodes 2102 and 2103 have an odorant concentration different from 10 mg/Nm.sup.3, due to the different average travel times.
[0110] On the base of the transported concentration, it is thus possible to calculate the average time between all the pairs of nodes according to equation 7):
x_node.sub.i=x_inlet_point*(1−k*t^(−alpha)) Eq. 7)
where [0111] x_node.sub.i is the concentration in the transported quantity at the i-th node; [0112] x_inlet_point is the concentration in the introduced quantity at the inlet point, therefore known; [0113] k is a parameter that indicates the decay curve slope, a known parameter; [0114] t is the average travel time between the two nodes under examination, which is thus obtained from equation 7) by reversing it; [0115] alpha is a set decay parameter, in this case=1.
[0116] In this way, it is thus possible to calculate the travel time between any pair of nodes. As explained above, by averaging the travel times based on the flow rates, it is possible to obtain the average travel time between two nodes 2101-2015.
[0117] In this way it is possible to define the most critical areas for positioning the sensors. Once the sensors have been positioned, it is possible to use the value measured by the sensors to adjust the quantity of odorant to be introduced according to the feedback, taking into account the dynamics of the system.
[0118] In several countries, the manager of the natural gas network 2000 has the obligation to maintain the concentration of odorant within a predetermined interval. In the case illustrated by way of example, the interval can have a minimum value of 10 mg/Nm.sup.3. It is thus necessary to select the position of the odorant gas sensors in such a way as to ensure that the odorant gas is maintained within the predetermined interval.
[0119] Step 1030 consists in the calculation of the position of the odorant gas sensors inside the natural gas network 2000, based on the results obtained from step 1020. In general, as described above, step 1020 provides an evaluation of the average travel time of natural gas between several pairs of nodes 2101-2105, in such a way as to identify the pipelines 2201-2206 where the average travel time of the gas exceeds a pre-established value.
[0120] More specifically, once the travel times have been calculated, as illustrated above, it is possible to position the gas chromatography sensors to cover the network according to a coverage factor provided as an input.
[0121] The procedure is thus the following: [0122] defining a coverage factor, for example equal to 90% and preferably exceeding 75%; [0123] calculating the critical areas according to a threshold transit time value, for example 8 hours. In some embodiments, this is possible thanks to the network topographic data received, complemented by the geolocalization of the nodes and the pipelines; [0124] once the critical geographic areas, defined as those areas with average travel time above the threshold value, have been identified, the number and position of the sensors are calculated based on the coverage radius of one sensor, which in the case of technology available on the market can be, for example, 0.5 km; [0125] in this way the number and position of the sensors designed to measure the odorant value with a predetermined frequency are obtained.
[0126] It is clear that, in order to define the configuration best suited to reduce transit times and therefore criticalities, the simulation can be made also with different conditions. In this way, the invention makes it possible to optimize the odorant level in the network through a design of the network and a feedback control. The invention thus makes it possible to implement a control method for injectors designed to inject odorant gas in the natural gas network 2000. In particular, as described above, it is possible to calculate the position of the sensors for measuring an odorant gas by proceeding as described above. Once the ideal position of the sensors has been calculated, it is possible to position the sensors according to the results of the position calculation. Finally, it is possible to proceed to a feedback control of the odorant gas injectors, using the odorant gas values measured by said sensors as an input.
[0127] Thanks to this method, it is thus possible to guarantee that the quantity of odorant gas will be within the interval of pre-established values over the entire natural gas network 2000, independently of the configuration of the network.
[0128] Even though the invention has been described with reference to certain embodiments, each comprising one or more specific characteristics, it is clear that the invention should not be considered limited to said embodiments and that alternative embodiments can be obtained by combining one or more characteristics of the embodiments described.