All-digital preset performance driving control method for hydrogen energy flowmeter
Through the fully digital preset performance driving control method, the stability problem of hydrogen flowmeter in complex fluid conditions is solved, stable driving control and dynamic performance guarantee in gas-liquid two-phase flow are realized, and the calculation process is simplified. Promote the engineering application of intelligent control.
Patent Information
- Application Number
- CN202411149108.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-03
AI Technical Summary
The existing hydrogen flowmeters use analog drive control in complex fluid operating conditions, and digital drive control cannot guarantee the dynamic performance of the control system.
Using a fully digital preset performance driving control method, by establishing a vibrating tube dynamic model of a hydrogen-energy Coriolis mass flowmeter, setting the overshoot and steady-state error of the flowmeter drive control system as the preset performance range, designing Control the error performance function, converts constrained tracking errors into unrestricted errors, and designs a fully digitally driven sliding mode controller based on neural network estimation of unmodeled nonlinear dynamics based on the theory of minimum parameter.
It realizes stable drive control under complex operating conditions of gas-liquid two-phase flow, ensures the steady-state and dynamic performance of the control system, and reduces the calculation amount, which helps the engineering application of intelligent control.
Smart Images

Figure CN119065241A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of hydrogen energy flow meter drive control, and in particular relates to a full-digital preset performance drive control method for a hydrogen energy flow meter. Background Art
[0002] Coriolis mass flowmeters are widely used in hydrogen energy measurement because they can directly measure mass flow and have the advantages of high measurement accuracy and good repeatability. The drive part is an important component of the Coriolis mass flowmeter. It can maintain the stable vibration of the flow tube in the Coriolis mass flowmeter and plays a key role in achieving high-precision measurement of mass flow. There are two drive control methods for Coriolis mass flowmeters: analog drive control and digital drive control. Both methods can maintain the stable vibration of the flow tube under normal working conditions, such as single-phase flow conditions. However, due to unreasonable amplitude control and other reasons, the analog drive method will cause the flow tube to stop vibrating under complex fluid conditions such as gas-liquid two-phase flow, resulting in the inability to measure the mass flow of the fluid; the digital drive method overcomes this shortcoming and can maintain the vibration of the flow tube under both normal working conditions (such as single-phase flow) and complex working conditions (such as gas-liquid two-phase flow). Therefore, digital drive has become a research hotspot for Coriolis mass flowmeters.
[0003] In the existing digital drive control methods, amplitude control generally adopts a nonlinear amplitude control algorithm, that is, the amplitude is controlled by a combination of logarithmic error and PI controller. For example, the article "Design of Digital Drive System of Coriolis Mass Flowmeter Based on FPGA" (Liu Wen, Xu Kejun, Le Jing, Xu Haoran, Zhang Lun, Huang Ya, Liu Chenci, "Automation Instruments", Vol. 40, No. 10, 2019) tested and verified this method on FPGA and DSP, and found that the driving effect of FPGA drive is better. However, this nonlinear amplitude control method can only guarantee the convergence of the control error, and it is difficult to evaluate the specific upper and lower bounds of the error. In addition, the dynamic process of the control system has not been characterized, and the dynamic performance of the Coriolis mass flowmeter control system cannot be guaranteed. Summary of the invention
[0004] The purpose of the present invention is to solve the problems existing in the prior art that when the hydrogen energy flow meter adopts an analog drive control method, the flow tube stops vibrating under complex fluid conditions, and when the digital drive control method is adopted, the dynamic performance of the control system cannot be guaranteed. A full-digital preset performance drive control method for a hydrogen energy flow meter is provided. According to the preset performance requirements of the system, the method integrates indicators such as steady-state error, adjustment time, overshoot, etc. into the performance function, converts the restricted system into an unconstrained system through error conversion, and designs a controller to keep the tracking error always within the preset range, thereby realizing stable drive control under complex gas-liquid two-phase flow conditions.
[0005] To achieve the above purpose, the technical solution provided by the present invention is:
[0006] A fully digital preset performance drive control method for a hydrogen energy flow meter comprises the following steps:
[0007] Step 1, establishing a dynamic model of a vibrating tube of a hydrogen energy Coriolis mass flowmeter;
[0008] Step 2, setting the overshoot and steady-state error of the flow meter drive control system as a preset performance range, and using the preset performance range as a constraint to design a control error performance function to convert the restricted tracking error into an unrestricted error;
[0009] Step 3, design a fully digital drive sliding mode controller based on the unrestricted error obtained in step 2, and use a neural network based on minimum parameter theory to estimate the unmodeled nonlinear dynamics in the dynamic model established in step 1, and determine the neural network weight update law; determine the electrostatic driving force generated by the driving coil of the driver in the flowmeter in the dynamic model established in step 1 based on the fully digital drive sliding mode controller and the neural network weight update law.
[0010] Furthermore, in step 1, the kinetic model is established as follows:
[0011]
[0012] In the formula, and x are the vibration acceleration, vibration velocity and vibration displacement of the flowmeter vibration tube, m is the mass of the vibration tube, c and k are the damping coefficient and stiffness coefficient of the vibration tube, respectively. is the unmodeled nonlinear dynamic function, and f is the electrostatic driving force generated by the driving coil.
[0013] Furthermore, step 2 includes the following sub-steps:
[0014] Step 2.1, define the tracking error z(t) of the drive control system:
[0015] z(t)=xx r
[0016] In the formula, x r is the reference trajectory of the vibration displacement of the vibrating tube, A r is the amplitude of the reference trajectory, is the frequency of the reference trajectory;
[0017] Step 2.2, designing the control error performance function, including:
[0018] Step 2.2.1, assume that the tracking error z(t) satisfies the following inequality:
[0019] -τη(t)<z(t)<τη(t)
[0020] Where τ is a constant, τ>0, and η(t) is a strictly decreasing control error performance function;
[0021] Step 2.2.2, design the control error performance function as:
[0022] η(t)=(η0-η ∞ ) -lt +η ∞
[0023] Where e is the base of the natural logarithm, the initial value of the performance function η0>0, and the steady-state value of the performance function η ∞ >0, the convergence rate of the performance function l>0, the overshoot of the drive control system is in the interval (-τη0,τη0)
[0024] The steady-state error is within the interval (-τη ∞ ,τη ∞ )Inside;
[0025] Step 2.3, converting the restricted tracking error into an unrestricted error, includes:
[0026] Step 2.3.1, define z(t) = η(t)ζ(λ), where,
[0027] Step 2.3.2, define the error after conversion:
[0028]
[0029] Furthermore, step 3 includes the following sub-steps:
[0030] Step 3.1, design the non-singular terminal sliding surface:
[0031]
[0032] Where sign(·) is the sign function, p and r are constants, and p>0, 1<r<2;
[0033] Step 3.2, use neural network to approximate the unmodeled nonlinear dynamics:
[0034]
[0035] In the formula, For unmodeled nonlinear dynamics The estimated value of is an n-dimensional adjustable neural network weight vector, is an n-dimensional basis vector, and the i-th element of θ is a Gaussian function:
[0036]
[0037] In the formula, is the input vector of the neural network, is the Gaussian function θ i The center of i is the Gaussian function θ i The standard deviation of
[0038] Step 3.3, define ρ = ||ω|| 2 , where ω is the optimal weight vector of the neural network;
[0039] Step 3.4, design the neural network weight update law based on the minimum parameter theory:
[0040]
[0041] In the formula, is an estimate of ρ, χ and δ are constants, and χ>0, δ>0;
[0042] Step 3.5, determine the flow meter drive controller:
[0043]
[0044] In the formula, γ1, γ2 and σ are constants, and γ1>0, γ2>0, 0<σ<1.
[0045] The advantages of the present invention are:
[0046] 1. The fully digital preset performance drive control method of the hydrogen energy flowmeter of the present invention establishes a dynamic model for the vibration tube of the hydrogen energy flowmeter, sets the overshoot and steady-state error of the flowmeter drive control system as the preset performance range and uses this as a constraint to design the control error performance function, converts the restricted tracking error into an unrestricted error, and designs a fully digital drive sliding mode controller based on the unrestricted error, so that the tracking error of the drive control system is always kept within the preset performance range. Therefore, the present invention starts from the overshoot and steady-state error constraints of the drive control system, designs a preset performance drive control scheme, and always limits the control error of the hydrogen energy flowmeter within the preset range, which can ensure the steady-state and dynamic performance of the control system in the entire control process under the complex fluid conditions of gas-liquid two-phase flow.
[0047] 2. The present invention adopts the minimum parameter theory to convert the weight vector update into the weight parameter update in the process of neural network estimation of unmodeled dynamics, which greatly reduces the amount of calculation and helps to promote intelligent control to engineering applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The above and / or features and advantages of the present invention will become more easily understood through the following description with reference to the accompanying drawings, in which:
[0049] Figure 1 It is a schematic diagram of the fully digital preset performance drive control system of the hydrogen energy Coriolis mass flowmeter of the present invention;
[0050] Figure 2 It is a schematic diagram of the fully digital preset performance drive control method of the hydrogen energy flow meter of the present invention. DETAILED DESCRIPTION
[0051] The present invention will be described in detail below with reference to the accompanying drawings by means of exemplary embodiments of the present invention. It should be noted that the following detailed description of the present invention is only for the purpose of illustration, and is not intended to limit the present invention.
[0052] The present invention provides a fully digital preset performance drive control method for a hydrogen energy flow meter, which is used to control the drive control system of the hydrogen energy Coriolis mass flow meter and realize stable drive control of the control system under normal working conditions (such as single-phase flow) and complex working conditions (such as gas-liquid two-phase flow).
[0053] Reference Figure 1 The drive control system of the hydrogen energy Coriolis mass flowmeter includes three links: vibration tube, analog front end, and intelligent robust drive control module. Among them, the vibration tube of the hydrogen energy flowmeter is the control object; the analog front end amplifies and converts the electrostatic driving force f and the detection displacement signal x generated by the driving coil of the driver in the flowmeter into analog-to-digital and digital-to-analog conversions; the digital drive link implements the preset performance drive control algorithm. The specific idea is: give the dynamic model of the vibration tube of the hydrogen energy flowmeter; consider the preset steady-state and dynamic performance indicators of the drive control system, give the performance function of the control error, and then convert the restricted error into unrestricted error based on the performance function, design a neural network based on the minimum parameter theory to approximate the unmodeled dynamics, and improve the robustness of the system; design a terminal sliding mode controller based on the unrestricted error, so that the tracking error is always kept within the preset range, and the performance-guaranteed control of the hydrogen energy flowmeter is realized.
[0054] Reference Figure 2 As an exemplary embodiment of the present invention, a fully digital preset performance driving control method for a hydrogen energy flow meter comprises the following steps:
[0055] Step S1, establishing a dynamic model of a vibrating tube of a hydrogen energy Coriolis mass flowmeter;
[0056] Step S2, setting the overshoot and steady-state error of the flow meter drive control system as a preset performance range, taking the preset performance range as a constraint, designing a control error performance function, and converting a restricted tracking error into an unrestricted error;
[0057] Step S3: Based on the unrestricted error obtained in step S2, a fully digitally driven sliding mode controller is designed, and a neural network based on minimum parameter theory is used to estimate the unmodeled nonlinear dynamics in the dynamic model established in step S1, and the neural network weight update law is determined; based on the fully digitally driven sliding mode controller and the neural network weight update law, the electrostatic driving force generated by the driving coil of the driver in the flow meter in the dynamic model established in step S1 is determined.
[0058] In an exemplary embodiment of the present invention, step S1 includes:
[0059] The kinetic model is established as follows:
[0060]
[0061] in, and x are the vibration acceleration, vibration velocity and vibration displacement of the vibration tube respectively; m is the mass of the vibration tube; c and k are the damping coefficient and stiffness coefficient of the vibration tube respectively, and their values are related to the structural parameters and dynamic characteristics of the flowmeter, which can be expressed as c = -2mξω n , Where ξ is the damping ratio of the vibrating tube, ω n is the resonant frequency of the vibrating tube; is the unmodeled nonlinear dynamic function; f is the electrostatic driving force generated by the driving coil. In particular, m = 5.5 kg, ξ = 0.0005, ω can be selected under normal temperature environment. n =2π×100rad / s.
[0062] Dividing both sides of equation (1) by m yields:
[0063]
[0064] Step S2 is used for preset performance design, and specifically includes:
[0065] Define the reference trajectory x of the flowmeter vibrating tube vibration displacement r for
[0066]
[0067] Among them, A r is the amplitude of the reference trajectory; is the frequency of the reference trajectory. It can be selected as A r =5mm,
[0068] The tracking error z(t) of the drive control system is defined as
[0069] z(t)=xx r (4)
[0070] Assume that the tracking error (4) satisfies the following inequality:
[0071] -τη(t)<z(t)<τη(t) (5)
[0072] Wherein, τ>0 is a constant to be designed, and the present invention may select τ=2; η(t) is a strictly decreasing performance function and is designed as:
[0073] η(t)=(η0-η ∞ ) -lt +η ∞ (6)
[0074] Where e is the base of the natural logarithm, the initial value of the performance function η0>0, and the steady-state value of the performance function η ∞ >0, the convergence rate of the performance function l>0. The overshoot of the control system is in the interval (-τη0, τη0), and the steady-state error is in the interval (-τη ∞ ,τη ∞ ) In the present invention, η0=6, η ∞ =0.25, l=3.
[0075] In order to convert the constrained tracking error z(t) to the unconstrained error λ(t), we define:
[0076] z(t)=η(t)ζ(λ) (7)
[0077] In the formula,
[0078] The error after conversion is defined as:
[0079]
[0080] The calculation results are:
[0081]
[0082] in,
[0083] Step S3 may perform robust drive control design on the drive control system, which may include:
[0084] Based on the transformed error λ(t), the non-singular terminal sliding surface is designed as:
[0085]
[0086] Wherein, p>0 and 1<r<2 are constants to be designed. Optionally, p=80, r=1.2.
[0087] Solving for the derivative of s is:
[0088]
[0089] definition like but It can be written as:
[0090]
[0091] in
[0092] Approximating unmodeled nonlinear dynamics using neural networks have:
[0093]
[0094] in, for An estimated value of is a 100-dimensional adjustable neural network weight vector; is a 100-dimensional basis vector. In some embodiments, the i-th (i=1, 2, ... 100) element of the vector is a Gaussian function:
[0095]
[0096] In the formula, is the input vector of the neural network; is the Gaussian function θ i The center of , whose value can be arbitrarily selected between [-50 50]×[-5 5]; σ i is the Gaussian function θ i The standard deviation of i =1.
[0097] When the neural network weights are optimal, there exists:
[0098]
[0099] Among them, ε is the neural network approximation error; is the n-dimensional optimal weight vector.
[0100] Define ρ=||ω|| 2 , where ω is the optimal weight vector of the neural network. In order to reduce the amount of calculation, the neural network weight update law based on the minimum parameter theory is designed as:
[0101]
[0102] in, is an estimate of ρ; χ>0 and δ>0 are constants to be designed, and can be selected as χ=0.006, δ=200 in particular.
[0103] Design the flow meter drive controller as:
[0104]
[0105] in, γ1>0, γ2>0 and 0<σ<1 are constants to be designed. In a specific embodiment of the present invention, γ1=90, γ2=100 and σ=0.5 can be selected.
[0106] Substituting formula (17) into formula (12), we get:
[0107]
[0108] Choose the Lyapunov function as:
[0109]
[0110] in,
[0111] Taking the derivative of V, we get:
[0112]
[0113] There is an inequality:
[0114]
[0115] It can be written as:
[0116]
[0117] Among them, choose the appropriate γ1 so that Further available The final value is bounded consistent with s.
[0118] Therefore, the present invention converts the restricted control error z(t) into an unrestricted error λ(t), designs a sliding mode drive control system (17) based on the unrestricted error λ(t), and in the process uses a neural network (13) (16) based on the minimum parameter theory to approximate the unmodeled nonlinear dynamics. The fully digital preset performance drive control of the hydrogen energy flowmeter is realized. Therefore, according to the obtained flowmeter drive controller, the vibration tube dynamics model is returned to track the tracking error of the flowmeter drive control system, so that the tracking error of the drive control system is always kept within the preset performance range, thereby realizing the stable drive control of the flowmeter drive control system under complex gas-liquid two-phase flow conditions.
[0119] As described above, the present invention starts from the overshoot and steady-state error constraints of the drive control system, designs a preset performance drive control scheme, and always limits the control error of the hydrogen energy flow meter within a preset range, which can ensure the steady-state and dynamic performance of the control system in the entire control process under the complex fluid working conditions of gas-liquid two-phase flow. In addition, the present invention adopts the minimum parameter theory, and in the process of neural network estimation of unmodeled dynamics, the weight vector update is converted into the weight parameter update, which greatly reduces the amount of calculation and helps to promote intelligent control to engineering applications.
[0120] Finally, it should be noted that the features mentioned and / or shown in the above description of the exemplary embodiments of the present invention may be combined in the same or similar manner into one or more other embodiments, combined with the features in other embodiments or substituted for the corresponding features in other implementations. The technical solutions obtained by these combinations or substitutions shall also be deemed to be included in the protection scope of the present invention.
Claims
1. A fully digital preset performance drive control method for a hydrogen energy flow meter, It is characterized in that The following steps are involved: Step 1, establishing a dynamic model of a vibrating tube of a hydrogen energy Coriolis mass flowmeter; Step 2, setting the overshoot and steady-state error of the flow meter drive control system as a preset performance range, and designing a control error performance function with the preset performance range as a constraint to convert the restricted tracking error into an unrestricted error; Step 3, designing a fully digital drive sliding mode controller based on the unrestricted error obtained in step 2, and using a neural network based on minimum parameter theory to estimate the unmodeled nonlinear dynamics in the dynamic model established in step 1, and determining the neural network weight update law; determining the electrostatic driving force generated by the drive coil of the driver in the flowmeter in the dynamic model established in step 1 based on the fully digital drive sliding mode controller and the neural network weight update law.
2. The fully digital preset performance drive control method for a hydrogen energy flow meter according to claim 1, It is characterized in that In step 1, the kinetic model is established as follows: In the formula, and x are the vibration acceleration, vibration velocity and vibration displacement of the flowmeter vibration tube, m is the mass of the vibration tube, c and k are the damping coefficient and stiffness coefficient of the vibration tube, respectively. is the unmodeled nonlinear dynamic function, and f is the electrostatic driving force generated by the driving coil.
3. The fully digital preset performance drive control method for a hydrogen energy flow meter according to claim 2, It is characterized in that The step 2 includes the following sub-steps: Step 2.1, define the tracking error z(t) of the drive control system: z(t)=x-x r In the formula, x r is the reference trajectory of the vibration displacement of the vibrating tube, A r is the amplitude of the reference trajectory, is the frequency of the reference trajectory; Step 2.2, designing the control error performance function, including: Step 2.2.1, assume that the tracking error z(t) satisfies the following inequality: -τη(t)<z(t)<τη(t) Where τ is a constant, τ>0, and η(t) is a strictly decreasing control error performance function; Step 2.2.2, design the control error performance function as: η(t)=(η 0 -or ∞ )e -lt +n ∞ Where e is the base of the natural logarithm, and the initial value of the performance function η is 0 >0, the steady-state value of the performance function η ∞ >0, the convergence rate of the performance function l>0, the overshoot of the drive control system is in the interval (-τη 0 ,τη 0 ), the steady-state error is in the interval (-τη ∞ ,τη ∞ )Inside; Step 2.3, converting the restricted tracking error into an unrestricted error, includes: Step 2.3.1, define z(t) = η(t)ζ(λ), where, Step 2.3.2, define the error after conversion:
4. The fully digital preset performance drive control method for a hydrogen energy flow meter according to claim 3, It is characterized in that The step 3 includes the following sub-steps: Step 3.1, design the non-singular terminal sliding surface: Where sign(·) is the sign function, p and r are constants, and p>0, 1<r<2; Step 3.2, use neural network to approximate the unmodeled nonlinear dynamics: In the formula, For unmodeled nonlinear dynamics The estimated value of is an n-dimensional adjustable neural network weight vector, is an n-dimensional basis vector, and the i-th element of θ is a Gaussian function: In the formula, is the input vector of the neural network, is the Gaussian function θ i The center of i is the Gaussian function θ i The standard deviation of Step 3.3, define ρ = ||ω|| 2 , where ω is the optimal weight vector of the neural network; Step 3.4, design the neural network weight update law based on the minimum parameter theory: In the formula, is an estimate of ρ, χ and δ are constants, and χ>0, δ>0; Step 3.5, determine the flow meter drive controller: In the formula, γ 1 , γ 2 and σ are constants, and γ 1 >0,γ 2 >0,0<σ<1.
