Power transmission system real-time simulation method and apparatus, electronic device, and storage medium
By using a system-on-a-chip (SoC) hardware and software co-acceleration platform, and employing scalar and adaptive engines to perform parallel simulation calculations on the power transmission system, the problem that traditional electromagnetic transient simulation tools cannot meet the requirements of refined real-time simulation of large-scale power grid systems is solved, and efficient power grid simulation analysis and hardware-in-the-loop verification are achieved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
- Filing Date
- 2025-10-30
- Publication Date
- 2026-06-18
Smart Images

Figure CN2025131227_18062026_PF_FP_ABST
Abstract
Description
Real-time simulation methods, devices, electronic equipment and storage media for power transmission systems
[0001] This application claims priority to Chinese Patent Application No. 202411820169.1, filed on December 11, 2024, entitled “Real-time Simulation Method, Apparatus, Electronic Device and Storage Medium for Power Transmission Systems”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of power simulation technology, and in particular to a real-time simulation method, device, electronic equipment and storage medium for power transmission systems. Background Technology
[0003] Compared to traditional power systems dominated by the electromechanical transients of AC motors, the stable operating characteristics of new power systems have changed significantly. The microsecond-level power electronic switching processes of large-scale power electronic devices (such as new energy sources, DC, and energy storage) are intertwined with the millisecond- and second-level AC motor transient processes, exhibiting new stability phenomena such as wideband oscillations.
[0004] Accurate characterization of the complex dynamic processes and characteristics of new power systems relies on electromagnetic transient simulation. However, traditional electromagnetic transient simulation tools are primarily designed for the detailed electromagnetic process simulation of small-scale systems and power electronic devices such as DC systems, and have not been adapted for large-scale system simulation in terms of computation, memory, and communication. Therefore, they struggle to meet the performance requirements of microsecond-level real-time electromagnetic transient simulation for large-scale systems. In other words, traditional electromagnetic transient simulation tools are completely inadequate for the actual simulation and analysis needs of power grids and cannot achieve large-scale, detailed, real-time simulation results. Summary of the Invention
[0005] This application provides a method, apparatus, electronic device, and storage medium for real-time simulation of power transmission systems, which solves or partially solves the problem that traditional electromagnetic transient simulation cannot meet the actual simulation and analysis needs of power grids and cannot achieve large-scale, refined real-time simulation effects.
[0006] This application provides a real-time simulation method for power transmission systems, employing a system-on-a-chip (SoC) as a hardware-software co-acceleration platform for the power transmission system. The hardware-software co-acceleration platform includes a scalar engine and an adaptive engine. The real-time simulation method for the power transmission system includes:
[0007] Obtain the main circuit and first-level sub-module circuit of the power transmission system;
[0008] The first-level sub-module circuit is divided into multiple second-level sub-module circuits, and the multiple second-level sub-module circuits are further divided into multiple first sub-module circuits and multiple second sub-module circuits.
[0009] The scalar engine performs parallel simulation calculations on the simulation tasks of each second sub-module circuit, and the adaptive engine performs parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit.
[0010] Output the power simulation results of the power transmission system.
[0011] Optionally, the step of dividing the first-level sub-module circuit into multiple second-level sub-module circuits, and further dividing the multiple second-level sub-module circuits into multiple first sub-module circuits and multiple second sub-module circuits, includes:
[0012] By using the theory of extremely short transmission lines, the first-level sub-module circuit is divided into multiple second-level sub-module circuits;
[0013] Each of the secondary sub-module circuits is evaluated using simulation tasks. Based on the simulation task evaluation results, the multiple secondary sub-module circuits are further divided into multiple first sub-module circuits that are not of primary concern, and multiple second sub-module circuits that are of primary concern.
[0014] Optionally, the step of performing parallel simulation calculations on the simulation tasks of each second sub-module circuit through the scalar engine, and performing parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit through the adaptive engine, includes:
[0015] The simulation tasks of the second sub-module circuits of particular interest are distributed in the scalar engine so that the simulation tasks of each second sub-module circuit can be simulated in parallel through the scalar engine.
[0016] The simulation tasks of the non-critical first sub-module circuit and the main circuit are distributed in the adaptive engine, so that the simulation tasks of the main circuit and each of the first sub-module circuits can be simulated in parallel through the adaptive engine.
[0017] Optionally, the hardware and software collaborative acceleration platform further includes an on-chip communication network, which is used to connect different types of engines in the hardware and software collaborative acceleration platform to realize the interaction of computational information of the circuit network corresponding to the power transmission system after final segmentation.
[0018] Optionally, the real-time simulation method for the power transmission system further includes:
[0019] During the simulation calculation, the historical current source data of the previous step size of all transmission line theoretical segmentation nodes of the exchange circuit network are used through the on-chip communication network to solve the node voltage of the current step size.
[0020] Optionally, the internal circuit of each of the secondary submodule circuits consists of a built-in capacitor and a power electronic switch for maintaining DC voltage; the power electronic switch is used to control the built-in capacitor to connect to or disconnect from the main circuit; the control forms of the secondary submodule circuits include dual closed-loop control, submodule voltage equalization control, and bridge arm circulating current suppression control.
[0021] Optionally, the main circuit is obtained through the Norton equivalent method.
[0022] This application also provides a real-time simulation device for a power transmission system, which uses a system-on-a-chip (SoC) as a hardware-software co-acceleration platform for the power transmission system. The hardware-software co-acceleration platform includes a scalar engine and an adaptive engine. The real-time simulation device for the power transmission system includes:
[0023] The circuit acquisition unit is used to acquire the main circuit and first-level sub-module circuit of the power transmission system.
[0024] A circuit segmentation unit is used to segment the first-level sub-module circuit to obtain multiple second-level sub-module circuits, and to divide the multiple second-level sub-module circuits into multiple first sub-module circuits and multiple second sub-module circuits.
[0025] The simulation calculation unit is used to perform parallel simulation calculations on the simulation tasks of each second sub-module circuit through the scalar engine, and to perform parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit through the adaptive engine.
[0026] The simulation result output unit is used to output the power simulation results of the power transmission system.
[0027] This application also provides an electronic device, the device including a processor and a memory:
[0028] The memory is used to store program code and transmit the program code to the processor;
[0029] The processor is used to execute the real-time simulation method for the power transmission system as described above, according to the instructions in the program code.
[0030] This application also provides a computer-readable storage medium for storing program code for executing the real-time simulation method for a power transmission system as described in any of the preceding claims.
[0031] As can be seen from the above technical solutions, this application has the following advantages:
[0032] A real-time simulation method for power transmission systems is provided. The method employs a system-on-a-chip (SoC) as a hardware-software co-acceleration platform for the power transmission system, which includes a scalar engine and an adaptive engine. First, the main circuit and first-level sub-module circuits of the power transmission system are acquired. Then, the first-level sub-module circuits are partitioned to obtain multiple second-level sub-module circuits, which are further divided into multiple first-level and second-level sub-module circuits. Next, the scalar engine performs parallel simulation calculations on the simulation tasks of each second-level sub-module circuit, while the adaptive engine performs parallel simulation calculations on the simulation tasks of the main circuit and each first-level sub-module circuit. Finally, the power simulation results of the power transmission system are output. Thus, for the real-time simulation process of power transmission systems, circuit partitioning firstly divides a large-scale power transmission system simulation task into sub-module-level computational resources, and then sends the simulation tasks of multiple sub-module circuits into different processing engines for independent parallel computation to obtain simulation results. In this process, combining the fine-grained partitioning embodied by computational power partitioning with the independent parallel computing of each processing engine is equivalent to dividing a large simulation task into multiple smaller simulation tasks. By independently performing parallel computing on these smaller simulation tasks, the overall simulation time is significantly shortened, simulation efficiency is improved, and the actual simulation analysis needs of the power grid are met. Furthermore, based on the technical concept of combining computational power partitioning and independent parallel computing, the technical solution of this application can be applied to larger-scale power systems, thereby achieving large-scale, refined real-time simulation effects. Thus, by combining the resource characteristics of the on-chip system to partition the circuits of the transmission system, and simultaneously performing parallel simulation calculations on the partitioned circuit networks, not only can the actual simulation analysis needs of the power grid be met, but also large-scale, refined real-time simulation effects can be achieved. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art 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 based on these drawings without creative effort.
[0034] Figure 1 is a schematic diagram of the working principle of a hardware and software collaborative acceleration platform for a power transmission system.
[0035] Figure 2 is a flowchart of a real-time simulation method for a power transmission system.
[0036] Figure 3 is an example of the circuit principle structure of the left half of a power transmission system;
[0037] Figure 4 is an example diagram of a large number of interconnected sub-modules combined into different AC output voltage levels through control.
[0038] Figure 5 is a schematic diagram of the overall process of a real-time simulation method for a power transmission system.
[0039] Figure 6 is a structural block diagram of a real-time simulation device for a power transmission system. Detailed Implementation
[0040] This application provides a method, apparatus, electronic device, and storage medium for real-time simulation of power transmission systems, which solves or partially solves the problem that traditional electromagnetic transient simulation cannot meet the actual simulation and analysis needs of power grids and cannot achieve large-scale, refined real-time simulation effects.
[0041] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0042] As an example, the accurate characterization of complex dynamic processes and characteristics in novel power systems relies on electromagnetic transient simulation. However, traditional electromagnetic transient simulation tools are primarily designed for the refined electromagnetic process simulation of small-scale systems and power electronic devices such as DC systems, and have not been adapted for large-scale system simulation in terms of computation, memory, and communication. Therefore, they struggle to meet the performance requirements of microsecond-level real-time electromagnetic transient simulation for large-scale systems. In other words, traditional electromagnetic transient simulation tools are completely inadequate to meet the actual simulation and analysis needs of power grids and cannot achieve large-scale, refined, real-time simulation results.
[0043] For example, in actual power grid simulation analysis, simulation software is typically used on personal computers. Simulating a 20-second dynamic process of an equivalent power grid system with 11 DC lines, 600 synchronous machines, and 2000 nodes takes 6 hours. If considering renewable energy systems, simulating a detailed model of only 50 photovoltaic power generation units takes 4 hours. Furthermore, considering the randomness of renewable energy output, line maintenance, and various fault modes, the number of simulation scenarios for a single power grid safety and stability check reaches tens of thousands. Assuming each scenario's electromagnetic transient simulation takes 6 hours, considering 100,000 scenarios would require 600,000 hours.
[0044] Therefore, it is urgent to break through the key technologies of heterogeneous serial-parallel processing with hardware and software co-optimization to solve the problem of insufficient microsecond-level electromagnetic transient acceleration simulation performance of large-scale systems, so as to fully support the analysis of complex transient characteristics and safe and stable operation of new power systems.
[0045] Flexible direct current (DC) transmission systems are an indispensable and crucial energy transmission link in new power systems. They are responsible for transmitting a large amount of renewable energy generation from peripheral areas to the receiving-end grid where loads are high. Therefore, comprehensively assessing the safety and adequacy of flexible DC transmission systems is particularly important for power companies' large-scale pre-planning and post-commissioning. By establishing a real-time simulation system and connecting it to a hardware-in-the-loop environment, planning schemes can be effectively verified, and their design and planning adjustments can be further improved.
[0046] However, establishing a real-time simulation system for power transmission systems presents significant challenges. On one hand, the accuracy of the model must be considered. This application argues that embedding a device-level, refined real-time simulation model into a hardware-in-the-loop scenario would greatly reduce the difficulty of early-stage planning, selection, and testing of power electronic switches, as well as later-stage debugging when replacing new devices. On the other hand, the surge in computational load due to refined modeling must be addressed. Because of refined modeling, the number of network nodes increases exponentially. Therefore, it is crucial to optimize and partition the node network to increase the possibility of parallel computing while reducing the dependence on serial computation. If these two aspects cannot be well balanced, large-scale, refined real-time simulation will not be achievable.
[0047] A System-on-a-Chip (SoC) integrates multiple types of computing engines (such as scalar engines, vector engines, and adaptive engines) as well as various peripheral device controllers, memory controllers, and on-chip and inter-board communication interfaces within a single chip. This type of computing platform can effectively provide a flexible solution for configuring computing resources in the complex and ever-changing computing scenarios of new power systems. Based on this, different hardware and software co-acceleration schemes are applied for different application scenarios to achieve the application effect of real-time electromagnetic transient simulation. Finally, the safety and adequacy of the soft power system are verified in hardware-in-the-loop form.
[0048] Therefore, one of the core inventive points of this application is: addressing the shortcomings of traditional electromagnetic simulation methods, a real-time simulation method for a device-level flexible DC transmission system is provided based on a system-on-a-chip (SoC). First, the equivalent form of the main circuit and first-level sub-module circuits of the transmission system is obtained. Then, based on the extremely short transmission line theory, the first-level sub-module circuits are divided into multiple second-level sub-module circuits, which are further divided into multiple first-level sub-module circuits and multiple second-level sub-module circuits. Next, a scalar engine performs parallel simulation calculations on the simulation tasks of each second-level sub-module circuit, and an adaptive engine performs parallel simulation calculations on the simulation tasks of the main circuit and each first-level sub-module circuit. Finally, the power simulation results of the transmission system are output. Thus, by combining the resource characteristics of the SoC to perform computational partitioning of the transmission system circuits, and through parallel simulation calculations of the partitioned circuit network, not only can the actual simulation analysis needs of the power grid be met, but also a large-scale, refined real-time simulation effect can be achieved. The technical solution provided in this application takes into account circuit computing power partitioning, computing power evaluation, efficiency balancing, computing power splicing and real-time interaction. It can realize fine-grained modeling of the power transmission system at the device level, achieve real-time computing efficiency, and connect to hardware-in-the-loop testing to evaluate the safety and adequacy of the power transmission system and its control system.
[0049] Referring to Figure 1, a schematic diagram of the working principle structure of a hardware and software collaborative acceleration platform for a power transmission system provided in an embodiment of this application is shown.
[0050] As shown in Figure 1, this embodiment of the application uses a system-on-a-chip (SoC) as a hardware-software co-acceleration platform. This platform mainly consists of a scalar engine (i.e., a processor), an adaptive engine (i.e., reconfigurable hardware), and an intelligent engine (i.e., AI hardware). Each engine can be interconnected and cooperate through an on-chip ultra-high-speed, low-latency dedicated communication network (hereinafter referred to as the on-chip communication network), ultimately enabling highly optimized serial-parallel processing of computational tasks to achieve real-time simulation effects. In other words, the on-chip communication network of the hardware-software co-acceleration platform can be used to connect different types of engines within the platform to achieve computational information exchange between the circuit networks corresponding to the final segmented power transmission system.
[0051] The number of scalar engines on a system-on-a-chip is limited, making it suitable for highly serialized tasks. Scalar engines operate at gigahertz frequencies. Their efficiency can be improved by increasing the clock speed and optimizing the compilation process.
[0052] The adaptive engine utilizes a large amount of on-chip reconfigurable hardware resources. Operating at frequencies in the hundreds of megahertz range, it is suitable for architectures with highly parallel computing units. Efficiency can be improved by highly parallelizing its computational tasks.
[0053] The Intelligent Engine is dedicated hardware for artificial intelligence inference. Internally, it features an architecture with hundreds of dedicated hardware units operating at gigahertz frequencies for multiplication. The main function of the Intelligent Engine is to provide specific computing power to support complex applications and services, offering a highly efficient execution tool for proprietary acceleration of artificial intelligence inference.
[0054] The on-chip communication network connects various types of engines, enabling accelerated hardware and software collaboration. Ultra-high-speed, low-latency interconnection via the on-chip communication network facilitates the exchange of computational information between partitioned circuits.
[0055] Software acceleration refers to achieving high-efficiency execution by optimizing code and compilation on dedicated hardware such as processors. Hardware acceleration, on the other hand, involves recombining and rearranging electronic component-level logic computing units on reconfigurable hardware to achieve low-latency and high-parallelism computing acceleration.
[0056] Based on the foregoing description and referring to Figure 2, a flowchart of the steps of a real-time simulation method for a power transmission system provided in this application embodiment is shown, which may specifically include the following steps:
[0057] Step 201: Obtain the main circuit and first-level sub-module circuit of the power transmission system;
[0058] To enable those skilled in the art to better understand the technical solution of this application, Figure 3 exemplarily shows a circuit principle structure example of the left half of a power transmission system.
[0059] By mirroring the left and right halves, a complete flexible DC transmission system can be formed. For the DC connection section between the left and right halves, various types of transmission line models can be added as needed.
[0060] The AC-to-DC connection consists of resistors, inductors, series reactance, and numerous sub-modules (SMs). These numerous interconnected sub-modules can be controlled to combine them into different AC output voltage levels, as shown in Figure 4.
[0061] To keep the DC terminal voltage constant, the number of submodules in use remains constant. Generally, the number of submodules in operation is half the total number of submodules, and is an even number, to ensure that the number of DC voltage levels with zero-crossing modulation equals the number of submodules in operation plus one.
[0062] Based on the input indication within the dashed box on the right side of Figure 4, the power transmission system operates in a five-level mode. The number of inputs in the upper and lower bridge arms is fixed, but different submodules are selected based on the different charging and discharging states of the capacitors to ensure balanced capacitor charging and discharging.
[0063] The more submodules there are, the more similar the shape of the fitted sine wave will be, and the smaller the amplitude of the higher harmonics will be. In large-scale ultra-high voltage direct current transmission systems, hundreds of submodules are often connected in series to form a bridge arm for use.
[0064] Taking the power transmission system circuit structure in Figure 3 as an example, the main circuit can be reorganized into a five-node circuit using the Norton Equivalent theorem, consisting of three AC port nodes and two DC port nodes. In other words, the main circuit is obtained through the Norton Equivalent method. It should be noted that those skilled in the art can set the number of AC and DC port nodes in the main circuit based on actual needs and the actual power transmission system structure. It is understood that this application does not impose any limitations in this regard.
[0065] To distinguish it from the sub-module circuits obtained after segmentation, this application treats the sub-module circuits of the power transmission system as a whole and defines it as a first-level sub-module circuit.
[0066] Step 202: Perform circuit segmentation on the first-level sub-module circuit to obtain multiple second-level sub-module circuits, and divide the multiple second-level sub-module circuits into multiple first sub-module circuits and multiple second sub-module circuits;
[0067] In some optional embodiments, the primary submodule circuit is divided into multiple secondary submodule circuits, and the multiple secondary submodule circuits are further divided into multiple first submodule circuits and multiple second submodule circuits. This may include the following sub-steps S01 to S02:
[0068] S01: By using the theory of extremely short transmission lines, the first-level sub-module circuit is divided into multiple second-level sub-module circuits;
[0069] The Very Short Transmission Line Theory states that in power systems, when the transmission line is very short, its inductance and capacitance effects can be neglected, thus simplifying analysis and calculations. This theory applies to transmission lines whose length is much shorter than the wavelength, typically ranging from a few meters to tens of meters.
[0070] The extremely short transmission line theory can be used to partition a first-level submodule circuit to obtain multiple second-level submodule circuits. For example, using a single SM submodule as the partitioning granularity, S second-level submodule circuits can be obtained through circuit partitioning. Treating an SM submodule as a second-level submodule circuit can be considered as a device-level partitioning granularity. A second-level submodule circuit is also equivalent to a device-level submodule circuit.
[0071] Thus, through circuit partitioning, a circuit network consisting of S secondary sub-module circuits and a main circuit can be formed, which contains (S+1) parallel circuit sub-networks to be solved.
[0072] S02: Perform simulation task evaluation on each secondary sub-module circuit, and based on the simulation task evaluation results, further divide the multiple secondary sub-module circuits into multiple first sub-module circuits that are not of primary concern, and multiple second sub-module circuits that are of primary concern.
[0073] Due to the limited number of scalar engines, each scalar engine processor can only handle the real-time computation of a single device-level sub-module circuit. Placing the computation of hundreds or thousands of sub-modules in the scalar engine is impractical and difficult to implement, considering both real-time performance and computational resource burden.
[0074] The simulation step size for device-level submodule circuits is on the order of hundreds of nanoseconds. Assume that the number of device-level submodules calculated using the scalar engine is N. The device-level submodule circuits of primary interest (i.e., the secondary submodule circuits of primary interest) can be designated as the first submodule circuit, using a device-level model circuit, and allocated to the scalar engine for simulation calculations through example partitioning.
[0075] The calculations of device-level sub-module circuits (i.e., secondary sub-module circuits that do not require special attention) and the main circuit can be allocated to an adaptive engine with abundant simulation resources through example partitioning, and all will be solved using system-level circuit models. In this case, the secondary sub-module circuits that do not require special attention can also be regarded as system-level sub-module circuits. The simulation step size is on the order of ten microseconds. The number of system-level sub-module circuits is denoted as M, where S = M + N.
[0076] Simulation task evaluation can be understood as determining whether the simulation task of a submodule circuit is a key simulation task. Whether it is a key task depends on user needs or application methods. For example, if a user replaces a submodule with one of different parameters for stress testing, then that replacement module will be the focus of the study.
[0077] For example, when using hybrid submodules, the same bridge arm can include different types of submodules such as full-bridge submodules and half-bridge submodules. Because full-bridge submodules have isolation and protection functions, the device-level transient simulation waveforms of the full-bridge submodule can be the focus of attention.
[0078] Each secondary submodule circuit has an internal circuit consisting of a built-in capacitor and a power electronic switch to maintain DC voltage. The power electronic switch is used to control the built-in capacitor to connect to or disconnect from the main circuit. The control methods of the secondary submodule circuit include dual closed-loop control, submodule voltage equalization control, bridge arm circulating current suppression control, etc.
[0079] It should be noted that the above is the resource allocation scheme for the circuit solving part. Since the control part requires flexible configuration, it can be placed in the adaptive engine, thus not occupying scarce scalar engine resources.
[0080] Step 203: Perform parallel simulation calculations on the simulation tasks of each second sub-module circuit through the scalar engine, and perform parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit through the adaptive engine.
[0081] Based on the foregoing discussion, in some optional embodiments, a scalar engine is used to perform parallel simulation calculations on the simulation tasks of each second sub-module circuit, and an adaptive engine is used to perform parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit. Specifically, the simulation tasks of the second sub-module circuits of primary interest are distributed on the scalar engine to perform parallel simulation calculations on the simulation tasks of each second sub-module circuit; the simulation tasks of the first sub-module circuits and the main circuit, which are not of primary interest, are distributed on the adaptive engine to perform parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit.
[0082] Based on the preceding information, data from various computing units can be exchanged via the on-chip communication network, providing historical current source data from the previous step for all theoretically segmented nodes of the transmission lines for solving the node voltage at the current step. Therefore, during simulation calculations, the historical current source data from the previous step for all theoretically segmented nodes of the transmission lines in the circuit network can be exchanged via the on-chip communication network to solve for the node voltage at the current step.
[0083] Suppose that in a simulation calculation, the power transmission system has a total of 300 sub-module circuits in use. After dividing the overall first-level sub-module circuits into circuits, we can obtain 300 device-level sub-module circuits (i.e., second-level sub-module circuits), plus the original overall circuit (i.e., the main circuit), corresponding to 301 circuit simulation tasks that need to be calculated.
[0084] Parallel simulation computing refers to the independent and parallel solving of simulation tasks corresponding to 300 device-level sub-module circuits and an overall main circuit (a total of 301 circuits).
[0085] The allocation of parallel computational tasks to specific computing resources is determined by the user. Simulation tasks can be assigned to an adaptive engine. For example, simulation tasks for non-critical device-level sub-module circuits (which can be considered system-level sub-module circuits) can be assigned to parallel FPGA (Field-Programmable Gate Array) resources. Alternatively, simulation tasks can be assigned to a resource-constrained scalar engine. For example, simulation tasks for critical device-level sub-module circuits can be assigned to processor resources.
[0086] Step 204: Output the power simulation results of the power transmission system.
[0087] After completing all simulation tasks, the overall power simulation results of the power transmission system can be output.
[0088] This application provides a real-time simulation method for a device-level flexible DC transmission system based on a system-on-a-chip (SoC). By combining the resource characteristics of the SoC to perform computational partitioning of the transmission system's circuits, and through parallel simulation calculations of the partitioned circuit networks, it can not only meet the actual simulation analysis needs of the power grid but also achieve large-scale, refined real-time simulation results. The solution provided in this application simultaneously considers circuit computational partitioning, computational evaluation, efficiency balancing, computational splicing, and real-time interaction. It can achieve refined device-level modeling of the transmission system, achieve real-time computational efficiency, and integrate hardware-in-the-loop testing to evaluate the safety and adequacy of the transmission system and its control system.
[0089] For better illustration, please refer to FIG5, which shows a schematic diagram of the overall process of a real-time simulation method for a power transmission system provided in an embodiment of this application. It should be noted that this embodiment only provides a brief description of the general process of real-time simulation of a power transmission system. The specific implementation process of each step can be understood by referring to the relevant content in the foregoing embodiments, and will not be elaborated here. It is understood that this application does not impose any limitations on this.
[0090] Step 501: Obtain the main circuit and first-level sub-module circuit of the power transmission system;
[0091] Step 502: Using the theory of extremely short transmission lines, the first-level sub-module circuit is divided into multiple second-level sub-module circuits;
[0092] Step 503: Perform simulation task evaluation on each secondary sub-module circuit, and based on the simulation task evaluation results, further divide the multiple secondary sub-module circuits into multiple system-level sub-module circuits that are not of primary concern, and multiple device-level sub-module circuits that are of primary concern.
[0093] Step 504: Distribute the simulation tasks of the key device-level sub-module circuits across the scalar engine to perform parallel simulation calculations on the simulation tasks of each device-level sub-module circuit through the scalar engine.
[0094] Step 505: Distribute the simulation tasks of non-critical system-level sub-module circuits and main circuits across the adaptive engine, so that the simulation tasks of the main circuit and each system-level sub-module circuit can be performed in parallel through the adaptive engine.
[0095] Step 506: During the simulation calculation, the historical current source data of the previous step size of all transmission line theoretical segmentation nodes in the exchange circuit network are used through the on-chip communication network to solve the node voltage of the current step size.
[0096] Step 507: Output the power simulation results of the power transmission system.
[0097] Referring to Figure 6, a structural block diagram of a real-time simulation device for a power transmission system according to an embodiment of this application is shown. The device employs a system-on-a-chip (SoC) as a hardware-software co-acceleration platform for the power transmission system. This hardware-software co-acceleration platform includes a scalar engine and an adaptive engine. Specifically, the real-time simulation device for the power transmission system may include:
[0098] The circuit acquisition unit 601 is used to acquire the main circuit and the first-level sub-module circuit of the power transmission system.
[0099] The circuit segmentation unit 602 is used to perform circuit segmentation on the first-level sub-module circuit to obtain multiple second-level sub-module circuits, and to divide the multiple second-level sub-module circuits into multiple first sub-module circuits and multiple second sub-module circuits.
[0100] The simulation calculation unit 603 is used to perform parallel simulation calculations on the simulation tasks of each second sub-module circuit through the scalar engine, and to perform parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit through the adaptive engine.
[0101] The simulation result output unit 604 is used to output the power simulation results of the power transmission system.
[0102] In one alternative embodiment, the circuit segmentation unit 602 includes:
[0103] The circuit segmentation unit is used to segment the first-level sub-module circuit using the extremely short transmission line theory to obtain multiple second-level sub-module circuits.
[0104] The circuit secondary partitioning unit is used to perform simulation task evaluation on each of the secondary sub-module circuits respectively, and based on the simulation task evaluation results, further divide the multiple secondary sub-module circuits into multiple first sub-module circuits that are not of primary concern, and multiple second sub-module circuits that are of primary concern.
[0105] In one alternative embodiment, the simulation calculation unit 603 includes:
[0106] The scalar engine computing unit is used to distribute the simulation tasks of the second sub-module circuits of interest to the scalar engine, so as to perform parallel simulation calculations on the simulation tasks of each second sub-module circuit through the scalar engine.
[0107] An adaptive engine computing unit is used to distribute the simulation tasks of the non-priority first sub-module circuit and the main circuit to the adaptive engine, so as to perform parallel simulation calculations on the main circuit and the simulation tasks of each first sub-module circuit through the adaptive engine.
[0108] In one optional embodiment, the hardware-software co-acceleration platform further includes an on-chip communication network, which is used to connect different types of engines in the hardware-software co-acceleration platform to realize the interaction of computational information of the circuit network corresponding to the power transmission system after final segmentation.
[0109] In one optional embodiment, the real-time simulation device for the power transmission system further includes:
[0110] The simulation interactive solution unit is used to exchange historical current source data of the previous step size of all transmission line theoretical segmentation nodes of the circuit network through the on-chip communication network during the simulation calculation process, so as to solve the node voltage of the current step size.
[0111] In one optional embodiment, the internal circuit of each of the secondary submodule circuits consists of a built-in capacitor and a power electronic switch for maintaining DC voltage; the power electronic switch is used to control the built-in capacitor to connect to or disconnect from the main circuit; the control forms of the secondary submodule circuits include dual closed-loop control, submodule voltage equalization control, and bridge arm circulating current suppression control.
[0112] In one alternative embodiment, the main circuit is obtained through the Norton equivalent.
[0113] As the device embodiment is basically similar to the method embodiment, it is described in a relatively simple way. For relevant details, please refer to the description of the method embodiment above.
[0114] It should be noted that, in order to enable those skilled in the art to better distinguish between data of the same type but with different actual meanings, the embodiments of this application use terms such as "first" and "second" to distinguish and describe some technical features. The terms "first" and "second" are used only for data differentiation and have no other special meanings. It is understood that this application does not impose any restrictions on them.
[0115] This application also provides an electronic device, which includes a processor and a memory:
[0116] The memory is used to store program code and transfer the program code to the processor;
[0117] The processor is used to execute the real-time simulation method of the power transmission system according to the instructions in the program code of any embodiment of this application.
[0118] This application also provides a computer-readable storage medium for storing program code, which is used to execute the real-time simulation method for a power transmission system according to any embodiment of this application.
[0119] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0120] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0121] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0122] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0123] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0124] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A real-time simulation method for a power transmission system, characterized in that, A system-on-a-chip is used as a hardware and software co-acceleration platform for the power transmission system. The hardware and software co-acceleration platform includes a scalar engine and an adaptive engine. The real-time simulation method for the power transmission system includes: Obtain the main circuit and first-level sub-module circuit of the power transmission system; The first-level sub-module circuit is divided into multiple second-level sub-module circuits, and the multiple second-level sub-module circuits are further divided into multiple first sub-module circuits and multiple second sub-module circuits. The scalar engine performs parallel simulation calculations on the simulation tasks of each second sub-module circuit, and the adaptive engine performs parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit. Output the power simulation results of the power transmission system.
2. The real-time simulation method for power transmission systems according to claim 1, characterized in that, The step of dividing the first-level sub-module circuit into multiple second-level sub-module circuits, and further dividing the multiple second-level sub-module circuits into multiple first sub-module circuits and multiple second sub-module circuits, includes: By using the theory of extremely short transmission lines, the first-level sub-module circuit is divided into multiple second-level sub-module circuits; Each of the secondary sub-module circuits is evaluated using simulation tasks. Based on the simulation task evaluation results, the multiple secondary sub-module circuits are further divided into multiple first sub-module circuits that are not of primary concern, and multiple second sub-module circuits that are of primary concern.
3. The real-time simulation method for power transmission systems according to claim 2, characterized in that, The step of performing parallel simulation calculations on the simulation tasks of each second sub-module circuit using the scalar engine, and performing parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit using the adaptive engine, includes: The simulation tasks of the second sub-module circuits of particular interest are distributed in the scalar engine so that the simulation tasks of each second sub-module circuit can be simulated in parallel through the scalar engine. The simulation tasks of the non-critical first sub-module circuit and the main circuit are distributed in the adaptive engine, so that the simulation tasks of the main circuit and each of the first sub-module circuits can be simulated in parallel through the adaptive engine.
4. The real-time simulation method for power transmission systems according to claim 2, characterized in that, The hardware and software collaborative acceleration platform also includes an on-chip communication network, which is used to connect different types of engines in the hardware and software collaborative acceleration platform to realize the interaction of computational information of the circuit network corresponding to the power transmission system after final segmentation.
5. The real-time simulation method for power transmission systems according to claim 4, characterized in that, Also includes: During the simulation calculation, the historical current source data of the previous step size of all transmission line theoretical segmentation nodes of the exchange circuit network are used through the on-chip communication network to solve the node voltage of the current step size.
6. The real-time simulation method for power transmission systems according to claim 1, characterized in that, Each of the secondary sub-module circuits has an internal circuit consisting of a built-in capacitor and a power electronic switch to maintain DC voltage; the power electronic switch is used to control the built-in capacitor to connect to or disconnect from the main circuit; the control methods of the secondary sub-module circuits include dual closed-loop control, sub-module voltage equalization control, and bridge arm circulating current suppression control.
7. The real-time simulation method for power transmission systems according to any one of claims 1 to 6, characterized in that, The main circuit is obtained through the Norton equivalent method.
8. A real-time simulation device for a power transmission system, characterized in that, A system-on-a-chip (SoC) is used as the hardware-software co-acceleration platform for the power transmission system. This platform includes a scalar engine and an adaptive engine. The real-time simulation device for the power transmission system includes: The circuit acquisition unit is used to acquire the main circuit and first-level sub-module circuit of the power transmission system. A circuit segmentation unit is used to segment the first-level sub-module circuit to obtain multiple second-level sub-module circuits, and to divide the multiple second-level sub-module circuits into multiple first sub-module circuits and multiple second sub-module circuits. The simulation calculation unit is used to perform parallel simulation calculations on the simulation tasks of each second sub-module circuit through the scalar engine, and to perform parallel simulation calculations on the simulation tasks of the main circuit and each first sub-module circuit through the adaptive engine. The simulation result output unit is used to output the power simulation results of the power transmission system.
9. An electronic device, characterized in that, The device includes a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the real-time simulation method for power transmission systems according to any one of claims 1-7, based on the instructions in the program code.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store program code for executing the real-time simulation method for power transmission systems according to any one of claims 1-7.