A temperature control program testing device for a fuel cell cogeneration system

By designing a temperature control program testing device for a fuel cell combined heat and power system, the problem of ineffective calibration of the temperature control program and testing of the power supply module in existing technologies has been solved, enabling rapid system development and efficient operation, and improving environmental adaptability.

CN116300806BActive Publication Date: 2025-12-16BEIJING SINOHYTEC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310197840.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2025-12-16
Estimated Expiration
2043-03-03

AI Technical Summary

Technical Problem

Existing technologies lack hardware-in-the-loop simulation and testing systems for fuel cell cogeneration systems, making it impossible to effectively calibrate temperature control programs and test the functions of power supply modules. This results in long system development cycles, high costs, and poor environmental adaptability.

Method used

Design a temperature control program test device for a fuel cell cogeneration system, including a hardware-in-the-loop simulation host, an I/O interface device, a fault injection device, and a cogeneration system controller. By building a simulation model, online real-time simulation and fault simulation are performed to verify the temperature control algorithm and power supply module functions.

Benefits of technology

It reduces system development cycle and cost, improves system reliability and environmental adaptability, and ensures the effectiveness of temperature control program under different parameters and fault conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116300806B_ABST
    Figure CN116300806B_ABST
Patent Text Reader

Abstract

The application provides a temperature control program testing device of a fuel cell combined heat and power system, and belongs to the technical field of combined heat and power system testing, and solves the problem that the prior art cannot effectively determine the temperature control program of the combined heat and power system. The device comprises a combined heat and power host computer, a hardware-in-the-loop simulation host computer, an IO interface device, a fault injection device, and a combined heat and power system controller. The hardware-in-the-loop simulation host computer is used to build a combined heat and power system simulation model and provide offline simulation in the loop, the input end thereof is connected to the fault injection device and the combined heat and power system controller through the IO interface device, and the output end thereof is connected to the combined heat and power host computer. The combined heat and power host computer is used to display the operating parameters of each component in the simulation model, the performance parameters of the combined heat and power system controller, and the simulation test results. The fault injection device is used to send simulated fault information to the combined heat and power system controller through the IO interface device to simulate fault triggering.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of cogeneration system testing, and particularly relates to a temperature control program testing device for a fuel cell cogeneration system. BACKGROUND

[0002] A hydrogen fuel cell engine-based cogeneration system can reduce harmful gas emissions and improve the environment compared to a traditional internal combustion engine.

[0003] The temperature control program of a fuel cell cogeneration system operating in a low-temperature environment is very difficult to calibrate. Currently, there is no HIL testing system (i.e., a hardware-in-the-loop simulation testing system that simulates the operating state of a controlled object in real time) for a fuel cell cogeneration system, which cannot calibrate and test the temperature control algorithm of the heating module, nor can it test and verify the function of the power supply module of the fuel cell cogeneration system. SUMMARY

[0004] In view of the above analysis, the embodiments of the present application aim to provide a temperature control program testing device for a fuel cell cogeneration system to solve the problem that the prior art cannot effectively determine the temperature control program of the cogeneration system.

[0005] In one aspect, the embodiments of the present application provide a temperature control program testing device for a fuel cell cogeneration system, comprising a cogeneration host computer, a hardware-in-the-loop simulation host computer, an IO interface device, a fault injection device, and a cogeneration system controller; wherein,

[0006] The hardware-in-the-loop simulation host computer is used to build a cogeneration system simulation model and provide offline simulation in the loop. The input end of the hardware-in-the-loop simulation host computer is connected to the fault injection device and the cogeneration system controller through the IO interface device, and the output end is connected to the cogeneration host computer.

[0007] The cogeneration host computer is used to display the operating parameters of each component in the simulation model, the control of the to-be-verified temperature control program loaded by the cogeneration system controller on each component during simulation testing, the test results, and the influence of different fault trigger modes on the power distribution and start-stop of each engine in the simulation model.

[0008] The fault injection device is used to send simulated fault information to the cogeneration system controller through the IO interface device to simulate fault triggering.

[0009] The beneficial effects of the above technical solutions are as follows: a heat and power cogeneration system HIL test bench is proposed, which can test and verify the functions of the power supply module of the fuel cell heat and power cogeneration system, and can simulate the influence of the to-be-verified temperature control program on the performance of the fuel cell engine and the efficiency of the heat and power cogeneration system under different parameters, thereby reducing the development cycle, development cost and use cost of the system, and improving the reliability and environmental adaptability of the system.

[0010] Based on the further improvement of the above device, the hardware-in-the-loop simulation host is also used to load an environment temperature simulation model on the built heat and power cogeneration system simulation model, wherein the input of the environment temperature simulation model is outdoor wind speed, outdoor humidity and outdoor environment temperature, and the output is a cooling liquid temperature change factor of the fuel cell engine, so as to simulate the real use scene of the heat and power cogeneration system; and,

[0011] The heat and power cogeneration host computer is also used to determine the response time, response accuracy of each component in the simulation model to the to-be-verified temperature control algorithm, and the efficiency of the heat and power cogeneration system under different fault triggering modes according to the sensing module in the heat and power cogeneration system simulation model.

[0012] Further, the temperature control program test device further comprises:

[0013] The test case device is used to provide, to the hardware-in-the-loop simulation host, a related test case control program for calculating the temperature change of the fuel cell engine according to the water flow change through the heat exchange plate in the heat and power cogeneration system, and a related test case control program for calculating the water temperature change at the inlet and outlet of the fuel cell engine according to the demand power change of the energy storage converter, and the test case control program is loaded in the built heat and power cogeneration system simulation model;

[0014] The output end of the test case device is connected to the data end of the heat and power cogeneration host computer.

[0015] Further, the temperature control program test device further comprises:

[0016] The real-time processing device is used for online real-time dynamic simulation of the above heat and power cogeneration system simulation model, and outputs real-time dynamic simulation results to the heat and power cogeneration host computer for display;

[0017] The input end one of the real-time processing device is connected to the output end of the hardware-in-the-loop simulation host, the input end two thereof is connected to the fault injection device and the heat and power controller through the IO interface device respectively, and the output end thereof is connected to the data end of the heat and power cogeneration host computer.

[0018] Further, the fault injection device is provided with a protection device; and,

[0019] The protection device is connected with a signal detection module in the simulation model of the combined heat and power system, and is used for overheat, overcurrent and overvoltage protection of the fault injection device and the controller of the combined heat and power system according to the detection result output by the signal detection module.

[0020] The signal detection module further comprises a temperature sensor, a current sensor and a voltage sensor arranged in the simulation model of the combined heat and power system.

[0021] Further, the temperature control program testing device further comprises:

[0022] The signal simulation device comprises an analog model capable of outputting signals affecting the temperature control algorithm to be verified, and comprises a PCS signal simulation model for generating a storage energy converter analog signal, an ambient temperature simulation model for generating an ambient temperature analog signal, and a fuel cell signal simulation model for generating a fuel cell engine output electric signal; wherein the storage energy converter analog signal further comprises related signals affecting the efficiency and working condition of the storage energy converter; the ambient temperature analog signal further comprises outdoor wind speed, outdoor humidity and outdoor ambient temperature; and the fuel cell engine output electric signal further comprises required power of the fuel cell and parameters affecting the efficiency of the fuel cell.

[0023] The signal simulation device is used for simulating and sending, by the built-in model, the signals affecting the temperature control algorithm to be verified to the real-time processing device, so as to verify the reliability of the temperature control program to be verified under different external demands.

[0024] Further, the temperature control program testing device further comprises:

[0025] The fuel cell controller module comprises a plurality of fuel cell controllers, and is used for starting the corresponding fuel cell engine in response to the control instruction issued by the controller of the combined heat and power system.

[0026] Further, the controller of the combined heat and power system performs the following program to complete the calibration function of the temperature control program:

[0027] S1. After the simulation model of the combined heat and power system is built, the temperature control program to be verified and the power distribution program are written into the control program of the simulation model of the combined heat and power system;

[0028] S2. The simulation model of the combined heat and power system is run, the minimum controllable temperature of the temperature control program to be verified is calibrated, and the parameters in the power distribution strategy are calibrated;

[0029] S3. The signal simulation device outputs the signals affecting the temperature control algorithm to be verified, and sends them to the real-time processing device to simulate external demands.

[0030] S4. Run the simulation model of the combined heat and power system again to identify whether the temperature control program and the power distribution program to be verified meet the set requirements under different external demands; if yes, execute the next step, otherwise, modify the temperature control program and the power distribution program to be verified, and re-execute step S1;

[0031] S5. Control the fault injection device to start and perform fault injection on the simulation model of the combined heat and power system;

[0032] S6. Run the simulation model of the combined heat and power system again to identify whether the temperature control program and the power distribution program to be verified meet the set requirements under different fault triggering modes; if yes, execute the next step, otherwise, modify the temperature control program and the power distribution program to be verified, and re-execute step S1;

[0033] S7. After the temperature control program to be verified is completed, control the parameters in the temperature control program and the power distribution program to be verified to be fixed, and output the test results.

[0034] Further, the combined heat and power system controller executes the following program to complete the test verification of the power supply module of the combined heat and power system:

[0035] S8. After the temperature control program to be verified is completed, control the test case device to output the test case control program to be loaded in the simulation model of the combined heat and power system built;

[0036] S9. Control the signal simulation device to output different energy storage converter simulation signals each time, send them to the real-time processing device, and run the simulation model of the combined heat and power system under each energy storage converter simulation signal to simulate and verify whether the built power supply module of the combined heat and power system meets the preset requirement of the change of the demand power of the energy storage converter; if yes, execute the next step, otherwise, increase the number of fuel cell engines and perform the simulation verification again;

[0037] S10. Control the signal simulation device to output different environment temperature simulation signals each time, send them to the real-time processing device, and run the simulation model of the combined heat and power system under each environment temperature simulation signal to simulate and verify whether the built power supply module of the combined heat and power system meets the preset requirement of the change of the environment temperature; if yes, determine that the function of the power supply module of the combined heat and power system meets the requirement of the change of the environment, otherwise, adjust the cooling liquid circulation system in the simulation model and perform the simulation verification again.

[0038] Further, the combined heat and power system controller also executes the following program to determine the power distribution program with the optimal power distribution effect:

[0039] S11. After the calibration of the temperature control program to be verified is completed and the functions of the power supply module of the combined heat and power system meet the requirements, the distribution strategy in the power distribution program is adjusted, the combined heat and power system simulation model is run under each distribution strategy, the power distribution program that makes the current temperature control program meet the response rate and control accuracy requirements and the average efficiency of the fuel cell engine running is higher is determined as the power distribution program with the optimal power distribution effect and is output.

[0040] Compared with the prior art, the present application can at least achieve one of the following beneficial effects:

[0041] 1. The temperature control algorithm in the temperature control program to be verified can be calibrated, and the temperature control algorithm that is not easily affected by the environmental temperature and various faults is determined through the running of the combined heat and power system simulation model, and the test result is the temperature control program containing the temperature control algorithm.

[0042] 2. The functions of the power supply module in the combined heat and power system can be tested to ensure that the power supply module in the combined heat and power system meets the preset requirements of the energy storage converter demand power change and the environmental temperature change. By modifying the environmental temperature, the performance of the plate heat exchanger and the radiator is changed, and the change of the operating environment of the combined heat and power system is simulated.

[0043] 3. The power distribution algorithm with the optimal power distribution effect can be determined, so that the current temperature control program meets the response rate and control accuracy requirements and the average efficiency of the fuel cell engine running is higher.

[0044] 4. The application of the device can reduce the development cycle, cost and use cost of the combined heat and power system, and improve the reliability and environmental adaptability of the combined heat and power system.

[0045] The summary section is provided to introduce selected concepts in a simplified form, which will be further described below in the detailed description. The summary section is not intended to identify key or essential features of the disclosure, nor is it intended to limit the scope of the disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0046] The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings in which like reference characters refer to like parts throughout the figures, in exemplary embodiments of the present disclosure.

[0047] Figure 1 A temperature control program test device composition schematic diagram of the fuel cell combined heat and power system of embodiment 1 is shown;

[0048] Figure 2 A hardware composition schematic diagram of the combined heat and power system simulation model of embodiment 1 is shown;

[0049] Figure 3 A schematic diagram of a temperature control program test device of the fuel cell cogeneration system of Example 2 is shown;

[0050] Figure 4 A schematic diagram of a calibration process of the temperature control program of Example 2 is shown.

[0051] Reference signs:

[0052] T1-T7-temperature sensor. DETAILED DESCRIPTION

[0053] Embodiments of the present disclosure will be described in more detail with reference to the drawings. Although embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure is more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0054] The term "comprising" and variations thereof as used herein are intended to mean "including but not limited to". The term "or" as used herein is intended to mean "and / or". The term "based on" means "based, at least in part, on". The terms "one example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. can refer to different or same objects. Other explicit or implicit definitions can also be included below.

[0055] Example 1

[0056] One embodiment of the present disclosure discloses a temperature control program test device of a fuel cell cogeneration system, as shown in Figure 1 comprising a hard cogeneration host computer, a hardware-in-the-loop simulation host computer, an IO interface device, a fault injection device, and a to-be-tested cogeneration controller loaded with a to-be-verified temperature control program.

[0057] The hardware-in-the-loop simulation host computer is used to build a simulation model of the cogeneration system (such as Figure 2 but not limited to Figure 2 the scope, Figure 2 only an example is provided), and provides an offline simulation in the loop, the input end thereof is connected to the fault injection device and the cogeneration system controller through the IO interface device, and the output end thereof is connected to the cogeneration host computer. The hardware-in-the-loop simulation host computer can identify the parameters of the simulation model of the cogeneration system, and can generate a DLL file of the cogeneration system model through Simulink.

[0058] The CCHP host computer is used to present a user interface, display the operating parameters of each component in the simulation model, the performance parameters of the CCHP system controller, and the control of the to-be-verified temperature control program loaded in the CCHP system controller on each component in the simulation test process, and test results; and determine the influence of different fault triggering modes on the power distribution of each engine, start and stop in the simulation model; and control related components in the CCHP system simulation model, such as the opening of the thermostat, the required power of the PCS, the pressure and required temperature, etc. The CCHP host computer can also be used to operate data, such as saving, accessing, analyzing and calculating, and display, so that the user can intuitively analyze the control accuracy and response rate of the CCHP temperature control algorithm, the efficiency of the CCHP system, etc.

[0059] The IO interface device is used for signal transmission and data interaction between the hardware-in-the-loop simulation host computer and the CCHP controller or the fault injection device, that is, to complete real-time testing and data acquisition of the test system.

[0060] The fault injection device is used to send simulated fault information to the CCHP system controller through the IO interface device to simulate fault triggering, and then determine the influence of different fault triggering modes on the power distribution of each engine, start and stop in the simulation model. The fault injection device switches the I / O interface signal between the normal operation and the fault state of the CCHP system, simulates various faults, and fully tests the robustness and reliability of the temperature control program.

[0061] The to-be-tested CCHP controller is used to write the CCHP temperature control program.

[0062] Compared with the prior art, the embodiment provides a CCHP system HIL test bench, which can test and verify the functions of the power supply module of the fuel cell CCHP system, and can simulate the influence of the to-be-verified temperature control program on the performance of the fuel cell engine and the efficiency of the CCHP system under different parameters, thereby reducing the development cycle, development cost and use cost of the system, and improving the reliability and environmental adaptability of the system.

[0063] Embodiment 2

[0064] On the basis of embodiment 1, the hardware-in-the-loop simulation host computer is also used to load an environment temperature simulation model on the built CCHP system simulation model, wherein the input of the environment temperature simulation model is outdoor wind speed, outdoor humidity and outdoor environment temperature, and the output is a cooling liquid temperature change factor of the fuel cell engine, so as to simulate the real use scene of the CCHP system.

[0065] The CCHP host computer is also used to determine the response time, response accuracy of the to-be-verified temperature control algorithm and the efficiency of the CCHP system in the simulation model of the CCHP system in different fault triggering modes in combination with the sensing modules (temperature sensor, pressure sensor, voltage sensor, current sensor, flow sensor, etc.) in the simulation model of the CCHP system. That is, after fault injection by the fault injection device, the response time and response accuracy of the to-be-verified temperature control algorithm are obtained by monitoring the temperature sensor arranged at the inlet and outlet of the fuel cell engine cooling liquid, and then the robustness and reliability of the CCHP system controller are comprehensively tested.

[0066] The calculation formula of the efficiency η of the CCHP system is

[0067] η = [(V x i) - P f ] / (V x i)

[0068] In the formula, V is the total output voltage of all fuel cell engines in the simulation model (voltage sensor), i is the total output current of all fuel cell engines in the simulation model (current sensor), P f is the consumed power of all auxiliary machines in the simulation model (including air compressor, radiator, electronic thermostat, pressure control valve, etc.).

[0069] Preferably, the temperature control program testing device further comprises a hardware-in-the-loop simulation host computer, a real-time processing device, a signal simulation device and a fuel cell controller module. As shown in Figure 3 the data end of the hardware-in-the-loop simulation host computer is connected to the data end of the real-time processing device and the CCHP host computer respectively to interact with data, and one input end of the hardware-in-the-loop simulation host computer is connected to the output end of the test case device to load the test case program. The other data end of the real-time processing device is connected to the data end of the fault injection device, the signal simulation device and the CCHP system controller respectively through an IO interface device to interact with data, and one output end of the real-time processing device is connected to the CCHP host computer. The other data end of the CCHP system controller is connected to the CCHP host computer, and the output end of the CCHP system controller is connected to the input end of the fuel cell controller module. The data end of the fuel cell controller module is also connected to the CCHP host computer.

[0070] The test case device provides part of the test cases for the current temperature control algorithm, which is used to provide the related test case control program for calculating the temperature change of the fuel cell engine according to the water flow change through the heat exchange plate and the related test case control program for calculating the water temperature change at the inlet and outlet of the fuel cell engine according to the demand power change of the energy storage converter in the CCHP system to the hardware-in-the-loop simulation host computer, and is loaded in the built CCHP system simulation model. Optionally, the output end of the test case device is connected to the data end of the CCHP host computer.

[0071] A real-time processing device is used for online real-time dynamic simulation of the above-mentioned combined heat and power system simulation model and outputs real-time dynamic simulation results to a combined heat and power host computer for display. The real-time processing device can reflect the dynamic response characteristics of the combined heat and power system, reduces testing costs, and has good scalability and universality. Optionally, an input end one of the real-time processing device is connected to an output end of a hardware-in-the-loop simulation host computer, an input end two thereof is connected to a fault injection device and a combined heat and power controller through an IO interface device, and an output end thereof is connected to a data end of a combined heat and power host computer.

[0072] A signal simulation device is internally provided with simulation models capable of outputting signals that affect the temperature control algorithm to be verified, including a PCS signal simulation model for generating a simulation signal of an energy storage converter, an ambient temperature simulation model for generating an ambient temperature simulation signal, and a fuel cell signal simulation model for generating a fuel cell engine output electric signal. The energy storage converter simulation signal further includes related signals (for example, including the temperature of each fuel cell engine controller, the required power, the use time, etc.) that affect the efficiency and working condition of the energy storage converter; the ambient temperature simulation signal further includes outdoor wind speed, outdoor humidity, and outdoor ambient temperature; and the fuel cell engine output electric signal further includes the required power of the fuel cell and various parameters (for example, including the humidity, pressure, air excess ratio of hydrogen and air, and cooling liquid temperature) that affect the efficiency of the fuel cell. The signal simulation device is used to simulate and send the signals that affect the temperature control algorithm to be verified to the real-time processing device through the built-in models, so as to verify the reliability and robustness of the temperature control program to be verified under different external demands.

[0073] A fuel cell controller module includes a plurality of fuel cell controllers for starting the corresponding fuel cell engine in response to control instructions issued by the combined heat and power system controller.

[0074] Preferably, the fault injection device is provided with a protection device. Moreover, the protection device is connected to a signal detection module in the combined heat and power system simulation model, and is used for overheat, overcurrent, and overvoltage protection of the fault injection device and the combined heat and power system controller according to the detection results output by the signal detection module (temperature sensor, current sensor, and voltage sensor provided in the combined heat and power system simulation model). The protection device ensures the safety of the entire test platform itself.

[0075] Preferably, the combined heat and power system controller executes the following program to complete the calibration function of the temperature control program:

[0076] S1. After the combined heat and power system simulation model is built, the temperature control program to be verified and the power distribution program are written into the control program of the combined heat and power system simulation model;

[0077] S2. Run the simulation model of the cogeneration system to calibrate the minimum controllable temperature of the temperature control program to be verified and to calibrate the parameters in the power distribution strategy;

[0078] S3. Control the signal simulation device to output signals that affect the temperature control algorithm to be verified and send them to the real-time processing device to simulate external demands;

[0079] S4. Run the simulation model of the cogeneration system again to identify whether the temperature control program and the power distribution program to be verified meet the set requirements (exemplarily, including response rate requirements and control accuracy requirements) under different external demands; if so, perform the next step, otherwise, modify the temperature control program and the power distribution program to be verified and re-perform step S1 (re-calibrate and verify the temperature control program to be verified);

[0080] S5. Control the fault injection device to start and perform fault injection on the simulation model of the cogeneration system;

[0081] S6. Run the simulation model of the cogeneration system again to identify whether the temperature control program and the power distribution program to be verified meet the set requirements (exemplarily, including response rate requirements and control accuracy requirements) under different fault triggering modes; if so, perform the next step, otherwise, modify the temperature control program and the power distribution program to be verified and re-perform step S1;

[0082] S7. After the temperature control program to be verified is calibrated, control the parameters in the temperature control program and the power distribution program to be verified to be fixed, and output the test results (including the calibrated temperature control program and the corresponding power distribution program).

[0083] Preferably, the cogeneration system controller performs the following program to test and verify the functions of the power supply module of the cogeneration system:

[0084] S8. After the temperature control program to be verified is calibrated, control the test case device to output the test case control program to be loaded in the built simulation model of the cogeneration system;

[0085] S9. Control the signal simulation device to output different energy storage converter simulation signals each time, send them to the real-time processing device, and run the simulation model of the cogeneration system under each energy storage converter simulation signal to simulate and verify whether the built power supply module of the cogeneration system meets the preset energy storage converter demand power change requirement; if so, perform the next step, otherwise, increase the number of fuel cell engines and perform the simulation verification again;

[0086] S10. The control signal simulation device outputs different environment temperature simulation signals each time, and sends the signals to the real-time processing device. The combined heat and power system simulation model (the performance of the plate heat exchanger and the radiator changes) is run under each environment temperature simulation signal to simulate and verify whether the built combined heat and power system power supply module meets the preset environment temperature change requirement. If yes, it is determined that the function of the combined heat and power system power supply module meets the environment change requirement. Otherwise, the cooling liquid circulation system in the simulation model is adjusted, and the simulation verification is performed again.

[0087] Preferably, the combined heat and power system controller further executes the following program to determine the power distribution program with the optimal power distribution effect:

[0088] S11. After the temperature control program to be verified is completed and the function of the combined heat and power system power supply module meets the requirement, the distribution strategy in the power distribution program is adjusted. The combined heat and power system simulation model is run under each distribution strategy to determine the power distribution program that makes the current temperature control program meet the response rate and control accuracy requirement and the fuel cell engine average efficiency is higher, as the power distribution program with the optimal power distribution effect and output.

[0089] The calculation formula of the fuel cell engine average efficiency λ is

[0090]

[0091] In the formula, V cell is the output voltage of the fuel cell engine (voltage sensor), i cell is the output current of the fuel cell engine (current sensor), P fF is the power consumption of the corresponding accessory of the fuel cell engine (including air compressor, radiator, electronic thermostat, pressure control valve, etc.), V cell , i cell , and P fF are all related to time t, and T is the set time.

[0092] Preferably, the neural network algorithm is combined to find the power distribution program that makes the current temperature control program meet the response rate and control accuracy requirement and the fuel cell engine average efficiency is higher, so as to complete the optimal power distribution.

[0093] In implementation, first, a fuel cell system model (including an electronic thermostat model and a heat exchanger model) as shown in Figure 2 is built on a hardware-in-the-loop simulation host, and then Figure 4The energy storage converter model and the ambient temperature simulation model are built on the hardware-in-the-loop simulation host computer, the HIL test interface is built using the heat and power cogeneration upper computer, the IO model is generated using the DBC CANIO generation tool, the ambient temperature sensor model is imported, the temperature control program (including the temperature control algorithm) to be verified and the power distribution program (including the power distribution strategy) are written into the virtual heat and power cogeneration system controller, the test CAN receiving and sending module is imported into the heat and power cogeneration model in the virtual heat and power cogeneration system controller, the energy storage converter model strategy is modified in the heat and power cogeneration model, including high and low voltage power supply, start-up failure, delay power-down, fuel cell fault handling, energy storage converter communication failure, signal transmission and reception, and the fuel cell heat and power cogeneration system control program is burned into the real controller on the real-time processing device. The heat and power cogeneration upper computer sends control commands, the hardware-in-the-loop simulation host computer calls the test case corresponding to the control command in the test case device, runs the heat and power cogeneration system simulation model in the simulation host computer, and tests the heat and power cogeneration control program.

[0094] Compared with the prior art, the device provided by the embodiment has the following beneficial effects:

[0095] 1. The temperature control algorithm in the temperature control program to be verified can be calibrated, and the temperature control algorithm that is not easily affected by the ambient temperature and various faults is determined through the running of the heat and power cogeneration system simulation model, and the test result is the temperature control program containing the temperature control algorithm.

[0096] 2. The function of the power supply module in the heat and power cogeneration system can be tested to ensure that the power supply module in the heat and power cogeneration system meets the preset requirements of the power change of the energy storage converter and the change of the ambient temperature. By modifying the ambient temperature, the performance of the plate heat exchanger and the radiator is changed, and the change of the heat and power cogeneration system operating environment is simulated.

[0097] 3. The power distribution algorithm with the optimal power distribution effect can be determined, so that the current temperature control program meets the response rate and control accuracy requirements and the fuel cell engine has a high average efficiency.

[0098] 4. The application of the device can reduce the development cycle, cost and use cost of the heat and power cogeneration system, and improve the reliability and environmental adaptability of the heat and power cogeneration system.

[0099] Having described above several embodiments of the disclosure, any modifications and variations that fall within the scope of the described embodiments are also intended to be within the scope of the disclosure. As will be apparent to those skilled in the art, some modifications and variations to the embodiments described above can be practiced while staying within the scope and spirit of the described embodiments. The foregoing description of the described embodiments has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the described embodiments to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. It is intended that the disclosed embodiments be limited only by the claims.

Claims

1. A temperature control program testing device for a fuel cell combined heat and power system, characterized in that, The system comprises a heat and power cogeneration upper computer, a hardware-in-the-loop simulation host computer, an IO interface device, a fault injection device, and a heat and power cogeneration system controller. The hardware-in-the-loop simulation host computer is used to build a heat and power cogeneration system simulation model and provide offline simulation in a loop, and its input end is connected to the fault injection device and the heat and power cogeneration system controller through the IO interface device, and its output end is connected to the heat and power cogeneration upper computer. The heat and power cogeneration upper computer is used to display the operating parameters of each component in the simulation model, the control of the to-be-verified temperature control program loaded by the heat and power cogeneration system controller on each component during simulation testing, and the test results, and determine the influence of different fault triggering modes on the power distribution and start-stop of each engine in the simulation model. The fault injection device is used to send simulated fault information to the heat and power cogeneration system controller through the IO interface device to simulate fault triggering. The hardware-in-the-loop simulation host computer is further used to load an environment temperature simulation model on the built heat and power cogeneration system simulation model, wherein the input of the environment temperature simulation model is outdoor wind speed, outdoor humidity, and outdoor environment temperature, and the output is a cooling liquid temperature change factor of the fuel cell engine, so as to simulate the real use scenario of the heat and power cogeneration system; and The heat and power cogeneration upper computer is further used to determine the response time, response accuracy of each component in the simulation model to the to-be-verified temperature control algorithm, and the efficiency of the heat and power cogeneration system under different fault triggering modes according to the sensing module in the heat and power cogeneration system simulation model.

2. The device for testing a temperature control program of a fuel cell cogeneration system according to claim 1, wherein Further comprising: A test case device is used to provide related test case control programs for calculating the temperature change of the fuel cell engine according to the water flow change through the heat exchange plate and for calculating the water temperature change at the inlet and outlet of the fuel cell engine according to the demand power change of the energy storage converter in the heat and power cogeneration system to the hardware-in-the-loop simulation host computer, and the test case control programs are loaded in the built heat and power cogeneration system simulation model; The output end of the test case device is connected to the data end of the heat and power cogeneration upper computer.

3. The device according to claim 2, wherein Further comprising: A real-time processing device is used for online real-time dynamic simulation of the heat and power cogeneration system simulation model, and outputs real-time dynamic simulation results to the heat and power cogeneration upper computer for display; The input end one of the real-time processing device is connected to the output end of the hardware-in-the-loop simulation host computer, the input end two thereof is connected to the fault injection device and the heat and power controller through the IO interface device, and the output end thereof is connected to the data end of the heat and power cogeneration upper computer.

4. The test device for testing a temperature control program of a fuel cell cogeneration system according to any one of claims 1 and 3, characterized in that, The fault injection device is provided with a protection device; and The protection device is connected to a signal detection module in the heat and power cogeneration system simulation model, and is used to perform overheat, overcurrent, and overvoltage protection on the fault injection device and the heat and power system controller according to the detection results output by the signal detection module; The signal detection module further comprises a temperature sensor, a current sensor, and a voltage sensor provided in the heat and power cogeneration system simulation model.

5. The device according to claim 3, wherein Further comprising: The signal simulation device comprises an analog model capable of outputting signals affecting the to-be-verified temperature control algorithm, and includes a PCS signal simulation model for generating a storage energy converter analog signal, an ambient temperature simulation model for generating an ambient temperature analog signal, and a fuel cell signal simulation model for generating a fuel cell engine output electric signal; wherein the storage energy converter analog signal further comprises relevant signals affecting the efficiency and working condition of the storage energy converter; the ambient temperature analog signal further comprises outdoor wind speed, outdoor humidity, and outdoor ambient temperature; and the fuel cell engine output electric signal further comprises the required power of the fuel cell and parameters affecting the efficiency of the fuel cell. The signal simulation device is used to simulate the signals affecting the to-be-verified temperature control algorithm by the built-in model, and sends the signals to the real-time processing device to verify the reliability of the to-be-verified temperature control program under different external demands.

6. The device for testing the temperature control program of a fuel cell cogeneration system according to claim 5, wherein Further comprising: The fuel cell controller module comprises a plurality of fuel cell controllers for starting the corresponding fuel cell engine in response to the control instructions issued by the combined heat and power system controller.

7. The test device for a temperature control program of a fuel cell cogeneration system according to claim 5 or 6, wherein The combined heat and power system controller performs the following program to complete the calibration function of the temperature control program: S1. After the combined heat and power system simulation model is built, the to-be-verified temperature control program and the power distribution program are written into the control program of the combined heat and power system simulation model; S2. Run the combined heat and power system simulation model to calibrate the minimum controllable temperature of the to-be-verified temperature control program and calibrate the parameters in the power distribution strategy; S3. The signal simulation device outputs the signals affecting the to-be-verified temperature control algorithm, and sends the signals to the real-time processing device to simulate the external demand; S4. Run the combined heat and power system simulation model again to identify whether the to-be-verified temperature control program and the power distribution program meet the set requirements under different external demands; If yes, execute the next step, otherwise, modify the to-be-verified temperature control program and the power distribution program, and re-execute step S1; S5. Control the fault injection device to start and perform fault injection on the combined heat and power system simulation model; S6. Run the combined heat and power system simulation model again to identify whether the to-be-verified temperature control program and the power distribution program meet the set requirements under different fault triggering modes; if yes, execute the next step, otherwise, modify the to-be-verified temperature control program and the power distribution program, and re-execute step S1; S7. After the to-be-verified temperature control program is calibrated, control the parameters in the to-be-verified temperature control program and the power distribution program to be fixed, and output the test results.

8. The device according to claim 7, wherein The combined heat and power system controller performs the following program to test and verify the functions of the combined heat and power system power supply module: S8. After the to-be-verified temperature control program is calibrated, control the test case device to output the test case control program to be loaded in the built combined heat and power system simulation model; S9. Control the signal simulation device to output different storage energy converter analog signals each time, and send the signals to the real-time processing device. Run the combined heat and power system simulation model under each storage energy converter analog signal to simulate and verify whether the built combined heat and power system power supply module meets the preset requirement of the change of the required power of the storage energy converter. If yes, the next step is performed, otherwise, the number of fuel cell engines is increased, and the simulation verification is performed again; S10. The control signal simulation device outputs different environment temperature simulation signals each time, and sends the signals to the real-time processing device. The cogeneration system simulation model is run under each environment temperature simulation signal to simulate and verify whether the built cogeneration system power supply module meets the preset environment temperature change requirement. If yes, it is determined that the function of the cogeneration system power supply module meets the environment temperature change requirement, otherwise, the cooling liquid circulation system in the simulation model is adjusted, and the simulation verification is performed again.

9. The device for testing the temperature control program of a fuel cell cogeneration system according to claim 8, wherein The cogeneration system controller further executes the following program to determine the power distribution program with the optimal power distribution effect: S11. After the to-be-verified temperature control program is completed and the function of the cogeneration system power supply module meets the requirement, the distribution strategy in the power distribution program is adjusted. The cogeneration system simulation model is run under each distribution strategy to determine the power distribution program that makes the current temperature control program meet the response rate and control accuracy requirement and has a higher average efficiency of the running fuel cell engine, as the power distribution program with the optimal power distribution effect and is output.

Citation Information

Patent Citations

  • Fuel cell cooling system hardware-in-the-loop test platform and model construction method

    CN114628737A