A pressure control method and apparatus for an electrolytic hydrogen production system
By establishing a pressure dynamic model and adjusting the sliding mode controller parameters in real time in the electrolytic hydrogen production system, the problem of insufficient response speed and accuracy of traditional control methods in the electrolytic hydrogen production system is solved, achieving high-precision and rapid pressure balance control and improving the system's safety and robustness.
Patent Information
- Application Number
- CN202610980634.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-02
- Publication Date
- 2026-11-17
AI Technical Summary
Traditional PID control methods are difficult to balance response speed and control accuracy in electrolytic hydrogen production systems. Sliding mode control in electrolytic hydrogen production pressure control has problems such as fixed switching gain, system operating point drift and lack of pressure setpoint change compensation. Furthermore, valve action lag may cause pressure over-limit or pressure differential imbalance.
By establishing a dynamic model of electrolytic cell pressure, the electrolytic current and its changes are detected in real time. The switching gain, boundary layer thickness and feedforward control of the sliding mode controller are dynamically adjusted. Combined with upper-level coordinated control, the future pressure trajectory is predicted, and the power and pressure setpoints are coordinated and adjusted to avoid violations of safety constraints.
It achieves high-precision and rapid pressure balance control under variable current conditions, improves dynamic response speed and steady-state control accuracy, avoids the risk of pressure over-limit and pressure imbalance, and enhances the safety and robustness of the system.
Smart Images

Figure CN123108648A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of monitoring technology, specifically relating to a pressure control method and device for an electrolytic hydrogen production system. Background Technology
[0002] Electrolysis of water to produce hydrogen is currently the mainstream technology for green hydrogen production. In electrolysis hydrogen production systems, maintaining a dynamic balance between the hydrogen and oxygen pressures is crucial for ensuring safe equipment operation, improving hydrogen purity, and reducing energy consumption. However, the electrolysis hydrogen production process is characterized by strong nonlinearity, multivariate coupling, and time-varying parameters. Particularly in renewable energy power supply scenarios, the electrolysis current fluctuates dramatically with wind and solar power output, leading to rapid changes in the gas production rate, posing a significant challenge to pressure balance control.
[0003] Traditional PID control methods can maintain a certain level of control accuracy under steady-state conditions, but their poor responsiveness and weak parameter adaptability become apparent when the current changes rapidly, making it difficult to balance response speed and control accuracy. Sliding mode control, due to its strong robustness to system parameter perturbations and external disturbances, is widely used in nonlinear system control. However, there are currently no known cases of sliding mode control being applied to pressure control in electrolytic hydrogen production, and conventional sliding mode control has the following shortcomings: first, the switching gain is fixed, making it difficult to adapt to disturbance suppression requirements under different current change rates; second, it does not fully consider the system operating point drift caused by changes in the absolute value of the current; and third, it lacks a compensation mechanism for changes in the pressure setpoint, resulting in insufficient adaptability across all operating conditions.
[0004] Furthermore, existing control methods typically focus only on lower-level valve regulation, neglecting potential pressure overshoots or pressure differential imbalances that may arise when valve action lags behind changes in input power or pressure setpoint. This lag could stem from inertia, rate limitations, or malfunctions in the valve actuator, and if left unaddressed, it will threaten the safe operation of the system. Summary of the Invention
[0005] The present invention aims to at least partially solve one of the technical problems in the related art.
[0006] Therefore, the first objective of this invention is to provide a pressure control method for an electrolytic hydrogen production system.
[0007] The second objective of this invention is to provide a pressure control device for an electrolytic hydrogen production system.
[0008] The third objective of this invention is to provide a computer device.
[0009] A fourth objective of this invention is to provide a non-transitory computer-readable storage medium.
[0010] To achieve the above objectives, a first aspect of the present invention provides a pressure control method for an electrolytic hydrogen production system, comprising:
[0011] S1. Establish a pressure dynamic model for the electrolytic cell, and extend the valve dynamic model and the power-current relationship model. S2 detects the electrolysis current and its rate of change in real time, and dynamically adjusts the switching gain, boundary layer thickness and feedforward control quantity of the sliding mode controller based on the rate of change of the current, the absolute value of the current and the change of the pressure setpoint. S3, based on the sliding surface function and dynamically adjusted parameters, calculates the lower-level sliding control quantity and outputs it to the regulating valves on the hydrogen and oxygen sides; S4 predicts the future pressure trajectory based on the extended model, determines whether safety constraints are violated, and if so, coordinates and adjusts the power command correction amount and pressure setpoint correction amount, and sends the corrected command to the electrolytic cell power source and the lower sliding mode controller.
[0012] In one embodiment of the present invention, the pressure dynamic model includes a hydrogen-side pressure dynamic model and an oxygen-side pressure dynamic model, wherein the gas production coefficient varies with current and pressure. The valve dynamic model adopts either a first-order inertial plus pure delay model or a rate-limited model; The power-current relationship model is established based on the electrolytic cell polarization curve and is used to describe the relationship between electrolytic cell voltage, current, temperature, and pressure, as well as to calculate the input power.
[0013] In one embodiment of the present invention, the detection of the electrolytic current and its rate of change is achieved by a tracking differentiator, which is used to obtain the rate of change of the current and the acceleration of the change of the current. The switching gain is dynamically calculated based on the rate of change of current, the acceleration of change of current, the degree of deviation of the absolute value of current from the reference current, and the degree of deviation of pressure from the rated pressure. The boundary layer thickness is dynamically calculated based on the rate of change of current, the degree to which the absolute value of current deviates from the rated current, and the degree to which the pressure deviates from the rated pressure. The feedforward control quantity is dynamically calculated based on the rate of change of current and the rate of change of pressure setpoint.
[0014] In one embodiment of the present invention, the sliding surface function is constructed based on the pressure difference tracking error and includes an integral term; The lower-level sliding mode control quantity is obtained by superimposing the equivalent control quantity, the switching control quantity, and the feedforward control quantity, wherein the switching control quantity uses a saturation function to suppress chattering.
[0015] In one embodiment of the present invention, the prediction of future pressure trajectories based on the extended model includes: Based on the current measured conditions and the original planned instructions, the extended model is used to predict the pressure trajectory in the future multiple steps. The safety constraints include upper and lower pressure limits and upper pressure differential limits; The coordinated regulation is achieved by solving an optimization problem or by using heuristic rules to calculate the power command correction and pressure setpoint correction. The optimization objective is to minimize the weighted sum of squares of the corrections. The constraints include model prediction equations, safety constraints, actuator constraints, and rate of change limits.
[0016] In one embodiment of the present invention, the method further includes a parameter optimization step: The initial values of the controller parameters are tuned offline using an intelligent optimization algorithm, with the goal of minimizing the comprehensive performance index. Online adaptive fine-tuning is achieved using fuzzy logic or reinforcement learning. The fuzzy logic takes the current change rate and sliding mode surface function as inputs and outputs switching gain adjustment and boundary layer adjustment.
[0017] To achieve the above objectives, a second aspect of the present invention provides a pressure control device for an electrolytic hydrogen production system, comprising: The model building module is used to build a pressure dynamic model of the electrolyzer and extend the valve dynamic model and the power-current relationship model. The parameter detection and adaptive adjustment module is used to detect the electrolysis current and its rate of change in real time, and dynamically adjust the switching gain, boundary layer thickness and feedforward control quantity of the sliding mode controller based on the rate of change of the current, the absolute value of the current and the change of the pressure setpoint. The lower-level sliding mode control module is used to calculate the lower-level sliding mode control quantity based on the sliding mode surface function and dynamically adjusted parameters, and output it to the regulating valves on the hydrogen and oxygen sides. The upper-level coordination control module is used to predict future pressure trajectories based on the extended model, determine whether safety constraints are violated, and if so, coordinate and adjust the power command correction amount and pressure setpoint correction amount, and then send the corrected command to the electrolytic cell power source and the lower-level sliding mode controller.
[0018] The pressure control method and apparatus for an electrolytic hydrogen production system according to an embodiment of the present invention have the following beneficial effects: Multi-factor integrated adaptive control: Simultaneously considering the impact of current change rate, absolute current level, and pressure setpoint changes on the system, high-precision pressure balance control under all operating conditions is achieved through integrated gain scheduling, boundary layer adaptation, and feedforward compensation.
[0019] Rapid response capability: By introducing feedforward compensation for the rate of change of current and dynamic scheduling of switching gain, it can act in advance and increase the control force when the current changes rapidly, significantly improving the dynamic response speed and reducing the differential pressure adjustment time to less than 2 seconds.
[0020] High control accuracy: The boundary layer is thin in steady state, and the switching gain is moderate, ensuring control accuracy; at the same time, the introduction of the integral sliding surface eliminates steady-state error, and the differential pressure control accuracy can reach within 0.05 bar.
[0021] Strong robustness: The inherent robustness of sliding mode control ensures the system's ability to suppress model parameter perturbations and external disturbances, and the adaptive adjustment of the gain further enhances the robustness under varying operating conditions.
[0022] Upper-level coordination ensures safety: By introducing upper-level power-setpoint coordination feedback regulation, the power and / or setpoint are actively adjusted when the valve action is lagging, which effectively avoids the risk of pressure over-limit and pressure imbalance, and improves the safety of the system under extreme dynamic conditions.
[0023] Combining parameter optimization with adaptive optimization: The combination of offline intelligent optimization and online fuzzy adaptive optimization not only ensures the rationality of the initial parameter values, but also achieves continuous optimization during operation, overcoming the limitations of a single method.
[0024] To achieve the above objectives, a third aspect of this application provides a computer device comprising a processor and a memory; wherein the processor runs a program corresponding to the executable program code stored in the memory to implement a pressure control method for an electrolytic hydrogen production system as described in the first aspect embodiment.
[0025] To achieve the above objectives, a fourth aspect of this application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a pressure control method for an electrolytic hydrogen production system as described in the first aspect embodiment.
[0026] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0027] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart of a pressure control method for an electrolytic hydrogen production system according to an embodiment of the present invention; Figure 2 This is a structural block diagram of a hydrogen-oxygen side pressure sliding mode control system for an electrolytic hydrogen production system according to an embodiment of the present invention; Figure 3 This is a prediction-correction flowchart of the upper-layer coordination controller according to an embodiment of the present invention; Figure 4This is a flowchart of a sliding mode control method for hydrogen-oxygen side pressure in an electrolytic hydrogen production system according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of fuzzy logic online parameter adaptation according to an embodiment of the present invention; Figure 6 This is a structural diagram of a pressure control device for an electrolytic hydrogen production system according to an embodiment of the present invention; Figure 7 It is a computer device according to an embodiment of the present invention. Detailed Implementation
[0028] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0029] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0030] The following description, with reference to the accompanying drawings, illustrates a pressure control method and apparatus for an electrolytic hydrogen production system according to an embodiment of the present invention.
[0031] Example 1 Figure 1 This is a flowchart of a pressure control method for an electrolytic hydrogen production system according to an embodiment of the present invention, such as... Figure 1 As shown, it includes: S1. Establish a pressure dynamic model for the electrolytic cell, and extend the valve dynamic model and the power-current relationship model. S2 detects the electrolysis current and its rate of change in real time, and dynamically adjusts the switching gain, boundary layer thickness and feedforward control quantity of the sliding mode controller based on the rate of change of the current, the absolute value of the current and the change of the pressure setpoint. S3, based on the sliding surface function and dynamically adjusted parameters, calculates the lower-level sliding control quantity and outputs it to the regulating valves on the hydrogen and oxygen sides; S4 predicts the future pressure trajectory based on the extended model, determines whether safety constraints are violated, and if so, coordinates and adjusts the power command correction amount and pressure setpoint correction amount, and sends the corrected command to the electrolytic cell power source and the lower sliding mode controller.
[0032] The pressure control method of an electrolytic hydrogen production system according to an embodiment of the present invention can achieve high-precision and rapid balance control of hydrogen and oxygen side pressure under variable current conditions, improve dynamic response speed and steady-state control accuracy, effectively avoid the risk of pressure over-limit and pressure difference imbalance, and improve system safety and robustness.
[0033] Example 2 The pressure control method of an electrolytic hydrogen production system according to an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
[0034] In a first aspect, the present invention provides a sliding mode control system for the hydrogen and oxygen side pressure of an electrolytic hydrogen production system, such as... Figure 2 As shown, it includes: An electrolytic cell is used to electrolyze water to produce hydrogen and oxygen, and outputs an electrolysis current signal in real time. Pressure detection units are installed on the hydrogen and oxygen side pipelines respectively, for real-time detection of hydrogen and oxygen pressure; The current sensing and differentiating unit, including a current sensor and a tracking differentiator, is used to acquire the electrolytic current in real time and calculate the rate of change of the current. and acceleration due to change in current ; The lower-level adaptive sliding mode controller receives pressure difference signals, electrolysis current and its derivatives, and outputs valve control quantities; the adaptive sliding mode controller includes: 1) Sliding surface construction module, used to construct sliding surface functions containing integral terms; 2) Equivalent control calculation module, which calculates equivalent control quantities based on the system model; 3) The integrated gain scheduling module dynamically calculates the switching gain based on the rate of change of current, the absolute level of current, and the change of pressure setpoint. 4) Boundary layer adaptive module, which dynamically adjusts the boundary layer thickness according to the rate of change of current; 5) Feedforward compensation module, which calculates the feedforward control quantity based on the rate of change of current and the rate of change of pressure setpoint; 6) Control law synthesis module, which superimposes equivalent control, switching control and feedforward control to output total control quantity.
[0035] like Figure 3 As shown, the upper-level coordination controller is connected to the lower-level adaptive sliding mode controller. It receives current status information (actual pressure, valve opening, electrolysis current) as well as the original power command and pressure setpoint command. It uses a prediction-correction mechanism to determine whether safety constraints may be violated, and calculates the power command correction amount and / or pressure setpoint correction amount when necessary. It then outputs the corrected command to the lower-level controller and the electrolytic cell power source. The actuators, including hydrogen-side and oxygen-side regulating valves, adjust the valve opening based on the control output from the lower-level controller.
[0036] Secondly, the present invention provides a sliding mode control method for hydrogen and oxygen side pressure in an electrolytic hydrogen production system, such as... Figure 4 As shown, it includes the following steps: Step S10: Establish a dynamic model of the hydrogen-oxygen side pressure of the electrolyzer, and extend the valve dynamic model and the power-current relationship model. Step S20: Define the pressure difference tracking error and design the sliding surface; Step S30: Real-time detection of electrolysis current and its derivative, and extraction of current change rate characteristics; Step S40: Dynamically adjust the sliding mode controller parameters based on changes in current rate of change, absolute current level, and pressure setpoint. Step S50: Calculate the lower-level sliding mode control quantity and output it to the hydrogen-oxygen side regulating valve; Step S60, Upper-level coordination control: Based on the extended model, predict the future pressure trajectory and determine whether there is a possibility of violating safety constraints (pressure upper and lower limits, differential pressure limit). If so, calculate the correction amount of power command and / or pressure setpoint through optimization or rules, so that the actual command is as close as possible to the original plan while ensuring safety.
[0037] Furthermore, in step S10, the dynamic pressure models for the hydrogen and oxygen sides are expressed as follows:
[0038] in For oxygen-side pressure, For hydrogen-side pressure, For electrolysis current, and These are the oxygen and hydrogen gas output flow rates, respectively. and The gas production coefficient varies with current and pressure.
[0039] The valve dynamic model, considering the inertia and rate limitation of the actuator, can be represented as a first-order inertial model plus pure delay or rate limitation:
[0040] or
[0041] The power-current relationship is described by the electrolytic cell polarization curve, and can be simplified to table lookup or polynomial fitting:
[0042] Further, in step S20, the pressure difference tracking error is defined:
[0043] in The reference pressure difference is set to 0 for hydrogen-oxygen balance control. The sliding surface containing an integral term is designed as follows:
[0044] in It is a positive constant.
[0045] Furthermore, in step S30, a tracking differentiator is used to obtain the rate of change of current. and acceleration due to change in current The calculation formula is:
[0046] in The sampling period is This is the fastest control synthesis function. For velocity factor, This is the filter factor.
[0047] Further, in step S40, the gain is switched. The dynamic adjustment formula is:
[0048] in As the reference gain, For adjustment coefficients, As the reference current, This is the rated pressure.
[0049] Boundary layer thickness The adaptive adjustment formula is:
[0050] in As the reference thickness, For adjustment coefficients, This is the rated current.
[0051] Feedforward control quantity The calculation formula is:
[0052] in The current change feedforward coefficient is used. This is the feedforward coefficient for changes in the setpoint.
[0053] Furthermore, in step S50, the lower-level sliding mode control integrated control quantity The calculation formula is:
[0054] in The equivalent control quantity based on the system model, It is a saturation function.
[0055] Furthermore, in step S60, the upper-level coordination control specifically includes the following sub-steps: S601, State Estimation and Prediction: Based on the current measured state and original plan instructions , Predicting the future using extended models (including valve dynamics) Step pressure trajectory , .
[0056] S602, Safety Constraint Check: Define safety constraints: Pressure upper and lower limits: ; Upper limit of pressure difference: ; If the predicted trajectory violates any constraints in the time domain, coordination adjustment is triggered.
[0057] S603, Coordination and Regulation Calculation: Solving optimization problems or executing heuristic rules to determine the future. Step power command correction amount and pressure setpoint correction amount , making the revised instructions , It satisfies safety constraints and minimizes deviation from the original plan.
[0058] The optimization problem can be expressed as:
[0059] constraint: Model prediction equation; Safety constraints: , , ; Actuator constraints: valve speed limit, valve opening limit; Power / Setpoint Change Rate Limit: , .
[0060] Or use heuristic rules, for example: If the predicted pressure will exceed the upper limit, then pause the power / voltage boost and adjust in reverse if necessary; If the predicted differential pressure is too large, limit the rate of change of current or fine-tune the setting value on one side.
[0061] S604, Instruction issuance: Send the corrected power instruction to the electrolytic cell power source (rectifier), and send the corrected pressure setpoint instruction to the lower-level sliding mold controller.
[0062] S605, Rolling Time Domain: The next cycle repeats S601~S604, forming a closed loop.
[0063] Furthermore, the method also includes a parameter optimization step S70: offline tuning of the controller parameters using an intelligent optimization algorithm, and online adaptive fine-tuning using fuzzy logic or reinforcement learning, such as... Figure 5 The diagram shows the structure of online parameter adaptation for fuzzy logic.
[0064] The intelligent optimization algorithm employs either particle swarm optimization or gold mining optimization to find the optimal solution with the goal of minimizing the overall performance index. The overall performance index is:
[0065] in For pressure difference, To control the quantity, For steady-state pressure difference fluctuations, To adjust the time, These are the weighting coefficients.
[0066] When adjusting fuzzy logic online, the rate of change of current is used as the reference. and sliding surface function Use as input to switch the gain adjustment amount. Boundary layer regulation For the output, Mamdani inference and the centroid method are used to resolve the fuzziness.
[0067] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are based on the technical solution of the present invention and provide detailed implementation methods and specific operating procedures; however, the scope of protection of the present invention is not limited to the following embodiments.
[0068] Example 3 This embodiment provides a sliding mode control system for the hydrogen and oxygen side pressure of an electrolytic hydrogen production system, such as... Figure 2 As shown, it includes an electrolytic cell, a pressure detection unit, a current detection and differentiation unit, a lower-level adaptive sliding mode controller, an upper-level coordination controller, and an actuator.
[0069] The electrolyzer is an alkaline water electrolyzer with a rated current density of 4000 A / m² and a rated operating pressure of 1.6 MPa. Pressure transmitters are installed on both the hydrogen and oxygen sides, with a range of 0~2.5 MPa and an accuracy of 0.1 class. A Hall effect current sensor is used for current detection, with a response time of less than 1 μs. The actuator is an electrically controlled regulating valve with a response time of less than 1 s and a rate limit of 100% / s.
[0070] The lower-level adaptive sliding mode controller is implemented based on a DSP+FPGA architecture, with a sampling period Ts=10ms. The tracking differentiator parameters are set as follows: velocity factor r=1000, filter factor h=0.01.
[0071] The upper-level coordinating controller is deployed in an industrial computer or embedded system. It communicates with the lower-level controller through a high-speed bus and performs prediction and coordination calculations. The prediction time domain N is 20 steps (corresponding to 0.2 seconds), and the control time domain is 10 steps.
[0072] The design of the lower-level sliding mode controller parameters is the same as in Example 2, and is omitted here.
[0073] Upper-level coordination and control are implemented.
[0074] Step 1: Build an extended model.
[0075] Identify the valve's dynamic parameters, including the time constant τ, through a step response experiment. v =0.3s, pure delay θ v =0.1s, gain K v =1.2. The polarization curve of the electrolytic cell was obtained by fitting the manufacturer's data: V cell = 1.23 + 0.01I + 0.05 ln(I+1) +0.002P, where P is the average pressure (bar). The power-current relationship can then be established by referring to a table.
[0076] Step 2: State estimation.
[0077] Since there is no direct feedback on the actual valve opening, an observer is designed to estimate the valve position. A discrete Kalman filter is used, with the valve command u as input, to estimate the actual opening u. act And flow rate F.
[0078] Step 3: Prediction and safety constraint check.
[0079] In each control cycle, read the current P an , P ca , I, , and raw power command and differential pressure setpoint (Typically 0). Assuming future power commands change according to the original plan (e.g., a future N-step sequence given by the superior EMS), the extended model is used to predict the future pressure trajectory in a rolling manner.
[0080] Safety constraints: =1.0MPa, =2.0MPa, =0.2MPa.
[0081] If any predicted value exceeds the constraint, reconciliation is triggered.
[0082] Step 4: Coordination and adjustment calculation.
[0083] Model predictive control (MPC) is used to solve the optimization problem, with weights... =1, =0.5. Limit of power change rate under constraint. =0.5MW / s, pressure setpoint change rate limit =0.1MPa / s.
[0084] The optimization problem is solved using quadratic programming to obtain a sequence of corrections. Only the correction at the current moment is applied to the system, and the solution is repeated in the next cycle.
[0085] If the system's computing resources are limited, a rule can also be adopted: when the predicted pressure exceeds 1.9 MPa, the power increase is suspended; if it exceeds 1.95 MPa, the power is reduced at a rate of 0.2 MW / s until the pressure drops below 1.8 MPa.
[0086] Step 5: Issue the instruction.
[0087] Revised power command The corrected differential pressure setpoint is sent to the rectifier. The settings are sent to the lower-level sliding mode controller. The lower-level controller then continues to perform sliding mode control based on the new settings.
[0088] Simulation verification.
[0089] Build a complete system model in Matlab / Simulink and set up the following scenario to verify the effect of upper-level coordination and control: Scenario: The current increases from 4kA to 6kA at a rate of 500A / s, while the oxygen-side valve slows down its response due to a fault (time constant increases to 0.8s). Without coordination, the oxygen-side pressure is predicted to exceed the 2.0MPa upper limit, which may cause the safety valve to trip in actual operation. After coordination is enabled, the upper-level controller detects the predicted over-limit, actively reduces the power increase rate to 200A / s, and suspends the change in the pressure setpoint. Ultimately, the actual pressure stabilizes below 1.95MPa, the pressure difference does not exceed 0.15MPa, and the total power increase time only increases by 1.2s, ensuring a balance between safety and efficiency.
[0090] Example 4 To achieve the above embodiments, such as Figure 6 As shown, this embodiment also provides a pressure control device 10 for an electrolytic hydrogen production system. The device 10 includes a model building module 100, a parameter detection and adaptive adjustment module 200, a lower sliding mode control module 300, and an upper coordination control module 400.
[0091] Model building module 100 is used to build a pressure dynamic model of the electrolytic cell and extend the valve dynamic model and the power-current relationship model. The parameter detection and adaptive adjustment module 200 is used to detect the electrolysis current and its rate of change in real time, and dynamically adjust the switching gain, boundary layer thickness and feedforward control quantity of the sliding mode controller based on the rate of change of the current, the absolute value of the current and the change of the pressure setpoint. The lower sliding mode control module 300 is used to calculate the lower sliding mode control quantity based on the sliding mode surface function and the dynamically adjusted parameters, and output it to the regulating valves on the hydrogen side and the oxygen side. The upper-level coordination control module 400 is used to predict the future pressure trajectory based on the extended model, determine whether the safety constraints are violated, and if so, to coordinate and adjust the power command correction amount and pressure setpoint correction amount, and then send the corrected command to the electrolytic cell power source and the lower-level sliding mode controller.
[0092] Furthermore, the pressure dynamic model includes a hydrogen-side pressure dynamic model and an oxygen-side pressure dynamic model, whose gas production coefficient varies with current and pressure. The valve dynamic model adopts either a first-order inertial plus pure delay model or a rate-limited model; The power-current relationship model is established based on the electrolytic cell polarization curve and is used to describe the relationship between electrolytic cell voltage, current, temperature, and pressure, as well as to calculate the input power.
[0093] Furthermore, the detection of the electrolytic current and its rate of change employs a tracking differentiator to obtain the rate of change and acceleration of the current. The switching gain is dynamically calculated based on the rate of change of current, the acceleration of change of current, the degree of deviation of the absolute value of current from the reference current, and the degree of deviation of pressure from the rated pressure. The boundary layer thickness is dynamically calculated based on the rate of change of current, the degree to which the absolute value of current deviates from the rated current, and the degree to which the pressure deviates from the rated pressure. The feedforward control quantity is dynamically calculated based on the rate of change of current and the rate of change of pressure setpoint.
[0094] Furthermore, the sliding surface function is constructed based on the pressure difference tracking error and includes an integral term; the lower-level sliding mode control quantity is obtained by superimposing the equivalent control quantity, the switching control quantity, and the feedforward control quantity, wherein the switching control quantity uses a saturation function to suppress chattering.
[0095] Furthermore, the prediction of future pressure trajectories based on the extended model includes: Based on the current measured conditions and the original planned instructions, the extended model is used to predict the pressure trajectory in the future multiple steps. The safety constraints include upper and lower pressure limits and upper pressure differential limits; The coordinated regulation is achieved by solving an optimization problem or by using heuristic rules to calculate the power command correction and pressure setpoint correction. The optimization objective is to minimize the weighted sum of squares of the corrections. The constraints include model prediction equations, safety constraints, actuator constraints, and rate of change limits.
[0096] Furthermore, device 10 is also used for: The initial values of the controller parameters are tuned offline using an intelligent optimization algorithm, with the goal of minimizing the comprehensive performance index. Online adaptive fine-tuning is achieved using fuzzy logic or reinforcement learning. The fuzzy logic takes the current change rate and sliding mode surface function as inputs and outputs switching gain adjustment and boundary layer adjustment.
[0097] The pressure control device of the electrolytic hydrogen production system according to an embodiment of the present invention can achieve high-precision and rapid balance control of hydrogen and oxygen side pressure under variable current conditions, improve dynamic response speed and steady-state control accuracy, effectively avoid the risk of pressure over-limit and pressure difference imbalance, and improve system safety and robustness.
[0098] To implement the methods of the above embodiments, the present invention also provides a computer device, such as... Figure 7 As shown, the computer device 600 includes a memory 601 and a processor 602; wherein, the processor 602 reads executable program code stored in the memory 601 to run a program corresponding to the executable program code, so as to implement the various steps of the method described above.
[0099] To implement the above embodiments, this application also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in the foregoing embodiments.
[0100] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0101] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
Claims
1. A pressure control method for an electrolytic hydrogen production system, characterized in that, include: Establish a pressure dynamic model for the electrolytic cell, and extend the valve dynamic model and the power-current relationship model; The electrolysis current and its rate of change are detected in real time, and the switching gain, boundary layer thickness and feedforward control quantity of the sliding mode controller are dynamically adjusted based on the rate of change of current, the absolute value of current and the change of pressure setpoint. Based on the sliding surface function and the dynamically adjusted parameters, the lower-level sliding control quantity is calculated and output to the regulating valves on the hydrogen and oxygen sides; Based on the extended model, the future pressure trajectory is predicted to determine whether safety constraints are violated. If a violation is found, the power command correction amount and pressure setpoint correction amount are calculated through coordinated adjustment, and the corrected command is sent to the electrolytic cell power source and the lower sliding mode controller.
2. The method as described in claim 1, characterized in that, The pressure dynamic model includes a hydrogen-side pressure dynamic model and an oxygen-side pressure dynamic model, and its gas production coefficient varies with current and pressure. The valve dynamic model adopts either a first-order inertial plus pure delay model or a rate-limited model; The power-current relationship model is established based on the electrolytic cell polarization curve and is used to describe the relationship between electrolytic cell voltage, current, temperature, and pressure, as well as to calculate the input power.
3. The method as described in claim 1, characterized in that, The detection of the electrolytic current and its rate of change is achieved using a tracking differentiator to obtain the rate of change and acceleration of the current. The switching gain is dynamically calculated based on the rate of change of current, the acceleration of change of current, the degree of deviation of the absolute value of current from the reference current, and the degree of deviation of pressure from the rated pressure. The boundary layer thickness is dynamically calculated based on the rate of change of current, the degree to which the absolute value of current deviates from the rated current, and the degree to which the pressure deviates from the rated pressure. The feedforward control quantity is dynamically calculated based on the rate of change of current and the rate of change of pressure setpoint.
4. The method as described in claim 1, characterized in that, The sliding surface function is constructed based on the pressure difference tracking error and includes an integral term; The lower-level sliding mode control quantity is obtained by superimposing the equivalent control quantity, the switching control quantity, and the feedforward control quantity, wherein the switching control quantity uses a saturation function to suppress chattering.
5. The method as described in claim 1, characterized in that, The prediction of future pressure trajectories based on the extended model includes: Based on the current measured conditions and the original planned instructions, the extended model is used to predict the pressure trajectory in the future multiple steps. The safety constraints include upper and lower pressure limits and upper pressure differential limits; The coordinated regulation is achieved by solving an optimization problem or by using heuristic rules to calculate the power command correction and pressure setpoint correction. The optimization objective is to minimize the weighted sum of squares of the corrections. The constraints include model prediction equations, safety constraints, actuator constraints, and rate of change limits.
6. The method as described in claim 1, characterized in that, The method also includes a parameter optimization step: The initial values of the controller parameters are tuned offline using an intelligent optimization algorithm, with the goal of minimizing the comprehensive performance index. Online adaptive fine-tuning is achieved using fuzzy logic or reinforcement learning. The fuzzy logic takes the current change rate and sliding mode surface function as inputs and outputs switching gain adjustment and boundary layer adjustment.
7. A pressure control device for an electrolytic hydrogen production system, characterized in that, include: The model building module is used to build a pressure dynamic model of the electrolyzer and extend the valve dynamic model and the power-current relationship model. The parameter detection and adaptive adjustment module is used to detect the electrolysis current and its rate of change in real time, and dynamically adjust the switching gain, boundary layer thickness and feedforward control quantity of the sliding mode controller based on the rate of change of the current, the absolute value of the current and the change of the pressure setpoint. The lower-level sliding mode control module is used to calculate the lower-level sliding mode control quantity based on the sliding mode surface function and dynamically adjusted parameters, and output it to the regulating valves on the hydrogen and oxygen sides. The upper-level coordination control module is used to predict future pressure trajectories based on the extended model, determine whether safety constraints are violated, and if so, coordinate and adjust the power command correction amount and pressure setpoint correction amount, and then send the corrected command to the electrolytic cell power source and the lower-level sliding mode controller.
8. The apparatus as claimed in claim 7, characterized in that, The device is also used for: The initial values of the controller parameters are tuned offline using an intelligent optimization algorithm, with the goal of minimizing the comprehensive performance index. Online adaptive fine-tuning is achieved using fuzzy logic or reinforcement learning. The fuzzy logic takes the current change rate and sliding mode surface function as inputs and outputs switching gain adjustment and boundary layer adjustment.
9. A computer device, characterized in that, Including processor and memory; The processor reads executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement a pressure control method for an electrolytic hydrogen production system as described in any one of claims 1-6.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements a pressure control method for an electrolytic hydrogen production system as described in any one of claims 1-6.
