Method and system for evaluating a flow rate of a fluid
10234316 ยท 2019-03-19
Assignee
Inventors
Cpc classification
G01F23/802
PHYSICS
International classification
G01F9/00
PHYSICS
Abstract
An evaluation system for evaluating a flow rate of a fluid coming from a tank, the system including measurement device suitable for measuring a fluid level in the tank and including estimation device for estimating the flow rate of the fluid using an unscented Kalman filter, the estimation device including an obtaining device for obtaining the raw fluid flow rate and correction device connected to the obtaining device and to the measurement device and configured to correct the raw flow rate as obtained by the obtaining device as a function of the level measured by the measurement device. A method performed by such a system.
Claims
1. An evaluation method for evaluating a flow rate of a fluid coming from a tank, the method comprising: measuring a level of the fluid in the tank; and estimating the flow rate of the fluid by using an unscented Kalman filter, said estimating comprising obtaining a raw fluid flow rate value and, when a level measurement is available, correcting the obtained raw flow rate value as a function of the level measurement.
2. The evaluation method according to claim 1, wherein the raw flow rate value is measured by at least one sensor.
3. The evaluation method according to claim 2, wherein the at least one sensor is a flowmeter.
4. The evaluation method according to claim 1, wherein the raw flow rate value is calculated by mathematical estimation with iteratively evaluated coefficients.
5. The evaluation method according to claim 4, wherein the raw flow rate value is calculated using an artificial neural network.
6. The evaluation method according to claim 1, wherein the mass of fluid in the tank is a non-linear function of the level of fluid in the tank.
7. The evaluation method according to claim 1, wherein a state of the unscented Kalman filter includes a bias of the raw flow rate value.
8. The evaluation method according to claim 1, further comprising, before said correcting, filtering fluctuations in the level measurement.
9. A non-transitory computer-readable data medium storing a computer program including instructions for executing steps of the evaluation method according to claim 1.
10. The evaluation method according to claim 1, wherein the tank is non-cylindrical.
11. A method of evaluating two flow rates of fluids coming respectively from a first tank and from a second tank, wherein the flow rates of the fluids are evaluated by separately implementing: a first evaluation method comprising estimating the flow rates of the fluids using an unscented Kalman filter, in which no level measurement is taken into account in a step of correcting the unscented Kalman filter; a second method according to claim 1, wherein only a level measurement of the first tank is taken into account; a third method wherein only a level measurement of the second tank is taken into account; and a fourth method wherein both level measurements are taken into account; and returning the flow rates as evaluated by that one of the four methods that takes account exactly of the measurements that are available.
12. An evaluation system for evaluating a flow rate of a fluid coming from a tank, the system comprising: a detector suitable for measuring a fluid level in the tank; and circuitry configured to estimate a flow rate of the fluid using an unscented Kalman filter by obtaining the raw fluid flow rate and correcting the obtained raw flow rate as a function of the level measured by the detector.
13. A propulsion system comprising: two tanks, each tank containing a propellant; a combustion chamber into which the two propellants are injected; and an evaluation system for evaluating the flow rate of at least one of the propellants according to claim 12.
14. A system for resetting a flowmeter, the system comprising an evaluation system according to claim 12 in order to evaluate the flow rate passing through the flowmeter.
15. The evaluation system according to claim 12, wherein the tank is non-cylindrical.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The invention and its advantages can be better understood on reading the following detailed description of implementations of the invention given as non-limiting examples. The description refers to the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION OF THE INVENTION
(8)
(9) Specifically, the propulsion system 50 is an integrated flow system in which the heated propellant (e.g. hydrogen) drives turbopumps 24 and 25 prior to being reinjected into the combustion chamber 30. Two regulation valves V1 and V2 serve to modulate the flow rate of heated propellant entering the turbines of the turbopumps 24 and 25 so as to control the flow rate of liquid propellants pumped by these turbopumps 24 and 25.
(10) As can be seen in
(11) As shown in
(12) As shown in
(13) In analogous manner, as shown in
(14) It can be seen from
(15) The level probes 22 and 23 are connected to a flow rate evaluation system 10, as shown in
(16) The evaluation system 10 has means for estimating the flow rate of each propellant by using an unscented Kalman filter. These are calculation means comprising in particular a computer 11 that of which the acquisition card 19 is part. Specifically, the estimation means comprise an initialization device 12, a transformation device 14, an obtaining device 16, and a correction device 18. In addition to the level measurements collected by the measurement means 17, the evaluation system 10 makes use as input data of data about the operation of the propulsion system 50. For example, there can be seen an acquisition device 15 connected to the turbopumps 24 and 25 so as to receive data about the speeds of rotation of the turbopumps and the pressures of the propellants at the outlets from the turbopumps. Other data may also be collected. Furthermore, the acquisition device 15 may be connected to other components or locations of the propulsion system 50 in order to acquire other data. For example, it may also be connected to the combustion chamber 30 to measure the pressure of the gas in the combustion chamber 30.
(17) An unscented Kalman filter is an iterative filter, each new estimate being calculated on the basis of the preceding estimate and of current data. The values returned by the correction device 18 serve both as input values to the transformation system 14, thus providing the iterative operation of the evaluation system 10, and also as overall output values. These output values may be used for various purposes, e.g. for monitoring the operation of the engine or for regulating the engine, in particular for adjusting the opening of the bypass valves V1 and V2 as a function of the evaluated flow rates.
(18) In
(19) The state x.sub.k of the unscented Kalman filter selected in the present embodiment comprises the fuel level n.sub.k, the flow rate q.sub.k estimated by the ANN, and the bias E.sub.k of the flow rate. This gives:
x.sub.k=[n.sub.k,q.sub.k,E.sub.k].sup.T
The state of the UKF may have as many levels, flow rates, and biases as the number of flow rates that it is desired to evaluate using the UKF. In the example of
(20) The initialization device 12 is configured to supply the transformation device 14 with an initial state {circumflex over (x)}.sub.0, P.sub.0, which is a function of the characteristics of the propulsion system 50.
(21) The transformation device 14 is configured to perform the unscented transformation of the UKF at each instant k, i.e. to create a set of sigma points S.sub.ik from the value {circumflex over (x)}.sub.k and the covariance matrix P.sub.k approximating the current state x.sub.k.
(22) The obtaining device 16 is configured to perform the obtaining step of the evaluation method. In the present implementation, the obtaining step is implemented by an artificial neural network. This ANN provides the raw propellant flow rates at the inlets of the corresponding turbopumps 24 and 25 taking as its inputs the pressures of said propellants at the outlet from the pumps, the gas pressure in the combustion chamber 30, and/or the speed of rotation of said turbopumps. Other things being equal, the greater the amount of input data (giving a corresponding number of situation-discriminating criteria), the more accurate the estimate supplied by the ANN. In particular, the ANN may be of the multi-layer perceptron type, in particular having a single hidden layer for the various sets of inputs, being established on the basis of a database corresponding to a map obtained from experimental data or from physical models.
(23) Empirically, it is found that the flow rate supplied at the output of the ANN is noisy. In this implementation, a lowpass filter is applied thereto, specifically a first order filter. By writing q.sub.k for the flow rate obtained by the obtaining device 16 at instant k, ANN.sub.k for the function applied by the ANN to the input data u.sub.k, ?t for the time step between k and k+1, and T for the time constant of the filter (of the order of one second in this example), an example of such a filter is an expression of the following type:
(24)
(25) It is also assumed that the flow rate d is the sum of the raw flow rate q returned by the ANN plus an unknown bias E, which may be positive or negative, representing the effects of errors in modeling the flow rate. In other words, for each propellant, the following relationship applies:
d.sub.k=q.sub.k+E.sub.k(4)
(26) In other implementations, equation (4) may be generalized in the following form:
d.sub.k=E.sub.k.sup.1q.sub.k+E.sub.k.sup.2
in which the bias E is a vector and is applied to the flow rate in the form of an affined function. In particular, the coefficient E.sub.k.sup.1 makes it possible to take account of a multiplicative bias, while the coefficient E.sub.k.sup.2 serves to take account of an additive bias. In the above first example of equation (4),
E.sub.k.sup.1=1 and E.sub.k.sup.2E=E.sub.k.
(27) For the obtaining device 16, it is assumed that the bias E is constant; this does not prevent the bias E from being corrected subsequently by the correction device 18. This assumption can be expressed by the following relationship:
E.sub.k+1=E.sub.k(5)
(28) Other types of relationship for variation in the bias E.sub.k are possible for the obtaining device 16, for example bias that is proportional to the thrust of the propulsion system 50, or indeed bias that increases as a function of the square of the distance from the nominal operating point at which it can be assumed that the bias is at its smallest (since the system at that point is best known by definition). Thus, equations (3), (4), and (5) define equations for variation in the flow rate relying on the ANN implemented in the obtaining device 16.
(29) Furthermore, the obtaining device 16 also has a model for variation in the fuel levels n.sub.k in the tanks. By writing that the mass of fuel m.sub.k decreases at each time step ?t by a quantity ?t?d.sub.k and that the mass is associated with level by the functions G20 and G21 (cf.
n.sub.k+1=G(G.sup.?1(n.sub.k)??t?(q.sub.k+E.sub.k))(6)
where G.sup.?1 is the inverse of the function G.
(30) The operation of the evaluation device 10 is described below in detail. The initialization device 12 initializes the initial state x.sub.0, e.g. taking the initial filling level of the tanks, a flow rate of zero, and a bias of zero. The initialization device 12 supplies the transformation device 14 with the values {circumflex over (x)}.sub.0, P.sub.0 corresponding to the initial state. For this calculation, the state x is assumed to be a random Gaussian variable of means {circumflex over (x)} and of covariance P.
(31) At each iteration k, the transformation device 14 calculates an enlarged state vector
X.sub.k=[x.sub.kv.sub.kw.sub.k].sup.T
Its covariance matrix P.sub.Xk is the block diagonal matrix formed by the respective covariance matrices P.sub.k, Q.sub.k, and R.sub.k. The covariance matrices Q.sub.k, R.sub.k are obtained empirically and stored in a memory 13. Alternatively, or in addition, the measurement covariances R.sub.k may be calculated automatically by estimating the variances of measurement noise v.sub.k over a moving time window.
(32) The transformation device 14 generates a set of sigma points corresponding to the Gaussian random variable {circumflex over (X)}.sub.k, P.sub.Xk that approximate the current state X.sub.k. The sigma points S.sub.ik are generated using the conventional unscented Kalman filter technique, which is not described in detail herein. Each sigma point S.sub.ik, which has the same structure as the vector {circumflex over (X)}.sub.k, is supplied to the obtaining device 16.
(33) The role of the obtaining device 16 is to obtain an initial estimate (raw value) of the state vector at instant k+1, knowing an estimate for that vector at instant k, and data about the propulsion system 50 (specifically the input data u.sub.k). As mentioned above, this obtaining is performed using equations (3), (4), (5), and (6) which make use of an ANN. Insofar as the ANN is a predictive model, the obtaining step may be referred to herein more particularly as a prediction step. The variations in noise v.sub.k and w.sub.k are determined using the conventional methods that are employed when using an unscented Kalman filter. For the state noise, in the specific situation when use is being made of a model that has been constructed (such as an ANN), it is possible to compare the results of the model with known situations in order to obtain a map showing the accuracy of the ANN in its domain of validity.
(34) The values of the sigma points S.sub.ik+1 at instant k+1, supplied by the ANN are then used to determine at the output of the obtaining device 16 a (predicted) obtained value {circumflex over (x)}.sub.(k+1|k) for the state x at the instant k+1, knowing the value {circumflex over (x)}.sub.k at the instant k, and the covariance matrix P.sub.(k+1|k) of the state x that the instant k+1, knowing the covariance matrix P.sub.k. As shown in
(35) The correction device 18 then corrects the values obtained by the obtaining device 16 when measurements are available. For each propellant, if the level measurement is available (i.e. if the corresponding level probe is being uncovered), the state value x.sub.k+1 is corrected as a function of the difference between the measured level y.sub.k and the predicted level (the level that has been obtained) ?.sub.k. The state value is corrected in particular by a value proportional to said difference, the proportionality factor being referred to as the Kalman gain. The Kalman gain is calculated in conventional manner from sigma points and from the level measurement. Otherwise, if the level measurement is not available, it is the state value x.sub.k+1 as determined using equation (6) by the obtaining device 16 that is retained, e.g. by setting the Kalman gain to zero. Depending on whether no, one, or two level measurements are available (four possible situations), the correction device 18 corrects the flow rates obtained by the obtaining device 16 accordingly. The correction device 18 thus has an incorporated selection function that adapts to the measurements that are available.
(36) A variant is shown in
(37) The calculation function 11a evaluates the fluid flow rates coming from the tanks 20 and 21 without taking account of level measurements. The correction device 18 provided within the calculation unit 11a is thus not used. The calculation function 11b evaluates the flow rates of fluid from the tanks 20 and 21 while taking account only of measurements returned by the level probe 22, when such measurements are available. In similar manner, the calculation function 11d evaluates the fluid flows from the tanks 20 and 21 while taking account only of the measurements returned by the level probe 23, when they are available. Finally, the calculation function 11c evaluates the flow rates of fluid from the tanks 20 and 21 by taking account of measurements returned by both of the level probes 22 and 23, when available.
(38) The flow rate values evaluated by the calculation functions 11a, 11b, 11c, and 11d are transmitted to a selection device 118. The selection device 118 is also connected to the level probes 22 and 23 in order to know when they are available. The selection device 118 thus makes a selection from among the four sets of flow rates it has received, as a function of the availability of measurements returned by the level probes 22 and 23. At its output, the selection device 118 returns the set of flow rates supplied by the calculation unit that takes account exactly those measurements that are available. For example, if only the measurement returned by the level probe 22 is available, then the correction device 118 forwards the set of flow rates received from the calculation unit 11b.
(39) In a variant, the selection device 118 may be upstream from or even at the same level as the calculation functions 11a, 11b, 11c, and 11d.
(40) Under all circumstances, the evaluation system 10, 110 thus serves to reset the value obtained by the obtaining device 16 on the basis of measurements that are discontinuous and asynchronous.
(41) The method performed by the evaluation system 10 enables flow rates to be evaluated instant by instant. As can be seen in
{circumflex over (d)}.sub.k={circumflex over (q)}.sub.k+?.sub.k
in which relationship the estimated raw flow rate {circumflex over (q)}.sub.k is determined essentially by the ANN and the estimated bias ?.sub.k is determined essentially by the UKF.
(42) An application example is described below with reference to
(43) At instant t=t1 (10 s), as shown in
(44)
(45)
(46) The variation in the curve MRb showing the mixing ratio calculated from the flow rates evaluated by the evaluation device 10 clearly shows the respective resetting of each of the flow rates at instants t1 and t3 and then at instants t5 and t6. The evaluation device 10 thus provides an accurate estimate of the mixing ratio by virtue of the successive resetting operations made possible by the unscented Kalman filter.
(47)
(48) The evaluation device 210 of
(49) The evaluation device 210 operates by like the evaluation device 10 except that it makes use of the measurements returned by the flow meter 215a instead of relying on a predictive mathematical estimator such as an ANN. In other words, in above equation (3), the term ANN.sub.k(u.sub.k) is replaced by the current value measured by the flow meter 215a and acquired by the acquisition device 215. The flow rate value obtained by the obtaining device 216 is then supplied to the correction device 18 which corrects it as a function of measurement y.sub.k received from the acquisition card 19. As shown in
(50) Although the present invention is described with reference to specific embodiments, modifications may be adopted to these embodiments without going beyond the general ambit of the invention as defined by the claims. In particular, individual characteristics of the various embodiments shown and/or mentioned may be combined in additional embodiments. Consequently, the description and the drawings should be considered in a sense that is illustrative rather than restrictive.