Battery system inconsistency simulation method based on Modelica language

Through the simulation method based on physical modeling of the Modelica language, the problem of complex model building and low simulation efficiency in battery system inconsistency simulation is solved, and more intuitive and easy-to-understand model parameter adjustment and efficient simulation are achieved, which improves the simulation results of battery system Accuracy and compatibility.

CN119106555APending Publication Date: 2024-12-10BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411193821.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The existing battery system inconsistency simulation method model is complex to build, have low simulation efficiency and high learning threshold, making it difficult to effectively solve the energy storage limitations and shorten life problems caused by the difference in single battery capacity in the battery pack.

Method used

The simulation method based on physical modeling is adopted by the Modelica language. The single battery pack model is built through the Modelica model library, the battery cell and thermal related parameters are set, the Model class is used for position arrangement and connection, the parameters are adjusted for simulation operation, and the model is simplified. Adjust parameters to improve simulation efficiency.

Benefits of technology

The model construction process is simplified, the threshold for learning and use is lowered, the simulation efficiency is improved, the simulation results are more in line with the actual physical circuit experimental results, and the model compatibility and universal applicability are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119106555A_ABST
    Figure CN119106555A_ABST
Patent Text Reader

Abstract

The invention discloses a battery system inconsistency simulation method based on a Modelica language, and belongs to the field of battery modeling. The method comprises the following steps: building a single battery pack model by utilizing a model component in a Modelica model library, and setting default parameter values in the single battery pack model; performing position arrangement and series-parallel connection on the plurality of single battery models by using a Model class so as to package and establish a battery system model; and based on preset parameters of each single battery pack in an inconsistency simulation experiment, adjusting parameter values of each single battery pack model in the battery system model so as to perform simulation operation on the battery system model under different scene parameters, and determining an inconsistency simulation result of the battery system. According to the simulation method of the scheme, the model building process can be simplified, the learning use threshold can be reduced, the simulation difficulty can be reduced, and the simulation efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of battery modeling, and in particular to a battery system inconsistency simulation method based on Modelica language. Background Art

[0002] In the application of electric vehicles, single cells are usually expanded into battery packs in series and parallel to meet the long-range driving requirements of the vehicle. People often achieve more efficient battery functions by designing battery management systems, and the inconsistency problem during battery use is an important problem to be solved in the process of battery management. Battery inconsistency refers to the inevitable differences between single cells due to production and manufacturing reasons. When the capacity of a single cell in the battery pack is exhausted, the capacity of other single cells cannot be fully utilized. That is, the single cell with lower capacity limits the energy storage capacity of the entire battery pack, and will cause the small capacity battery to be overcharged and over-discharged every time, resulting in a shortened life. The end of the life of a single cell will also affect the performance of the entire series battery pack. Therefore, the study of battery consistency plays a very important role in the development of the entire power battery system.

[0003] At present, the modeling and simulation of battery system inconsistency mainly uses traditional modeling and simulation platforms such as Matlab and Simulink to model and analyze the power battery model. However, simulation platforms such as Simulink are based on mathematical modeling to establish various equivalent models to identify model parameters and perform high-precision calculations. In some simulations with high precision requirements, it is also necessary to design and calculate high-order equivalent circuit models. The entire modeling and simulation process requires the construction of mathematical models for different single batteries. The modeling and simulation process is relatively cumbersome and difficult for newcomers in the research field to learn. It puts forward high knowledge and technical requirements for learners and researchers.

[0004] Therefore, a new battery system inconsistency simulation method is urgently needed. Summary of the invention

[0005] The present invention provides a battery system inconsistency simulation method based on Modelica language, which can solve the problems of complex model construction, low simulation efficiency, and high learning threshold in the existing battery system inconsistency simulation method. The technical solution is as follows:

[0006] On the one hand, a battery system inconsistency simulation method based on Modelica language is provided, which is applied to the Modelica language environment, and the method includes:

[0007] A single-cell battery pack model is constructed using the model components in the Modelica model library, and default parameter values ​​are set in the single-cell battery pack model; wherein the parameters at least include cell electrical parameters and thermal-related parameters, and the single-cell battery pack model at least contains a lithium battery pack, a signal transmission module, and a thermal model module, and the thermal model module is used to predict the temperature change of the single-cell battery pack under different scenario parameters;

[0008] Using the Model class, multiple single-cell battery models are arranged in position and connected in series and parallel to encapsulate and assemble a battery system model;

[0009] Based on the preset parameters of each single battery pack in the inconsistency simulation experiment, the parameter values ​​of each single battery pack model in the battery system model are adjusted to simulate the battery system model under different scenario parameters to determine the inconsistency simulation results of the battery system.

[0010] On the other hand, a battery system inconsistency simulation device based on Modelica language is provided, which is used to implement the above method and is applied in the Modelica language environment. The device comprises:

[0011] A building unit, used to build a single battery pack model using model components in the Modelica model library, and set default parameter values ​​in the single battery pack model; wherein the parameters at least include cell electrical parameters and thermal related parameters, the single battery pack model at least contains a lithium battery pack, a signal transmission module and a thermal model module, and the thermal model module is used to predict the temperature change of the single battery pack under different scenario parameters;

[0012] A connection unit, used to use the Model class to arrange the positions of the plurality of single battery models and connect them in series and parallel to encapsulate and build a battery system model;

[0013] The simulation unit is used to adjust the parameter values ​​of each single battery pack model in the battery system model based on the preset parameters of each single battery pack in the inconsistency simulation experiment, so as to simulate the battery system model under different scenario parameters and determine the inconsistency simulation results of the battery system.

[0014] On the other hand, a computer device is provided, which includes a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the steps of the above-mentioned method.

[0015] On the other hand, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method are implemented.

[0016] On the other hand, a computer program product is provided, comprising a computer program, wherein the computer program implements the steps of the above method when executed by a processor.

[0017] The technical solution provided by the present invention can at least bring the following beneficial effects:

[0018] The single battery pack model is first established using the Modelica language and the single battery pack parameters are set for packaging. The packaged single battery pack model is then combined into a complete battery system model. The parameters of each single battery pack model are modified based on the initial parameter differences of each single battery and the differences in thermal related parameters caused by different locations and environments. Since the Modelica language environment has the characteristics of non-causal modeling, it is a simulation model based on physical modeling. It is more intuitive and easy to understand in form, more in line with the researchers' intuitive understanding of the model, and more convenient for the modification and adjustment of various parameters of the model, which simplifies the complex adjustment of model parameters that may occur during the research process. The simulation calculation efficiency is higher, and the simulation results are more consistent with the experimental results of the actual physical circuit. In addition, the C code generated after the simulation compilation is completed on the target platform can be executed on different platforms, which improves the compatibility and universal applicability of the model and code. Therefore, this simulation method can not only simplify the model building process and reduce the threshold for learning and use, but also reduce the difficulty of simulation and improve the efficiency of simulation. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 It is a flow chart of a battery system inconsistency simulation method based on Modelica language provided by one embodiment of the present invention;

[0021] Figure 2 It is a schematic diagram of the composition and data flow of a single-cell battery pack model provided by an embodiment of the present invention;

[0022] Figure 3 It is a composition and data flow diagram of a battery system model provided by an embodiment of the present invention;

[0023] Figure 4 It is a structural diagram of a battery system inconsistency simulation device based on Modelica language provided by one embodiment of the present invention;

[0024] Figure 5 It is a hardware architecture diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0026] The specific implementation of the above concept is described below.

[0027] Please refer to Figure 1 , a battery system inconsistency simulation method based on Modelica language provided by an embodiment of the present invention is applied to the Modelica language environment, and the method includes:

[0028] Step 100, using the model components in the Modelica model library to build a single battery pack model, and setting default parameter values ​​in the single battery pack model; wherein the parameters at least include cell electrical parameters and thermal related parameters, and the single battery pack model at least contains a lithium battery pack, a signal transmission module and a thermal model module, and the thermal model module is used to predict the temperature change of the single battery pack under different scenario parameters;

[0029] Step 102, using the Model class to arrange the positions of multiple single battery models and connect them in series and parallel to encapsulate and build a battery system model;

[0030] Step 104, based on the preset parameters of each single battery pack in the inconsistency simulation experiment, adjust the parameter values ​​of each single battery pack model in the battery system model to simulate the battery system model under different scenario parameters to determine the inconsistency simulation result of the battery system.

[0031] In the embodiment of the present invention, the Modelica language is used to first establish a single battery pack model and set the single battery parameters for packaging, and then the packaged single battery pack model is combined into a complete battery system model, and the parameters of each single battery pack model are modified based on the initial parameter difference of each single battery and the difference in thermal related parameters caused by different locations and environments. Since the Modelica language environment has the characteristics of non-causal modeling, it is a simulation model based on physical modeling, which is more intuitive and easy to understand in form, more in line with the researchers' intuitive understanding of the model, and more convenient for the modification and adjustment of each parameter of the model, simplifying the complex adjustment of model parameters that may occur during the research process, and the simulation calculation efficiency is higher, and the simulation results are more in line with the experimental results of the actual physical circuit. And the C code generated after the simulation compilation is completed on the target platform can be executed on different platforms, which improves the compatibility and universal applicability of the model and code. Therefore, the simulation method can not only simplify the model building process and reduce the threshold for learning and use, but also reduce the difficulty of simulation and improve the efficiency of simulation.

[0032] Described below Figure 1 How the various steps are performed.

[0033] For step 100:

[0034] In some implementations, step 100 may include:

[0035] Call the cell model in the Modelica model library, and set the cell electrical parameters and thermal parameters in the electrical submodule and thermal submodule of the cell model respectively;

[0036] Call the battery module model in the Modelica model library to generate a lithium battery pack using multiple battery cell models;

[0037] A signal transmission module is formed by using a signal receiver and a ground pin, and a signal interface is set for the signal transmission module;

[0038] Establish a thermal model module and set up a thermal conversion interface for connecting to a lithium battery pack;

[0039] Connect the lithium battery pack, signal transmission module and thermal model module, and set the positive and negative electrode interfaces;

[0040] Use the Block class to encapsulate the lithium battery pack, signal transmission module and thermal model module to obtain a single battery pack model.

[0041] In an embodiment of the present invention, the battery cell electrical parameters include at least: SOC starting value, maximum capacity, OCV coefficient and power supply internal resistance coefficient; the thermal related parameters include at least: battery cell starting temperature, thermal conductivity between the battery cell and the shell, and module shell temperature.

[0042] In this embodiment, reference can be made to Figure 2 The composition and data flow diagram of the single battery pack model. Select the vehicle battery model library (TABattery) in the model library. The model library includes battery cell models, battery module models, battery pack models, etc. First, call the battery cell model in the Modelica model library, and set the battery cell electrical parameters and thermal related parameters in the electrical submodule and thermal submodule of the battery cell model respectively. Then, call the battery module model in the Modelica model library to generate a lithium battery pack using multiple battery cell models; use the signal receiver and the ground pin to form a signal transmission module, and set the signal interface for the signal transmission module; finally, establish a thermal model module, and set the thermal conversion interface for connecting to the lithium battery pack, then connect the lithium battery pack, the signal transmission module and the thermal model module, and set the positive and negative electrode interfaces, then use the Block class to encapsulate the lithium battery pack, the signal transmission module and the thermal model module, and you can get the following Figure 2 The single cell battery pack model is shown.

[0043] In some embodiments, the thermal model module predicts the temperature change of the single battery pack under different scenario parameters in the following manner:

[0044] Get the ambient temperature in the current scene parameters to calculate the conduction heat loss and convection heat loss, and get the total heat loss equation;

[0045] Obtain the real-time voltage and current of the lithium battery pack and calculate heat generation;

[0046] A heat balance equation is constructed based on the total heat loss equation and heat generation to calculate the current temperature of the single battery pack.

[0047] In this embodiment, the Joule heat caused by the electrochemical reaction and the internal resistance of the power battery during the charging and discharging process will cause the battery to generate heat during operation, causing the battery's operating temperature to rise continuously. The battery's temperature will affect its electrochemical performance, and the battery will accelerate aging and shorten its service life when operating at high temperatures. Therefore, in order to more accurately simulate the inconsistency of each single cell, when constructing a single cell battery pack model, a thermal model module needs to be established in the single cell battery pack model. By setting a thermal conversion interface for the lithium battery pack and connecting it to the thermal model module, the thermal model part of the battery is simulated and tested, so that the thermal model module can predict the temperature changes of each single cell battery pack model under different operating conditions based on the inconsistency parameters of each single cell battery pack model, thereby involving an effective thermal management system to prevent thermal runaway.

[0048] Specifically, in the embodiment of the present invention, the real-time temperature of the single battery pack during operation is calculated by the following formula:

[0049]

[0050] In the formula,

[0051]

[0052] Where ρ is the density, C p is the specific heat capacity, V is the volume of the single battery pack, T is the current temperature of the single battery pack, Q gen is the heat generation, Q loss is the total amount of heat loss, I is the real-time current, V is the real-time voltage, Q conv is the convective heat loss, Q cond is the conduction heat loss, h is the convective heat transfer coefficient; A is the surface area of ​​the single battery pack, T amb is the ambient temperature and k is the thermal conductivity.

[0053] In this embodiment, the thermal model module takes into account the heat generated by the battery during the charging and discharging process, as well as the heat dissipated through different pathways, including convection and conduction. The thermal model of the power battery includes a variety of heat transfer mechanisms, taking into full account the electrochemical reactions, material properties, geometric structures, and external environmental conditions inside the battery. The above formula can be used to predict the temperature distribution of each single cell, thereby optimizing the thermal management system of the battery to ensure that the battery operates within a safe operating temperature range. Therefore, in the process of modeling the power battery, this embodiment models the heat conversion part of the model according to the principles of the thermal model to ensure accurate simulation of the operating environment of the battery.

[0054] Regarding step 102:

[0055] After the single battery pack model is established, a new Model class is established in Modelica. According to the structure and organizational connection method of the battery pack required for the study, the single battery pack models are reasonably arranged and connected in series and parallel. The signal transmission modules and thermal model modules in each single battery pack model are connected through various defined interfaces to form a complete data flow and input and output signals. The complete battery system model is as follows: Figure 3 shown.

[0056] Regarding step 104:

[0057] In some embodiments, the step of “adjusting the parameter value of each single battery pack model in the battery system model based on the preset parameters of each single battery pack in the inconsistency simulation experiment” in step 104 includes:

[0058] Based on the preset parameters of each single battery pack in the inconsistency simulation experiment, the SOC starting value, OCV coefficient, power supply internal resistance coefficient of each single battery pack model in the battery system model, the difference in the starting temperature of the battery cell caused by the different location and environment of the single battery pack, and the difference in the thermal conductivity coefficient between the battery cell and the shell caused by the different location of the single battery pack are adjusted.

[0059] In this embodiment, in order to study the inconsistency problem of the battery system, on the basis of using the same single cell battery pack model, inconsistency related factors are introduced, including the difference in initial parameters of different single cell battery packs (SOC starting value and OCV coefficient, power supply internal resistance coefficient), the starting temperature of the battery cell caused by the different locations and environments, and the difference in heat dissipation conditions caused by the different locations of the single cells (heat transfer coefficient between the battery cell and the casing), and the battery cell electrical parameters and thermal related parameters in each single cell battery pack model are modified. The model parameters of each single cell battery pack are modified through related factors to establish a battery system model that can reflect the inconsistency of the battery system.

[0060] After the battery system parameters are set, set the simulation scenario parameters, and set the external environment parameters according to the scenarios required for the simulation, such as the charge and discharge rate, operating environment temperature, etc., to simulate the battery system model under different scenario parameters. Simulate the battery system model under different scenario parameters, observe and analyze the changes in the model parameters of each single battery pack in the battery model, and compare the results to observe the inconsistency of the battery system when each battery cell in the battery system model is running under different scenarios. For example, whether there are differences in the rate of change of the SOC of different single battery packs during operation, and the impact of these parameter differences on the performance of the entire battery pack, determine the inconsistency simulation results of the battery system.

[0061] In some implementations, after determining the inconsistency simulation result of the battery system, the method further includes:

[0062] The inconsistency simulation results are compared with the actual experimental results of the battery system, and the battery system model and parameters are modified and iterated based on the comparison results until a battery system model that meets expectations is obtained.

[0063] In this embodiment, after the simulation is completed, the final analysis results are compared with the results of the actual battery system experiment to verify the accuracy and effectiveness of the established model and the set inconsistency conditions. After the verification results, the model and parameters are modified and iterated so that the established model can more effectively reflect the actual operating conditions of the battery system.

[0064] Please refer to Figure 4The embodiment of the present invention provides a battery system inconsistency simulation device based on Modelica language, which is used to implement the method of any embodiment in the specification and is applied in the Modelica language environment. The device includes:

[0065] A building unit 401 is used to build a single battery pack model using model components in the Modelica model library, and set default parameter values ​​in the single battery pack model; wherein the parameters at least include cell electrical parameters and thermal related parameters, and the single battery pack model at least contains a lithium battery pack, a signal transmission module and a thermal model module, and the thermal model module is used to predict the temperature change of the single battery pack under different scenario parameters;

[0066] A connection unit 402 is used to use the Model class to arrange the positions of multiple single battery models and connect them in series and parallel to encapsulate and build a battery system model;

[0067] The simulation unit 403 is used to adjust the parameter values ​​of each single battery pack model in the battery system model based on the preset parameters of each single battery pack in the inconsistency simulation experiment, so as to simulate the battery system model under different scenario parameters and determine the inconsistency simulation results of the battery system.

[0068] In one embodiment of the present invention, after executing the inconsistency simulation results of the battery system, the simulation unit 403 is also used to: compare the inconsistency simulation results with the actual experimental results of the battery system, so as to modify and iterate the battery system model and parameters based on the comparison results until a battery system model that meets expectations is obtained.

[0069] In one embodiment of the present invention, the building unit 401 is used to execute:

[0070] Call the cell model in the Modelica model library, and set the cell electrical parameters and thermal parameters in the electrical submodule and thermal submodule of the cell model respectively;

[0071] Call the battery module model in the Modelica model library to generate a lithium battery pack using multiple battery cell models;

[0072] A signal transmission module is formed by using a signal receiver and a ground pin, and a signal interface is set for the signal transmission module;

[0073] Establish a thermal model module and set up a thermal conversion interface for connecting to a lithium battery pack;

[0074] Connect the lithium battery pack, signal transmission module and thermal model module, and set the positive and negative electrode interfaces;

[0075] Use the Block class to encapsulate the lithium battery pack, signal transmission module and thermal model module to obtain a single battery pack model.

[0076] In one embodiment of the present invention, the thermal model module of the building unit 401 predicts the temperature change of the single battery pack under different scenario parameters in the following manner:

[0077] Get the ambient temperature in the current scene parameters to calculate the conduction heat loss and convection heat loss, and get the total heat loss equation;

[0078] Obtain the real-time voltage and current of the lithium battery pack and calculate heat generation;

[0079] A heat balance equation is constructed based on the total heat loss equation and heat generation to calculate the current temperature of the single battery pack.

[0080] In one embodiment of the present invention, the real-time temperature of the single battery pack in the building unit 401 during operation is calculated by the following formula:

[0081]

[0082] In the formula,

[0083]

[0084] Where ρ is the density, C p is the specific heat capacity, V is the volume of the single battery pack, T is the current temperature of the single battery pack, Q gen is the heat generation, Q loss is the total amount of heat loss, I is the real-time current, V is the real-time voltage, Q conv is the convective heat loss, Q cond is the conduction heat loss, h is the convective heat transfer coefficient; A is the surface area of ​​the single battery pack, T amb is the ambient temperature and k is the thermal conductivity.

[0085] In one embodiment of the present invention, the battery cell electrical parameters in the building unit 401 include at least: SOC starting value, maximum capacity, OCV coefficient and power supply internal resistance coefficient; the thermal related parameters include at least: battery cell starting temperature, thermal conductivity between the battery cell and the shell and module shell temperature;

[0086] When the simulation unit 403 adjusts the parameter values ​​of each single battery pack model in the battery system model based on the preset parameters of each single battery pack in the inconsistency simulation experiment, it is used to: adjust the SOC starting value, OCV coefficient, power supply internal resistance coefficient, the difference in starting temperature of the battery cell caused by the different location and environment of the single battery pack, and the difference in thermal conductivity between the battery cell and the outer casing caused by the different location of the single battery pack, of each single battery pack model in the battery system model based on the preset parameters of each single battery pack in the inconsistency simulation experiment.

[0087] It should be noted that: the vehicle multi-body dynamics modeling and analysis device based on Modelica provided in the above embodiment is only illustrated by the division of the above functional units. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. In addition, the above device embodiment and the method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0088] The embodiment of the present application also provides a computer device, please refer to Figure 5 The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the vehicle multi-body dynamics modeling method based on Modelica provided by the above-mentioned method embodiments.

[0089] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the Modelica-based vehicle multi-body dynamics modeling method provided by the above-mentioned method embodiments.

[0090] An embodiment of the present application also provides a computer program product, which includes a computer program. A processor of a computer device reads the computer program from a computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the Modelica-based vehicle multi-body dynamics modeling method described in any of the above embodiments.

[0091] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0092] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0093] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0094] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A battery system inconsistency simulation method based on Modelica language, characterized in that: Applied in the Modelica language environment, the method comprises: A single-cell battery pack model is constructed using the model components in the Modelica model library, and default parameter values ​​are set in the single-cell battery pack model; wherein the parameters at least include cell electrical parameters and thermal-related parameters, and the single-cell battery pack model at least contains a lithium battery pack, a signal transmission module, and a thermal model module, and the thermal model module is used to predict the temperature change of the single-cell battery pack under different scenario parameters; Using the Model class, multiple single-cell battery models are arranged in position and connected in series and parallel to encapsulate and assemble a battery system model; Based on the preset parameters of each single battery pack in the inconsistency simulation experiment, the parameter values ​​of each single battery pack model in the battery system model are adjusted to simulate the battery system model under different scenario parameters to determine the inconsistency simulation results of the battery system.

2. The method according to claim 1, characterized in that After determining the inconsistency simulation result of the battery system, the method further includes: The inconsistency simulation results are compared with the actual experimental results of the battery system, and the battery system model and parameters are modified and iterated based on the comparison results until a battery system model that meets expectations is obtained.

3. The method according to claim 1, characterized in that The method of using the model components in the Modelica model library to build a single battery pack model and setting default parameter values ​​in the single battery pack model includes: Call the cell model in the Modelica model library, and set the cell electrical parameters and thermal parameters in the electrical submodule and thermal submodule of the cell model respectively; Calling the battery module model in the Modelica model library to generate a lithium battery pack using a plurality of the battery cell models; A signal transmission module is formed by using a signal receiver and a ground pin, and a signal interface is provided for the signal transmission module; Establishing a thermal model module and providing a thermal conversion interface for connecting to the lithium battery pack; Connect the lithium battery pack, signal transmission module and thermal model module, and set the positive and negative electrode interfaces; The lithium battery pack, the signal transmission module and the thermal model module are encapsulated using the Block class to obtain a single battery pack model.

4. The method according to claim 1, characterized in that The thermal model module predicts the temperature change of the single battery pack under different scenario parameters in the following way: Get the ambient temperature in the current scene parameters to calculate the conduction heat loss and convection heat loss, and get the total heat loss equation; Obtaining the real-time voltage and current of the lithium battery pack and calculating heat generation; A heat balance equation is constructed based on the total heat loss equation and the heat generation to calculate the current temperature of the single battery pack.

5. The method according to claim 4, characterized in that The real-time temperature of the single battery pack during operation is calculated by the following formula: In the formula, Where ρ is the density, C p is the specific heat capacity, V is the volume of the single battery pack, T is the current temperature of the single battery pack, Q gen is the heat generation, Q loss is the total amount of heat loss, I is the real-time current, V is the real-time voltage, Q conv is the convective heat loss, Q cond is the conduction heat loss, h is the convective heat transfer coefficient; A is the surface area of ​​the single battery pack, T amb is the ambient temperature and k is the thermal conductivity.

6. The method according to any one of claims 1 to 5, characterized in that The battery cell electrical parameters include at least: SOC starting value, maximum capacity, OCV coefficient and power supply internal resistance coefficient; the thermal related parameters include at least: battery cell starting temperature, thermal conductivity between the battery cell and the shell, and module shell temperature; The step of adjusting the parameter value of each single battery pack model in the battery system model based on the preset parameters of each single battery pack in the inconsistency simulation experiment includes: Based on the preset parameters of each single battery pack in the inconsistency simulation experiment, the SOC starting value, OCV coefficient, power supply internal resistance coefficient, the difference in the starting temperature of the battery cell caused by the different location and environment of the single battery pack, and the difference in the thermal conductivity coefficient between the battery cell and the shell caused by the different location of the single battery pack are adjusted.

7. A battery system inconsistency simulation device based on Modelica language, used to implement the method described in any one of claims 1 to 6, characterized in that: Applied in the Modelica language environment, the device comprises: A building unit, used to build a single battery pack model using model components in the Modelica model library, and set default parameter values ​​in the single battery pack model; wherein the parameters at least include cell electrical parameters and thermal related parameters, the single battery pack model at least contains a lithium battery pack, a signal transmission module and a thermal model module, and the thermal model module is used to predict the temperature change of the single battery pack under different scenario parameters; A connection unit, used to use the Model class to arrange the positions of the plurality of single battery models and connect them in series and parallel to encapsulate and build a battery system model; The simulation unit is used to adjust the parameter values ​​of each single battery pack model in the battery system model based on the preset parameters of each single battery pack in the inconsistency simulation experiment, so as to simulate the battery system model under different scenario parameters and determine the inconsistency simulation results of the battery system.

8. A computer device, characterized in that: The computer device includes a memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the steps of any one of the methods described in claims 1-6.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The method comprises a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.