Arithmetic unit, fluid generator, arithmetic method, and arithmetic program

The arithmetic device with a gain change unit in the Kalman filter quickly adjusts to flow rate fluctuations, enhancing detection accuracy and response speed by switching arithmetic expressions based on variation thresholds, addressing the limitations of conventional methods.

JP2024122826AInactive Publication Date: 2024-09-09HORIBA STEC CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023098975
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2023-06-16
Publication Date
2024-09-09
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional methods for estimating the flow rate of hydrogen gas using a Kalman filter struggle to quickly follow significant fluctuations, leading to delayed detection of abnormalities such as leaks, especially when switching modes or changing set flow rates, thus compromising response speed and detection accuracy.

Method used

An arithmetic device that employs a Kalman filter with a gain change unit to switch between arithmetic expressions based on variation thresholds, increasing Kalman gain when fluctuations exceed a threshold to enhance followability, ensuring the output value quickly adjusts to actual flow rates.

Benefits of technology

The solution enables rapid stabilization of the estimated flow rate even during significant fluctuations, improving response speed and enabling timely detection of abnormalities, while maintaining stability during stable conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

To make it possible to estimate and monitor a state quantity of a fluid to be generated using a Kalman filter, and to cause an output value of the Kalman filter to swiftly follow an actual state quantity even in the event that the state quantity of the fluid varies greatly.SOLUTION: A fluid generator includes: a filtering unit 43 that performs Kalman filtering on an input value; and a change unit 45 that, when a variation quantity of a monitor value which is the input value or a parameter value interlocked with the input value exceeds a threshold, changes arithmetic expressions, which are used by the filtering unit, from a first arithmetic expression employed in the case where the variation quantity falls below the threshold to a second arithmetic expression exhibiting a higher following capability.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a calculation device, a fluid generator, a calculation method, and a calculation program. [Background technology]

[0002] For example, in an environment where hydrogen gas used in equipment such as gas chromatographs is generated by a hydrogen generator (Patent Document 1), since hydrogen gas is flammable, there is a demand to monitor the flow rate of generated hydrogen gas so that abnormalities such as leaks can be detected.

[0003] Although the flow rate of hydrogen gas generated can theoretically be calculated based on the current supplied to the electrolytic cell that generates hydrogen gas, the calculated flow rate data varies due to noise that depends on the sampling time of the current value, etc.

[0004] Conventionally, the raw data has been subjected to a moving average to perform a smoothing process before being output; however, in order to reduce the variation to the desired level, it is necessary to increase the number of times the moving average is taken, which results in the problem of a decrease in response speed. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2021-196357 A Summary of the Invention [Problem to be solved by the invention]

[0006] Under these circumstances, the inventors of the present application investigated using a Kalman filter to output an estimated flow rate of hydrogen gas in order to improve the response speed, and found that this was likely to result in an improved response speed compared to conventional smoothing processing using a moving average.

[0007] However, when the flow rate of generated hydrogen gas fluctuates significantly, for example when the operating mode of a hydrogen generator switches from a preparation mode in which hydrogen gas is stored to a supply mode in which the stored hydrogen gas is supplied to equipment such as a gas chromatograph, a simple smoothing process using a Kalman filter requires time for the estimated flow rate, which is the output value from the Kalman filter, to track the actual flow rate.

[0008] As a result, while the estimated flow rate is unable to track the actual flow rate, abnormalities such as hydrogen gas leaks cannot be detected, and the above-mentioned demands cannot be fully met.

[0009] This problem is not limited to environments in which hydrogen generators or gas chromatographs are used, but can commonly occur when using a Kalman filter to estimate state quantities of various fluids or parameter values ​​linked thereto. In addition, the phenomenon in which the generated flow rate fluctuates significantly can occur not only when switching modes, but also when, for example, the set flow rate of the supply destination is changed.

[0010] The present invention has been made to solve the above problems, and has as its main object to enable the state quantities of a fluid to be generated to be estimated and monitored by a Kalman filter, while allowing the output value from the Kalman filter to quickly follow the actual state quantities even when the state quantities of the fluid fluctuate greatly. [Means for solving the problem]

[0011] In other words, the arithmetic device of the present invention is characterized by comprising a filtering unit that performs Kalman filter processing on an input value, and a change unit that switches the arithmetic equation used by the filtering unit from a first arithmetic equation that is used when the amount of fluctuation in the input value or a monitor value, which is a parameter value linked to the input value, exceeds a threshold value, to a second arithmetic equation with higher tracking ability.

[0012] According to the calculation device configured in this manner, by using the observed state quantity of the fluid as an input value, the state quantity of the fluid can be estimated and monitored by Kalman filter processing. In addition, if the state quantity of the fluid fluctuates significantly and the fluctuation amount of the monitored value exceeds a threshold value, the calculation formula used by the filtering unit is switched to one with higher tracking ability, so that the output value from the filtering unit can be made to quickly follow the actual state quantity.

[0013] It is preferable that the change unit is a gain change unit that increases a Kalman gain of the Kalman filter process when the amount of fluctuation exceeds the threshold value. With this configuration, the calculation formula used by the filtering unit can be switched to one with high tracking performance by increasing the Kalman gain.

[0014] Furthermore, a fluid generator according to the present invention is a fluid generator that generates a predetermined fluid, and is characterized in that it comprises the above-mentioned arithmetic device, and the input value is a value indicating a state quantity of the fluid or a value of a parameter correlated with that state quantity. According to the fluid generator configured in this manner, since it is equipped with the above-mentioned calculation device, it is possible to estimate and monitor the state quantity of the fluid by Kalman filter processing, and even if the state quantity of the fluid fluctuates greatly, it is possible to cause the output value from the filtering unit to quickly follow the actual state quantity.

[0015] It is preferable that the gain change section calculates, as the amount of fluctuation, a difference or a ratio between a latest monitored value and a monitored value at an immediately preceding timing. In this case, the output value from the filtering section can be stabilized more quickly after the state quantity of the fluid changes significantly.

[0016] A specific method of changing the Kalman gain may be such that, when the amount of fluctuation in the monitor value exceeds a threshold value, the gain change unit returns the Kalman gain to a preset initial value. In this way, the Kalman gain can be reliably returned to a large value without complicating the program.

[0017] As another method of change, when the amount of change in the monitor value exceeds a threshold value, the gain change unit changes the Kalman gain to a larger value as the difference between the amount of change and the threshold value increases. In this case, it is possible to weight the return of the Kalman gain according to the amount of fluctuation, and the output value from the filtering unit can be stabilized more quickly.

[0018] As an example of an embodiment for weighting the return of the Kalman gain in this manner, the gain change unit changes the Kalman gain by using a function that has a difference between the amount of fluctuation and the threshold as a variable and converges to a value equal to or less than 1 as the difference increases.

[0019] It is preferable to have a display unit that displays the output value output from the filtering unit. In this case, by comparing the displayed output value with, for example, the set flow rate set in the equipment to which the fluid is being supplied, it is possible to determine whether the equipment is operating normally.

[0020] It is preferable that the output value output from the filtering section is the flow rate of the fluid. This can meet the demand for monitoring the flow rate of a fluid.

[0021] A more specific embodiment of the fluid generator is one in which the fluid is hydrogen gas and the fluid generator is provided with electrolysis means for electrolyzing water to produce hydrogen gas.

[0022] In a specific embodiment, the current supplied to the electrolysis means is a pulse current. In this case, although the generated flow rate calculated from the supply current is more likely to vary depending on the sampling time of the supply current, the effect of the present invention is more pronounced, making it possible to estimate and monitor the generated hydrogen gas flow rate using Kalman filter processing, and also making it possible to quickly stabilize the output value from the filtering section even when the generated hydrogen gas flow rate fluctuates greatly.

[0023] It is preferable that the hydrogen supply system further includes a pressure sensor for detecting the pressure of the hydrogen gas, and when the pressure detected by the pressure sensor reaches an upper limit value, the supply of current to the electrolysis means is stopped, and when the detected pressure reaches a lower limit value, the supply of current to the electrolysis means is started. With such a configuration, the pressure of the hydrogen gas can be maintained within a predetermined range. As a result, although the current supplied to the electrolysis means becomes a pulsed current, as described above, the generated flow rate of hydrogen gas can be estimated and monitored by Kalman filter processing, and the output value from the filtering section can be quickly stabilized even if the generated flow rate of hydrogen gas fluctuates greatly.

[0024] The monitored value is at least one of the flow rate of the hydrogen gas, the pressure of the hydrogen gas, the duty ratio of the pulse current, the elapsed time until the detected pressure reaches a lower limit value from an upper limit value, the remaining amount or water level of water sent to the electrolysis means, or the operating speed of a water separation means for separating water flowing out together with hydrogen gas from the electrolysis means, or the breakthrough state of a desiccant used in a dehumidification unit through which the hydrogen gas passes. In this case, the Kármán gain can be increased when a large fluctuation occurs in the flow rate of generated hydrogen gas.

[0025] The calculation method according to the present invention is characterized by comprising a filtering step of subjecting an input value to Kalman filter processing, and a change step of switching the calculation formula used by the filtering step from a first calculation formula used when the amount of fluctuation of the input value or a monitor value, which is a parameter value linked to the input value, exceeds a threshold value to a second calculation formula with higher tracking ability.

[0026] The computational program according to the present invention is characterized in that it causes a computer to function as a filtering unit that performs Kalman filter processing on an input value, and a change unit that switches the computational formula used by the filtering unit from a first computational formula that is used when the amount of fluctuation in the input value or a monitor value, which is a parameter value linked to the input value, exceeds a threshold value, to a second computational formula with higher tracking performance.

[0027] According to such a calculation method and calculation program, it is possible to achieve the same effects as the above-mentioned calculation device. Effect of the Invention

[0028] According to the present invention configured in this manner, the state quantity of the fluid to be generated can be estimated and monitored by the Kalman filter, and even when the state quantity of the fluid fluctuates significantly, the output value from the Kalman filter can be made to quickly track the actual state quantity. [Brief description of the drawings]

[0029] [Figure 1] FIG. 2 is a schematic diagram showing a configuration of a fluid generator in one embodiment of the present invention. [Diagram 2] FIG. 2 is a functional block diagram showing functions of a control device according to the embodiment. [Diagram 3] FIG. 4 is a schematic diagram illustrating a current supplied to the electrolysis cell according to the embodiment. [Figure 4] FIG. 4 is a schematic diagram illustrating a sampling timing of a supply current according to the embodiment. [Diagram 5]4 shows raw data of observed flow rate in the same embodiment. [Figure 6] 4 is a flowchart showing the operation of the control device according to the embodiment. [Figure 7] 4 is a mathematical formula showing the Kalman filter according to the embodiment; [Figure 8] FIG. 2 is a block diagram showing a Kalman filter according to the embodiment. [Figure 9] 13 is data explaining the effects of the embodiment. [Figure 10] 13 is an arithmetic expression for explaining a filtering process according to another embodiment. [Figure 11] FIG. 13 is a schematic diagram illustrating an estimation device according to another embodiment. [Figure 12] FIG. 11 is a schematic diagram illustrating a fluid generator according to another embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0030] First Embodiment A first embodiment of a fluid generator according to the present invention will be described below with reference to the drawings.

[0031] As shown in FIG. 1, the fluid generator 100 of this embodiment generates a predetermined fluid and supplies the fluid to another device 200.

[0032] More specifically, the fluid generator 100 is configured to switch between a preparation mode in which fluid is generated while the supply to the destination equipment 200 is stopped, and a supply mode in which fluid is generated while the fluid is supplied to the destination equipment 200.

[0033] The destination device 200 has a preset flow rate set, and in the supply mode, fluid is supplied from the fluid generator 100 to the destination device 200 so that the actual flow rate through the device 200 approaches the set flow rate.

[0034] Furthermore, this fluid generator 100 is configured such that the flow rate of the generated fluid is controlled so that the pressure of the flow path L through which the generated fluid flows is maintained at a predetermined set pressure in each of the preparation mode and the supply mode.

[0035] In the following, the fluid generator 100 will be described as a hydrogen generator that generates hydrogen gas by electrolyzing water, and the device 200 to which the hydrogen gas is supplied will be described as a gas chromatograph in which hydrogen gas is used as fuel gas for a flame ionization detector (FID), for example. However, the fluid generator 100 and the supply destination device 200 are not limited to this and can be of various types, and the hydrogen gas described below may be of various gases or liquids.

[0036] Specifically, as shown in FIG. 1, the fluid generator 100 comprises a storage tank 10 for storing water, an electrolysis cell 20 as an electrolysis means for generating hydrogen gas by electrolyzing water, a pressure sensor 30 provided in a gas flow path L through which the hydrogen gas generated in the electrolysis cell 20 flows and for detecting the pressure of the hydrogen gas, and a control device 40 for controlling the generated flow rate of the fluid so that the pressure detected by the pressure sensor 30 becomes a set pressure.

[0037] Furthermore, as shown in FIG. 1, the fluid generator 100 of this embodiment is equipped with a water separation means 50 and an on-off valve 60 provided in the gas flow path L, and a pressure sensor 30 is provided between the water separation means 50 and the on-off valve 60.

[0038] The water separation means 50 is for separating water from hydrogen gas that flows out together with hydrogen gas from the electrolysis cell 20. An example of the water separation means 50 may include a means as shown in Fig. 1 that has a container 51 into which water and hydrogen gas flow and a float 52 that moves up and down within the container 51, and is configured to discharge water from within the container 51 by utilizing the up and down movement of the float 52.

[0039] The on-off valve 60 is for switching between supplying and stopping the hydrogen gas supply, and opens and closes in response to an on-off signal from the above-mentioned control device 40. Specifically, in the preparation mode of the fluid generator 100, the on-off valve 60 is closed, and in the supply mode of the fluid generator 100, the on-off valve 60 is opened.

[0040] The control device 40 is a computer equipped with a CPU, memory, an input / output interface, etc., and the CPU and its peripheral devices work together in accordance with a program stored in the memory, thereby providing the functions of a generated flow rate control unit 41 and a generated flow rate calculation unit 42, as shown in Figure 2.

[0041] The flow rate control unit 41 controls the flow rate of hydrogen gas generated by adjusting the value of the current supplied to the electrolytic cell 20 so that the pressure detected by the pressure sensor 30 becomes the set pressure. Specifically, it controls the power source 70 that supplies current to the electrolytic cell 20.

[0042] More specifically, as shown in FIG. 3, the generated flow rate control unit 41 stops supplying current to the electrolytic cell 20 when the pressure detected by the pressure sensor 30 reaches an upper limit value, and starts supplying current to the electrolytic cell 20 when the detected pressure reaches a lower limit value.

[0043] By such control, the current supplied to the electrolytic cell 20 is switched to zero or a predetermined value; in other words, the current supplied to the electrolytic cell 20 becomes a pulse current with repeated on and off periods.

[0044] As shown in FIG. 3, when comparing a case where the hydrogen gas flow rate is high and a case where the hydrogen gas flow rate is low, the slope of the decrease in the detected pressure after the current supply to the electrolytic cell 20 is stopped is steeper when the hydrogen gas flow rate is high, so the time during which the current supply to the electrolytic cell 20 is stopped is shorter; in other words, the proportion of the on time is larger (the proportion of the off time is smaller).

[0045] The generated flow rate calculation unit 42 calculates the observable state quantity of the generated fluid, and in this case calculates the generated flow rate per unit time of hydrogen gas (hereinafter referred to as the observed flow rate), which can be calculated based on the duty ratio of the current supplied to the electrolytic cell 20.

[0046] The generated flow rate calculation unit 42 of this embodiment acquires the duty ratio of the current supplied from the power source 70 to the electrolytic cell 20 and calculates the observed flow rate of hydrogen gas using this duty ratio, and more specifically, calculates the observed flow rate by multiplying the acquired duty ratio by the maximum flow rate.

[0047] However, the method of calculating the observed flow rate is not limited to this. For example, the observed flow rate may be calculated by calculating the amount of electricity per unit time supplied to the electrolytic cell 20 based on the current value of the supply current, and dividing the amount of electricity by the amount of electricity required to electrolyze 1 mole of water.

[0048] As described above, this observed flow rate is calculated by acquiring the current value of the current supplied to the electrolytic cell 20, and the observed flow rate contains noise due to the sampling timing of the current value.

[0049] To explain in more detail, in this embodiment, as shown in Figure 4, a pulse current is supplied to the electrolytic cell 20, and the generated flow rate calculation unit 42 samples the current value at a predetermined time interval, so there will be some discrepancy between the timing at which the pulse current is supplied and the timing at which the current value is sampled, resulting in noise.

[0050] As a result, as shown in Fig. 5, the raw data of the observed flow rate calculated by the generated flow rate calculation unit 42 varies and behaves unstable. As shown in Fig. 5, the variation can be suppressed by applying an average shift to the raw data of the observed flow rate, but in order to sufficiently suppress the variation, it is necessary to increase the number of moving averages to, for example, about 5000, which reduces the response speed.

[0051] Therefore, as shown in FIG. 2, the fluid generator 100 of this embodiment is configured to estimate the actual generated flow rate of hydrogen gas from the observed flow rate including noise using a Kalman filter. Specifically, the control device 40 performs the functions of a filtering unit 43, a monitor unit 44, and a modification unit 45 by the CPU and its peripheral devices working together in accordance with the estimation program stored in the memory. The function of each unit will be explained below with reference to the flowchart in FIG.

[0052] The filtering unit 43 performs Kalman filter processing on the input value, and outputs the Kalman-processed value as an output value.

[0053] Specifically, the filtering unit 43 is represented by the arithmetic equation in FIG. 7 and the block diagram in FIG. 8, and functions as a Kalman filter that estimates a state quantity at time k using a priori estimated value at time k estimated using data up to time k-1 and an observed value at time k.

[0054] That is, the filtering unit 43 of this embodiment outputs an estimate of the amount of hydrogen gas generated per unit time at time k (hereinafter referred to as the estimated flow rate) using the prior estimated flow rate at time k estimated using data up to time k-1 and the observed flow rate at time k. That is, the filtering unit 43 of this embodiment outputs the above-mentioned estimated flow rate as an output value.

[0055] More specifically, filtering unit 43 receives the observed flow rate of hydrogen gas at time k and outputs an estimated flow rate of hydrogen gas at time k. As shown in FIG. 8, filtering unit 43 is composed of estimation model 431 that outputs a priori estimated amount at time k, and a Kalman gain g that is multiplied by the deviation between the observed flow rate at time k and the priori estimated flow rate.

[0056] That is, the Kalman gain g is a value that determines to what extent the observed value at the current time k is reflected in updating the state quantity, and by its nature, is a value that changes dynamically (over time) from a preset initial value. Note that the initial value of the Kalman gain g can be set appropriately, but in this embodiment, the initial value is set to 1, and the more stable the output value (estimated flow rate) from the filtering unit 43 is, the smaller the value of this Kalman gain g becomes (for example, about 0.01).

[0057] More specifically, the Kalman gain g is the ratio of the variance of the prediction error of the state to the sum of the variance of the prediction error of the state and the variance of the noise of the observation equation, as shown in FIG. 7, and is expressed by a covariance matrix.

[0058] The monitor unit 44 samples the observed flow rate or a monitor value that is a value of a parameter linked to the observed flow rate (S1 in FIG. 6). Note that, here, "linked" means that it is possible to track changes in the observed flow rate, which is the input value, and a parameter linked to the observed flow rate is a parameter that changes following the observed flow rate.

[0059] The monitor unit 44 of the present embodiment samples the observed flow rate calculated by the generated flow rate calculation unit described above as a monitor value in real time, and outputs the sampled monitor values ​​successively to the gain modification unit 45. That is, the gain modification unit 45 includes a monitor value receiving unit that receives the monitor value from the monitor unit 44.

[0060] When the fluctuation amount of the monitor value exceeds a threshold, the change unit 45 switches the arithmetic formula used by the filtering unit 43 from the first arithmetic formula used when the fluctuation amount is below the threshold to a second arithmetic formula with better tracking ability.

[0061] Here, when focusing on the stability and tracking ability of the arithmetic formula, the first arithmetic formula is an equation that is more stable than the second arithmetic formula, but conversely has less tracking ability than the second arithmetic formula; in other words, the second arithmetic formula is an equation that is more tracking ability than the first arithmetic formula, but conversely has less stability than the first arithmetic formula.

[0062] The stability of the arithmetic formula is an index showing the stability of the output value when the input value is stable, and the tracking ability of the arithmetic formula is an index showing the response speed of the output value when the input value is fluctuating. Note that when the input value is stable, for example, there is no change in various settings and the amount of fluctuation or the rate of fluctuation of the input value is below a predetermined value, and conversely, when the input value is fluctuating, for example, there is a change in at least one of the various settings and the amount of fluctuation or the rate of fluctuation of the input value is above a predetermined value.

[0063] The change unit 45 in this embodiment is a gain change unit 45 that increases the Kalman gain g of the Kalman filter when the amount of fluctuation in the monitor value exceeds a threshold value. Note that cases in which the amount of fluctuation in the monitor value becomes large, in other words, cases in which the amount of fluctuation in the observed flow rate becomes large, occur when the generated flow rate of hydrogen gas changes significantly, and specifically, these occur, for example, when the fluid generator 100 switches from one of the above-mentioned preparation mode and supply mode to the other, or when the set flow rate set in the gas chromatograph 200 to which hydrogen gas is supplied is changed.

[0064] The gain modification unit 45 of this embodiment calculates the difference or ratio between the latest monitor value and the monitor value at the timing immediately before that as the amount of fluctuation, specifically, the difference or ratio between the latest monitor value sampled by the monitor unit 44 and the monitor value sampled at the timing immediately before that as the amount of fluctuation (S2 in FIG. 6). That is, the gain modification unit 45 includes a fluctuation amount calculation unit that calculates the amount of fluctuation.

[0065] Next, the gain modification unit 45 compares the calculated amount of variation with a threshold value and determines whether the amount of variation exceeds the threshold value (S3 in FIG. 6). That is, the gain modification unit 45 includes a threshold value storage unit that stores a threshold value, and includes a determination unit that reads the threshold value from the threshold value storage unit and determines whether the amount of variation exceeds the threshold value.

[0066] When the amount of fluctuation in the monitor value exceeds the threshold, that is, when the judgment unit judges that the amount of fluctuation has exceeded the threshold, the gain change unit 45 is configured to make the Kalman gain g larger than at least the previously used Kalman gain, specifically, to return the Kalman gain to a predetermined return value (S4 in FIG. 6). That is, the gain change unit 45 includes a gain switching unit that switches the Kalman gain.

[0067] More specifically, as shown in FIG. 2, the control device 40 of this embodiment includes a return gain memory unit 46 that stores the return value, and when the amount of fluctuation in the monitor value exceeds a threshold value, the gain change unit 45 acquires the return value from the return gain memory unit 46 and returns the Kalman gain g at that time to the return value.

[0068] In this embodiment, the initial value of the Kalman gain g is used as the return value. That is, the return gain storage unit 46 stores the initial value of 1, and the gain change unit 45 is configured to return the Kalman gain g to the initial value of 1 when the amount of fluctuation in the monitor value exceeds a threshold value.

[0069] After the Kalman gain g is changed, the process returns to sampling of the monitor value by the monitor unit 44 in S1, as shown in FIG.

[0070] Incidentally, even if it is determined in step S3 that the amount of change in the monitor value does not exceed the threshold value, the gain change unit 45 does not change the Kalman gain g, and the process returns to sampling of the monitor value by the monitor unit 44 in step S1.

[0071] The control device 40 of this embodiment further includes a display unit 47 that displays the estimated flow rate, which is the output value output from the filtering unit 43, on a display 80 or the like, as shown in FIG.

[0072] The display unit 47 may be configured to display, together with the estimated flow rate output from the filtering unit 43, the set flow rate set in the gas chromatograph 200 to which the fluid is supplied so as to be comparable.

[0073] <Actions and Effects of the Fluid Generator 100 of the First Embodiment> With the fluid generator 100 configured in this manner, it is possible to monitor the estimated flow rate of hydrogen gas output from the filtering unit 43, and if the generated flow rate of hydrogen gas fluctuates significantly and the fluctuation in the monitored value exceeds a threshold value, the Kalman gain g is increased, so that the estimated flow rate can be quickly stabilized after the generated flow rate of hydrogen gas fluctuates significantly.

[0074] More specifically, as shown in FIG. 9, when the set flow rate of the supply destination of hydrogen gas is changed, the estimated flow rate output from the filtering unit 43 quickly stabilizes, and in this case, it stabilizes as quickly as or more quickly than the smoothing process in which the raw data (observed flow rate) is subjected to a moving average 5,000 times.

[0075] In addition, since the gain change unit 45 calculates the difference or ratio between the latest monitor value sampled by the monitor unit 44 and the monitor value sampled at the previous timing as the amount of fluctuation, the estimated flow rate can be stabilized more quickly after the generated flow rate of hydrogen gas fluctuates significantly.

[0076] Furthermore, when the amount of change in the monitor value exceeds a threshold value, the Kalman gain g is returned to a preset initial value, so that the Kalman gain g can be reliably returned to a large value without complicating the program.

[0077] In addition, since the display unit 47 displays the estimated flow rate output from the filtering unit 43, by comparing this estimated flow rate with the set flow rate set, for example, in the gas chromatograph 200 to which hydrogen gas is supplied, it is possible to determine whether the gas chromatograph 200 is operating normally.

[0078] Furthermore, in the fluid generator 100 of this embodiment, when the pressure detected by the pressure sensor 30 reaches an upper limit value, the current supply to the electrolytic cell 20 is stopped, and when the detected pressure reaches a lower limit value, the current supply to the electrolytic cell 20 is started, thereby enabling the pressure of hydrogen gas to be maintained within a predetermined range.

[0079] As a result, a pulsed current is supplied to the electrolytic cell 20, and although the observed flow rate calculated from the supply current is more likely to vary due to the sampling time of the supply current, the above-mentioned effect is more pronounced, making it possible to estimate and monitor the generated hydrogen gas flow rate by the filtering unit 43, and quickly stabilizing the estimated flow rate even if the generated hydrogen gas flow rate fluctuates greatly.

[0080] <Second embodiment> Next, a second embodiment of a fluid generator according to the present invention will be described with reference to the drawings.

[0081] In the fluid generator 100 of this embodiment, the function and operation of the control device 40 differs from that of the first embodiment, and therefore this difference will be described in detail.

[0082] First, the filtering unit 43 in the control device 40 of this embodiment is common to the first embodiment in that it performs Kalman filter processing on the input value, and outputs an estimate of the input value at time k using a prior estimate at time k estimated using data up to time k-1 and the input value at time k.

[0083] More specifically, in the process of calculating an estimate of the input value at time k (i.e., in the process of performing Kalman processing on the input value at time k), the filtering unit 43 calculates the above-mentioned prior estimate at time k using the arithmetic expression shown in FIG. 10, and outputs the estimate of the input value at time k using this prior estimate, the Kalman gain, etc.

[0084] This prior estimate x mAs can be seen from the calculation formula of FIG. 10, the sum of the previous output value x output from the filtering unit 43 (i.e., the previous output value x obtained by the Kalman filter process of the filtering unit 43) and the difference u between the current input value input to the filtering unit 43 and the previous output value output from the filtering unit 43 is x m It is.

[0085] In addition, the difference u is not limited to the difference between the current input value and the previous output value, but may be, for example, the difference between the current input value and the output before last or even earlier, or it may be the difference between the input value input to the filtering unit 43 and the output value output from the filtering unit 43 prior to that input.

[0086] The calculation formula of this embodiment includes a weighting coefficient A that weights the previous output value x, and a weighting coefficient B that weights the difference u between the current input value and the previous output value, and the output value is the sum of the value obtained by multiplying the previous output value x by the weighting coefficient A and the value obtained by multiplying the difference u between the current input value and the previous output value by the weighting coefficient B. The weighting coefficients A and B are values ​​between 0 and 1.

[0087] In this configuration, the change unit 45 is similar to the first embodiment in that, when the fluctuation amount of the monitor value exceeds a threshold value, the change unit 45 switches the arithmetic equation used by the filtering unit 43 from the first arithmetic equation used when the fluctuation amount is below the threshold value to the second arithmetic equation with higher tracking ability.

[0088] On the other hand, the specific implementation of the modification unit 35 in this embodiment is different from that of the first embodiment, and when the fluctuation amount of the monitor value exceeds a threshold value, the modification unit 35 is an equation modification unit 35 that changes the equation used in the filtering unit 43 from the first equation to the second equation by correcting the coefficient included in the first equation.

[0089] This equation modification unit 35 changes the arithmetic equation used in the filtering unit 43 to either the first arithmetic equation or the second arithmetic equation by correcting the weighting coefficient B that is multiplied by the difference u between the input value input to the filtering unit 43 and the output value output from the filtering unit 43 prior to the input.

[0090] Specifically, the equation modification unit 35 is configured to change the first arithmetic equation to the second arithmetic equation by correcting the weighting coefficient B included in the first arithmetic equation to another value according to the amount of fluctuation of the monitor value when the amount of fluctuation exceeds a threshold value.

[0091] In other words, when the amount of fluctuation is below the threshold, a formula including the weighting coefficient B as a predetermined fixed value is used as the first formula, and when the amount of fluctuation exceeds the threshold, a formula in which the weighting coefficient B is corrected to a value larger than the fixed value is used as the second formula as the amount of fluctuation increases. Note that, as described above, the weighting coefficient B is a value between 0 and 1.

[0092] Thereafter, the filtering unit 43 smoothes the input value using the first arithmetic equation selected by the equation modification unit 35 or the second arithmetic equation switched by the equation modification unit 35, and the display unit 47 displays the smoothed value as an output value on a display or the like.

[0093] According to the fluid generator 100 configured in this manner, when the fluctuation amount of the monitor value exceeds a threshold value, the calculation formula used by the filtering unit 43 is changed from the first calculation formula used when the fluctuation amount is below the threshold value to the second calculation formula with better tracking properties. Therefore, even if the fluctuation of the input value is gradual or the fluctuation amount of the input value is small, it is possible to capture the fluctuation and improve both the stability and tracking ability of the output value obtained by smoothing the input value.

[0094] In addition, when the fluctuation amount of the monitor value exceeds a threshold value, the equation modification unit 35 changes the first equation to the second equation by correcting the coefficients contained in the equation, so that the calculation process can be simplified compared to the case where these equations are unrelated to each other.

[0095] In addition, since the equation modification unit 35 is configured to correct the weighting coefficient by which the difference between the input value input to the filtering unit 43 and the output value output from the filtering unit 43 prior to the input is multiplied, it is possible to improve the tracking performance without changing, for example, the Kalman gain or the like used in the Kalman filter processing.

[0096] The present invention is not limited to the above-described embodiment.

[0097] For example, in the above embodiment, when the fluctuation amount of the monitor value exceeds a threshold value, the gain change unit 45 returns the Kalman gain g to an initial value. However, the larger the difference between the monitor value and the threshold value, the larger the value of the Kalman gain g may be changed to.

[0098] An example of an embodiment of the gain change unit 45 is one in which the Kalman gain g is changed by using a function that has the difference between the amount of fluctuation and a threshold as a variable and converges to a value equal to or less than 1 as the difference becomes larger. More specifically, an example of the gain change unit 45 is one in which the Kalman gain g is changed by multiplying a covariance matrix by a sigmoid function, a ramp function, or the like. With this configuration, it is possible to weight the return of the Kalman gain g in accordance with the amount of fluctuation in the monitor value, and the estimated flow rate, which is the output value of the filtering unit 43, can be stabilized more quickly.

[0099] In addition, in the above embodiment, when the amount of change in the monitor value exceeds the threshold value, the Kalman gain g is returned to the initial value. However, the Kalman gain g may be returned to a return value different from the initial value.

[0100] Furthermore, in the above embodiment, the initial value of the Kalman gain g is set to 1, but it may be less than 1.

[0101] In addition, in the above embodiment, the monitor unit 44 samples the observed flow rate as a monitor value, but it may sample the value of a parameter linked to the observed flow rate as a monitor value.

[0102] To explain in more detail, in the above embodiment, the monitor value sampled by the monitor unit 44 was the observed flow rate, which was the same as the parameter input to the filtering unit 43, but this is not necessarily limited to this and may be a parameter other than the parameter input to the filtering unit 43.

[0103] This parameter is a physical quantity obtainable from the fluid generator 100 and increases or decreases with fluctuations in the observed flow rate. Specifically, the parameter may be the duty ratio (proportion of on time or proportion of off time) of the pulse current supplied to the electrolytic cell 20, the time elapsed until the detected pressure reaches the lower limit from the upper limit, the remaining amount or water level of the water sent to the electrolytic cell 20, or the operating speed of the water separation means 50. In a configuration in which a dehumidification unit through which hydrogen gas passes is provided downstream of the water separation means 50, the breakthrough state of the desiccant used in the dehumidification unit can be used as a parameter. In this case, by providing a dew point meter downstream of the dehumidification unit, the measured value of the dew point meter can be used as an index representing the breakthrough state.

[0104] In addition, the gain change unit 45 may be configured to increase the Kalman gain g when the amount of change in the monitor value exceeds a threshold and the period during which the amount of change exceeds the threshold continues for a predetermined period of time.

[0105] In the above embodiment, the fluid generator 100 was equipped with a filtering unit 43, a monitor unit 44, and a gain change unit 45, but as shown in Figure 11, an estimation device 300 separate from the fluid generator 100 may be equipped with some or all of the filtering unit 43, the monitor unit 44, and the gain change unit 45.

[0106] Furthermore, although the fluid generator 100 has been described in the above embodiment as a hydrogen generator that generates hydrogen, the fluid generator may generate various fluids, such as one that generates gases other than hydrogen, or one that generates liquids other than gas, and may also be a fluid source for supplying a contained fluid downstream, such as a gas cylinder.

[0107] Further, the destination of the fluid generated by the fluid generator 100 is a gas chromatograph in the above embodiment, but it may be various other devices.

[0108] In the above embodiment, the filtering unit 43 receives an observed flow rate and outputs an estimated flow rate, but this is not necessarily limited to this, and may receive an observed state quantity of a fluid or an observed state quantity which is a value of a parameter correlated thereto, and output an estimated state quantity of a fluid or an estimated state quantity which is a value of a parameter correlated thereto. Note that "correlated" here means that there is a one-to-one relationship, and a parameter correlated to a state quantity of a fluid is a parameter that is determined to a certain value according to the state quantity of the fluid. Such observed state quantities and estimated state quantities are not limited to the flow rate of the fluid described in the above embodiment, but may include the pressure of the fluid, the duty ratio of the supply current supplied to the electrolytic cell 20, or the current value of the supply current.

[0109] To explain a more specific aspect, in the above embodiment, a configuration has been described in which the flow rate is observed and estimated as the state quantity of the fluid, but the state quantity to be observed and estimated is not limited to the flow rate and may be pressure, in other words, the fluid generator 100 and the estimation device 300 may be equipped with a filtering unit 43 which receives the observed pressure of the fluid and outputs the estimated pressure of the fluid. In this case, the control device 40 does not necessarily have to have the function of the generated flow rate calculation unit 42 described in the above embodiment, as shown in Figure 12, and the monitor unit 44 may monitor the observed pressure observed by the pressure sensor 30, or a monitor value which is the value of a parameter linked to the observed pressure, as shown in Figure 11.

[0110] Furthermore, the input value may be a parameter that correlates with a state quantity of the fluid, and the monitor value may be a parameter value that is linked to the input value. One example of this case is a configuration in which the input value is the duty ratio of the current supplied to the electrolytic cell 20, and the monitor value is the operating speed of the water separation means 50.

[0111] Furthermore, the present invention is not limited to the above-described embodiment, and it goes without saying that various modifications are possible without departing from the spirit and scope of the present invention. [Explanation of symbols]

[0112] 100 Fluid generator 200...Equipment L Flow path 10 Storage tank 20 Electrolysis cell 30 Pressure Sensor 40 Control device 41 Flow rate control section 42 Generated flow rate calculation section 43 Filtering section 431...Estimation model g Kalman gain 44 Monitor section 45 Gain change section 46 Return gain memory section 47...Display section 50...Water separation means 60 ···Shut-off valve

Claims

1. A filtering unit that performs Kalman filtering on the input value; and a change unit that switches the arithmetic equation used by the filtering unit from a first arithmetic equation used when the amount of fluctuation of the input value or a monitor value, which is a parameter value linked to the input value, exceeds a threshold value to a second arithmetic equation having higher tracking ability.

2. The arithmetic device according to claim 1 , wherein the change unit is a gain change unit that increases a Kalman gain of the Kalman filter process when the amount of fluctuation exceeds the threshold value.

3. A fluid generator for generating a predetermined fluid, comprising: The computing device according to claim 2, A fluid generator, wherein the input value is a value indicating a state quantity of the fluid or a value of a parameter correlated with the state quantity.

4. 4. The fluid generator according to claim 3, wherein the gain change section calculates, as the amount of fluctuation, a difference or a ratio between a latest monitored value and a monitored value at an immediately preceding timing.

5. 5. The fluid generator according to claim 3, wherein the gain change unit returns the Kalman gain to a preset initial value when the amount of fluctuation in the monitor value exceeds a threshold value.

6. 5. The fluid generator according to claim 3, wherein when the amount of fluctuation in the monitor value exceeds a threshold value, the gain changer changes the Kalman gain to a larger value as the difference between the amount of fluctuation and the threshold value increases.

7. 7. The fluid generator according to claim 6, wherein the gain change section changes the Kalman gain using a function that has a difference between the amount of fluctuation and the threshold as a variable and that converges to a value equal to or smaller than 1 as the difference increases.

8. The fluid generator according to claim 3 , further comprising a display unit that displays an output value output from the filtering unit.

9. The fluid generator according to claim 3 , wherein the output value output from the filtering section is a flow rate of the fluid.

10. the fluid is hydrogen gas; 10. A fluid generator as claimed in any one of claims 3 to 9, comprising electrolysis means for electrolysing water to produce hydrogen gas.

11. 11. The fluid generator of claim 10, wherein the current supplied to the electrolysis means is a pulsed current.

12. Further comprising a pressure sensor for detecting the pressure of the hydrogen gas, 12. The fluid generator according to claim 11, wherein the supply of current to the electrolysis means is stopped when the pressure detected by the pressure sensor reaches an upper limit value, and the supply of current to the electrolysis means is started when the pressure detected by the pressure sensor reaches a lower limit value.

13. 13. The fluid generator according to claim 12, wherein the monitor value is at least one of the flow rate of the hydrogen gas, the pressure of the hydrogen gas, the duty ratio of the pulse current, the elapsed time until the detected pressure reaches a lower limit value from an upper limit value, the remaining amount or water level of water sent to the electrolysis means, the operating speed of a water separation means for separating water flowing out together with the hydrogen gas from the electrolysis means, or a breakthrough state of a desiccant used in a dehumidification unit through which the hydrogen gas passes.

14. a filtering step of Kalman filtering the input values; and a change step of switching the arithmetic equation used in the filtering step from a first arithmetic equation used when the amount of fluctuation of the input value or a monitor value, which is a parameter value linked to the input value, exceeds a threshold value to a second arithmetic equation having higher tracking ability.

15. A filtering unit that performs Kalman filtering on the input value; The calculation program causes a computer to function as a change unit that switches the calculation formula used by the filtering unit from a first calculation formula used when the amount of fluctuation of the input value or a monitor value, which is a parameter value linked to the input value, exceeds a threshold value, to a second calculation formula with higher tracking performance.

Citation Information

Patent Citations

  • Gas chromatography analysis method and gas chromatography analysis system

    JP2021196357A