Energy storage system simulation platform construction method and device based on equivalent calculation

By encapsulating data using RTLAB dynamic link libraries and employing equivalent unit calculation methods, the problem of high resource consumption in energy storage system simulation calculations was solved, achieving efficient and accurate simulation calculations.

CN121168047APending Publication Date: 2025-12-19GUANGDONG ELECTRIC POWER SCI RES INST ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511314475.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-15
Publication Date
2025-12-19

AI Technical Summary

Technical Problem

In existing technologies, simulation calculations for energy storage systems consume a large amount of computing resources and time, and it is difficult to guarantee simulation accuracy without involving core control algorithms.

Method used

The initial simulation model of the energy storage device is encapsulated using an RTLAB dynamic link library-based encapsulation method. The same type of equipment is equivalent to a few equivalent units through the equivalent unit calculation method. A simulation platform is built and simulation calculations are performed using the RTLAB environment.

Benefits of technology

It significantly reduces computational load and resource consumption, improves the efficiency and accuracy of large-scale energy storage system simulation, and ensures the credibility and consistency of simulation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121168047A_ABST
    Figure CN121168047A_ABST
Patent Text Reader

Abstract

The invention discloses an energy storage system simulation platform construction method and device based on equivalent calculation, and belongs to the field of power systems. The method comprises the following steps: acquiring an initial simulation model of each type of energy storage equipment in an energy storage system, packaging the initial simulation model into an RTLAB dynamic link library model by adopting a packaging method based on an RTLAB dynamic link library, and performing equivalence processing on the same type of energy storage equipment through an equivalence unit calculation method to obtain an equivalence unit, a simulation platform is built in a preset RTLAB environment, the packaged model and the equivalent unit are combined to obtain an energy storage system simulation platform, and finally the platform is used for simulating the running state of the energy storage system. Therefore, by implementing the method, the problem that in the prior art, it is difficult to reduce the consumption of simulation calculation resources on the premise that a core control algorithm is not involved and the simulation precision is guaranteed can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power systems, and in particular to a method and apparatus for constructing a simulation platform for energy storage systems based on equivalent calculation. Background Technology

[0002] In modern power systems, large-scale energy storage systems play an increasingly important role in mitigating renewable energy fluctuations, providing peak shaving and frequency regulation services, and enhancing grid stability. To accurately predict and analyze the dynamic behavior of energy storage systems after they are connected to the grid, especially their response characteristics during transient processes such as grid faults, efficient and accurate simulation calculations are crucial.

[0003] In existing technologies, energy storage system simulation calculations mainly adopt detailed model simulation, that is, detailed modeling of each energy storage device and control system and calculation using computer simulation technology. As the scale and complexity of energy storage systems continue to increase, this method requires a lot of computing resources and time. Moreover, the equipment parameters and models are mostly provided by the manufacturers, which increases the difficulty of communication and coordination, making it difficult to be applied to the simulation calculation of large-scale energy storage systems. Summary of the Invention

[0004] This invention provides a method and apparatus for constructing an energy storage system simulation platform based on equivalent calculation, which can solve the problem in the prior art of reducing the consumption of simulation computing resources without involving core control algorithms and ensuring simulation accuracy.

[0005] In a first aspect, embodiments of the present invention provide a method for constructing a simulation platform for an energy storage system based on equivalent calculation, comprising: Obtain the initial simulation model corresponding to each type of energy storage device in the energy storage system; The initial simulation models corresponding to each type of energy storage device are sequentially encapsulated using an RTLAB dynamic link library-based encapsulation method to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device. The equivalent unit calculation method is used to sequentially calculate the equivalent units of the same type of energy storage equipment in the energy storage system to obtain the equivalent units corresponding to each type of energy storage equipment. A simulation platform is built in the preset RTLAB environment, and an energy storage system simulation platform is obtained based on the simulation platform, the equivalent units corresponding to each type of energy storage equipment, and the equivalent units corresponding to each type of energy storage equipment. The operating state of the energy storage system is simulated using the energy storage system simulation platform.

[0006] This application's embodiments acquire initial simulation models of various types of energy storage devices in the energy storage system, comprehensively covering the electrical characteristics and operating parameters of different types of energy storage devices within the system, providing fundamental data support for subsequent simulations. The initial simulation model is encapsulated using the RTLAB dynamic link library encapsulation method, transforming the model into an independent dynamic link library. This protects the core control algorithms of the equipment manufacturer and ensures consistency between the simulation model and the actual control and protection system, improving the reliability of the simulation results. Equivalent unit calculation methods are used to perform equivalent processing on the same type of energy storage devices, transforming a large number of similar devices into a few equivalent units, significantly reducing the complexity of the system model, substantially reducing computational load and resource consumption, and improving the efficiency of large-scale energy storage system simulation. A simulation platform is built in the RTLAB environment based on the encapsulated dynamic link library model and equivalent units. This simulation platform can perform simulation calculations on the energy storage system without involving core algorithms. Therefore, it solves the problem in existing technologies of reducing simulation computational resource consumption without involving core control algorithms and while ensuring simulation accuracy.

[0007] As a preferred example of the first aspect, the method of calculating equivalent units sequentially equates the energy storage devices of the same type in the energy storage system to obtain the equivalent units corresponding to each type of energy storage device, specifically as follows: The energy storage equipment includes generator set equipment, transformer substation equipment, and power collection line equipment; For the same type of generator set, the equivalent generator set is obtained using the generator set equivalence method; For the same type of prefabricated substation equipment, the equivalent unit is obtained by using the prefabricated substation equivalent method; For the same type of collector cable equipment, the corresponding equivalent unit is obtained by using the corresponding collector cable equivalent method according to the collector cable connection method; wherein, the collector cable connection method includes dry connection and radial connection.

[0008] In this preferred example, by employing corresponding equivalent methods for different types of equipment in the energy storage system, refined equivalent modeling of each device is achieved. This significantly simplifies the system model and improves simulation efficiency while accurately preserving the key electrical characteristics of each device, ensuring that the equivalent model accurately represents the original system's operating state and effectively solving the problem of high computational complexity in the simulation of large-scale energy storage systems.

[0009] As a preferred example of the first aspect, the equivalent unit is obtained by using the equivalent unit formula for the same type of unit equipment, specifically as follows: For the same type of generator set, the equivalent generator set is calculated using the generator set equivalent formula, which is as follows: Where n is the number of units of the same model. For the equivalent unit capacity, The equivalent active power of the generator unit. The reactive power of the equivalent unit. Let be the capacity of the i-th unit among units of the same model. This represents the active power of the i-th generating unit among units of the same model. This represents the reactive power of the i-th unit among units of the same model.

[0010] In this preferred example, by employing the equivalent formula for the unit to perform equivalent processing on equipment of the same model, multiple units can be equated to a single equivalent unit while preserving key electrical characteristics. This approach significantly reduces the number of devices in the model, lowering system complexity, and ensures that the equivalent unit accurately reflects the overall electrical characteristics and operating status of the original unit group through scientific methods for calculating capacity, active power, and reactive power. This method effectively solves the problem of low computational efficiency caused by the large number of devices in large-scale energy storage system simulations. While improving simulation calculation speed, it ensures the accuracy and reliability of simulation results, providing an efficient and practical modeling tool for the analysis and optimization of energy storage systems.

[0011] As a preferred example of the first aspect, after obtaining the energy storage system simulation platform, it further includes: The first initial output electrical data of the energy storage system simulation platform and the second initial output electrical data of the preset detailed model are obtained, and the simulation error is obtained based on the first initial output electrical data and the second initial output electrical data. Based on the simulation error, the energy storage system simulation platform is iteratively updated until the simulation error of the current iteration meets a preset threshold, and the simulation platform of the current iteration is output; wherein, in each iteration, the simulation error of the current iteration is obtained by setting the same fault condition on the energy storage system simulation platform and the preset detailed model.

[0012] In this preferred example, by acquiring the initial output electrical data of the energy storage system simulation platform and the preset detailed model and calculating the simulation error, the deviation between the equivalent model and the actual system can be accurately located. Based on this error, the simulation platform is iteratively updated under the same fault condition, which can optimize the model parameters and structure in a targeted manner, so that the equivalent model gradually approaches the simulation accuracy of the detailed model. When the simulation error meets the preset threshold, the output energy storage system simulation platform retains the high efficiency of equivalent calculation and ensures the consistency between the simulation results and the actual system through a closed-loop calibration mechanism, effectively solving the problem of difficulty in balancing accuracy and efficiency in large-scale energy storage system simulation.

[0013] As a preferred example of the first aspect, the method of encapsulating the initial simulation models corresponding to each type of energy storage device using the RTLAB dynamic link library-based encapsulation method to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device is as follows: The initial simulation model includes the circuit structure and control algorithm; The control algorithms corresponding to each initial simulation model are sequentially imported into the preset RTLAB software to generate the S-functions corresponding to each type of energy storage device. The control algorithms in each initial simulation model are replaced sequentially with the corresponding S-functions to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device.

[0014] In this preferred example, by converting the control algorithm in the initial simulation model into an S-function supported by RTLAB software and replacing the original control algorithm, the complex control logic can be encapsulated into an independent dynamic link library model. This approach avoids directly exposing the equipment manufacturer's core control algorithm and decouples the control algorithm from the circuit structure, making the model easier to integrate and maintain.

[0015] Secondly, the present invention provides a device for constructing a simulation platform for an energy storage system based on equivalent calculation, comprising: a model acquisition module, an encapsulation module, an equivalent module, a platform construction module, and a simulation module; The model acquisition module is used to acquire the initial simulation model corresponding to each type of energy storage device in the energy storage system; The encapsulation module is used to encapsulate the initial simulation models corresponding to each type of energy storage device in sequence using an encapsulation method based on RTLAB dynamic link library, so as to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device. The equivalent module is used to sequentially equate the energy storage devices of the same model in the energy storage system using the equivalent unit calculation method to obtain the equivalent unit corresponding to each model of energy storage device; The platform building module is used to build a simulation platform in a preset RTLAB environment, and obtain an energy storage system simulation platform based on the simulation platform, the equivalent unit corresponding to each type of energy storage equipment, and the equivalent unit corresponding to each type of energy storage equipment. The simulation module is used to simulate the operating state of the energy storage system based on the energy storage system simulation platform.

[0016] As a preferred example of the second aspect, the equivalent module includes a first equivalent unit, a second equivalent unit, and a third equivalent unit; The energy storage equipment includes generator set equipment, transformer substation equipment, and power collection line equipment; The first equivalent unit is used to obtain the corresponding equivalent unit for the same type of unit equipment by using the unit equivalence method; The second equivalent unit is used to obtain the corresponding equivalent unit for the same type of prefabricated substation equipment using the prefabricated substation equivalent method; The third equivalent unit is used to obtain the corresponding equivalent unit for the same type of collector wire equipment by adopting the corresponding collector wire equivalent method according to the collector wire connection method; wherein, the collector wire connection method includes dry connection and radial connection.

[0017] As a preferred example of the second aspect, the first equivalent unit includes a first equivalent subunit; The first equivalent subunit is used to calculate the corresponding equivalent unit for the same type of unit equipment using the unit equivalent formula. The unit equivalent formula is as follows: Where n is the number of units of the same model. For the equivalent unit capacity, The equivalent active power of the generator unit. The reactive power of the equivalent unit. Let be the capacity of the i-th unit among units of the same model. This represents the active power of the i-th generating unit among units of the same model. This represents the reactive power of the i-th unit among units of the same model.

[0018] As a preferred example of the second aspect, the platform construction module further includes a first verification unit and a second verification unit; The first verification unit is used to acquire the first initial output electrical data of the energy storage system simulation platform and the second initial output electrical data of the preset detailed model, and to obtain the simulation error based on the first initial output electrical data and the second initial output electrical data; The second verification unit is used to iteratively update the energy storage system simulation platform according to the simulation error until the simulation error of the current iteration meets a preset threshold, and output the energy storage system simulation platform of the current iteration; wherein, in each iteration, the simulation error of the current iteration is obtained by setting the same fault condition for the energy storage system simulation platform and the preset detailed model.

[0019] As a preferred example of the second aspect, the packaging module includes a first packaging unit and a second packaging unit; The initial simulation model includes the circuit structure and control algorithm; The first encapsulation unit is used to sequentially import the control algorithms corresponding to each initial simulation model into the preset RTLAB software to generate the S-functions corresponding to each type of energy storage device. The second encapsulation unit is used to sequentially replace the control algorithms in each initial simulation model with the corresponding S-functions to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device.

[0020] In summary, this application's embodiments, by acquiring initial simulation models of various types of energy storage devices in the energy storage system, can comprehensively cover the electrical characteristics and operating parameters of different types of energy storage devices within the system, providing fundamental data support for subsequent simulations. The initial simulation model is encapsulated using the RTLAB dynamic link library encapsulation method, transforming the model into an independent dynamic link library. This protects the core control algorithms of the equipment manufacturer and ensures consistency between the simulation model and the actual control and protection system, improving the reliability of the simulation results. By using the equivalent unit calculation method to perform equivalent processing on the same type of energy storage devices, a large number of similar devices can be equivalent to a few equivalent units, significantly reducing the complexity of the system model, significantly reducing the amount of computation and computational resource consumption, and improving the efficiency of large-scale energy storage system simulation. A simulation platform is built in the RTLAB environment based on the encapsulated dynamic link library model and equivalent units. This simulation platform can perform simulation calculations on the energy storage system without involving the core algorithms. Therefore, it can solve the problem in existing technologies of reducing simulation computational resource consumption without involving the core control algorithms and while ensuring simulation accuracy.

[0021] Another embodiment of the present invention provides a terminal device, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the steps of the energy storage system simulation platform construction method based on equivalent calculation of the present invention.

[0022] Another embodiment of the present invention provides a computer-readable storage medium item, including: a stored computer program, which, when the computer program is running, controls the device where the computer-readable storage medium is located to perform the steps of the energy storage system simulation platform construction method based on equivalent calculation of the present invention. Attached Figure Description

[0023] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0024] Figure 1This is a flowchart illustrating an embodiment of a method for constructing an energy storage system simulation platform based on equivalent calculation provided by the present invention. Figure 2 The circuit structure diagram of the initial simulation model of an embodiment of the energy storage system simulation platform construction method based on equivalent calculation provided by the present invention; Figure 3 A detailed model diagram of an embodiment of the energy storage system simulation platform construction method based on equivalent calculation provided by the present invention; Figure 4 An equivalent model diagram of an embodiment of the energy storage system simulation platform construction method based on equivalent calculation provided by the present invention; Figure 5 This is a module structure diagram of an embodiment of an energy storage system simulation platform construction device based on equivalent calculation provided by the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0027] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0028] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0029] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0030] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).

[0031] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.

[0032] Example 1 See Figure 1 To address the problem in existing technologies of reducing simulation computational resource consumption without involving core control algorithms and ensuring simulation accuracy, an embodiment of the present invention provides a method for constructing an energy storage system simulation platform based on equivalent calculation, comprising: S1. Obtain the initial simulation model corresponding to each type of energy storage device in the energy storage system; S2. The initial simulation models corresponding to each type of energy storage device are encapsulated sequentially using the encapsulation method based on RTLAB dynamic link library to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device. Furthermore, in some embodiments of this application, the method of using an RTLAB dynamic link library-based encapsulation to sequentially encapsulate the initial simulation models corresponding to each type of energy storage device to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device specifically involves: The initial simulation model includes the circuit structure and control algorithm; The control algorithms corresponding to each initial simulation model are sequentially imported into the preset RTLAB software to generate the S-functions corresponding to each type of energy storage device. The control algorithms in each initial simulation model are replaced sequentially with the corresponding S-functions to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device.

[0033] Specifically, to fully explain the above steps, the following scheme will be used as an example: Taking the initial simulation model packaging of a power storage converter (PCS) as an example, firstly, prepare a computer with the necessary software installed and an RT-LAB simulator. Connect the computer and simulator using a network cable, ensuring that their IP addresses are on the same network segment. For the software, install MATLAB (which must include the Simulink code generation toolbox), install RT-LAB (the version must be compatible with MATLAB), and install the MobaXterm remote terminal tool. For the environment configuration, configure the compiler (such as MinGW64) in MATLAB and add an SSH connection to the RT-LAB simulator in MobaXterm (using the root account).

[0034] Secondly, model conversion and encapsulation can be performed as follows: ①Prepare script files: Place the three script files provided by OPRT into the Simulink model folder to generate all the C code for the S-function; ② Generate S-function: The initial simulation model includes the circuit structure and control algorithm, such as... Figure 2 The diagram shows the circuit structure of the initial simulation model. The S-function is the code execution file for the control algorithm of the initial simulation model. The circuit structure of the initial simulation model is retained, and the key control and protection strategy model parts are encapsulated. Specifically, in the Simulink principle model, the subsystem to be encapsulated is selected, the generation command is run, and a code folder is automatically generated; the automatically generated S-function module is replaced with a standard module; the generated code file is modified; a configuration module is generated; the configuration module generation command is run; the generated configuration module is merged with the original model and saved as a new model file. ③ File packaging: Upload the new model file, upload the generated code folder to the RTLAB simulator (Linux system) via MobaXterm, execute the packaging command, enter the code folder path, add script execution permissions, run the packaging script, and copy the generated library files back to the computer to form the packaged model file of the Windows system (that is, the final RTLAB dynamic link library model). ④ Verification Test: Create a test project. Create a new project in RT-LAB, import the encapsulated Windows system executable model file, compile and modify it. After the first compilation, modify the header file, adjust the compilation options, and then compile a second time. Run the verification test. Download and run the model, and compare the output results of the model before and after encapsulation. For example, compare the grid connection characteristics of PCS under fault conditions, and compare electrical quantities (such as three-phase voltage, three-phase current, positive sequence voltage, positive sequence current, active power, and reactive power). If the consistency is good, it indicates that the encapsulated dynamic link library model is accurate and effective.

[0035] S3. The energy storage devices of the same type in the energy storage system are sequentially equivalent using the equivalent unit calculation method to obtain the equivalent unit corresponding to each type of energy storage device. Furthermore, in some embodiments of this application, the step of sequentially equating the energy storage devices of the same model in the energy storage system using the equivalent unit calculation method to obtain the equivalent unit corresponding to each model of energy storage device specifically involves: The energy storage equipment includes generator set equipment, transformer substation equipment, and power collection line equipment; For the same type of generator set, the equivalent generator set is obtained using the generator set equivalence method; For the same type of prefabricated substation equipment, the equivalent unit is obtained by using the prefabricated substation equivalent method; For the same type of collector cable equipment, the corresponding equivalent unit is obtained by using the corresponding collector cable equivalent method according to the collector cable connection method; wherein, the collector cable connection method includes dry connection and radial connection.

[0036] Specifically, the equivalent generating unit obtained using the equivalent method for transformer substations can be calculated using the following formula: Where n is the number of the same type of prefabricated substation equipment. For the equivalent unit capacity, St represents the impedance of the equivalent unit, St represents the capacity of a single transformer substation, and Zt represents the impedance of a single transformer substation.

[0037] Specifically, the equivalent generating unit obtained by using the corresponding equivalent method for the collector wire connection method can be calculated using the following formula: The equivalent impedance of the collector wire is calculated based on the principle of consistent loss at the grid connection point. For dry connections, the formula for calculating the equivalent impedance of the collector wire is as follows: + +......+ in, The equivalent impedance of the collector wire unit. Let be the impedance of the busbar collector line from the i-th generating unit to the feeder grid connection point. Let be the active power of the i-th unit, and n be the total number of units participating in the equivalent calculation.

[0038] For radial connections, the formula for calculating the equivalent impedance of the collector wires is as follows: in, Let n be the equivalent impedance of the generator set for the collector cable, and n be the total number of generator sets participating in the equivalent calculation. Let be the impedance of the busbar collector line from the i-th generating unit to the feeder grid connection point. Let i be the active power of the i-th unit. Let be the admittance of the current collector of the i-th unit. The admittance of the equivalent unit for the collector wire.

[0039] Furthermore, in some embodiments of this application, the step of obtaining the corresponding equivalent unit using the unit equivalence formula for the same type of unit equipment specifically involves: For the same type of generator set, the equivalent generator set is calculated using the generator set equivalent formula, which is as follows: Where n is the number of units of the same model. For the equivalent unit capacity, The equivalent active power of the generator unit. The reactive power of the equivalent unit. Let be the capacity of the i-th unit among units of the same model. This represents the active power of the i-th generating unit among units of the same model. This represents the reactive power of the i-th unit among units of the same model.

[0040] S4. Build a simulation platform in the preset RTLAB environment, and obtain the energy storage system simulation platform based on the simulation platform, the equivalent unit corresponding to each type of energy storage equipment, and the equivalent unit corresponding to each type of energy storage equipment. Furthermore, in some embodiments of this application, after obtaining the energy storage system simulation platform, the method further includes: The first initial output electrical data of the energy storage system simulation platform and the second initial output electrical data of the preset detailed model are obtained, and the simulation error is obtained based on the first initial output electrical data and the second initial output electrical data. Based on the simulation error, the energy storage system simulation platform is iteratively updated until the simulation error of the current iteration meets a preset threshold, and the simulation platform of the current iteration is output; wherein, in each iteration, the simulation error of the current iteration is obtained by setting the same fault condition on the energy storage system simulation platform and the preset detailed model.

[0041] Specifically, to fully explain the above steps, the following scheme will be used as an example: Development of an Energy Storage System Simulation Platform Based on RTLAB Dynamic Link Library. This project involves developing an energy storage system simulation platform based on RTLAB dynamic link library, integrating the aforementioned technologies to achieve rapid and accurate simulation calculations for large-scale energy storage systems. Specifically, the development process first requires planning and designing the architecture and functions of the simulation platform. Then, using RTLAB software and other related tools, the corresponding modules and functions are developed. Finally, integration and testing are performed to ensure the platform's functionality and performance meet requirements.

[0042] like Figure 3 and Figure 4 The figures show the detailed model and equivalent model of the energy storage system. By comparing the equivalent and detailed models, the accuracy of the energy storage system simulation platform is verified, and calibration is performed according to actual needs to ensure the reliability and practicality of the simulation results. First, fault conditions are set at the grid connection point in both the detailed and equivalent models, and the fault responses are compared. Electrical quantities for comparison are selected, including those at the grid connection point of the energy storage power station, such as positive-sequence voltage, negative-sequence voltage, positive-sequence active power, positive-sequence reactive power, positive-sequence active and reactive current, and negative-sequence active and reactive current. If errors are found, calibration is required, adjusting the model parameters until the model's accuracy meets the requirements.

[0043] S5. Simulate the operating state of the energy storage system using the energy storage system simulation platform.

[0044] In summary, this application's embodiments, by acquiring initial simulation models of various types of energy storage devices in the energy storage system, can comprehensively cover the electrical characteristics and operating parameters of different types of energy storage devices within the system, providing fundamental data support for subsequent simulations. The initial simulation model is encapsulated using the RTLAB dynamic link library encapsulation method, transforming the model into an independent dynamic link library. This protects the core control algorithms of the equipment manufacturer and ensures consistency between the simulation model and the actual control and protection system, improving the reliability of the simulation results. By using the equivalent unit calculation method to perform equivalent processing on the same type of energy storage devices, a large number of similar devices can be equivalent to a few equivalent units, significantly reducing the complexity of the system model, significantly reducing the amount of computation and computational resource consumption, and improving the efficiency of large-scale energy storage system simulation. A simulation platform is built in the RTLAB environment based on the encapsulated dynamic link library model and equivalent units. This simulation platform can perform simulation calculations on the energy storage system without involving the core algorithms. Therefore, it can solve the problem in existing technologies of reducing simulation computational resource consumption without involving the core control algorithms and while ensuring simulation accuracy.

[0045] Example 2 like Figure 5 As shown, based on the above method embodiments, corresponding device embodiments are provided; An embodiment of the present invention provides a device for constructing a simulation platform for an energy storage system based on equivalent calculation, comprising: a model acquisition module 51, an encapsulation module 52, an equivalent module 53, a platform construction module 54, and a simulation module 55; the model acquisition module 51 is used to acquire the initial simulation models corresponding to each type of energy storage device in the energy storage system; the encapsulation module 52 is used to encapsulate the initial simulation models corresponding to each type of energy storage device sequentially using an RTLAB dynamic link library-based encapsulation method to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device; the equivalent module 53 is used to perform equivalent calculations on the same type of energy storage devices in the energy storage system sequentially using an equivalent unit calculation method to obtain the equivalent units corresponding to each type of energy storage device; the platform construction module 54 is used to build a simulation platform in a preset RTLAB environment, and obtain an energy storage system simulation platform based on the simulation platform, the equivalent units corresponding to each type of energy storage device, and the equivalent units corresponding to each type of energy storage device; the simulation module 55 is used to simulate the operating state of the energy storage system based on the energy storage system simulation platform.

[0046] Further, in some embodiments of this application, the equivalent module 53 includes a first equivalent unit, a second equivalent unit, and a third equivalent unit; the energy storage device includes generator set equipment, transformer substation equipment, and power collection line equipment; the first equivalent unit is used to obtain the corresponding equivalent generator set for generator set equipment of the same model using the generator set equivalent method; the second equivalent unit is used to obtain the corresponding equivalent generator set for transformer substation equipment of the same model using the transformer substation equivalent method; the third equivalent unit is used to obtain the corresponding equivalent generator set for power collection line equipment of the same model using the corresponding power collection line equivalent method according to the power collection line connection method; wherein, the power collection line connection method includes dry connection and radial connection.

[0047] Furthermore, in some embodiments of this application, the first equivalent unit includes a first equivalent subunit; the first equivalent subunit is used to calculate the corresponding equivalent unit for the same type of unit equipment using a unit equivalent formula, wherein the unit equivalent formula is as follows: Where n is the number of units of the same model. For the equivalent unit capacity, The equivalent active power of the generator unit. The reactive power of the equivalent unit. Let be the capacity of the i-th unit among units of the same model. This represents the active power of the i-th generating unit among units of the same model. This represents the reactive power of the i-th unit among units of the same model.

[0048] Furthermore, in some embodiments of this application, the platform construction module 54 further includes a first verification unit and a second verification unit; the first verification unit is used to acquire the first initial output electrical data of the energy storage system simulation platform and the second initial output electrical data of the preset detailed model, and to obtain the simulation error based on the first initial output electrical data and the second initial output electrical data; the second verification unit is used to iteratively update the energy storage system simulation platform based on the simulation error until the simulation error of the current iteration meets a preset threshold, and output the energy storage system simulation platform of the current iteration; wherein, in each iteration, the simulation error of the current iteration is obtained by setting the same fault condition for the energy storage system simulation platform and the preset detailed model.

[0049] Furthermore, in some embodiments of this application, the encapsulation module 52 includes a first encapsulation unit and a second encapsulation unit; the initial simulation model includes a circuit structure and a control algorithm; the first encapsulation unit is used to sequentially import the control algorithm corresponding to each initial simulation model into the preset RTLAB software to generate the S-function corresponding to each type of energy storage device; the second encapsulation unit is used to sequentially replace the control algorithm in each initial simulation model with the corresponding S-function to obtain the RTLAB dynamic link library model corresponding to each type of energy storage device.

[0050] For more detailed steps and working principles of this embodiment, please refer to the relevant description in Embodiment 1, but not limited to these descriptions.

[0051] In summary, this application's embodiments, by acquiring initial simulation models of various types of energy storage devices in the energy storage system, can comprehensively cover the electrical characteristics and operating parameters of different types of energy storage devices within the system, providing fundamental data support for subsequent simulations. The initial simulation model is encapsulated using the RTLAB dynamic link library encapsulation method, transforming the model into an independent dynamic link library. This protects the core control algorithms of the equipment manufacturer and ensures consistency between the simulation model and the actual control and protection system, improving the reliability of the simulation results. By using the equivalent unit calculation method to perform equivalent processing on the same type of energy storage devices, a large number of similar devices can be equivalent to a few equivalent units, significantly reducing the complexity of the system model, significantly reducing the amount of computation and computational resource consumption, and improving the efficiency of large-scale energy storage system simulation. A simulation platform is built in the RTLAB environment based on the encapsulated dynamic link library model and equivalent units. This simulation platform can perform simulation calculations on the energy storage system without involving the core algorithms. Therefore, it can solve the problem in existing technologies of reducing simulation computational resource consumption without involving the core control algorithms and while ensuring simulation accuracy.

[0052] It is understood that the above-described device embodiments correspond to the method embodiments of the present invention, and can implement the method for constructing an energy storage system simulation platform based on equivalent calculation provided by any of the above-described method embodiments of the present invention.

[0053] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can specifically be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0054] Example 3 Based on the above embodiments of the energy storage system simulation platform construction method based on equivalent calculation, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the energy storage system simulation platform construction method based on equivalent calculation of any embodiment of the present invention.

[0055] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.

[0056] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0057] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0058] Example 4 Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute the energy storage system simulation platform construction method based on equivalent calculation as described in any of the above-described method embodiments of the present invention.

[0059] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0060] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for constructing a simulation platform for an energy storage system based on equivalent calculation, characterized in that, include: Obtain the initial simulation model corresponding to each type of energy storage device in the energy storage system; The initial simulation models corresponding to each type of energy storage device are sequentially encapsulated using an RTLAB dynamic link library-based encapsulation method to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device. The equivalent unit calculation method is used to sequentially calculate the equivalent units of the same type of energy storage equipment in the energy storage system to obtain the equivalent units corresponding to each type of energy storage equipment. A simulation platform is built in the preset RTLAB environment, and an energy storage system simulation platform is obtained based on the simulation platform, the equivalent units corresponding to each type of energy storage equipment, and the equivalent units corresponding to each type of energy storage equipment. The operating state of the energy storage system is simulated using the energy storage system simulation platform.

2. The method for constructing a simulation platform for an energy storage system based on equivalent calculation as described in claim 1, characterized in that, The equivalent unit calculation method sequentially equates the energy storage devices of the same model in the energy storage system to obtain the equivalent unit corresponding to each model of energy storage device, specifically as follows: The energy storage equipment includes generator set equipment, transformer substation equipment, and power collection line equipment; For the same type of generator set, the equivalent generator set is obtained using the generator set equivalence method; For the same type of prefabricated substation equipment, the equivalent unit is obtained by using the prefabricated substation equivalent method; For the same type of collector cable equipment, the corresponding equivalent unit is obtained by using the corresponding collector cable equivalent method according to the collector cable connection method; wherein, the collector cable connection method includes dry connection and radial connection.

3. The method for constructing a simulation platform for an energy storage system based on equivalent calculation as described in claim 2, characterized in that, For the same type of generator set, the equivalent generator set is obtained using the generator set equivalent formula, specifically as follows: For the same type of generator set, the equivalent generator set is calculated using the generator set equivalent formula, which is as follows: Where n is the number of units of the same model. For the equivalent unit capacity, The equivalent active power of the generator unit. The reactive power of the equivalent unit. Let be the capacity of the i-th unit among units of the same model. This represents the active power of the i-th generating unit among units of the same model. This represents the reactive power of the i-th unit among units of the same model.

4. A method for constructing an energy storage system simulation platform based on equivalent calculation as described in any one of claims 1-3, characterized in that, After obtaining the energy storage system simulation platform, the following is also included: The first initial output electrical data of the energy storage system simulation platform and the second initial output electrical data of the preset detailed model are obtained, and the simulation error is obtained based on the first initial output electrical data and the second initial output electrical data. Based on the simulation error, the energy storage system simulation platform is iteratively updated until the simulation error of the current iteration meets a preset threshold, and the simulation platform of the current iteration is output; wherein, in each iteration, the simulation error of the current iteration is obtained by setting the same fault condition on the energy storage system simulation platform and the preset detailed model.

5. The method for constructing a simulation platform for an energy storage system based on equivalent calculation as described in claim 1, characterized in that, The method of encapsulating the initial simulation models corresponding to each type of energy storage device using the RTLAB dynamic link library-based encapsulation method sequentially yields the RTLAB dynamic link library models corresponding to each type of energy storage device. Specifically: The initial simulation model includes the circuit structure and control algorithm; The control algorithms corresponding to each initial simulation model are sequentially imported into the preset RTLAB software to generate the S-functions corresponding to each type of energy storage device. The control algorithms in each initial simulation model are replaced sequentially with the corresponding S-functions to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device.

6. A device for constructing a simulation platform for an energy storage system based on equivalent calculation, characterized in that, include: The module includes a model acquisition module, an encapsulation module, an equivalence module, a platform construction module, and a simulation module. The model acquisition module is used to acquire the initial simulation model corresponding to each type of energy storage device in the energy storage system; The encapsulation module is used to encapsulate the initial simulation models corresponding to each type of energy storage device in sequence using an encapsulation method based on RTLAB dynamic link library, so as to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device. The equivalent module is used to sequentially equate the energy storage devices of the same model in the energy storage system using the equivalent unit calculation method to obtain the equivalent unit corresponding to each model of energy storage device; The platform building module is used to build a simulation platform in a preset RTLAB environment, and obtain an energy storage system simulation platform based on the simulation platform, the equivalent unit corresponding to each type of energy storage equipment, and the equivalent unit corresponding to each type of energy storage equipment. The simulation module is used to simulate the operating state of the energy storage system based on the energy storage system simulation platform.

7. The device for constructing a simulation platform for an energy storage system based on equivalent calculation as described in claim 6, characterized in that, The equivalent module includes a first equivalent unit, a second equivalent unit, and a third equivalent unit; The energy storage equipment includes generator set equipment, transformer substation equipment, and power collection line equipment; The first equivalent unit is used to obtain the corresponding equivalent unit for the same type of unit equipment by using the unit equivalence method; The second equivalent unit is used to obtain the corresponding equivalent unit for the same type of prefabricated substation equipment using the prefabricated substation equivalent method; The third equivalent unit is used to obtain the corresponding equivalent unit for the same type of collector wire equipment by adopting the corresponding collector wire equivalent method according to the collector wire connection method; wherein, the collector wire connection method includes dry connection and radial connection.

8. The device for constructing a simulation platform for an energy storage system based on equivalent calculation as described in claim 7, characterized in that, The first equivalent unit includes a first equivalent subunit; The first equivalent subunit is used to calculate the corresponding equivalent unit for the same type of unit equipment using the unit equivalent formula. The unit equivalent formula is as follows: Where n is the number of units of the same model. For the equivalent unit capacity, The equivalent active power of the generator unit. The reactive power of the equivalent unit. Let be the capacity of the i-th unit among units of the same model. This represents the active power of the i-th generating unit among units of the same model. This represents the reactive power of the i-th unit among units of the same model.

9. The device for constructing a simulation platform for an energy storage system based on equivalent calculation as described in claim 6, characterized in that, The platform construction module also includes a first verification unit and a second verification unit; The first verification unit is used to acquire the first initial output electrical data of the energy storage system simulation platform and the second initial output electrical data of the preset detailed model, and to obtain the simulation error based on the first initial output electrical data and the second initial output electrical data; The second verification unit is used to iteratively update the energy storage system simulation platform according to the simulation error until the simulation error of the current iteration meets a preset threshold, and output the energy storage system simulation platform of the current iteration; wherein, in each iteration, the simulation error of the current iteration is obtained by setting the same fault condition for the energy storage system simulation platform and the preset detailed model.

10. The device for constructing a simulation platform for an energy storage system based on equivalent calculation as described in claim 6, characterized in that, The packaging module includes a first packaging unit and a second packaging unit; The initial simulation model includes the circuit structure and control algorithm; The first encapsulation unit is used to sequentially import the control algorithms corresponding to each initial simulation model into the preset RTLAB software to generate the S-functions corresponding to each type of energy storage device. The second encapsulation unit is used to sequentially replace the control algorithms in each initial simulation model with the corresponding S-functions to obtain the RTLAB dynamic link library models corresponding to each type of energy storage device.