CN111708284B - Simulation test method, device, equipment and storage medium for fuel cell system - Google Patents

Simulation test method, device, equipment and storage medium for fuel cell system Download PDF

Info

Publication number
CN111708284B
CN111708284B CN202010618012.6A CN202010618012A CN111708284B CN 111708284 B CN111708284 B CN 111708284B CN 202010618012 A CN202010618012 A CN 202010618012A CN 111708284 B CN111708284 B CN 111708284B
Authority
CN
China
Prior art keywords
simulation
model
simulation model
initial
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010618012.6A
Other languages
Chinese (zh)
Other versions
CN111708284A (en
Inventor
李然
吴炎花
陈建平
徐吉林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Electric Group Corp
Original Assignee
Shanghai Electric Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Electric Group Corp filed Critical Shanghai Electric Group Corp
Priority to CN202010618012.6A priority Critical patent/CN111708284B/en
Publication of CN111708284A publication Critical patent/CN111708284A/en
Application granted granted Critical
Publication of CN111708284B publication Critical patent/CN111708284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/367Software therefor, e.g. for battery testing using modelling or look-up tables
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/30Hydrogen technology
    • Y02E60/50Fuel cells

Abstract

The invention relates to the technical field of battery simulation, and discloses a simulation test method, a device, equipment and a storage medium for a fuel cell system, wherein the simulation test method for the fuel cell system comprises the steps of determining initial parameters in a test instruction based on the test instruction aiming at a fuel cell; determining a simulation model to be tested corresponding to an identifier contained in a test instruction from a device simulation model of a simulation system of a fuel cell, wherein the simulation model to be tested is part or all of a control simulation model, a part simulation model of a subsystem simulation model and a stack simulation model contained in the device simulation model, the control simulation model is connected with part or all of the part simulation models, and the stack simulation model is connected with part of the part simulation models; and inputting the initial parameters into an input interface of the simulation system, and acquiring test parameters of the device model to be tested in the test process of the simulation system.

Description

Simulation test method, device, equipment and storage medium for fuel cell system
Technical Field
The invention relates to the technical field of battery simulation, in particular to a simulation test method, a simulation test device, a simulation test equipment and a storage medium for a fuel cell system.
Background
With the progress of technology, fuel cells are used more and more widely, and fuel cells are power generation devices that directly convert chemical energy present in fuel and oxidant into electrical energy. In order to make the fuel cell more reliable and durable, performance tests on the fuel cell system are required.
In the related art, a simulated stack is obtained by performing simulation on a stack of a fuel cell system, and a performance test is performed on the simulated stack to obtain test data or simulate a stack fault under certain conditions.
However, the above scheme cannot comprehensively obtain test data of the fuel cell system.
Disclosure of Invention
The invention provides a simulation test method, a simulation test device, a simulation test equipment and a storage medium for a fuel cell system, which are used for comprehensively obtaining test data of the fuel cell system.
In a first aspect, an embodiment of the present invention provides a fuel cell system simulation test method, including:
determining initial parameters in the test instructions based on the test instructions for the fuel cell;
determining a to-be-tested simulation model corresponding to the identifier contained in the test instruction from a device simulation model of a simulation system of the fuel cell, wherein the to-be-tested simulation model is part or all of a control simulation model, a part simulation model of a subsystem simulation model and a stack simulation model contained in the device simulation model, the control simulation model is connected with the part or all part simulation models of the subsystem simulation model, and the stack simulation model is connected with the part simulation model of the subsystem simulation model;
inputting the initial parameters into an input interface of the simulation system, and acquiring test parameters of the device model to be tested in the test process of the simulation system;
the simulation system sets input and output parameter types of an interface in an initial device model of the fuel cell based on preset interface parameter types, simulates the initial device model according to preset performance parameters to obtain a device simulation model with interface parameters, and builds the device simulation model based on a preset connection relation.
According to the scheme, the device simulation model of the fuel cell simulation system comprises a control simulation model, each part simulation model of a subsystem simulation model and a pile simulation model, the simulation system is tested, and test parameters of one or more device simulation models can be obtained, so that more comprehensive test data can be obtained; in addition, the device simulation model is a virtual model obtained by setting the input and output parameter types of the interface in the initial device model of the fuel cell based on the preset interface parameter types and simulating the initial device model according to the preset performance parameters, so that each device simulation model can be tested under the condition of no solid parts, the device of the fuel cell is not damaged, the test cost is reduced, and the simulation test parameters of each part of the controller and the subsystem and/or the electric pile under certain limit conditions can be obtained through simulation test to simulate the related faults of each part of the controller and the subsystem and/or the electric pile.
In a possible implementation manner, the setting, based on a preset interface parameter type, an input/output parameter type of an interface in an initial device model of the fuel cell, and simulating the initial device model according to a preset performance parameter includes:
setting input and output parameter types of an interface in the initial device model based on the preset interface parameters through at least one target software in preset software, and simulating the initial device model according to the preset performance parameters through the target software;
building the device simulation model into the simulation system based on a preset connection relation, wherein the simulation system comprises:
and building the device simulation model into the simulation system through any software in the preset software based on the preset connection relation.
According to the scheme, the same target software or different target software is selected according to the actual application scene to simulate the initial device model and set the interface to obtain the corresponding device simulation model, so that the simulation effect on each device in the fuel cell can be improved; the device simulation model is built into the simulation system through any software in the preset software, so that the building of the simulation system is more flexible.
In one possible implementation, the target software includes a first target software and a second target software,
the setting, by at least one target software in the preset software, the input/output parameter type of the interface in the initial device model based on the preset interface parameter, and the simulating, by the target software, the initial device model according to the preset performance parameter include:
setting input and output parameter types of interfaces of target initial device models in the initial device models based on the preset interface parameters through the first target software, and setting input and output parameter types of interfaces of other initial device models except the target initial device models based on the preset interface parameters through the second target software; and simulating the target initial device model according to the preset performance parameters of the target initial device model through the first target software, and simulating the other initial device models according to the preset performance parameters of the other initial device models through the second target software.
According to the scheme, the device simulation model corresponding to the target initial device model is obtained by simulating and interface setting the target initial device model through the first target software, the device simulation model corresponding to the other initial device model is obtained by simulating and interface setting the other initial device model through the second target software, and the problem that the simulation effect of the first target software on some devices is poor or the simulation effect of the second target software on some devices is poor, so that the problem that the simulation effect of a simulation system is poor is solved.
In a possible implementation manner, the building, by any one of the preset software, the device simulation model into the simulation system based on the preset connection relationship includes:
sending device simulation model data corresponding to the other initial device models to the first target software through the second target software, and building all device simulation models into the simulation system through the first target software based on a preset connection relation;
or, sending device simulation model data corresponding to the target initial device model to the second target software through the first target software, and building all device simulation models into the simulation system through the second target software based on a preset connection relation;
or, the device simulation model data corresponding to other initial device models are sent to other software except the target software in the preset software through second target software, the device simulation model data corresponding to the target initial device model are sent to other software through first target software, and all device simulation models are built into the simulation system through other software based on a preset connection relation.
According to the scheme, the device simulation model can be built into the simulation system through any other software of the first target software, the second target software or the preset software, so that the building of the simulation system is more flexible, and the requirements of different scenes are met.
In one possible implementation, the initial device model includes an initial control model, initial component models of the initial subsystem model, and an initial stack model;
the setting of the input and output parameter types of the interface in the initial device model of the fuel cell based on the preset interface parameter types comprises the following steps:
setting input and output parameter types of the interface of the initial electric pile model and the standardized interface of each initial component model based on standardized types in the preset interface parameters, wherein the standardized types comprise at least one of pressure, temperature, working medium flow and water vapor flow;
and setting the input and output parameter types of the interface of the initial control model based on the control types in the preset interface parameters, and setting the input parameter types of the control interfaces of part or all of the initial component models.
According to the scheme, the input and output parameter types of the interfaces of the stack simulation model are set on the basis of the standardized types, the input and output parameter types of the standardized interfaces of each part simulation model are set on the basis of the standardized types, and therefore the problems of complexity and time consumption caused by the fact that interface conversion is needed to complete the test process under the conditions that the output parameter type of the standardized interface of the previous part simulation model is different from the input parameter type of the standardized interface of the connected next part simulation model/the input parameter type of the interface of the connected stack simulation model in the test process are avoided. The input and output parameter types of the interfaces of the control simulation model are set for the interfaces of the initial control model based on the control types, and the input parameter types of the control interfaces of part or all of the part simulation models are set for the control interfaces of the corresponding part or all of the initial part models based on the control types, so that the part or all of the part simulation models can timely and accurately obtain the control instructions sent by the control simulation model in the test process.
In one possible implementation, the subsystem simulation model includes a hydrogen gas circuit subsystem simulation model, an air circuit subsystem simulation model, and a cooling gas circuit subsystem simulation model.
In a possible implementation manner, the subsystem simulation model further includes each pipeline simulation model, and the stack simulation model is connected with the partial component simulation model through a partial pipeline simulation model of the subsystem simulation model.
Through the pipeline simulation model obtained by simulating each pipeline in the subsystem, the similarity between the simulation system and the fuel cell can be further improved, and the simulation effect is further improved.
In a second aspect, an embodiment of the present invention provides a simulation testing apparatus for a fuel cell system, including:
a determination module for determining initial parameters in a test instruction for the fuel cell based on the test instruction;
the determining module is further configured to determine a to-be-tested simulation model corresponding to an identifier included in the test instruction from a device simulation model of a simulation system of the fuel cell, where the to-be-tested simulation model is a part or all of a control simulation model, a component simulation model of a subsystem simulation model, and a stack simulation model included in the device simulation model, the control simulation model is connected with the part or all of the component simulation model of the subsystem simulation model, and the stack simulation model is connected with the part of the component simulation model of the subsystem simulation model;
the processing module is used for inputting the initial parameters into an input interface of the simulation system and acquiring test parameters of the device model to be tested in the test process of the simulation system;
the simulation system is formed by setting input and output parameter types of an interface in an initial device model of the fuel cell by a simulation module based on preset interface parameter types, simulating the initial device model according to preset performance parameters to obtain a device simulation model with interface parameters, and building the device simulation model based on a preset connection relation.
In one possible implementation manner, the setting, by the simulation module, an input/output parameter type of an interface in an initial device model of the fuel cell based on a preset interface parameter type, and simulating the initial device model according to a preset performance parameter includes:
setting input and output parameter types of an interface in the initial device model based on the preset interface parameters through at least one target software in preset software, and simulating the initial device model according to the preset performance parameters through the target software;
the simulation module builds the device simulation model into the simulation system based on a preset connection relation, and the method comprises the following steps:
and building the device simulation model into the simulation system through any software in the preset software based on the preset connection relation.
In one possible implementation, the target software includes a first target software and a second target software,
the simulation module sets the input and output parameter type of the interface in the initial device model through at least one target software in preset software based on the preset interface parameters, and simulates the initial device model through the target software according to the preset performance parameters, including:
setting input and output parameter types of interfaces of target initial device models in the initial device models based on the preset interface parameters through the first target software, and setting input and output parameter types of interfaces of other initial device models except the target initial device models based on the preset interface parameters through the second target software; and simulating the target initial device model according to the preset performance parameters of the target initial device model through the first target software, and simulating the other initial device models according to the preset performance parameters of the other initial device models through the second target software.
In a possible implementation manner, the building, by the simulation module, the device simulation model into the simulation system through any one of the preset software based on the preset connection relationship includes:
sending device simulation model data corresponding to the other initial device models to the first target software through the second target software, and building all device simulation models into the simulation system through the first target software based on a preset connection relation;
or, sending device simulation model data corresponding to the target initial device model to the second target software through the first target software, and building all device simulation models into the simulation system through the second target software based on a preset connection relation;
or, the device simulation model data corresponding to other initial device models are sent to other software except the target software in the preset software through second target software, the device simulation model data corresponding to the target initial device model are sent to other software through first target software, and all device simulation models are built into the simulation system through other software based on a preset connection relation.
In one possible implementation manner, the initial device model comprises an initial control model, initial component models of an initial subsystem model and an initial electric pile model;
the simulation module sets the input and output parameter types of the interfaces in the initial device model of the fuel cell based on the preset interface parameter types, and the method comprises the following steps:
setting input and output parameter types of the interface of the initial electric pile model and the standardized interface of each initial component model based on standardized types in the preset interface parameters, wherein the standardized types comprise at least one of pressure, temperature, working medium flow and water vapor flow;
and setting the input and output parameter types of the interface of the initial control model based on the control types in the preset interface parameters, and setting the input parameter types of the control interfaces of part or all of the initial component models.
In one possible implementation, the subsystem simulation model includes a hydrogen gas circuit subsystem simulation model, an air circuit subsystem simulation model, and a cooling gas circuit subsystem simulation model.
In a possible implementation manner, the subsystem simulation model further includes each pipeline simulation model, and the stack simulation model is connected with the partial component simulation model through a partial pipeline simulation model of the subsystem simulation model.
In a third aspect, an embodiment of the present invention provides a fuel cell system simulation test apparatus, including: a processor and a memory;
wherein the memory stores program code that, when executed by the processor, causes the processor to perform the following:
determining initial parameters in the test instructions based on the test instructions for the fuel cell;
determining a simulation model to be tested corresponding to the identifier contained in the test instruction from a device simulation model of a simulation system of the fuel cell, wherein the simulation model to be tested is a part or all of a control simulation model, a part simulation model of a subsystem simulation model and a cell stack simulation model contained in the device simulation model, the control simulation model is connected with the part or all part simulation models of the subsystem simulation model, and the cell stack simulation model is connected with the part simulation model of the subsystem simulation model;
inputting the initial parameters into an input interface of the simulation system, and acquiring test parameters of the device model to be tested in the test process of the simulation system;
the simulation system is used for setting the input and output parameter types of an interface in an initial device model of the fuel cell based on the preset interface parameter types, simulating the initial device model according to the preset performance parameters to obtain a device simulation model with the interface parameters, and building the device simulation model based on the preset connection relation.
In one possible implementation, the processor performs the following process:
setting input and output parameter types of an interface in the initial device model based on the preset interface parameters through at least one target software in preset software, and simulating the initial device model according to the preset performance parameters through the target software;
and building the device simulation model into the simulation system through any software in the preset software based on the preset connection relation.
In one possible implementation, the target software includes a first target software and a second target software,
the processor specifically performs the following processes:
setting input and output parameter types of interfaces of target initial device models in the initial device models based on the preset interface parameters through the first target software, and setting input and output parameter types of interfaces of other initial device models except the target initial device models based on the preset interface parameters through the second target software; and simulating the target initial device model according to the preset performance parameters of the target initial device model through the first target software, and simulating the other initial device models according to the preset performance parameters of the other initial device models through the second target software.
In one possible implementation, the processor performs the following process:
sending device simulation model data corresponding to the other initial device models to the first target software through the second target software, and building all device simulation models into the simulation system through the first target software based on a preset connection relation;
or, sending device simulation model data corresponding to the target initial device model to the second target software through the first target software, and building all device simulation models into the simulation system through the second target software based on a preset connection relation;
or, the device simulation model data corresponding to other initial device models are sent to other software except the target software in the preset software through second target software, the device simulation model data corresponding to the target initial device model are sent to other software through first target software, and all device simulation models are built into the simulation system through other software based on a preset connection relation.
In one possible implementation manner, the initial device model comprises an initial control model, initial component models of an initial subsystem model and an initial electric pile model;
the processor specifically performs the following processes:
setting input and output parameter types of the interface of the initial electric pile model and the standardized interface of each initial component model based on standardized types in the preset interface parameters, wherein the standardized types comprise at least one of pressure, temperature, working medium flow and water vapor flow;
and setting the input and output parameter types of the interface of the initial control model based on the control types in the preset interface parameters, and setting the input parameter types of the control interfaces of part or all of the initial component models.
In one possible implementation, the subsystem simulation models include a hydrogen circuit subsystem simulation model, an air circuit subsystem simulation model, and a cooling gas circuit subsystem simulation model.
In a possible implementation manner, the subsystem simulation model further includes each pipeline simulation model, and the stack simulation model is connected with the partial component simulation model through a partial pipeline simulation model of the subsystem simulation model.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method as described in the first aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect to the fourth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a system architecture diagram of a simulation system of a fuel cell according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a simulation testing method for a fuel cell system according to an embodiment of the present invention;
fig. 3 is a system architecture diagram of another simulation system for a fuel cell according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a simulation system building method provided by the embodiment of the invention;
FIG. 5 is a schematic flow chart of another simulation system building method provided by the embodiment of the invention;
FIG. 6 is a schematic flow chart of a further simulation system building method provided by the embodiment of the present invention;
FIG. 7 is a schematic flow chart of a further simulation system building method provided by the embodiment of the present invention;
FIG. 8 is a schematic diagram of a connection relationship between an air circuit subsystem simulation model and a stack simulation model according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a simulation testing apparatus for a fuel cell system according to an embodiment of the present invention;
fig. 10 is a schematic block diagram of a simulation test apparatus for a fuel cell system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless otherwise specified.
In the description of the present application, it is to be noted that, unless otherwise explicitly stated or limited, the term "connected" is to be understood broadly, and may for example be directly connected, indirectly connected through an intermediate medium, or be a communication between two devices. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
A fuel cell is a power generation device that directly converts chemical energy present in a fuel and an oxidant into electrical energy. In order to make the fuel cell more reliable and durable, performance tests on the fuel cell system are required.
In the related art, a simulated stack is obtained by performing simulation on a stack of a fuel cell system, and a performance test is performed on the simulated stack to obtain test data or simulate a stack fault under certain conditions. However, the above scheme cannot comprehensively obtain test data of the fuel cell system.
In order to comprehensively obtain test data of a fuel cell system, embodiments of the present invention provide a simulation test method, apparatus, device and storage medium for a fuel cell system, and the present disclosure will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a system architecture diagram of a simulation system of a fuel cell according to this embodiment, where the simulation system 100 includes a plurality of device simulation models, such as the control simulation model 110 and a component simulation model of a subsystem simulation model shown in fig. 1 (fig. 1 illustrates a subsystem simulation model 121 and a subsystem simulation model 122; the subsystem simulation model 121 includes a component simulation model 1211, a component simulation model 1212, and a component simulation model 1213, and the subsystem simulation model 122 includes a component simulation model 1221, a component simulation model 1222, a component simulation model 1223, and a component simulation model 1224, for example, in practical applications, the number of subsystem simulation models and the number of component simulation models of each subsystem simulation model may be more or less), and a stack simulation model 130.
The control simulation model 110 is connected to part or all of the component simulation models of the subsystem simulation model (fig. 1 illustrates that the control simulation model 110 is connected to the component simulation model 1211, the component simulation model 1221, and the component simulation model 1222 are examples), and the stack simulation model 130 is connected to part of the component simulation models of the subsystem simulation model (fig. 1 illustrates that the stack simulation model 130 is connected to the component simulation model 1212, the component simulation model 1213, the component simulation model 1222, and the component simulation model 1223 are examples).
When initial parameters in a test instruction of a fuel cell are input into an input interface of the simulation system 100, test parameters of a device model to be tested (which is part or all of the device simulation model) included in the test instruction in the test process of the simulation system 100 can be obtained, so that more comprehensive test data can be obtained; in addition, the device simulation model is a virtual model obtained by setting the input and output parameter types of the interface in the initial device model of the fuel cell based on the preset interface parameter types and simulating the initial device model according to the preset performance parameters, so that each device simulation model can be tested under the condition of no solid parts, the device of the fuel cell is not damaged, the test cost is reduced, and the simulation test parameters of each part of the controller and the subsystem and/or the electric pile under certain limit conditions can be obtained through simulation test to simulate the related faults of each part of the controller and the subsystem and/or the electric pile.
The simulation system described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not limit the technical solution provided in the embodiment of the present invention, and other similar simulation systems are also applicable to the technical solution provided in the embodiment of the present invention.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of a simulation test method for a fuel cell system according to an embodiment of the present invention, which is applied to a simulation test apparatus for a fuel cell system, and as shown in fig. 2, the method may include:
step 201: based on a test instruction for the fuel cell, an initial parameter in the test instruction is determined.
For example, the fuel cell system simulation test equipment determines the initial parameters contained in the test instruction after receiving the test instruction for the fuel cell. The type of the initial parameter may be determined according to the type to be tested and the parameter type of the interface, for example: the temperature and pressure of some devices of the fuel cell need to be tested, and the types of input and output parameters of the interfaces of the devices comprise the temperature and the pressure, and the initial parameters can comprise the initial temperature and the initial pressure.
The examples herein are only for illustrating that the type of the initial parameter is related to the type of the interface and the type of the test required, and are not limited to the type of the initial parameter, the type of the test required, and the type of the interface in this embodiment.
The present embodiment does not limit the manner of receiving the test instruction for the fuel cell, for example:
1) Receiving a test instruction sent by a control terminal through a Local Area Network (LAN), a Wireless Local Area Network (WLAN) or other networks;
2) Receiving a test instruction through a User Interface (UI for short);
3) Receiving a voice test instruction through a voice receiving device;
4) And responding to the triggering of the target key, and determining a test instruction corresponding to the target key according to the preset corresponding relation between the key and the instruction.
The above receiving manners are only examples, and other manners for receiving the test command for the fuel cell are also applicable to the embodiments of the present invention, and are not described herein again.
Step 202: and determining the simulation model to be tested corresponding to the identifier contained in the test instruction from a device simulation model of the simulation system of the fuel cell.
The simulation model to be tested is a part or all of a control simulation model, a part or all of a subsystem simulation model and a cell stack simulation model which are contained in the device simulation model, the control simulation model is connected with the part or all of the subsystem simulation model, and the cell stack simulation model is connected with the part of the subsystem simulation model.
In this embodiment, for a test instruction, the identifier included in the test instruction may be an identifier of one or more of the control simulation model, the component simulation model of the subsystem simulation model, and the stack simulation model, which is described by taking the simulation system in fig. 1 as an example, for example:
1) The test instruction only carries the identifier of the component simulation model 1212;
2) The test instructions carry an identification of the component simulation model 1222, an identification of the stack simulation model 130, and an identification of the component simulation model 1223.
The above two types of identifiers included in the test instruction are merely exemplary, and descriptions about possible identifiers included in other test instructions are omitted here.
Step 203: and inputting the initial parameters into an input interface of the simulation system, and acquiring test parameters of the device model to be tested in the test process of the simulation system.
In this embodiment, the initial parameters are input into an input interface of the simulation system, the simulation system enters a test process, the device simulation models receive the input parameters through the interfaces thereof, and output corresponding parameters through the interfaces after processing, so as to obtain test parameters (parameters input or output by the interfaces) of the device model to be tested.
The initial parameters include initial standard parameters corresponding to the test parameters and control parameters, after the initial parameters are input into an input interface of the simulation system, the standard parameters enter an initial component simulation model of each subsystem simulation model, the initial component simulation model processes the standard parameters and outputs the standard parameters through an interface of the initial component simulation model, the standard parameters output by the interface of the previous component simulation model are used as the standard parameters input by the interface of the connected next component simulation model or the connected cell stack simulation model, and the standard parameters output by the cell stack model interface are used as the input standard parameters of the interface of the connected next component simulation model. And the control parameters enter the input parameters of the control simulation model interface, and the control simulation model sends control instructions to the corresponding component simulation model through the interface based on the control parameters.
It can be understood that the standard parameters input by the interface of the corresponding component simulation model may also be input to the interface of the control simulation model, and the control simulation model interface sends a control instruction to the corresponding component simulation model based on the control parameters and the standard parameters, so as to implement closed-loop control.
Optionally, the subsystem simulation model includes a hydrogen gas circuit subsystem simulation model, an air circuit subsystem simulation model, and a cooling gas circuit subsystem simulation model.
Fig. 3 is a system architecture diagram of another simulation system of a fuel cell according to this embodiment, as shown in fig. 3, a simulation system 300 includes a control simulation model 110, a hydrogen gas circuit subsystem simulation model, an air circuit subsystem simulation model, a cooling gas circuit subsystem simulation model, and a stack simulation model 130. The hydrogen way subsystem simulation model comprises a pressure reducing valve simulation model 3211, a circulating pump simulation model 3212 and a tail exhaust valve simulation model 3213; the air circuit subsystem simulation model comprises an air compressor simulation model 3221, an intercooler simulation model 3222, a humidifier simulation model 3223 and a back pressure valve simulation model 3224; the cooling air path subsystem simulation model comprises an intercooler simulation model 3222, a radiator simulation model 3231, a water pump simulation model 3232 and a thermostat simulation model 3233.
The pressure reducing valve simulation model 3211 is connected with the circulating pump simulation model 3212, the circulating pump simulation model 3212 is connected with the stack simulation model 130, and the tail drain valve simulation model 3213 is connected with the stack simulation model 130; the air compressor simulation model 3221 is connected with the intercooler simulation model 3222, the intercooler simulation model 3222 is connected with the humidifier simulation model 3223, the humidifier simulation model 3223 is connected with the stack simulation model 130, and the humidifier simulation model 3223 is connected with the back pressure valve simulation model 3224; the radiator simulation model 3231 is connected with the water pump simulation model 3232, the radiator simulation model 3231 is further connected with the thermostat simulation model 3233, the water pump simulation model 3232 is connected with the stack simulation model 130, the water pump simulation model 3232 is further connected with the intercooler simulation model 3222, the water pump simulation model 3232 is further connected with the thermostat simulation model 3233, and the thermostat simulation model 3233 is connected with the stack simulation model 130.
In addition, the pressure reducing valve simulation model 3211, the circulation pump simulation model 3212, the tail drain valve simulation model 3213, the air compressor simulation model 3221, the back pressure valve simulation model 3224, the radiator simulation model 3231, the water pump simulation model 3232, and the thermostat simulation model 3233 are all connected to the control simulation model 110 (fig. 3 shows that the control simulation model 110 is connected to a dashed line frame, but the dashed line frame does not really exist, which represents that each part simulation model in the dashed line frame is connected to the control simulation model 110, for example, the part simulation models in the dashed line frame may be respectively and directly connected to the control simulation model 110, or the part simulation models in the same subsystem simulation model are collected together and connected to the control simulation model 110, and so on, which is not described in detail herein again).
According to the scheme, the device simulation model of the fuel cell simulation system comprises a control simulation model, each part simulation model of a subsystem simulation model and a pile simulation model, and the simulation system is tested to obtain the test parameters of one or more device simulation models, so that more comprehensive test data can be obtained; in addition, the device simulation model is a virtual model obtained by setting the input and output parameter types of the interface in the initial device model of the fuel cell based on the preset interface parameter types and simulating the initial device model according to the preset performance parameters, so that each device simulation model can be tested under the condition of no solid parts, the device of the fuel cell is not damaged, the test cost is reduced, and the simulation test parameters of each part of the controller and the subsystem and/or the electric pile under certain limit conditions can be obtained through simulation test to simulate the related faults of each part of the controller and the subsystem and/or the electric pile.
The simulation system may be built by the method shown in fig. 4, and as shown in fig. 4, the simulation system building method may include:
step 401: and setting the input and output parameter types of the interfaces in the initial device model of the fuel cell based on the preset interface parameter types.
The initial device model is a code or a graph which is formed for a device of the fuel cell and has no device performance and no interface parameter type. In this embodiment, in order to ensure that the test process of the simulation system is performed, the input and output parameter types of the interface in the initial device model need to be set.
Illustratively, the input/output parameter types of the interfaces of each initial device model are preset according to the actual application scenario, and the input/output parameter types of the interfaces in the initial device models are correspondingly set to be the preset parameter types.
Step 402: and simulating the initial device model according to preset performance parameters.
In order to make the simulation system as close as possible to the actual fuel cell, the present embodiment needs to assign the device performance to the corresponding initial device model.
For example, the preset performance parameter is preset according to a device of the fuel cell, and an initial device model corresponding to the device is simulated according to the preset device performance parameter.
The present embodiment does not limit the manner of obtaining the preset performance parameter, for example: the preset performance parameters are determined by inquiring production information of the device, performance information corresponding to the device model or other related information and the like.
The device simulation model for setting the interface parameters is obtained through the steps 401 and 402.
In this embodiment, the sequence of the step 401 and the step 402 is not limited, that is, the input/output parameter type of the interface in the initial device model may be set first, the initial device model may be simulated first according to the preset performance parameter, and the sequence of executing the two steps may be specifically selected according to the actual application scenario.
Step 403: and building the device simulation model into a simulation system based on a preset connection relation.
Illustratively, the preset connection relation is determined according to the connection relation of the components of the fuel cell, and a component simulation model is built into the simulation system according to the connection relation of the components of the fuel cell.
Fig. 5 is a schematic flow chart of another simulation system building method provided by the embodiment of the present invention, and as shown in fig. 5, the method may include:
step 501: and setting the input and output parameter type of the interface in the initial device model based on the preset interface parameters through at least one target software in preset software.
In this embodiment, the interface of the initial device model may be set by one or more target software, for example:
1) When the simulation effect of one piece of simulation software in the preset software on all the devices of the fuel cell is good, the input and output parameter types of the interfaces in all the initial device models can be set through the one piece of simulation software, and then all the initial device models are simulated through the one piece of simulation software in step 502.
2) When any one of the preset software can not simulate all the devices of the fuel cell well, the input and output parameter types of the interfaces in different initial device models can be set through a plurality of simulation software, and then the corresponding initial device models are simulated through the plurality of simulation software in step 502.
Step 502: and simulating the initial device model according to the preset performance parameters through the target software.
The specific implementation manner of step 502 may refer to the above embodiments, and is not described herein again.
The device simulation model for setting the interface parameters is obtained through the steps 501 and 502.
The present embodiment does not limit the sequence of the steps 501 and 502.
Step 503: and building the device simulation model into the simulation system through any software in the preset software based on the preset connection relation.
For example, any software in the target software may be selected to build the device simulation model into the simulation system, or any software in the preset software except the target software may be selected to build the device simulation model into the simulation system.
According to the scheme, the same target software or different target software is selected according to the actual application scene to simulate the initial device model and set the interface to obtain the corresponding device simulation model, so that the simulation effect on each device in the fuel cell can be improved; the device simulation model is built into the simulation system through any software in the preset software, so that the building of the simulation system is more flexible.
Fig. 6 is a schematic flowchart of a further simulation system building method provided by an embodiment of the present invention, and as shown in fig. 6, the method may include:
step 601: and setting input and output parameter types of interfaces of target initial device models in the initial device models based on the preset interface parameters through the first target software, and setting input and output parameter types of interfaces of other initial device models except the target initial device models based on the preset interface parameters through the second target software.
In this embodiment, for a situation that any one of the preset software cannot better simulate all the devices of the fuel cell, a device simulation model corresponding to a target initial device model may be obtained by simulating and interface-setting a target initial device model through preset first target software, and a device simulation model corresponding to another initial device model may be obtained by simulating and interface-setting another initial device model through second target software, which is also described with reference to the simulation system in fig. 1 as an example, for example:
the first target software has a good simulation effect on components corresponding to each component simulation model in the fuel cell stack, controller and subsystem simulation model 121, the initial stack model, the initial control model and each initial component model in the subsystem simulation model 121 are used as target initial device models, and the target initial device models are simulated and interface-set to obtain a control simulation model 110, a component simulation model 1211, a component simulation model 1212, a component simulation model 1213 and a stack simulation model 130;
the second target software has a better effect on simulating other devices of the fuel cell, and the second target software is used for simulating other initial devices and setting interfaces to obtain a component simulation model 1221, a component simulation model 1222, a component simulation model 1223 and a component simulation model 1224.
The division of the target initial device model is only an example and is not a limitation to the embodiment.
Step 602: and simulating the target initial device model according to the preset performance parameters of the target initial device model through the first target software, and simulating the other initial device models according to the preset performance parameters of the other initial device models through the second target software.
The specific implementation manner of step 602 may refer to the foregoing embodiments, and is not described herein again.
The device simulation model for setting the interface parameters is obtained through the above steps 601 and 602.
The present embodiment does not limit the sequence of the step 601 and the step 602.
Step 603: sending device simulation model data corresponding to the other initial device models to the first target software through the second target software, and building all device simulation models into the simulation system through the first target software based on a preset connection relation;
or, sending device simulation model data corresponding to the target initial device model to the second target software through the first target software, and building all device simulation models into the simulation system through the second target software based on a preset connection relation;
or the device simulation model data corresponding to other initial device models are sent to other software except the target software in the preset software through second target software, the device simulation model data corresponding to the target initial device model are sent to other software through first target software, and all device simulation models are built into the simulation system through other software based on a preset connection relation.
In this embodiment, a simulation system may be built through first target software, second target software, or any other software, and the example that the first target software and the other software build the simulation system based on a graph and the second target software builds the simulation system based on a code is described as follows:
1) The second target software sends codes of device simulation models corresponding to other initial device models to the first target software, the first target software analyzes the codes into graphs of the device simulation models corresponding to other initial device models, and the graphs of all the device simulation models are built into a simulation system based on a preset connection relation;
2) The first target software sends the graph of the device simulation model corresponding to the target initial device model to second target software, the second target software analyzes the graph into codes of device simulation models corresponding to other initial device models, and the codes of all device simulation models are built into a simulation system based on a preset connection relation;
3) The first target software sends the graphs of the device simulation models corresponding to the target initial device models to other software, the second target software sends the codes of the device simulation models corresponding to the other initial device models to the other software, the other software analyzes the codes into the graphs of the device simulation models corresponding to the other initial device models, and the graphs of all the device simulation models are built into a simulation system based on the preset connection relation.
The above are only examples of several ways of constructing the simulation system, and other ways of constructing the simulation system are also applicable to the embodiment.
According to the scheme, the device simulation model corresponding to the target initial device model is obtained by simulating and interface setting the target initial device model through the first target software, the device simulation model corresponding to the other initial device model is obtained by simulating and interface setting the other initial device model through the second target software, and the problem that the simulation effect of the first target software on some devices is poor or the simulation effect of the second target software on some devices is poor, so that the problem that the simulation effect of a simulation system is poor is solved. In addition, the device simulation model can be built into a simulation system through any one of the first target software, the second target software or the preset software, so that the building of the simulation system is more flexible, and the requirements of different scenes are met.
Fig. 7 is a schematic flow chart of still another simulation system building method provided in an embodiment of the present invention, where an initial device model in this embodiment includes an initial control model, initial component models of an initial subsystem model, and an initial stack model, and as shown in fig. 7, the method may include:
step 701: and setting input and output parameter types of the interface of the initial electric pile model and the standardized interface of each initial component model based on the standardized type in the preset interface parameters, wherein the standardized type comprises at least one of pressure, temperature, working medium flow and water vapor flow.
In this embodiment, the initial component simulation model of the simulation system outputs the standard parameters through the standardized interface after processing the standard parameters, the standard parameters output by the standardized interface of the previous component simulation model are used as the standard parameters input by the standardized interface of the connected next component simulation model or the connected stack simulation model, and the standard parameters output by the standardized interface of the stack model are used as the input standard parameters of the standardized interface of the connected next component simulation model. If the input and output parameter types of the interface of the initial cell stack model and the standardized interface of each initial component model are not set based on the standardized types, the output parameter type of the standardized interface of the previous component simulation model may be different from the input parameter type of the standardized interface of the connected next component simulation model/the input parameter type of the interface of the connected cell stack simulation model in the test process, and the like, and then the test process can be completed only by performing interface conversion. Therefore, these interfaces need to be set up based on standardized types, such as:
and setting the input and output parameter types of the interface of the initial electric pile model and the standardized interface of each initial component model as pressure, temperature, working medium flow and water vapor flow.
Step 702: and setting the input and output parameter types of the interface of the initial control model based on the control types in the preset interface parameters, and setting the input parameter types of the control interfaces of part or all of the initial component models.
In this embodiment, the control simulation model needs to send a control instruction to part or all of the component simulation models, and therefore, it is also necessary to set input/output parameter types of interfaces of the initial control model, and set input parameter types of control interfaces of the part or all of the initial component models, for example:
the input and output parameter types of the interface of the initial control model are set as output power and rotating speed, the input parameter type of the control interface of one initial component model connected with the initial control model is set as output power, and the input parameter type of the control interface of the other initial component model connected with the initial control model is set as rotating speed.
The above setting manner is only an example, and other setting manners are also applicable to the embodiment of the present invention, and are not described herein again.
Step 703: and simulating the initial device model according to preset performance parameters.
Step 704: and building the device simulation model into a simulation system based on a preset connection relation.
Steps 703-704 are implemented in the same manner as steps 402-403, and are not described herein again.
According to the scheme, the input and output parameter types of the interfaces of the stack simulation model are set on the basis of the standardized types, the input and output parameter types of the standardized interfaces of each part simulation model are set on the basis of the standardized types, and therefore the problems of complexity and time consumption caused by the fact that interface conversion is needed to complete the test process under the conditions that the output parameter type of the standardized interface of the previous part simulation model is different from the input parameter type of the standardized interface of the connected next part simulation model/the input parameter type of the interface of the connected stack simulation model in the test process are avoided. The input and output parameter types of the interface of the control simulation model are set for the interface of the initial control model based on the control type, and the input parameter types of the control interfaces of part or all of the part simulation models are set for the control interfaces of the corresponding part or all of the initial part models based on the control type, so that the part or all of the part simulation models can timely and accurately obtain the control instructions sent by the control simulation model in the test process.
Optionally, the subsystem simulation model further includes pipeline simulation models, and the stack simulation model is connected to the partial component simulation model through a partial pipeline simulation model of the subsystem simulation model.
Fig. 8 is a schematic diagram of a connection relationship between an air circuit subsystem simulation model and a stack simulation model according to an embodiment of the present invention, and as shown in fig. 8, the air circuit subsystem simulation model includes an air compressor simulation model 3221, an intercooler simulation model 3222, a humidifier simulation model 3223, a back pressure valve simulation model 3224, a pipeline simulation model 1, a pipeline simulation model 2, a pipeline simulation model 3, a pipeline simulation model 4, a pipeline simulation model 5, and a pipeline simulation model 6. The pipeline simulation model 1 is connected with the air compressor simulation model 3221, the air compressor simulation model 3221 and the intercooler simulation model 3222 are connected through the pipeline simulation model 2, the intercooler simulation model 3222 is connected with the humidifier simulation model 3223 through the pipeline simulation model 3, the humidifier simulation model 3223 is connected with the cell stack simulation model 130 through the pipeline simulation model 4 and the pipeline simulation model 5, and the humidifier simulation model 3223 is connected with the back pressure valve simulation model 3224 through the pipeline simulation model 6.
As shown in fig. 9, based on the same inventive concept, an embodiment of the present invention provides a fuel cell system simulation test apparatus 900, including: a determination module 901, a processing module 902 and a simulation module 903.
A determining module 901, configured to determine an initial parameter in a test instruction for the fuel cell based on the test instruction;
the determining module 901 is further configured to determine a to-be-tested simulation model corresponding to an identifier included in the test instruction from a device simulation model of a simulation system of the fuel cell, where the to-be-tested simulation model is a part or all of a control simulation model, a component simulation model of a subsystem simulation model, and a stack simulation model included in the device simulation model, the control simulation model is connected with the part or all of the component simulation model of the subsystem simulation model, and the stack simulation model is connected with the part of the component simulation model of the subsystem simulation model;
a processing module 902, configured to input the initial parameter into an input interface of the simulation system, and obtain a test parameter of the device model to be tested in a test process of the simulation system;
the simulation system is built by setting input and output parameter types of an interface in an initial device model of the fuel cell by a simulation module 903 based on preset interface parameter types, simulating the initial device model according to preset performance parameters to obtain a device simulation model with interface parameters, and building the device simulation model based on a preset connection relation.
Optionally, the simulation module 903 sets the input/output parameter type of the interface in the initial device model of the fuel cell based on a preset interface parameter type, and simulates the initial device model according to a preset performance parameter, including:
setting input and output parameter types of an interface in the initial device model based on the preset interface parameters through at least one target software in preset software, and simulating the initial device model according to the preset performance parameters through the target software;
the simulation module 903 builds the device simulation model into the simulation system based on a preset connection relationship, and the simulation system comprises:
and building the device simulation model into the simulation system through any software in the preset software based on the preset connection relation.
Optionally, the target software comprises a first target software and a second target software,
the simulation module 903 sets the input/output parameter type of the interface in the initial device model based on the preset interface parameter through at least one target software in preset software, and simulates the initial device model according to the preset performance parameter through the target software, including:
setting input and output parameter types of interfaces of target initial device models in the initial device models based on the preset interface parameters through the first target software, and setting input and output parameter types of interfaces of other initial device models except the target initial device models based on the preset interface parameters through the second target software; and simulating the target initial device model according to the preset performance parameters of the target initial device model through the first target software, and simulating the other initial device models according to the preset performance parameters of the other initial device models through the second target software.
Optionally, the simulation module 903 builds the device simulation model into the simulation system through any software of the preset software based on the preset connection relationship, where the method includes:
sending device simulation model data corresponding to the other initial device models to the first target software through the second target software, and building all device simulation models into the simulation system through the first target software based on a preset connection relation;
or, sending device simulation model data corresponding to the target initial device model to the second target software through the first target software, and building all device simulation models into the simulation system through the second target software based on a preset connection relation;
or, the device simulation model data corresponding to other initial device models are sent to other software except the target software in the preset software through second target software, the device simulation model data corresponding to the target initial device model are sent to other software through first target software, and all device simulation models are built into the simulation system through other software based on a preset connection relation.
Optionally, the initial device model includes an initial control model, initial component models of the initial subsystem model, and an initial stack model;
the simulation module 903 sets the input/output parameter type of the interface in the initial device model of the fuel cell based on the preset interface parameter type, including:
setting input and output parameter types of the interface of the initial electric pile model and the standardized interface of each initial component model based on standardized types in the preset interface parameters, wherein the standardized types comprise at least one of pressure, temperature, working medium flow and water vapor flow;
and setting the input and output parameter types of the interface of the initial control model based on the control types in the preset interface parameters, and setting the input parameter types of the control interfaces of part or all of the initial component models.
Optionally, the subsystem simulation models include a hydrogen gas circuit subsystem simulation model, an air circuit subsystem simulation model, and a cooling gas circuit subsystem simulation model.
Optionally, the subsystem simulation model further includes pipeline simulation models, and the stack simulation model is connected to the partial component simulation model through a partial pipeline simulation model of the subsystem simulation model.
Since the apparatus is the apparatus in the method in the embodiment of the present invention, and the principle of the apparatus for solving the problem is similar to that of the method, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 10, based on the same inventive concept, an embodiment of the present invention provides a fuel cell system simulation test apparatus 1000, including: a processor 1001 and a memory 1002;
a memory 1002 for storing computer programs executed by the processor 1001. The memory 1002 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 1002 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD), or the memory 1002 may be any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 1002 may be a combination of the above.
The processor 1001 may include one or more Central Processing Units (CPUs), graphics Processing Units (GPUs), or digital Processing units (dsps), among others.
The embodiment of the present invention does not limit the specific connection medium between the memory 1002 and the processor 1001. In fig. 10, the memory 1002 and the processor 1001 are connected by a bus 1003, the bus 1003 is shown by a thick line in fig. 10, and the connection manner between other components is only schematically illustrated and is not limited. The bus 1003 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
Wherein the memory stores program code that, when executed by the processor, causes the processor to perform the following:
determining initial parameters in a test instruction for the fuel cell based on the test instruction;
determining a simulation model to be tested corresponding to the identifier contained in the test instruction from a device simulation model of a simulation system of the fuel cell, wherein the simulation model to be tested is a part or all of a control simulation model, a part simulation model of a subsystem simulation model and a cell stack simulation model contained in the device simulation model, the control simulation model is connected with the part or all part simulation models of the subsystem simulation model, and the cell stack simulation model is connected with the part simulation model of the subsystem simulation model;
inputting the initial parameters into an input interface of the simulation system, and acquiring test parameters of the device model to be tested in the test process of the simulation system;
the simulation system is used for setting the input and output parameter types of an interface in an initial device model of the fuel cell based on the preset interface parameter types, simulating the initial device model according to the preset performance parameters to obtain a device simulation model with the interface parameters, and building the device simulation model based on the preset connection relation.
Optionally, the processor specifically executes the following processes:
setting input and output parameter types of an interface in the initial device model based on the preset interface parameters through at least one target software in preset software, and simulating the initial device model according to the preset performance parameters through the target software;
and building the device simulation model into the simulation system through any software in the preset software based on the preset connection relation.
Optionally, the target software comprises a first target software and a second target software,
the processor specifically performs the following processes:
setting input and output parameter types of interfaces of target initial device models in the initial device models based on the preset interface parameters through the first target software, and setting input and output parameter types of interfaces of other initial device models except the target initial device models based on the preset interface parameters through the second target software; and simulating the target initial device model according to the preset performance parameters of the target initial device model through the first target software, and simulating the other initial device models according to the preset performance parameters of the other initial device models through the second target software.
Optionally, the processor specifically executes the following process:
sending device simulation model data corresponding to the other initial device models to the first target software through the second target software, and building all device simulation models into the simulation system through the first target software based on a preset connection relation;
or the device simulation model data corresponding to the target initial device model is sent to the second target software through the first target software, and all device simulation models are built into the simulation system through the second target software based on a preset connection relation;
or, the device simulation model data corresponding to other initial device models are sent to other software except the target software in the preset software through second target software, the device simulation model data corresponding to the target initial device model are sent to other software through first target software, and all device simulation models are built into the simulation system through other software based on a preset connection relation.
Optionally, the initial device model includes an initial control model, initial component models of the initial subsystem model, and an initial stack model;
the processor specifically performs the following processes:
setting input and output parameter types of the interface of the initial electric pile model and the standardized interface of each initial component model based on standardized types in the preset interface parameters, wherein the standardized types comprise at least one of pressure, temperature, working medium flow and water vapor flow;
and setting the input and output parameter types of the interface of the initial control model based on the control types in the preset interface parameters, and setting the input parameter types of the control interfaces of part or all of the initial component models.
Optionally, the subsystem simulation models include a hydrogen gas circuit subsystem simulation model, an air circuit subsystem simulation model, and a cooling gas circuit subsystem simulation model.
Optionally, the subsystem simulation model further includes pipeline simulation models, and the stack simulation model is connected to the partial component simulation model through a partial pipeline simulation model of the subsystem simulation model.
Since the device is a device for executing the method in the embodiment of the present invention, and the principle of the device for solving the problem is similar to that of the method, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
Embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the fuel cell system simulation test method as described above. The readable storage medium may be a nonvolatile readable storage medium, among others.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the invention. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the present application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
While the preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A fuel cell system simulation test method, comprising:
determining initial parameters in the test instructions based on the test instructions for the fuel cell;
determining a simulation model to be tested corresponding to the identifier contained in the test instruction from a device simulation model of a simulation system of the fuel cell, wherein the simulation model to be tested is a part or all of a control simulation model, a part simulation model of a subsystem simulation model and a cell stack simulation model contained in the device simulation model, the control simulation model is connected with the part or all part simulation models of the subsystem simulation model, and the cell stack simulation model is connected with the part simulation model of the subsystem simulation model;
inputting the initial parameters into an input interface of the simulation system, and acquiring test parameters of the device model to be tested in the test process of the simulation system;
the simulation system is used for setting the input and output parameter types of an interface in an initial device model of the fuel cell based on the preset interface parameter types, simulating the initial device model according to the preset performance parameters to obtain a device simulation model with the interface parameters, and building the device simulation model based on the preset connection relation.
2. The method of claim 1,
the setting of the input and output parameter types of the interfaces in the initial device model of the fuel cell based on the preset interface parameter types and the simulation of the initial device model according to the preset performance parameters comprise:
setting input and output parameter types of an interface in the initial device model based on the preset interface parameters through at least one target software in preset software, and simulating the initial device model according to the preset performance parameters through the target software;
building the device simulation model into the simulation system based on a preset connection relation, wherein the simulation system comprises:
and building the device simulation model into the simulation system through any software in the preset software based on the preset connection relation.
3. The method of claim 2, wherein the target software comprises a first target software and a second target software,
the setting, by at least one target software in the preset software, the input/output parameter type of the interface in the initial device model based on the preset interface parameter, and the simulating, by the target software, the initial device model according to the preset performance parameter include:
setting input and output parameter types of interfaces of target initial device models in the initial device models based on the preset interface parameters through the first target software, and setting input and output parameter types of interfaces of other initial device models except the target initial device models based on the preset interface parameters through the second target software; and simulating the target initial device model according to the preset performance parameters of the target initial device model through the first target software, and simulating the other initial device models according to the preset performance parameters of the other initial device models through the second target software.
4. The method according to claim 3, wherein building the device simulation model into the simulation system based on the preset connection relation through any one of the preset software comprises:
sending the device simulation model data corresponding to the other initial device models to the first target software through the second target software, and building all device simulation models into the simulation system through the first target software based on a preset connection relation;
or, sending device simulation model data corresponding to the target initial device model to the second target software through the first target software, and building all device simulation models into the simulation system through the second target software based on a preset connection relation;
or, the device simulation model data corresponding to other initial device models are sent to other software except the target software in the preset software through second target software, the device simulation model data corresponding to the target initial device model are sent to other software through first target software, and all device simulation models are built into the simulation system through other software based on a preset connection relation.
5. The method of any one of claims 1 to 4, wherein the initial device model comprises an initial control model, initial component models of an initial subsystem model, and an initial stack model;
the setting of the input and output parameter types of the interface in the initial device model of the fuel cell based on the preset interface parameter types comprises the following steps:
setting input and output parameter types of the interface of the initial electric pile model and the standardized interface of each initial component model based on standardized types in the preset interface parameters, wherein the standardized types comprise at least one of pressure, temperature, working medium flow and water vapor flow;
and setting the input and output parameter types of the interface of the initial control model based on the control types in the preset interface parameters, and setting the input parameter types of the control interfaces of part or all of the initial component models.
6. The method of any one of claims 1-4, wherein the subsystem simulation models include a hydrogen circuit subsystem simulation model, an air circuit subsystem simulation model, and a cooling gas circuit subsystem simulation model.
7. The method according to any one of claims 1 to 4, wherein the subsystem simulation models further include respective pipeline simulation models, and the stack simulation model is connected to the partial component simulation model through a partial pipeline simulation model of the subsystem simulation model.
8. A fuel cell simulation test apparatus, comprising:
a determination module for determining initial parameters in a test instruction for the fuel cell based on the test instruction;
the determining module is further configured to determine a to-be-tested simulation model corresponding to an identifier included in the test instruction from a device simulation model of a simulation system of the fuel cell, where the to-be-tested simulation model is a part or all of a control simulation model, a component simulation model of a subsystem simulation model, and a stack simulation model included in the device simulation model, the control simulation model is connected with the part or all of the component simulation model of the subsystem simulation model, and the stack simulation model is connected with the part of the component simulation model of the subsystem simulation model;
the processing module is used for inputting the initial parameters into an input interface of the simulation system and acquiring test parameters of the device model to be tested in the test process of the simulation system;
the simulation system is formed by setting input and output parameter types of an interface in an initial device model of the fuel cell by a simulation module based on preset interface parameter types, simulating the initial device model according to preset performance parameters to obtain a device simulation model with interface parameters, and building the device simulation model based on a preset connection relation.
9. A fuel cell system simulation test apparatus, characterized by comprising: a processor and a memory;
wherein the memory stores program code which, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010618012.6A 2020-06-30 2020-06-30 Simulation test method, device, equipment and storage medium for fuel cell system Active CN111708284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010618012.6A CN111708284B (en) 2020-06-30 2020-06-30 Simulation test method, device, equipment and storage medium for fuel cell system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010618012.6A CN111708284B (en) 2020-06-30 2020-06-30 Simulation test method, device, equipment and storage medium for fuel cell system

Publications (2)

Publication Number Publication Date
CN111708284A CN111708284A (en) 2020-09-25
CN111708284B true CN111708284B (en) 2023-03-14

Family

ID=72544064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010618012.6A Active CN111708284B (en) 2020-06-30 2020-06-30 Simulation test method, device, equipment and storage medium for fuel cell system

Country Status (1)

Country Link
CN (1) CN111708284B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113255244B (en) * 2021-05-13 2023-06-16 翁鹏程 Fuel cell system simulation test platform, method and storage medium
CN114220995B (en) * 2022-02-21 2022-05-17 中国汽车技术研究中心有限公司 Fuel cell humidifier modeling method, apparatus and medium
CN115577475B (en) * 2022-11-18 2023-03-24 北京捷世智通科技股份有限公司 Method and system for obtaining initial value of thermal simulation parameter of radiator

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041553B1 (en) * 2008-02-29 2011-10-18 Xilinx, Inc. Generic software simulation interface for integrated circuits
DE102013020436A1 (en) * 2013-12-06 2015-06-11 Daimler Ag Method for testing a fuel cell system for a motor vehicle and test stand
WO2019121132A1 (en) * 2017-12-18 2019-06-27 Avl List Gmbh Method and test bench for carrying out a test run for a fuel cell
CN110459785A (en) * 2019-08-16 2019-11-15 上海电气集团股份有限公司 The test macro and test method of fuel cell

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041553B1 (en) * 2008-02-29 2011-10-18 Xilinx, Inc. Generic software simulation interface for integrated circuits
DE102013020436A1 (en) * 2013-12-06 2015-06-11 Daimler Ag Method for testing a fuel cell system for a motor vehicle and test stand
WO2019121132A1 (en) * 2017-12-18 2019-06-27 Avl List Gmbh Method and test bench for carrying out a test run for a fuel cell
CN110459785A (en) * 2019-08-16 2019-11-15 上海电气集团股份有限公司 The test macro and test method of fuel cell

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
燃料电池仿真模型与试验验证;郭斌等;《汽车工程》(第02期);全文 *
燃料电池汽车空气系统的仿真与验证;刘冬安等;《电池工业》(第03期);全文 *

Also Published As

Publication number Publication date
CN111708284A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN111708284B (en) Simulation test method, device, equipment and storage medium for fuel cell system
CN107018523A (en) WIFI module method of testing and device
CN110134795A (en) Generate method, apparatus, computer equipment and the storage medium of validation problem group
CN109813999A (en) A kind of Fault Diagnosis of Distribution Network algorithm automatically testing platform, method and application
CN103676663A (en) A wind generating set combined simulation system communication interface realization method
CN113221362A (en) Satellite launching field performance test subject purpose selection method and device and electronic equipment
CN112487588B (en) Wind power plant reactive voltage regulation function test method, terminal equipment and storage medium
CN113675878A (en) Offshore wind farm grid-connected performance testing method and system, computer equipment and medium
CN110009100B (en) Calculation method of user-defined operator and related product
CN111190786A (en) UVM-based test framework, test platform and test method
CN114357806B (en) Dual-mode simulation method and device of fuel cell stack based on material flow interface
CN116360294A (en) Simulation method and device based on active power distribution network
CN113987840B (en) Modelica-based model splitting method, Modelica-based model splitting equipment and storage medium
CN109521693A (en) A kind of wind power plant electro-magnetic transient real-time emulation method and device
CN113238897B (en) System-level test method and device for chip, computer equipment and storage medium
CN110398922B (en) Building automatic control system and configuration method, device and equipment thereof
CN114548002A (en) Simulation analysis calculation method for action time sequence of protection schematic diagram
CN110135592B (en) Classification effect determining method and device, intelligent terminal and storage medium
CN112417677A (en) Distribution area adjusting method, device, equipment and storage medium
CN111541249B (en) Power supply capacity evaluation method, device and equipment for multi-energy power distribution network
CN115800362B (en) Method, device and processor for determining simulation parameters of wind farm
CN117215205B (en) DC system control parameter analysis method based on decision tree and ISS theory
CN113158405B (en) Coupling method, visual platform and simulation method of electric heating system
CN116306386A (en) Action time sequence simulation method and system based on transformer substation protection circuit
Tian et al. A Data-driven Methodology for Transient Stability Assessment Based on Broad Learning System

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant