Temperature control method, device, medium and product of fuel cell thermal management system

Through prediction, correction and weight factor calculation methods, combined with PID control, the problem of inaccurate temperature control in high-power fuel cell thermal management systems is solved, achieving higher control accuracy and response speed.

CN118398849BActive Publication Date: 2024-10-22TONGJI UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410822160.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-22
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

There is a contradiction between control accuracy and system response in the high-power fuel cell thermal management system. The traditional PID control method causes inaccurate temperature control and difficult to guarantee dynamic response speed due to the error between real-time feedback value and true feedback value.

Method used

By obtaining the actual temperature of the fuel cell, the opening of the thermostat and the coolant temperature, the temperature prediction model is used to predict and correct the temperature, and the prediction weight factor is calculated, combined with the PID controller to determine the adjustment opening of the thermostat to achieve accurate temperature Quick adjustment.

Benefits of technology

It compensates for the hysteresis problem between the system feedback output and the actuator operation, improves the accuracy and responsiveness of temperature control, and reduces temperature control fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118398849B_ABST
    Figure CN118398849B_ABST
Patent Text Reader

Abstract

The present invention discloses a temperature control method, device, medium and product of a fuel cell thermal management system, and relates to the technical field of fuel cell temperature control. The method comprises: taking the actual opening of the thermostat in the thermal management system of the fuel cell and the inlet coolant temperature at the inlet of the fuel cell stack as input, using a temperature prediction model to predict the predicted temperature of the fuel cell, correcting the predicted temperature based on the current working condition to obtain the corrected temperature of the fuel cell, calculating the predicted weight factor based on the current working condition, taking the target temperature, actual temperature, corrected temperature and predicted weight factor of the fuel cell as input, and using a PID controller to determine the adjustment opening of the thermostat. The present invention can compensate for the obvious hysteresis between the system feedback output and the actuator operation by predicting, correcting and calculating the weight factor of the temperature, and accurately and quickly adjusting the temperature.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fuel cell temperature control, and in particular to a temperature control method, device, medium and product for a high-power fuel cell thermal management system. Background Art

[0002] In the hydrogen energy industry chain, proton exchange membrane fuel cells (PEMFCs) play a vital role. Due to their clean and efficient operating characteristics, they have rapidly achieved industrial commercialization in the fields of transportation and stationary power generation in recent years. Unlike power batteries that store energy, fuel cells are considered to be electrochemical power generation devices. The output power of fuel cells not only depends on external reactants, but is also sensitive to temperature changes. The ability to accurately and quickly adjust real-time temperature under various working conditions is crucial to improving the efficiency and life of fuel cells. However, due to the nonlinear and delayed characteristics of fuel cell thermal management systems, especially for high-power fuel cell thermal management systems, there is often a large contradiction between control accuracy and system response, so achieving accurate and rapid temperature control remains a challenge. In the ever-expanding application scenarios, improving the intelligence and adaptability of control strategies is an important path to improve the accuracy and responsiveness of fuel cell thermal management, which is of great significance to further improving fuel cell performance and reliability.

[0003] In view of the thermal management problem of high-power fuel cell systems, the traditional PID control method in the industry still has limitations in improving performance. Traditional PID control uses the difference between the real-time feedback value and the target value as input to calculate the control quantity, and relies heavily on the accuracy of the real-time information feedback of the fuel cell thermal management system. However, due to the long and complex piping structure of the high-power fuel cell thermal management system and the high viscosity of the coolant, there is a significant hysteresis between the system feedback output and the actuator operation in the closed-loop control. Therefore, when traditional PID control is used in the fuel cell thermal management system, there will be a large error between the current real-time feedback value and the actual real-time feedback value. This error will cause significant overshoot and fluctuation, and the system dynamic response speed is also difficult to guarantee. Therefore, there is an urgent need for a control method that can compensate for the temperature control problem of fuel cells and improve the accuracy of temperature control. Summary of the invention

[0004] The purpose of the present invention is to provide a temperature control method, device, medium and product for a fuel cell thermal management system, which can compensate for the obvious hysteresis between the system feedback output and the actuator operation by predicting, correcting and calculating the weight factor of the temperature, and accurately and quickly adjust the temperature.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A temperature control method for a fuel cell thermal management system, comprising:

[0007] Obtaining the actual temperature of the fuel cell at the current control moment, the actual opening of the thermostat in the thermal management system of the fuel cell, and the inlet coolant temperature at the inlet of the fuel cell stack;

[0008] Taking the actual opening and the inlet coolant temperature as input, a temperature prediction model is used to predict the predicted temperature of the fuel cell at the current control moment;

[0009] Correcting the predicted temperature based on the current operating conditions to obtain a corrected temperature of the fuel cell at the current control moment;

[0010] Calculate the prediction weight factor of the current control moment based on the current operating conditions;

[0011] The target temperature of the fuel cell, the actual temperature, the corrected temperature and the predicted weight factor are used as inputs, and a PID controller is used to determine the adjustment opening of the thermostat at the current control moment.

[0012] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the temperature control method of a fuel cell thermal management system.

[0013] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the temperature control method of a fuel cell thermal management system.

[0014] A computer program product includes a computer program, which implements the steps of the temperature control method of a fuel cell thermal management system when executed by a processor.

[0015] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0016] The present invention provides a temperature control method, device, medium and product for a fuel cell thermal management system, which obtains the actual temperature of the fuel cell at the current control moment, the actual opening of the thermostat in the thermal management system of the fuel cell, and the inlet coolant temperature at the inlet of the fuel cell stack, takes the actual opening and the inlet coolant temperature as input, uses a temperature prediction model to predict the predicted temperature of the fuel cell at the current control moment, corrects the predicted temperature based on the current working condition, obtains the corrected temperature of the fuel cell at the current control moment, calculates the predicted weight factor at the current control moment based on the current working condition, takes the target temperature, actual temperature, corrected temperature and predicted weight factor of the fuel cell as input, and uses a PID controller to determine the adjustment opening of the thermostat at the current control moment. The present invention can compensate for the obvious hysteresis between the system feedback output and the actuator operation by predicting, correcting and calculating the weight factor of the temperature, and accurately and quickly adjusts the temperature. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 A schematic flow chart of a method for controlling temperature of a fuel cell thermal management system provided in Example 1 of the present invention.

[0019] Figure 2 A detailed flow chart of a temperature control method for a fuel cell thermal management system provided in Example 1 of the present invention.

[0020] Figure 3 A schematic diagram of a control architecture of a temperature control method for a fuel cell thermal management system provided in Example 1 of the present invention. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] The purpose of the present invention is to provide a temperature control method, device, medium and product for a fuel cell thermal management system, which can compensate for the obvious hysteresis between the system feedback output and the actuator operation by predicting, correcting and calculating the weight factor of the temperature, and accurately and quickly adjust the temperature.

[0023] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0024] Example 1

[0025] like Figure 1 , Figure 2 and Figure 3 As shown, a temperature control method of a fuel cell thermal management system in this embodiment includes the following steps.

[0026] S1: Acquire the actual temperature of the fuel cell at the current control moment, the actual opening of the thermostat in the thermal management system of the fuel cell, and the inlet coolant temperature at the inlet of the fuel cell stack.

[0027] S2: Taking the actual opening and the inlet coolant temperature as input, a temperature prediction model is used to predict the predicted temperature of the fuel cell at the current control moment.

[0028] S3: Correcting the predicted temperature based on the current operating conditions to obtain a corrected temperature of the fuel cell at the current control moment.

[0029] S4: Calculate the prediction weight factor of the current control moment based on the current operating conditions.

[0030] S5: using the target temperature of the fuel cell, the actual temperature, the corrected temperature and the predicted weight factor as inputs, and using a PID controller to determine the adjustment opening of the thermostat at the current control moment.

[0031] Since it is difficult to monitor the actual temperature of the fuel cell, and considering that the outlet coolant temperature at the outlet of the fuel cell stack is close to the actual temperature of the fuel cell and can be monitored, the outlet coolant temperature is selected as the actual temperature of the fuel cell in this embodiment.

[0032] Since this embodiment adjusts the opening of the thermostat to the adjustment opening after calculating the adjustment opening of the thermostat (also called electronic temperature controller, electronic thermostat) in the thermal management system of the fuel cell at each control moment, the actual opening of the thermostat at the current control moment is equal to the adjustment opening of the thermostat at the previous control moment.

[0033] In view of the limitations of the PID control method, this embodiment takes into account that the hysteresis problem can be solved by reasonable use of prediction. During the operation of the fuel cell, there will be a certain degree of time-varying characteristics. Therefore, the model-based predictive control architecture also needs to pay attention to the real-time matching of the model to improve the accuracy of the model. Based on the above control problems, this embodiment proposes a temperature model adaptive predictive control architecture, that is, a new predictive control architecture based on the transfer function model and real-time feedback, such as Figure 3 As shown, a prediction weight correction module, a cascade transfer function linear prediction model module, an offline and online correction module of the model, and a radiator outlet water temperature feedforward correction module are added to the traditional feedback PID control thermostat architecture, and the functions of each module are shown below.

[0034] M1: PID controller module, through the error between the system output (i.e. actual temperature and corrected temperature) and the target value (i.e. target temperature), while considering the predicted weight factor of the corrected temperature, calculates the control amount (i.e. adjustment opening) of the thermostat in the thermal management system in real time based on proportion, integration and differentiation.

[0035] M2: Prediction module weight correction module, which adjusts the weight of the prediction information part in the fuel cell closed-loop logic in real time according to the current operating conditions, obtains the prediction weight factor, realizes the adjustment of the proportion of prediction information and actual information, and improves the control effect under different working conditions.

[0036] M3: Cascade transfer function linear prediction model module, based on the fuel cell system input and output test data, can identify the fuel cell temperature prediction model, which is used to predict the system output (i.e. predicted temperature) according to the control input (i.e. actual opening and inlet coolant temperature), thereby compensating for system hysteresis.

[0037] M4: Offline model correction module. Since fuel cells have strong nonlinear characteristics, the temperature prediction model identified at a certain operating point needs to be corrected according to the changes in the operating conditions to adapt to the current operating conditions. Based on the offline experimental results, an offline correction function can be designed, with the input being the current state of the system (i.e., load current and outlet water temperature), and the output being the offline correction amount.

[0038] M5: Online model adaptive correction module. Since fuel cells are electrochemical generating devices, the system output is often affected by historical usage and has strong time-varying characteristics. Therefore, the temperature prediction model also needs to perform real-time self-correction based on actual information to improve the prediction accuracy during the control process.

[0039] M6: Radiator outlet water temperature feedforward correction module. The water volume inside the radiator is large, the water temperature has a great influence on the thermostat control effect and the temperature is random, so it is necessary to use the radiator outlet water temperature feedforward to achieve rapid adjustment of the thermostat.

[0040] M7: Water pump and fan open-loop control module. The above closed-loop control logic is mainly aimed at the thermostat. In order to avoid control instability caused by multi-parameter closed-loop coupling, the water pump and fan are designed as open-loop control according to the load current in this control strategy.

[0041] This embodiment combines a feedback controller (i.e., a PID controller) with an online predictor (i.e., a temperature prediction model) to resolve the contradiction between control response and accuracy in fuel cell temperature regulation; selects and identifies a delay-free cascade transfer function model for predicting the system output temperature with delay compensation; designs an online model self-update algorithm to improve model matching in real time and process the time-varying characteristics of the fuel cell system, making the model more reliable in the dynamic prediction process, thereby making up for the shortcomings of traditional temperature control and further improving the intelligence, accuracy and speed of fuel cell temperature control.

[0042] Before S2, the temperature control method of this embodiment further includes: establishing a temperature prediction model (i.e. Figure 3 M3 in this step takes the thermostat opening in the thermal management system of the fuel cell and the inlet coolant temperature of the fuel cell stack as input, and takes the temperature of the fuel cell (i.e., the outlet coolant temperature) as output, identifies the fuel cell input-output prediction model based on the fuel cell system test data, and specifically identifies the transfer function based on the system output to form a cascade prediction model. This step specifically includes the following contents.

[0043] (1) Obtaining an actual sampling data set, the actual sampling data set includes multiple groups of actual sampling data, the actual sampling data includes actual opening sampling values, inlet coolant temperature sampling values ​​and actual temperature sampling values.

[0044] An actuator excitation signal is added to the cooling system of the fuel cell to monitor the thermostat opening in the thermal management system of the fuel cell and the response of the temperature sensor that detects the coolant temperature at the inlet and outlet of the fuel cell stack, and obtain sampling data of the opening, inlet coolant temperature and outlet coolant temperature, that is, the actual opening sampling value, inlet coolant temperature sampling value and actual temperature sampling value are obtained to form the actual sampling data set.

[0045] (2) Perform data normalization on the actual sampling data set to obtain a normalized data set.

[0046] In order to better capture the dynamic characteristics of the fuel cell system, the sample data (i.e., the actual sampling data set) used for model identification is normalized as follows:

[0047] (1)

[0048] In formula (1), For the The normalized actual opening of the sampling point, The sampling point corresponds to The actual sampling data of the group, , is the total number of sampling points, that is, the total number of groups of actual sampling data included in the actual sampling data set; For the The actual opening sampling value of each sampling point; is the mean of the actual opening sampling values; is the standard deviation of the actual opening sampling value; For the Normalized inlet coolant temperature at each sampling point; For the The inlet coolant temperature sampling value of each sampling point; is the mean of the inlet coolant temperature sampling values; is the standard deviation of the inlet coolant temperature sampling values; For the The normalized actual temperature of each sampling point; For the The actual temperature sampling value of each sampling point; is the mean of the actual temperature sampling values; is the standard deviation of the actual temperature sampling values.

[0049] (3) Taking the actual opening degree and the inlet coolant temperature as input and the actual temperature as output, the transfer function between the input and output is identified based on the normalized data set to obtain the temperature prediction model.

[0050] The transfer function identification method based on the least squares method is used to identify the discrete transfer functions between the actual opening and the inlet coolant temperature and between the inlet coolant temperature and the actual temperature. The obtained discrete transfer function model is as follows:

[0051] (2)

[0052] In formula (2), is a discrete transfer function with actual opening as input and inlet coolant temperature as output. is the Z transform of the discrete system; represents the transfer function identification process based on the least squares method; For the The normalized actual opening of the sampling points; For the Normalized inlet coolant temperature at each sampling point; The delay time for the fluid temperature to be transferred from the thermostat to the stack inlet; is the sampling time interval of the control system, that is, the time interval between two adjacent control moments; is a discrete transfer function with inlet coolant temperature as input and actual temperature as output; For the Normalized inlet coolant temperature at each sampling point; For the The normalized actual temperature of each sampling point; is the fluid temperature transfer delay time from the stack inlet to the stack outlet. In this embodiment, the time lag effect is considered in the model identification, and the delay time (i.e. and ) is compensated during transfer function identification to achieve delay-free prediction.

[0053] The identified discrete transfer function model realizes real-time prediction of temperature in a cascade form. The temperature prediction model is as follows:

[0054] (3)

[0055] In formula (3), To predict temperature; is the first weight factor; is the second weight factor; and are the weight factors of the cascade model, , ,and ; is a discrete transfer function with actual opening as input and inlet coolant temperature as output. Including the temperature transfer delay time between the actual opening and the inlet coolant temperature, Represents the Z transform of a discrete system; is a discrete transfer function with inlet coolant temperature as input and actual temperature as output, Includes the temperature transfer delay time between the inlet coolant temperature and the actual temperature; is the actual opening; is the mean of the actual opening sampling values; is the standard deviation of the actual temperature sampling value; is the standard deviation of the actual opening sampling value; is the inlet coolant temperature; is the mean of the inlet coolant temperature sampling values; is the standard deviation of the inlet coolant temperature sampling values; is the mean of the actual temperature sampling values.

[0056] In S2, the actual opening and the inlet coolant temperature are directly used as inputs, and the predicted temperature of the fuel cell at the current control moment can be predicted using the temperature prediction model shown in formula (3).

[0057] In S3, the predicted temperature is corrected based on the current operating conditions to obtain the corrected temperature of the fuel cell at the current control moment, which specifically includes the following contents.

[0058] (1) Obtaining a load current of the fuel cell at a current control moment and an outlet water temperature at an outlet of a radiator in a thermal management system of the fuel cell; and determining an offline correction amount for offline correction of the predicted temperature based on the load current and the outlet water temperature.

[0059] (2) Calculating the difference between the target temperature and the actual temperature of the fuel cell to obtain the actual error; calculating the difference between the actual temperature and the predicted temperature to obtain the predicted error; and determining an online correction amount for online correction of the predicted temperature based on the load current, the actual error, and the predicted error.

[0060] (3) Calculate the sum of the predicted temperature, the offline correction amount, and the online correction amount to obtain the corrected temperature of the fuel cell at the current control time.

[0061] The calculation formula for the corrected temperature is as follows:

[0062] (4)

[0063] In formula (4), is the corrected temperature, indicating the corrected temperature prediction value; To predict temperature; is the online correction amount; is the load current correction value; is the outlet water temperature correction; the sum of the load current correction and the outlet water temperature correction is the offline correction.

[0064] The process of correcting the temperature prediction model based on the offline correction function in this embodiment is called offline correction (i.e. Figure 3 M4 in the figure), based on the current load current and the radiator outlet water temperature, an offline correction function is designed for correction. The calculation formula of the offline correction amount (i.e., the offline correction function) is:

[0065] (5)

[0066] In formula (5), is the load current correction value, which indicates the correction parameters under different load conditions; is the first linear parameter; is the load current; is the second linear parameter; is the outlet water temperature correction value, which represents the correction parameter of the cooling water temperature state of the radiator section; is the third linear parameter; is the outlet water temperature; is the fourth linear parameter; , , , They are all linear parameters and can be determined by experimental calibration of fuel cells with different powers.

[0067] The offline correction amount is the sum of the load current correction amount and the outlet water temperature correction amount.

[0068] This embodiment performs online correction of the temperature prediction model according to the current operating state of the fuel cell and actual information (i.e. Figure 3 M5 in ). During the online correction process, due to the change of the operating point and time-varying characteristics of the fuel cell system, model mismatch usually occurs. Therefore, online model adaptation should be considered in real-time control. This embodiment designs an adaptive state flow algorithm with iteration and memory, which can correct the temperature prediction model online. The specific process of the algorithm is as follows:

[0069] Step 1: Identify the current load status.

[0070] like , the state transfers to State1; for The load current at the control moment; for Control the load current at the moment.

[0071] Step 2: Online correction Iterations.

[0072] State 1:

[0073] 1) When entering State 1: Online correction of control time ; First counting time ;

[0074] 2) When staying in State 1: ; for The first count time of the control moment; for The first count time of the control moment;

[0075] 3) When exiting State 1: ;

[0076] 4) Exit judgment: If State 1 satisfies , then transfer to State2(a); otherwise stay in State 1; is the first time threshold; is the actual error; is the first error threshold.

[0077] State 2(a):

[0078] 1) When entering State 2(a): ;

[0079] 2) Exit judgment: If State 2(a) satisfies , then transfer to State2(b); otherwise stay in State 2(a); is the actual temperature; To predict temperature; is the second error threshold.

[0080] State 2(b):

[0081] 1) When entering State2(b): ; Second counting time ;

[0082] 2) When staying in State 2(b): ; for The second counting time of the control moment; for The second counting time of the control moment;

[0083] 3) When exiting State 2(b): ;

[0084] 4) Exit judgment: If State 2(b) satisfies , then transfer to State 2(a); if , then transfer to State 3; otherwise, stay in State 2(b); is the second time threshold.

[0085] State 3:

[0086] 1) When entering State 3: ; Third counting time ; ; is the prediction error;

[0087] 2) When staying in State 3: ; ; for The third counting time of the control moment; for The third counting time of the control moment; is the buffer factor, ranging from 0 to 1;

[0088] 3) When exiting State 3: ; ;

[0089] 4) If State 3 satisfies , transfer back to State 2(a); otherwise, stay in State 3; is the second time threshold.

[0090] In any state in step 2, if , then transfer to State1.

[0091] In the above state flow algorithm, , and are the counting time to enter each state respectively; , and are the time thresholds for state transition, and They are respectively the error thresholds of state transfer, which can be calibrated and determined according to different systems.

[0092] Then, based on the load current, the actual error and the predicted error, an online correction amount for online correction of the predicted temperature is determined, which specifically includes the following contents.

[0093] (1) Determine whether the difference between the load current and the load current at the previous control moment is equal to 0.

[0094] (2) If not, enter the first state, set the first counting time to 0, judge whether the first counting time is greater than the first time threshold, and whether the absolute value of the actual error is less than the first error threshold, and obtain the first judgment result; if the first judgment result is no, the state of the current control moment is the first state, add 1 to the first counting time, and set the online correction amount to the first preset value; if the first judgment result is yes, set the first counting time to 0, enter the second state, judge whether the absolute value of the predicted error is greater than the second error threshold, and obtain the second judgment result; if the second judgment result is no, then the state of the current control moment is the second state, and set the online correction amount to the second preset value; if the second judgment result is yes, enter the third state, set the second counting time to 0, judge whether the absolute value of the predicted error is less than or equal to the second error threshold, and obtain the third judgment result; if the third judgment result is yes, set the second counting time to 0 The first state is set to 0, the second state is entered, and the step of "determining whether the absolute value of the prediction error is greater than the second error threshold" is returned; if the third judgment result is no, then whether the second counting time is greater than the second time threshold is determined to obtain a fourth judgment result; if the fourth judgment result is no, the state of the current control moment is the third state, the second counting time is increased by 1, and the online correction amount is set to the third preset value; if the fourth judgment result is yes, the second counting time is set to 0, the fourth state is entered, the third counting time is set to 0, and whether the third counting time is greater than the third time threshold is determined to obtain a fifth judgment result; if the fifth judgment result is yes, the third counting time is set to 0, the second state is entered, and the step of "determining whether the absolute value of the prediction error is greater than the second error threshold" is returned; if the fifth judgment result is no, the state of the current control moment is the fourth state, the third counting time is increased by 1, and the online correction amount is set to the fourth preset value.

[0095] (3) If so, obtain the state of the previous control moment; if the state is the first state, return to the step of "determining whether the first counting time is greater than the first time threshold"; if the state is the second state, return to the step of "determining whether the absolute value of the prediction error is greater than the second error threshold"; if the state is the third state, return to the step of "determining whether the absolute value of the prediction error is less than or equal to the third error threshold"; if the state is the fourth state, return to the step of "determining whether the third counting time is greater than the third time threshold".

[0096] It should be noted that if the current control moment enters the first state, the first preset value is 0, the second preset value is 0, the third preset value is 0, and the fourth preset value is the product of the buffer factor and the prediction error; if the current control moment does not enter the first state, the first preset value is the online correction amount of the previous control moment, the second preset value is the online correction amount of the previous control moment, the third preset value is the online correction amount of the previous control moment, and the fourth preset value is the product of the buffer factor and the prediction error.

[0097] This embodiment adjusts the weight of the prediction information part according to the system operating conditions and status (i.e. Figure 3 M2 in the control), in feedback control, the control error caused by the delay effect of the load change section will be more serious than the control error in steady state. Therefore, the prediction weight needs to be adjusted according to the load condition of the fuel cell system. Under dynamic load conditions, the prediction weight factor should be larger to achieve appropriate delay compensation and reduce control overshoot and fluctuation. Conversely, in steady state, the prediction weight factor should be smaller to rely more on real information to reduce stability error. The calculation formula of the prediction weight factor is:

[0098] (6)

[0099] In formula (6), is the prediction weight factor; It is a dynamic response factor determined based on the fluctuation of load current, indicating the dynamic response factor when the load current changes; is a positive constant; is the actual error between the target temperature and the actual temperature of the fuel cell; Is a normal number.

[0100] (7)

[0101] In formula (7), for Dynamic response factor at the control moment; is a constant, which is a set constant that can be calibrated through experiments; As the current changes continuously The current change counting time at the control moment, that is, the counting time after the current changes; is a constant, which represents a constant time setting parameter and can be calibrated for different systems; is the time interval between two adjacent control moments; is a constant; is a constant, 0.

[0102] (8)

[0103] In formula (8), As the current changes continuously Current change counting time at the control moment; for The load current at the control moment; for Control the load current at the moment.

[0104] Based on the corrected prediction information and real-time information, this embodiment uses PID as the basic controller to perform real-time temperature adjustment in order to achieve closed-loop temperature control. The input signal of the PID controller consists of the actual temperature control error and the predicted temperature control error, which are calculated by the established model (i.e. Figure 3 Therefore, the output of the controller, that is, the calculation formula for adjusting the opening, is:

[0105] (9)

[0106] In formula (9), To adjust the opening, it indicates the amount of thermostat opening adjusted by the PID controller; is the proportional parameter of the PID controller; is the integral parameter of the PID controller; is the differential parameter of the PID controller; is the actual error between the target temperature and the actual temperature of the fuel cell, indicating the actual temperature control error; is the prediction weight factor; is the correction error between the target temperature and the correction temperature of the fuel cell, indicating the predicted temperature control error.

[0107] (10)

[0108] In formula (10), is the target temperature of the fuel cell; is the actual temperature; To correct the temperature.

[0109] In actual operation scenarios, the temperature of the cooling water in the heat exchanger is affected by external disturbances and historical usage patterns, and it is challenging to accurately estimate this water temperature. Therefore, it is necessary to install a temperature sensor at the outlet of the heat exchanger to obtain real-time information and add a feedforward correction parameter to the control architecture (i.e. Figure 3 M6 in the figure) to improve the responsiveness of the thermostat according to the temperature data of the heat exchanger. Therefore, this embodiment can use PID control and feedforward temperature information to control the thermostat, and the output of the controller is:

[0110] (11)

[0111] In formula (11), It is the final adjustment opening of the thermostat; is a constant compensation factor; is the radiator outlet water temperature.

[0112] In this embodiment, the fan and the water pump cooperate to complete the real-time control of the water temperature based on the open-loop control (i.e. Figure 3M7 in the figure), that is, the fan and water pump are designed with an open-loop control scheme according to the load current and adjusted with the thermostat, as follows:

[0113] (12)

[0114] In formula (12), is the fan speed; It is a current-based calibration logic, and its form can be set through experimental calibration according to actual fan parameters; is the load current; is the pump speed; It is a current-based calibration logic, and its form can be set through experimental calibration according to actual pump parameters.

[0115] The temperature control method of this embodiment has the following advantages.

[0116] (1) By combining predictive control with traditional PID control, the temperature control fluctuation caused by the large hysteresis problem of the cooling system of the high-power fuel cell system in the traditional control method can be reduced, and the system response and control accuracy can be improved.

[0117] (2) To address the model mismatch problem, offline and online model self-correction algorithms were designed so that the fuel cell prediction model can be adjusted according to actual conditions, thereby improving the accuracy of the entire control process and reducing the impact of model mismatch caused by the time-varying characteristics of the system.

[0118] Example 2

[0119] A computer device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of a temperature control method of a fuel cell thermal management system described in Example 1.

[0120] Example 3

[0121] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a temperature control method for a fuel cell thermal management system described in Example 1.

[0122] Example 4

[0123] A computer program product includes a computer program, which, when executed by a processor, implements the steps of a temperature control method for a fuel cell thermal management system described in Example 1.

[0124] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0125] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A temperature control method for a fuel cell thermal management system, characterized in that: include: Obtaining the actual temperature of the fuel cell at the current control moment, the actual opening of the thermostat in the thermal management system of the fuel cell, and the inlet coolant temperature at the inlet of the fuel cell stack; Taking the actual opening and the inlet coolant temperature as input, a temperature prediction model is used to predict the predicted temperature of the fuel cell at the current control moment; Correcting the predicted temperature based on the current operating conditions to obtain a corrected temperature of the fuel cell at the current control moment; Calculate the prediction weight factor of the current control moment based on the current operating conditions; Using the target temperature of the fuel cell, the actual temperature, the corrected temperature and the predicted weight factor as input, a PID controller is used to determine the adjustment opening of the thermostat at the current control moment; The temperature prediction model includes: ; in, is the predicted temperature in °C; is the first weight factor; is the second weight factor; is a discrete transfer function with actual opening as input and inlet coolant temperature as output. Including the temperature transfer delay time between the actual opening and the inlet coolant temperature, is the Z transform of the discrete system; is a discrete transfer function with inlet coolant temperature as input and actual temperature as output, Includes the temperature transfer delay time between the inlet coolant temperature and the actual temperature; is the actual opening, in degrees; is the mean of the actual opening sampling values, in degrees; is the standard deviation of the actual temperature sampling value, in °C; is the standard deviation of the actual opening sampling value, in degrees; is the inlet coolant temperature, in °C; is the mean of the inlet coolant temperature sampling values, in °C; is the standard deviation of the inlet coolant temperature sampling values, in °C; is the mean of the actual temperature sampling values, in °C; The predicted temperature is corrected based on the current operating conditions to obtain the corrected temperature of the fuel cell at the current control moment, specifically including: Acquire the load current of the fuel cell at the current control moment and the outlet water temperature at the outlet of the radiator in the thermal management system of the fuel cell; determine an offline correction amount for offline correction of the predicted temperature based on the load current and the outlet water temperature; Calculating the difference between the target temperature of the fuel cell and the actual temperature to obtain an actual error; calculating the difference between the actual temperature and the predicted temperature to obtain a predicted error; determining an online correction amount for online correction of the predicted temperature based on the load current, the actual error and the predicted error; Calculating the sum of the predicted temperature, the offline correction amount and the online correction amount to obtain a corrected temperature of the fuel cell at the current control moment; The calculation formula for the corrected temperature is: ; in, is the corrected temperature in °C; is the predicted temperature in °C; is the online correction value, in °C; is the load current correction value, in °C; is the outlet water temperature correction, in °C; The calculation formula of the offline correction amount is: ; in, is the load current correction value, in °C; is the first linear parameter; is the load current, in A; is the second linear parameter; is the outlet water temperature correction, in °C; is the third linear parameter; is the outlet water temperature in °C; is the fourth linear parameter; the offline correction amount is the sum of the load current correction amount and the outlet water temperature correction amount; Determining an online correction amount for online correction of the predicted temperature based on the load current, the actual error, and the predicted error specifically includes: Determine whether the difference between the load current and the load current at the last control moment is equal to 0; If not, enter the first state, set the first counting time to 0, judge whether the first counting time is greater than the first time threshold, and whether the absolute value of the actual error is less than the first error threshold, and obtain the first judgment result; if the first judgment result is no, the state of the current control moment is the first state, add 1 to the first counting time, and set the online correction amount to the first preset value; if the first judgment result is yes, set the first counting time to 0, enter the second state, judge whether the absolute value of the predicted error is greater than the second error threshold, and obtain the second judgment result; if the second judgment result is no, the state of the current control moment is the second state, and set the online correction amount to the second preset value; if the second judgment result is yes, enter the third state, set the second counting time to 0, judge whether the absolute value of the predicted error is less than or equal to the second error threshold, and obtain the third judgment result; if the third judgment result is yes, set the second counting time to 0 , enter the second state, and return to the step of "determining whether the absolute value of the prediction error is greater than the second error threshold"; if the third judgment result is no, determine whether the second counting time is greater than the second time threshold, and obtain a fourth judgment result; if the fourth judgment result is no, the state of the current control moment is the third state, the second counting time is increased by 1, and the online correction amount is set to the third preset value; if the fourth judgment result is yes, the second counting time is set to 0, enter the fourth state, set the third counting time to 0, determine whether the third counting time is greater than the third time threshold, and obtain a fifth judgment result; if the fifth judgment result is yes, the third counting time is set to 0, enter the second state, and return to the step of "determining whether the absolute value of the prediction error is greater than the second error threshold"; if the fifth judgment result is no, the state of the current control moment is the fourth state, the third counting time is increased by 1, and the online correction amount is set to the fourth preset value; If so, obtain the state of the previous control moment; if the state is the first state, return to the step of "determining whether the first counting time is greater than the first time threshold"; if the state is the second state, return to the step of "determining whether the absolute value of the prediction error is greater than the second error threshold"; if the state is the third state, return to the step of "determining whether the absolute value of the prediction error is less than or equal to the second error threshold"; if the state is the fourth state, return to the step of "determining whether the third counting time is greater than the third time threshold"; The calculation formula of the prediction weight factor is: ; in, is the prediction weight factor; A dynamic response factor determined based on the fluctuation of load current; is a positive constant; is the actual error between the target temperature and the actual temperature of the fuel cell, in °C; is a positive constant; ; in, for Dynamic response factor at the control moment; is a constant; As the current changes continuously The current change counting time at the control moment, in seconds; is a constant; is the time interval between two adjacent control moments, in seconds; is a constant; is a constant; The calculation formula for adjusting the opening is: ; in, To adjust the opening, the unit is °; is the proportional parameter of the PID controller; is the integral parameter of the PID controller; is the differential parameter of the PID controller; is the actual error between the target temperature and the actual temperature of the fuel cell, in °C; is the prediction weight factor; is the correction error between the target temperature and the correction temperature of the fuel cell, in °C.

2. The temperature control method of a fuel cell thermal management system according to claim 1, characterized in that: Before using the actual opening and the inlet coolant temperature as inputs to predict the predicted temperature of the fuel cell at the current control moment using the temperature prediction model, the method further includes: Acquire an actual sampling data set; the actual sampling data set includes multiple groups of actual sampling data, and the actual sampling data includes actual opening sampling values, inlet coolant temperature sampling values ​​and actual temperature sampling values; Performing data normalization processing on the actual sampled data set to obtain a normalized data set; Taking the actual opening degree and the inlet coolant temperature as input and the actual temperature as output, the transfer function between the input and the output is identified based on the normalized data set to obtain a temperature prediction model.

3. The temperature control method of a fuel cell thermal management system according to claim 1, characterized in that: If the current control moment enters the first state, the first preset value is 0, the second preset value is 0, the third preset value is 0, and the fourth preset value is the product of the buffer factor and the prediction error; If the current control moment has not entered the first state, the first preset value is the online correction amount of the previous control moment, the second preset value is the online correction amount of the previous control moment, the third preset value is the online correction amount of the previous control moment, and the fourth preset value is the product of the buffer factor and the prediction error.

4. The temperature control method of a fuel cell thermal management system according to claim 1, characterized in that: After using the PID controller to determine the adjustment opening of the thermostat at the current control moment, the method further includes: determining the final adjustment opening of the thermostat; Among them, the calculation formula for the final adjustment opening of the thermostat is: ; in, is the final adjustment opening of the thermostat, in degrees; is a constant compensation factor; is the radiator outlet water temperature in °C.

5. The temperature control method of a fuel cell thermal management system according to claim 1, characterized in that: After the PID controller is used to determine the adjustment opening of the thermostat at the current control moment, the method further includes: controlling the fan and the water pump to coordinate with the adjustment of the thermostat; wherein the formula for controlling the fan and the water pump is: ; in, is the fan speed, in r / min; The calibration logic is based on current and is set through experimental calibration according to actual fan parameters; is the load current, in A; is the pump speed, in r / min; It is a current-based calibration logic, which is set through experimental calibration according to actual pump parameters.

6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a temperature control method for a fuel cell thermal management system as described in any one of claims 1 to 5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the temperature control method of a fuel cell thermal management system described in any one of claims 1 to 5 is implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the temperature control method of a fuel cell thermal management system described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Fuel cell stack temperature control method, device, model prediction controller and system

    CN114335625A

  • Temperature control method and system of fuel cell

    CN116914182A

  • Fuel cell system and fuel cell system control method

    US20130323539A1

  • Multi-environment integrative thermal management method for fuel cell vehicle

    US20220029182A1