The present invention concerns a gas measuring and controlling device. More specifically, it concerns a device that makes it possible to measure a characteristic of a gas and to control physical characteristics of the gas based on the measured characteristic.
The natural gas distributed by national gas networks is an odourless gas and, in order to allow users to perceive any leaks, small quantities of odorant gas with a recognizable odour are added thereto. Odorant gas usually comprises tert-butyl mercaptan (TMB) and/or tetrahydrothiophene (THT).
The odorant gas, preferably in the liquid form, is introduced in the natural gas distribution network by means of injectors. In Italy, for example, a standard concentration of odorant gas is 10 mg/Sm3 for TBM, that is, approximately 2.5 ppm, while it is 32 mg/Sm3 for THT, that is, approximately 8 ppm. It is important to ensure that the concentration of odorant gas remains within a pre-established range of values, since an excessively small quantity could not be enough to be perceived by the users in case of leak. On the contrary, an excessively high concentration may give false positives, so that small gas leaks, allowed for by the system design, may be perceived as a problem by the user.
The need to maintain the concentration of odorant gas within a specific interval introduces a series of technical problems. More specifically, it requires that the odorant gas injectors constantly work without malfunctions, or that they be checked periodically, which causes operating costs to increase. Furthermore, another problem is the fading of the odorant gas in the pipelines. More specifically, sulphur compounds such as, for example, TBM and THT, may produce a decay effect if they remain in contact with the pipelines, possibly in the presence of iron oxide, for very long times, for example weeks. These operating conditions may occur, for example, if the gas demand is low, if the network pressures are set in a certain way and if the mesh network includes long routes to reach specific users or areas.
In order to guarantee that the concentration of odorant gas is correct, the composition of the gas inside the natural gas transport and distribution system is presently carried out through occasional sample analyses which are performed using portable equipment.
This solution, however, is not very effective, since a technician must go to the measurement site and carry the measuring equipment along. More specifically, technicians nowadays use portable gas chromatographs. This type of instrument requires high precision and at the same time is very delicate. It must be recharged every day and serviced approximately once a year. This makes this kind of instrument very expensive. Furthermore, the instruments available on the market are rather heavy to transport, in fact they weigh approximately 20 kg, and are not automated. Thus, the technician needs to connect the instrument to the measurement point, start the analysis and save the results. Once having obtained the results, he/she sends the relevant report to the person/body responsible for receiving it. Therefore, the application of the procedure in real time is not possible. Alternatively, instead of using portable equipment, it is possible to carry out the measurement by collecting a gas sample and physically bringing it to a lab. The gas is then analysed with very precise instruments and the results are communicated a few days later. This application cannot provide any results in real time, either.
Based on the results obtained in this way, it is then possible to adjust the injector, where necessary.
In similar applications, in which, however, the characteristics to be measured are not those of the odorant gas, the need for a measuring procedure in line with the distribution process has led to the widespread use of instruments based on less accurate physical principles such as, for example, electrochemical cells. These instruments are suitable for remote applications but in the case of odorant gas cannot guarantee sufficient precision for the type of measurement to be carried out, due to the low concentration of odorant gas. Another example of equipment typically suited to be installed in line for the purpose of measuring the compounds contained in a gas is the equipment based on optical techniques. However, this solution does not provide the precision which is necessary for measuring concentrations like those described above for odorant gas, either.
A type of sensor that makes it possible to measure gas concentrations with the required precision is a gas chromatography sensor.
To date, however, this sensor has not been used for the remote and in-line measurement of odorant gases. One of the reasons why this use has not been possible lies in that an expert technician must be present on site to read the measured value and adjust the injector. This need makes any real time measurement useless, as any reaction to the measurement requires the presence of a technician on site.
Nothing is known to have been done in the industrial field to feedback the measurement of a gas composition by adjusting pressures, flow rates, compound injection levels or other parameters. A difficulty in the implementation of an automatic management system for the injector based on the measurement is given by the need to develop a mathematical model capable of representing faithfully the physics of the problem, which is typically based on non-linear relationships between flow rate and pressures. In addition, it is also difficult to feedback actuators capable of regulating the controlled variables. To date, no application of this kind is known.
Thus, it is an object of the present invention to provide a device that makes it possible to control one or more injectors of gas, preferably odorant gas, based on a measurement of a physical characteristic of the gas, preferably carried out by means of a gas chromatography sensor.
The invention concerns a device for measuring and controlling a gas according to the independent claim. Advantageous embodiments of the invention are also defined in the dependent claims.
More specifically, the invention may concern a calculation method for positioning sensors designed to measure an odorant gas in a natural gas network, comprising the following steps: acquisition of data representing the physical state of the natural gas network,
simulation of the natural gas network,
calculation for the positioning of odorant gas sensors.
In some embodiments, the data acquisition step (1010) may comprise the acquisition of one or more among:
In some embodiments, the load conditions may comprise 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.
In some embodiments, the simulation step may comprise a Monte Carlo simulation of the structure of the natural gas network.
In some embodiments, the natural gas network may comprise a plurality of network nodes and a plurality of pipelines and the simulation step may comprise the calculation of the average travel time for each pair of nodes.
In some embodiments, the calculation of the average travel time may comprise the calculation of the pressure drop in a i-th pipeline according to the equation
where
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.
In the drawings, the same reference numbers identify the same components.
In particular:
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.
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.
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:
As can be seen in
The acquired data may comprise, specifically, one or more among:
More specifically, the concentration of one or more odorant gases can be measured by means of a gas chromatography sensor.
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.
Step 1020 consists in the simulation of the natural gas network 2000.
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:
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.
In some embodiments, the simulation step 1020 may comprise a Monte Carlo simulation of the structure of the network 2000.
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.
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.
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.
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.
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:
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
i
=P
i,in
−P
i,out Eq. 4)
is linearized and the system is solved with an iterative method, in equation 5) index k indicates the iteration:
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.
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.
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.
An example of application of the steps described above for the calculation of the average travel time is provided below.
The following table specifies the pipeline geometrical data, for example for pipelines 2201-2203, as input in the data acquisition step 1010:
The loads applied to nodes 2101-2103, for example, are specified in the following table:
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.
Iteration 0: the following flow rates and pressures are assumed for the first iteration:
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:
which lead to the following solution to the linear system:
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.
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:
Using these values to solve the linear system, the following is obtained:
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 Nm3/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.
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:
When all the convergence criteria are met, the cycle can be abandoned and the iterative system is considered solved.
Iteration 2: the new values for the derivatives and the pressure drops are the following:
Using these values to solve the linear system, the following is obtained:
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.
Iteration 3: the results of the previous iteration give the following flow rate and pressure drop values:
Using these values to solve the linear system, the following is obtained:
After the third iteration, the difference related to the flow rates has lowered to approximately 1 Nm3/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.
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.
The result is given in the following table:
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/Nm3, due to the different average travel times.
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_nodei=x_inlet_point*(1−k*t^(−alpha)) Eq. 7)
where
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.
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.
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/Nm3. 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.
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.
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.
The procedure is thus the following:
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.
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.
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.
Number | Date | Country | Kind |
---|---|---|---|
102019000006607 | May 2019 | IT | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/IB2020/054069 | 4/30/2020 | WO | 00 |