Battery simulation method and device, computer equipment and computer readable storage medium

By automatically updating the parameter set of the battery simulation model, the problem of cumbersome and inefficient manual configuration of simulation parameters in the existing technology is solved, and an efficient battery simulation process is achieved.

CN119849190APending Publication Date: 2025-04-18GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510015038.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the existing battery simulation methods, manual configuration of simulation parameters is cumbersome, time-consuming and error-prone, resulting in low simulation efficiency.

Method used

By obtaining the basic parameter set of the battery simulation model and the operating condition parameter set of the operating condition to be simulated, the model parameter set is automatically updated to realize automatic simulation parameter configuration for different operating conditions and models.

Benefits of technology

Improves battery simulation efficiency, reduces the time and error rate of manual configuration parameters, and can automatically adapt to the simulation needs of different working conditions and models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119849190A_ABST
    Figure CN119849190A_ABST
Patent Text Reader

Abstract

The invention provides a battery simulation method and device, computer equipment and a computer readable storage medium, and relates to the technical field of simulation. The battery simulation method comprises the steps that a first model parameter set of a battery simulation model is acquired, a working condition parameter set of a to-be-simulated working condition is acquired, and the first model parameter set is a model parameter set used for simulating the to-be-simulated working condition; updating the first model parameter set based on the working condition parameter set to obtain a second model parameter set corresponding to the to-be-simulated working condition; and operating the battery simulation model based on the second model parameter set to obtain simulation data of the to-be-simulated working condition. By using the method, the battery simulation efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of simulation technology, and in particular to a battery simulation method, device, computer equipment, and computer-readable storage medium. Background Art

[0002] With the development of the battery industry, the number of batteries has exploded. In order to ensure the stable operation of the battery during its life cycle, the battery operating conditions can be simulated to determine the battery operation based on the simulation data.

[0003] At present, battery simulation involves a variety of complex working conditions, and engineers manually configure the simulation parameters of the battery simulation model according to each simulation working condition. However, the above manual simulation parameter configuration process is very cumbersome, time-consuming and labor-intensive, and prone to errors, resulting in low battery simulation efficiency. Summary of the invention

[0004] In view of the above, it is necessary to provide a battery simulation method, apparatus, computer device and computer-readable storage medium to solve the problem of low battery simulation efficiency.

[0005] In a first aspect, the present application provides a battery simulation method, comprising: obtaining a first model parameter set of a battery simulation model, and obtaining an operating condition parameter set of an operating condition to be simulated, the first model parameter set being a model parameter set used to simulate the operating condition to be simulated; updating the first model parameter set based on the operating condition parameter set to obtain a second model parameter set corresponding to the operating condition to be simulated; and running the battery simulation model based on the second model parameter set to obtain simulation data of the operating condition to be simulated.

[0006] By adopting the above technical solution, the pre-configured model parameter set is updated based on the actual operating condition parameter set of the operating condition to be simulated, so that for different operating conditions to be simulated and different battery simulation models, the simulation parameter configuration of the battery simulation model for each operating condition to be simulated can be automatically updated, thereby improving the battery simulation efficiency and solving the problem that the existing manual configuration of simulation parameters for each operating condition to be simulated is time-consuming, labor-intensive and error-prone.

[0007] In one possible implementation, obtaining a first model parameter set of a battery simulation model includes: obtaining a basic parameter set of the battery simulation model; selecting a plurality of target basic parameters for simulating a simulation condition from the basic parameter set, wherein the plurality of target basic parameters are used to form a first model parameter set.

[0008] By adopting the above technical solution, a common basic parameter set is configured for the battery simulation model to meet the simulation requirements of various types of working conditions to be simulated, avoiding the need for users to frequently change the model parameter set to adapt to different simulation working conditions.

[0009] In one possible implementation, multiple target basic parameters for simulating the working condition to be simulated are selected from a basic parameter set, including: adding a write flag to the multiple target basic parameters for simulating the working condition to be simulated in the basic parameter set, and the write flag is used to indicate that the corresponding target basic parameters are parameters to be written into the battery simulation model.

[0010] By adopting the above technical solution, the basic parameter set is set to include model parameters that may be used to simulate various types of working conditions to be simulated, thereby meeting the simulation requirements of various types of working conditions to be simulated.

[0011] In one possible implementation, obtaining a working condition parameter set of a working condition to be simulated includes: obtaining a working condition parameter configuration set of the working condition set to be simulated, the working condition set to be simulated including one or more working conditions to be simulated; parsing the working condition parameter configuration set to obtain a working condition parameter set corresponding to each working condition to be simulated.

[0012] By adopting the above technical solution, by integrating the operating condition parameter sets of multiple working conditions to be simulated into the operating condition parameter configuration set, the workload of users in configuring the operating condition parameter sets of multiple working conditions to be simulated can be reduced, and the storage space for storing the operating condition parameter sets of multiple working conditions to be simulated can be reduced, thereby improving the battery simulation efficiency.

[0013] In one possible implementation, a battery simulation model is provided with a plurality of sets of basic parameter sets, and the operating condition parameter set of the operating condition to be simulated includes an identifier of the basic parameter set corresponding to the operating condition to be simulated and a simulation model identifier corresponding to the operating condition to be simulated. Obtaining the basic parameter set of the battery simulation model includes: obtaining the basic parameter set corresponding to the identifier; selecting a plurality of target basic parameters for simulating the operating condition to be simulated from the basic parameter set, including: selecting a plurality of target basic parameters for simulating the operating condition to be simulated from the basic parameter set based on the simulation model identifier.

[0014] By adopting the above technical solution, by setting multiple groups of common basic parameter sets, the battery simulation requirements of different types / models can be met. By setting the simulation model identifier, the basic parameter set can be compatible with different battery simulation models, and can indicate that the battery simulation model currently used to simulate the working condition to be simulated needs to write the specified target basic parameters from the basic parameter set, and the working condition to be simulated can be simulated under different basic parameter sets or different battery simulation models, enriching the simulation scenario.

[0015] In one possible implementation, the operating condition parameter set of the operating condition to be simulated includes a simulation data extraction identifier and a simulation result identifier, and the battery simulation method also includes: extracting target simulation data corresponding to the simulation data extraction identifier from the simulation data of the operating condition to be simulated; and calculating the simulation result corresponding to the simulation result identifier based on the target simulation data.

[0016] By adopting the above technical solution, the corresponding simulation results can be automatically calculated for different working conditions to be simulated, and the battery simulation efficiency is high, which solves the problem that the existing manual simulation data extraction and simulation result calculation are time-consuming, labor-intensive and error-prone.

[0017] In a possible implementation, the first model parameter set, the second model parameter set and the operating condition parameter set of the operating condition to be simulated are all saved in a preset document, and the battery simulation method also includes: saving the simulation data of the operating condition to be simulated, the target simulation data and the simulation results to the preset document.

[0018] By adopting the above technical solution, the parameter set, simulation data and simulation results related to the working condition simulation are saved through preset documents, which is convenient for subsequent simulation data / result analysis comparison and data backtracking.

[0019] In the second aspect, the present application provides a battery simulation device, including: a parameter acquisition module, used to obtain a first model parameter set of a battery simulation model, and to obtain an operating condition parameter set of the operating condition to be simulated; a parameter update module, used to update the first model parameter set based on the operating condition parameter set, and obtain a second model parameter set corresponding to the operating condition to be simulated; an operating condition simulation module, used to run the battery simulation model based on the second model parameter set, and obtain a simulation result of the operating condition to be simulated.

[0020] In a third aspect, the present application provides a computer device, which includes a memory and a processor; the memory and the processor are coupled; the memory is used to store program instructions; the processor is used to read the program instructions stored in the memory to implement the battery simulation method of the above-mentioned first aspect and its possible implementation methods.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the battery simulation method of the above-mentioned first aspect and its possible implementation methods is implemented.

[0022] In addition, the technical effects brought about by the second to fourth aspects can be found in the descriptions related to the methods of each design in the above method part, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a schematic diagram of a possible application scenario provided by an embodiment of the present application; Figure 2 is a flowchart of a battery simulation method provided by an embodiment of the present application; Figure 3 is a flowchart of a battery simulation method provided by another embodiment of the present application; Figure 4It is a schematic diagram of a constant current discharge voltage curve obtained by simulating multiple working conditions to be simulated by a battery simulation model provided in an embodiment of the present application; Figure 5 is a flowchart of the steps of implementing battery simulation based on a battery simulation model by a computer device provided in an embodiment of the present application; Figure 6 is a functional module schematic diagram of a battery simulation device provided by another embodiment of the present application; Figure 7 This is a hardware architecture diagram of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0025] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary", "or", "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "or", "for example" is intended to present related concepts in a concrete way.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It should be understood that, unless otherwise specified in the present application, " / " means or. For example, A / B can represent A or B. "And / or" in the present application is only a kind of association relationship describing associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations. It should be understood that the order of the steps shown in the flowchart of this article can be changed, and some can also be omitted.

[0027] Battery simulation model: A tool that simulates battery behavior and performance through mathematical and physical principles, which can help researchers and engineers better understand the working principle of batteries, predict the performance of batteries under different conditions, and thus optimize battery design and improve battery performance. Batteries can be lithium batteries or other types of batteries.

[0028] Battery simulation involves a wide variety of working conditions. When multiple battery design schemes need to be simulated, the simulation work involved increases exponentially. Currently, for each working condition to be simulated, the common practice is for engineers to manually configure the simulation parameters of the battery simulation model according to each simulation condition. The above approach is time-consuming, labor-intensive, and error-prone, and the battery simulation efficiency is low.

[0029] In view of this, an embodiment of the present application provides a battery simulation method, which can automatically configure the simulation parameters of the battery simulation model, and the battery simulation efficiency is high.

[0030] like Figure 1 As shown, a possible application scenario provided by an embodiment of the present application includes a computer device 100. The computer device 100 can be a computing device such as a computer or a server, or a portable smart device such as a mobile phone or a tablet computer. The embodiment of the present application does not limit the device type of the computer device 100.

[0031] The computer device 100 may be deployed with a battery simulation model 101 for performing battery operating condition simulation, a preset document 102 for storing model parameter sets and operating condition parameter sets, and a simulation script 103 for processing the parameters stored in the preset document 102 and processing the simulation data of the battery simulation model 101.

[0032] The simulation script 103 can read the model parameter set and the operating condition parameter set corresponding to the operating condition to be simulated from the preset document 102, and obtain the model write parameter set corresponding to the operating condition to be simulated by processing the read model parameter set and the operating condition parameter set. After obtaining the model write parameter set, the simulation script 103 can write the model write parameter set into the battery simulation model 101 (for example, the simulation script 103 can write the model write parameter set into the model file of the battery simulation model 101), run the battery simulation model 101, simulate the operating condition to be simulated, and obtain the simulation data of the operating condition to be simulated.

[0033] The simulation script 103 can also extract target simulation data from the simulation data of the working condition to be simulated, and calculate a specified simulation result based on the extracted target simulation data. The target simulation data may refer to data used to calculate the simulation result. For example, the working condition parameter includes a simulation data extraction identifier and a simulation result identifier. The simulation data extraction identifier is used to indicate the simulation data to be extracted by the simulation script 103, and the simulation result identifier is used to indicate the simulation result to be calculated by the simulation script 103.

[0034] In some embodiments, the battery simulation model 101 can be a battery simulation model constructed based on related technologies. The simulation script 103 can be a script program obtained based on a preset programming language or preset programming software. The embodiment of the present application does not limit the type of programming language / programming software. For example, the simulation script 103 can be a script program written based on Matlab software. The preset document 102 can refer to a document that supports parameter reading and writing functions. The embodiment of the present application does not limit the type of the preset document. For example, the preset document 102 can be an Excel document.

[0035] See also Figure 2 , Figure 2 A flowchart of a battery simulation method provided in one embodiment of the present application is provided. The battery simulation method can be applied to the above-mentioned computer device, and the battery simulation method can include the following steps.

[0036] S201, obtaining a first model parameter set of a battery simulation model, and obtaining an operating condition parameter set of an operating condition to be simulated.

[0037] In some embodiments, the battery simulation model may be an electrochemical model or other types of models, which are not limited in the embodiments of the present application. One or more basic parameter sets may be pre-configured for the battery simulation model, each of which may correspond to a model or type of battery, so that the battery simulation model may support simulation of multiple models or types of battery operating conditions.

[0038] As shown in Table 1 below, multiple basic parameter sets pre-configured for the battery simulation model are illustrated. Each basic parameter set is distinguished by group 1, group 2, ..., group n. Table 1 illustrates some basic parameters in the basic parameter set.

[0039] In Table 1 above, the single-sided negative electrode thickness and the negative electrode particle diameter are displayed in scientific notation. The corresponding values ​​are, for example, 4.80E-05=0.0000408. The parameter code is consistent with the parameter code defined in the model file, that is, the single-sided negative electrode thickness is represented by the parameter code -L_neg0 in the model file. The write flag is used to indicate whether the corresponding basic parameters need to be written into the battery simulation model. The write flag may include a first write flag "1" and a second write flag "0". The first write flag "1" is used to indicate that the corresponding basic parameters need to be written into the battery simulation model, and the second write flag "0" is used to indicate that the corresponding basic parameters do not need to be written into the battery simulation model.

[0040] In some embodiments, each basic parameter shown in Table 1 above is configured with a parameter value. The parameter value of each basic parameter can be set according to historical battery operating condition simulation experience. The parameter values ​​of some or all of the basic parameters can also be updated according to the operating condition parameters of the operating condition to be simulated to meet the simulation requirements of the actual simulation condition.

[0041] In some embodiments, each basic parameter set may include basic parameters used in various simulation conditions. However, since the basic parameters used in each simulation condition may be different, for example, some parameters in the basic parameter set may need to be written into the battery simulation model in simulation condition one, but not in simulation condition two. By setting the write flag, each basic parameter set can be compatible with multiple simulation conditions and can meet the basic parameter writing requirements under various simulation conditions. For example, for any condition to be simulated, the basic parameter set group applicable to the condition to be simulated can be determined based on the battery model / battery type corresponding to the condition to be simulated, and then based on the determined basic parameter set and the simulation parameter requirements of the condition to be simulated, the corresponding write flag is added to the determined basic parameter set to obtain the model parameter set corresponding to the condition to be simulated. For example, the condition parameter set of the condition to be simulated includes a simulation model identifier corresponding to the condition to be simulated, and the simulation model identifier is used to indicate the information of the battery simulation model used to simulate the condition to be simulated. Different battery simulation models need to write different basic parameters (different battery simulation models can be used for different simulation conditions, or simulation of different battery models / battery types). The basic parameter writing rules corresponding to each battery simulation model can be pre-configured, and then based on the simulation model identifier, it can be determined which basic parameters need to be written into the battery simulation model currently used to simulate the simulation working condition, and corresponding write flags can be added to these basic parameters that need to be written in the determined basic parameter set.

[0042] In some embodiments, the first model parameter set is a model parameter set used to simulate the working condition to be simulated, that is, the first model parameter set may refer to a set of model parameters used by the battery simulation model to simulate the working condition to be simulated, that is, the parameters in the first model parameter set need to be written to the model file, and then the battery simulation model can simulate the working condition to be simulated based on the model file. For example, the first model parameter set may be a parameter set formed by adding a flag "1" to the basic parameter set.

[0043] In some embodiments, when the battery simulation model is configured with a set of basic parameter sets, obtaining the first model parameter set of the battery simulation model may specifically include: obtaining the basic parameter set of the battery simulation model; selecting multiple target basic parameters for simulating the working condition to be simulated from the basic parameter set, and the multiple target basic parameters are used to form the first model parameter set. The multiple target basic parameters may refer to the basic parameters with the first write mark "1" added to the basic parameter set. For example, multiple target basic parameters may be selected from the basic parameter set based on the basic parameter identifier pre-configured for the working condition to be simulated.

[0044] In some embodiments, when a battery simulation model is configured with multiple groups of basic parameter sets, obtaining a first model parameter set of the battery simulation model may specifically include: obtaining multiple groups of basic parameter sets of the battery simulation model; selecting a target basic parameter set from the multiple groups of basic parameter sets based on battery information corresponding to the working conditions to be simulated; and selecting multiple target basic parameters from the target basic parameter set for simulating the working conditions to be simulated, wherein the multiple target basic parameters are used to form a first model parameter set.

[0045] In some embodiments, the operating condition parameter set may refer to a set of operating condition parameters of the operating condition to be simulated. The operating condition parameter set may include one or more operating condition parameters of the operating condition to be simulated. As shown in Table 2 below, multiple groups of operating condition parameter sets are illustrated, and each group of operating condition parameter sets is distinguished by sequence number 1, sequence number 2, ..., sequence number n. Table 2 illustrates some operating condition parameters in the operating condition parameter set.

[0046] In Table 2 above, grupNum represents the group number, which is used to extract the basic parameter set of the specified group from Table 1. The value of grupNum can be set to correspond to a single group or to multiple groups. When the value of grupNum corresponds to a single group, it means that the basic parameter set of the group is used for the working condition simulation. When the value of grupNum corresponds to multiple groups, it means that the basic parameter set of each group is used for the working condition simulation. For example, grupNum=1 of sequence number 1 indicates that each working condition to be simulated included in sequence number 1 uses the basic parameter set of group 1 for working condition simulation; grupNum=[1,2] of sequence number 2 indicates that each working condition to be simulated included in sequence number 2 uses the basic parameter set of group 1 for working condition simulation, and uses the basic parameter set of group 2 for working condition simulation; grupNum=(1:3) of sequence number 3 indicates that each working condition to be simulated included in sequence number 3 uses the basic parameter set of group 1 for working condition simulation, uses the basic parameter set of group 2 for working condition simulation, and uses the basic parameter set of group 3 for working condition simulation.

[0047] CdtnNam represents the working condition name, which can be used for file naming when outputting simulation data. StdNam, PicNam, and DataSet are the research name, chart name, and data set name in the model file, respectively. The model file may include one or more research files, one or more chart files, and one or more data set files to adapt to the simulation of different models / types of batteries or different working conditions. Taking serial number 1 as an example, the parameters corresponding to StdNam, PicNam, and DataSet are std1, pg15, and dset1, respectively, that is, the various working conditions to be simulated contained in serial number 1 correspond to the research file std1, chart file pg15, and data set file dset1 in the model file. Fragment is the function name of the simulation result, that is, the simulation result calculated by extracting the target simulation data. t_total is the working condition simulation time, which can be in ms, T_at is the ambient temperature, which can be in °C, SOCinit_cell is the initial SOC of the battery, and C is the battery rate, where the battery charging rate can be defined as a negative value and the battery discharge rate can be defined as a positive value.

[0048] In some embodiments, the omitted column parameters such as parameters t_total, T_at, SOCinit_cell, C, etc. in Table 2 can also be referred to as target operating condition parameters that can update the basic parameter set. That is, the basic parameter set of Table 1 also includes parameters t_total, T_at, SOCinit_cell, C, etc. The priority of the parameter values ​​of the parameters t_total, T_at, SOCinit_cell, and C in Table 2 is higher than the parameter values ​​of the parameters t_total, T_at, SOCinit_cell, and C recorded in the basic parameter set in Table 1. For example, when the parameter values ​​of the parameters t_total, T_at, SOCinit_cell, and C recorded in Table 2 are single values, the parameter values ​​recorded in Table 2 can be directly overwritten with the parameter values ​​recorded in Table 1 to obtain a model parameter set corresponding to the operating condition to be simulated. If the parameter values ​​of the parameters t_total, T_at, SOCinit_cell, and C recorded in Table 2 are multiple values, the parameter values ​​recorded in Table 2 can be overwritten with the parameter values ​​recorded in Table 1 to obtain a model parameter set corresponding to each operating condition to be simulated. For example, [25,45] recorded in Table 2 represents that the ambient temperature includes two situations: 25 degrees and 45 degrees. (0:0.1:0.2) recorded in Table 2 represents an array starting from 0, with a step size of 0.1 to 0.2, that is, the battery initial SOC includes three situations: 0, 0.1, and 0.2.

[0049] In some embodiments, obtaining a working condition parameter set of a working condition to be simulated may specifically include: obtaining a working condition parameter configuration set of the working condition set to be simulated, the working condition set to be simulated including one or more working conditions to be simulated; parsing the working condition parameter configuration set to obtain a working condition parameter set corresponding to each working condition to be simulated.

[0050] As shown in Table 2, a row of parameter sets corresponding to each serial number can be regarded as a working condition parameter configuration set of the working condition set to be simulated. For example, by parsing the working condition parameter configuration set of serial number 1, a working condition parameter set corresponding to each working condition to be simulated can be obtained as shown in Table 3 below.

[0051] For another example, by parsing the working condition parameter configuration set of sequence number 2, the working condition parameter set corresponding to each working condition to be simulated can be obtained as shown in the following Table 4. Since sequence number 2 involves the basic parameter set of group 1 and the basic parameter set of group 2, each group of basic parameter sets can correspond to 12 working conditions to be simulated. Table 4 only illustrates the working condition parameter sets of the 12 working conditions to be simulated (working conditions 11 to 22 to be simulated) corresponding to the basic parameter set group 1.

[0052] For another example, by parsing the operating condition parameter configuration set of sequence number 3, an operating condition parameter set corresponding to each operating condition to be simulated can be obtained as shown in Table 5 below.

[0053] S202, updating the first model parameter set based on the operating condition parameter set to obtain a second model parameter set corresponding to the operating condition to be simulated.

[0054] In some embodiments, the second model parameter set may refer to a parameter set that can be written into the battery simulation model to implement simulation of the working condition to be simulated, that is, the model writing parameter set mentioned above.

[0055] In some embodiments, the parameter values ​​corresponding to the parameters in the first model parameter set are preconfigured parameter values, for example, they may be parameter values ​​set based on historical battery operating condition simulation experience, and may not be applicable to the simulation of the operating condition to be simulated. By updating the first model parameter set using the operating condition parameter set corresponding to the operating condition to be simulated, a second model parameter set corresponding to the operating condition to be simulated can be obtained to meet the simulation requirements of the simulation condition. For example, the first model parameter set (a model parameter set formed by group 1 containing the first write mark "1") can be updated based on the operating condition parameter set corresponding to the operating condition 1 to be simulated, and the second model parameter set corresponding to the operating condition 1 to be simulated can be obtained. For another example, the first model parameter set (a model parameter set formed by group 2 containing the first write mark "1") can be updated based on the operating condition parameter set corresponding to the operating condition 6 to be simulated, and the second model parameter set corresponding to the operating condition 6 to be simulated can be obtained.

[0056] S203, running the battery simulation model based on the second model parameter set to obtain simulation data of the working condition to be simulated.

[0057] In some embodiments, after obtaining a second model parameter set corresponding to the working condition to be simulated, the second model parameter set can be written into a model file of a battery simulation model, and the battery simulation model can be run based on the model file after the parameters are written to simulate the working condition to be simulated and obtain simulation data of the working condition to be simulated.

[0058] In some embodiments, when there are multiple working conditions to be simulated, the second model parameter sets corresponding to the multiple working conditions to be simulated can be sorted, written into the model file of the battery simulation model in sequence, and the battery simulation model can be run based on the model file after the parameters are written, so as to obtain the simulation data of each working condition to be simulated. For example, the second model parameter set corresponding to the working condition 1 to be simulated is first written into the model file of the battery simulation model, and the battery simulation model is run based on the model file after the parameters are written, so as to realize the simulation of the working condition 1 to be simulated, and obtain the simulation data of the working condition 1 to be simulated; after the battery simulation model completes the simulation of the working condition 1 to be simulated, the second model parameter set corresponding to the working condition 2 to be simulated is written into the model file of the battery simulation model, and the battery simulation model is run based on the model file after the parameters are written, so as to realize the simulation of the working condition 2 to be simulated, and obtain the simulation data of the working condition 2 to be simulated.

[0059] The above-mentioned battery simulation method configures a universal model parameter set, updates the universal model parameter set based on the actual operating condition parameter set of the operating condition to be simulated, and realizes different operating conditions to be simulated and different battery simulation models. The simulation parameter configuration of the battery simulation model for each operating condition to be simulated can be automatically updated, thereby improving the battery simulation efficiency and solving the problem that the existing manual configuration of simulation parameters for each operating condition to be simulated is time-consuming, labor-intensive, and error-prone.

[0060] See also Figure 3 , Figure 3 A flowchart of a battery simulation method provided in another embodiment of the present application is provided. The battery simulation method can be applied to the above-mentioned computer device, and the battery simulation method can include the following steps.

[0061] S301, obtaining a first model parameter set of a battery simulation model, and obtaining an operating condition parameter set of an operating condition to be simulated.

[0062] Step S301 of the embodiment of the present application is similar to step S201 of the aforementioned embodiment, and will not be described again here to avoid repetition.

[0063] S302, updating the first model parameter set based on the operating condition parameter set to obtain a second model parameter set corresponding to the operating condition to be simulated.

[0064] Step S302 of the embodiment of the present application is similar to step S202 of the aforementioned embodiment, and will not be described again here to avoid repetition.

[0065] S303, running the battery simulation model based on the second model parameter set to obtain simulation data of the working condition to be simulated.

[0066] Step S303 of the embodiment of the present application is similar to step S203 of the aforementioned embodiment, and will not be described again here to avoid repetition.

[0067] S304, extracting target simulation data corresponding to the simulation data extraction identifier from the simulation data of the working condition to be simulated, and calculating the simulation result corresponding to the simulation result identifier based on the target simulation data.

[0068] In some embodiments, the working condition parameter set of the working condition to be simulated may also include a simulation data extraction identifier and a simulation result identifier. The simulation data extraction identifier is used to indicate the target simulation data to be extracted, and the simulation result identifier is used to indicate the simulation result to be calculated. For example, the parameter in the PicNam column in Table 2, "pg15" is a simulation data extraction identifier, which represents the simulation data of the chart specified in the chart file pg15; the parameter in the Fragment column in Table 2, "CCCAP" is a simulation result identifier, which represents the battery capacity.

[0069] For another example, when the simulation result to be calculated is the battery capacity, the battery capacity can be calculated by extracting the data of the voltage changing with time under the constant current discharge state, based on the discharge current (constant current discharge current) and the discharge time (determining the discharge time based on the data of the voltage changing with time).

[0070] In some embodiments, the first model parameter set, the second model parameter set, and the operating condition parameter set of the operating condition to be simulated may all be saved in a preset document. The battery simulation method may also include: S305, saving the simulation data of the working condition to be simulated, the target simulation data and the simulation results to a preset document.

[0071] In some embodiments, by saving the simulation data of the working condition to be simulated, the target simulation data and the simulation results to a preset document, it is convenient to compare and analyze the simulation data / simulation results of each working condition to be simulated, and data backtracking can be performed.

[0072] In some embodiments, the target simulation data and simulation results of each working condition to be simulated can also be visualized to generate a chart file, which further facilitates the comparative analysis of the target simulation data / simulation results of each working condition to be simulated. The generated chart file and the preset document can be stored in the same folder.

[0073] like Figure 4 As shown in FIG. 1 , assuming that the target simulation data of multiple working conditions to be simulated are all data of battery voltage variation with discharge time under constant current discharge state, after visualization processing, constant current discharge voltage curves of multiple working conditions to be simulated can be obtained, and each curve of battery voltage variation with discharge time corresponds to one working condition to be simulated. Figure 4 In the figure, the horizontal axis is the discharge time and the vertical axis is the battery voltage.

[0074] The above-mentioned battery simulation method configures a universal model parameter set, updates the universal model parameter set based on the actual operating condition parameter set of the operating condition to be simulated, and realizes different operating conditions to be simulated and different battery simulation models. The simulation parameter configuration of the battery simulation model for each operating condition to be simulated can be automatically updated, thereby improving the battery simulation efficiency and solving the problem that the existing manual configuration of simulation parameters for each operating condition to be simulated is time-consuming, labor-intensive, and error-prone. The relevant parameter sets, simulation data, and simulation results are saved by preset documents, which is convenient for subsequent simulation data analysis, comparison, and data backtracking.

[0075] See also Figure 5 , which is a possible flow chart of battery simulation implemented by a computer device based on a battery simulation model according to an embodiment of the present application.

[0076] S501, in response to a user's operation on a preset document, setting a basic parameter set of a battery simulation model and a working condition parameter configuration set of a working condition to be simulated in the preset document.

[0077] In some embodiments, the user's operation on the preset document may refer to an editing operation on the preset document, and the user may refer to a battery developer, a battery simulation engineer, etc. The preset document may be provided with multiple groups of basic parameter sets corresponding to the battery simulation model, and a working condition parameter configuration set including working condition parameter sets of multiple working conditions to be simulated, so as to meet different working condition simulation requirements.

[0078] S502, reading a target basic parameter set corresponding to the working condition to be simulated from a preset document.

[0079] In some embodiments, the target basic parameter set may be a group of basic parameter sets or multiple groups of basic parameter sets. For example, the operating condition parameter configuration set may indicate the group identifier of the target basic parameter set corresponding to the operating condition to be simulated, and the computer device may read the corresponding target basic parameter set from the preset document based on the group identifier in the operating condition parameter configuration set. For example, the operating condition parameter configuration set with serial number 1 in Table 2 indicates that the target basic parameter set is the basic parameter set of group 1, and the operating condition parameter configuration set with serial number 2 indicates that the target basic parameter set includes the basic parameter set of group 1 and the basic parameter set of group 2.

[0080] S503, reading a working condition parameter configuration set of the working condition to be simulated from a preset document, and parsing the working condition parameter configuration set to obtain one or more working condition parameter sets of the working condition to be simulated.

[0081] In some embodiments, the operating condition parameter configuration set may include one or more operating condition parameter sets of the operating conditions to be simulated, and one or more operating condition parameter sets of the operating conditions to be simulated may be obtained by parsing the operating condition parameter configuration set. For example, by parsing the operating condition parameter configuration set No. 1 in Table 2, the operating condition parameter sets of the four operating conditions to be simulated shown in Table 3 may be obtained, and by parsing the operating condition parameter configuration set No. 3 in Table 2, the operating condition parameter sets of the three operating conditions to be simulated shown in Table 5 may be obtained.

[0082] In some embodiments, step S502 and step S503 may be performed in parallel, or step S502 may be performed before or after step S503.

[0083] S504, obtaining a model writing parameter set corresponding to the working condition to be simulated based on the target basic parameter set corresponding to the working condition to be simulated and the working condition parameter set of the working condition to be simulated.

[0084] In some embodiments, the model write parameter set (i.e., the second model parameter set described above) can be written into the battery simulation model to simulate the working condition to be simulated. For example, the target basic parameter set corresponding to the working condition to be simulated can be updated based on the working condition parameter set of the working condition to be simulated to obtain the model write parameter set corresponding to the working condition to be simulated.

[0085] In some embodiments, when simulating the working condition to be simulated, all basic parameters in the basic parameter set may not need to be used. In this case, the target basic parameter set may be a parameter set formed by some basic parameters in the basic parameter set of the selected group. Some basic parameters may be added with a specified write flag to indicate that the basic parameter needs to be written to the battery simulation model. For example, the working condition parameter set of the working condition to be simulated includes a simulation model identifier corresponding to the working condition to be simulated. The simulation model identifier is used to indicate the information of the battery simulation model used to simulate the working condition to be simulated. Different battery simulation models need to write different basic parameters. Based on the simulation model identifier, it can be determined which basic parameters need to be written to the battery simulation model currently used to simulate the working condition to be simulated, and corresponding write flags can be added to these basic parameters that need to be written in the basic parameter set of the selected group.

[0086] S505, writing a model writing parameter set corresponding to the working condition to be simulated into a battery simulation model, and running the battery simulation model to obtain simulation data of the working condition to be simulated.

[0087] In some embodiments, after writing a model write parameter set corresponding to the working condition to be simulated into the battery simulation model, the working condition to be simulated can be simulated by running the battery simulation model.

[0088] S506, extracting designated target simulation data from the simulation data of the working condition to be simulated.

[0089] In some embodiments, the operating condition parameter set of the operating condition to be simulated may include a simulation data extraction identifier and a simulation result identifier. The simulation data extraction identifier is used to indicate the target simulation data to be extracted, and the simulation result identifier is used to indicate the simulation result to be calculated. For example, the parameter in the PicNam column in Table 2, "pg15" is a simulation data extraction identifier, which represents the simulation data of the chart specified in the chart file pg15; the parameter in the Fragment column in Table 2, "CCCAP" is a simulation result identifier, which represents the battery capacity.

[0090] S507, calculating simulation results based on the target simulation data.

[0091] After extracting the specified target simulation data, the computer device can calculate the corresponding simulation results based on the target simulation data.

[0092] S508, determining whether all the working conditions to be simulated have been simulated.

[0093] In some embodiments, when the operating condition parameter configuration set is parsed to obtain multiple operating condition parameter sets for the operating conditions to be simulated, multiple model write parameter sets corresponding to the multiple operating conditions to be simulated can be obtained, and the multiple model write parameter sets can be arranged in order and written into the battery simulation model in sequence. The computer device can determine whether all the operating conditions to be simulated have been simulated by determining whether the model write parameter set written into the battery simulation model is the last model write parameter set in the order.

[0094] S509: If all the working conditions to be simulated are completed, save the target simulation data and simulation results of each working condition to be simulated into a preset document.

[0095] In some embodiments, if all the working conditions to be simulated are simulated, the target simulation data and simulation results of each working condition to be simulated can be saved to a preset file. In other embodiments, after completing the simulation of a working condition to be simulated, the target simulation data and simulation results of the working condition to be simulated can be saved to a preset file.

[0096] In some embodiments, if some conditions to be simulated have not been simulated, the process can jump to step S505, write the model write parameter set corresponding to the next condition to be simulated into the battery simulation model, and run the battery simulation model to simulate the next condition to be simulated.

[0097] In some embodiments, target simulation data and simulation results of multiple working conditions to be simulated can also be displayed visually, so as to facilitate the user to compare and analyze the target simulation data / simulation results of the multiple working conditions to be simulated.

[0098] Please refer to Figure 6 , is a functional module diagram of a battery simulation device provided in an embodiment of the present application. The battery simulation device 200 includes a parameter acquisition module 2001, a parameter update module 2002, and a working condition simulation module 2003. In some embodiments, the above modules may be programmable software instructions stored in a memory and can be called and executed by a processor. It is understood that in other embodiments, the above modules may also be program instructions or firmware solidified in the processor.

[0099] The parameter acquisition module 2001 is used to acquire a first model parameter set of a battery simulation model and to acquire an operating condition parameter set of an operating condition to be simulated.

[0100] The parameter updating module 2002 is used to update the first model parameter set based on the operating condition parameter set to obtain a second model parameter set corresponding to the operating condition to be simulated.

[0101] The operating condition simulation module 2003 is used to run the battery simulation model based on the second model parameter set to obtain the simulation result of the operating condition to be simulated.

[0102] In some embodiments, the battery simulation device 200 may further include a calculation module 2004 and a storage module 2005 .

[0103] The calculation module 2004 is used to extract target simulation data corresponding to the simulation data extraction identifier from the simulation data of the working condition to be simulated, and calculate the simulation result corresponding to the simulation result identifier based on the target simulation data.

[0104] The saving module 2005 is used to save the simulation data of the working condition to be simulated, the target simulation data and the simulation results to a preset document.

[0105] Please refer to Figure 7 , is a schematic diagram of the hardware structure of the computer device 100 provided in the embodiment of the present application. Figure 7 As shown, the computer device 100 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, and the above instructions can be used to implement the above digital key management method in the computer device 100.

[0106] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the computer device 100. In other embodiments, the computer device 100 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.

[0107] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0108] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may store instructions or data that the processor 1001 has just used or circulated. If the processor 1001 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.

[0109] In some embodiments, the processor 1001 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.

[0110] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0111] The battery simulation methods in the above embodiments can all be implemented in the computer device 100 having the above hardware structure.

[0112] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on the computer device 100, the computer device 100 executes the above-mentioned related method steps to implement the battery simulation method in the above-mentioned embodiment.

[0113] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0114] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0115] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0116] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0118] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A battery simulation method, characterized in that: The method comprises: Acquire a first model parameter set of a battery simulation model, and acquire an operating condition parameter set of an operating condition to be simulated, wherein the first model parameter set is a model parameter set used to simulate the operating condition to be simulated; Based on the operating condition parameter set, the first model parameter set is updated to obtain a second model parameter set corresponding to the operating condition to be simulated; The battery simulation model is run based on the second model parameter set to obtain simulation data of the working condition to be simulated.

2. The battery simulation method according to claim 1, characterized in that: The step of obtaining a first model parameter set of the battery simulation model includes: Obtaining a basic parameter set of the battery simulation model; A plurality of target basic parameters for simulating the working condition to be simulated are selected from the basic parameter set, and the plurality of target basic parameters are used to form the first model parameter set.

3. The battery simulation method according to claim 2, characterized in that: The selecting of a plurality of target basic parameters for simulating the working condition to be simulated from the basic parameter set includes: In the basic parameter set, a write flag is added for multiple target basic parameters used to simulate the working condition to be simulated, and the write flag is used to indicate that the corresponding target basic parameter is a parameter to be written into the battery simulation model.

4. The battery simulation method according to claim 2, characterized in that: The step of obtaining a set of working condition parameters of the working condition to be simulated includes: Acquire a working condition parameter configuration set of a working condition set to be simulated, wherein the working condition set to be simulated includes one or more working conditions to be simulated; The operating condition parameter configuration set is parsed to obtain an operating condition parameter set corresponding to each operating condition to be simulated.

5. The battery simulation method according to claim 4, characterized in that: The battery simulation model is correspondingly provided with a plurality of basic parameter sets, the operating condition parameter set of the operating condition to be simulated includes an identifier of the basic parameter set corresponding to the operating condition to be simulated and a simulation model identifier corresponding to the operating condition to be simulated, and the basic parameter set of the battery simulation model is obtained, including: Obtaining a basic parameter set corresponding to the identifier; The selecting of a plurality of target basic parameters for simulating the working condition to be simulated from the basic parameter set includes: A plurality of target basic parameters for simulating the working condition to be simulated are selected from the basic parameter set based on the simulation model identifier.

6. The battery simulation method according to any one of claims 1 to 5, characterized in that: The working condition parameter set of the working condition to be simulated includes a simulation data extraction identifier and a simulation result identifier, and the method further includes: Extracting target simulation data corresponding to the simulation data extraction identifier from the simulation data of the working condition to be simulated; A simulation result corresponding to the simulation result identifier is calculated based on the target simulation data.

7. The battery simulation method according to claim 6, characterized in that: The first model parameter set, the second model parameter set, and the operating condition parameter set of the operating condition to be simulated are all stored in a preset document, and the method further includes: The simulation data of the working condition to be simulated, the target simulation data and the simulation results are saved in the preset document.

8. A battery simulation device, characterized in that: include: A parameter acquisition module, used to acquire a first model parameter set of a battery simulation model and to acquire an operating condition parameter set of an operating condition to be simulated, wherein the first model parameter set includes a plurality of model parameters for simulating the operating condition to be simulated; A parameter updating module, used for updating the first model parameter set based on the operating condition parameter set to obtain a second model parameter set corresponding to the operating condition to be simulated; The operating condition simulation module is used to run the battery simulation model based on the second model parameter set to obtain the simulation result of the operating condition to be simulated.

9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is coupled to the processor; The memory is used to store program instructions; The processor is used to read the program instructions stored in the memory to implement the battery simulation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the battery simulation method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Dynamic simulation method and system, computer equipment and storage medium

    CN119849122A

  • Power simulation method, system, computer device and storage medium

    CN119849122B