A method and system for running a data-driven multi-voltage level power grid hierarchical partition electromagnetic transient modeling
Patent Information
- Application Number
- CN202611485603.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-23
- Publication Date
- 2026-10-27
Smart Images

Figure CN122987265A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electromagnetic transient modeling technology, and in particular to a data-driven method and system for hierarchical and partitioned electromagnetic transient modeling of multi-voltage-level power grids. Background Technology
[0002] With the continuous expansion of new energy sources such as wind power and photovoltaics, the power grid structure is becoming increasingly complex. Furthermore, power systems often encompass multiple voltage levels, making the grid's operating state more significantly affected by factors such as power output fluctuations, load changes, and the switching of reactive power compensation devices. Static analysis alone is insufficient to accurately reflect dynamic responses, thus demanding more refined analysis of transient processes. Therefore, to accurately analyze the transient response characteristics of multi-voltage-level power grids under complex operating scenarios, it is necessary to establish an electromagnetic transient simulation model that reflects the actual power grid structure and operating state.
[0003] In existing electromagnetic transient modeling of multi-voltage-level power grids, networks of different voltage levels are often laid out in a uniform manner at the same level, lacking a hierarchical and partitioned modeling approach adapted to the hierarchical characteristics of actual power grids. This approach is not conducive to the hierarchical display of networks at different voltage levels, and the readability of the model will further decrease when the research object is further expanded to a large-scale power grid. In actual power grid operation, data such as load active and reactive power, transformer tap positions, and output of wind power, photovoltaic, and thermal power units change continuously with the operation period. Existing technologies usually require modifying model parameters one by one or constructing multiple operation mode models separately, which is not only inefficient but also fails to reflect changes in actual operating conditions, affecting the application effect of the model in research scenarios such as operation mode analysis and operating condition switching simulation.
[0004] Therefore, it is necessary to propose an electromagnetic transient modeling method for multi-voltage-level power grids that takes into account hierarchical and zonal organization and operation data-driven updates. A two-layer page model is constructed based on the voltage level. In the first-layer page model, a map appearance and a model appearance are established in combination with the actual geographical location relationship, and a primary network model is encapsulated inside the model appearance. The second-layer page model centrally carries the lower voltage-level network. At the same time, the model parameters are updated in time periods using operation data to solve the problems of unclear model structure, low parameter update efficiency, and insufficient adaptability to operation mode in the process of complex power grid modeling. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of the existing technology in the process of electromagnetic transient modeling of multi-voltage level power grids, such as unclear model hierarchy, chaotic network organization of different voltage levels, and low efficiency of importing and updating operating data, and to provide an operating data-driven hierarchical and partitioned electromagnetic transient modeling method and system for multi-voltage level power grids.
[0006] The objective of this invention can be achieved through the following technical solutions: A data-driven, hierarchical, and partitioned electromagnetic transient modeling method for multi-voltage-level power grids includes: Step 1: Collect the geographical wiring diagram, primary network diagram, equipment parameters and operating data of the target multi-voltage level power grid, and organize the equipment parameters and operating data to form CSV data in a predetermined format; Step 2: Based on the voltage levels of the target multi-voltage power grid, the system is layered to construct a first-layer page model and a second-layer page model. The first-layer page model is constructed based on the high-voltage-level network, and a map appearance and model appearance corresponding to the actual geographical location are established in the first-layer page model based on the geographical wiring. The corresponding primary network model is encapsulated inside the model appearance based on the primary network diagram. The second-layer page model is constructed based on the low-voltage-level network, and whether to partition the second-layer page model is determined according to the size of the graphical modeling page. An electrical connection is established between the first-layer page model and the second-layer page model. Step 3: Read the CSV data and transmit it to the corresponding page model. Use the running data to drive the parameter configuration and time-segmented update of the corresponding page model to obtain a hierarchical and partitioned electromagnetic transient simulation model.
[0007] Furthermore, the CSV data in the predetermined format includes a first CSV data file for assigning global substitution parameters and a second CSV data file for updating model parameters over time. The first CSV data file consists of two columns of data, where the first column is the variable name and the second column is the fixed variable value corresponding to each variable name; The second CSV data file includes several rows of data. The first row contains variable names, which include time-varying parameters. The second row contains the initial values of each variable. The subsequent rows contain the variable values corresponding to different runtime periods, i.e., the time-varying parameter values.
[0008] Furthermore, based on the preset simulation initialization time and the simulation duration corresponding to each runtime segment... T and simulation step size Δ t The time-varying parameter values arranged row by row in the second CSV data file are updated in time intervals. The time-segmented update process includes: After the simulation starts, the second CSV data file is read, and the initial values of each variable in the second CSV data file are used to assign parameter values during the simulation initialization phase. Once the simulation time reaches the preset simulation initialization time, the time-varying parameter value row number counter of the second CSV data file is set. i=1, and increment the simulation step count corresponding to the row containing the current time-varying parameter value. j Set to zero; Based on the i Simulation is performed using time-varying parameter values. After each simulation step is completed, the following is set: j = j +1, when j Δ t < T At that time, maintain the first i The simulation continues with the time-varying parameter values. when j Δ t ≥ T At that time, check if there is a time-varying parameter value in the next row. If it exists, then let... i = i +1, will j Set to zero, and based on the updated first... i If the time-varying parameter value for a row is not found, the simulation continues; if it is not found, the time-varying parameter value for the current row is maintained until the simulation ends, thus completing the update process.
[0009] Furthermore, the construction process of the map appearance and model appearance in the first-layer page model includes: A map base is established based on the geographical outline of the target multi-voltage level power grid area. The relative geographical locations of each substation, power plant, and main transmission line are determined according to the geographical wiring diagram. The corresponding substation model appearance, power plant model appearance, and main transmission line are arranged on the map base according to the relative geographical locations, so that the positional relationship of each model appearance in the first-layer page model corresponds to the actual geographical wiring diagram.
[0010] Furthermore, based on the primary network diagram of the target multi-voltage level power grid, the corresponding primary network model is encapsulated inside each model appearance of the first layer page model, and the electrical connection relationship between the electrical components inside each primary network model and between different model appearances is determined according to the primary network diagram.
[0011] Furthermore, the construction process of the second-layer page model includes: Based on the low-voltage network, build lines, distribution transformers, loads and reactive power compensation devices of various low-voltage levels, and complete the connection between various electrical components according to the actual power distribution topology, thus completing the construction process of the second-layer page model. When the size of the low-voltage network in the second-layer page model exceeds the maximum size allowed by the graphical modeling page, the low-voltage network is divided into multiple power supply zones according to the actual power distribution topology, and a corresponding second-layer partition page model is established for each power supply zone.
[0012] Furthermore, an electrical connection is established between the first-layer page model and the second-layer page model by encapsulating the transformer inside the strain gauge power station model within the first-layer page model.
[0013] Furthermore, the steps for establishing the electrical connection include: A first layer of inter-layer interface nodes is provided on the low-voltage side of the transformer; In the second-layer page model, set the second-layer inter-layer interface node corresponding to the first-layer inter-layer interface node; Electrical connections are established between the low-voltage side of the transformer and the low-voltage level network in the second-layer page model through corresponding first-layer and second-layer inter-layer interface nodes. Furthermore, in step 4, the process of using the operational data for driving includes: Read and parse the CSV data to identify the variable names and corresponding variable values in the CSV data; For the first CSV data file, the fixed variable values that remain unchanged during a single simulation are imported into the corresponding page model for parameter assignment at the start of the simulation. For the second CSV data file, the variable names and corresponding variable values are transmitted to the corresponding first-level page model and second-level page model through cross-page transmission. The parameters of the corresponding page model are assigned and updated according to the preset time-segmented update process to complete the parameter configuration and time-segmented update of the running data of each page model.
[0014] This invention also provides a data-driven hierarchical and zoned electromagnetic transient modeling system for multi-voltage-level power grids, comprising: The raw data processing module is used to collect the geographical wiring diagram, primary network diagram, equipment parameters and operating data of the target multi-voltage level power grid, and to process the equipment parameters and operating data into CSV data in a predetermined format. The first-layer page model construction module is used to divide the target multi-voltage power grid into layers according to the voltage level to construct a first-layer page model and a second-layer page model. The first-layer page model is constructed based on the high-voltage network, and a map appearance and model appearance corresponding to the actual geographical location are established in the first-layer page model based on the geographical wiring diagram. The corresponding primary network model is encapsulated inside the model appearance based on the primary network diagram. The second-layer page model construction module is used to construct a second-layer page model based on a low-voltage network, and to determine whether to partition the second-layer page model according to the size of the graphical modeling page, wherein an electrical connection is established between the first-layer page model and the second-layer page model. The running data-driven module is used to read the CSV data and transmit it to the corresponding page model, and use the running data to drive the corresponding page model to configure parameters and update them in different time periods to obtain a hierarchical and partitioned electromagnetic transient simulation model.
[0015] Compared with the prior art, the beneficial effects of the present invention include: 1. This invention hierarchically divides the target multi-voltage power grid into layers based on the voltage levels, making the layered and partitioned page model highly modular. Combined with the standard CSV data interface, subsequent power grid expansion, model maintenance, or scenario switching only requires updating the parameters of the corresponding layer / partition. The overall solution significantly enhances the flexibility and scalability of the model, providing efficient, intuitive, and sustainably evolving technical support for electromagnetic transient analysis of complex multi-voltage power grids.
[0016] 2. This invention constructs a first-layer page model and a second-layer page model based on voltage levels. In the first-layer page model, a map appearance and a model appearance are established according to the actual geographical location relationship, and the corresponding primary network model is encapsulated inside the corresponding model appearance. In the second-layer page model, low-voltage level networks are centrally established. When the size of the low-voltage level network exceeds the maximum size allowed by the graphical modeling page, multiple power supply zones can be divided according to the actual topology relationship, and a corresponding second-layer partition page model is established for each power supply zone, thereby improving the model's hierarchical clarity, structural readability, and the convenience of maintaining complex power grid models.
[0017] 3. This invention combines high- and low-voltage hierarchical design with on-demand partitioning of the low-voltage side, achieving a dimensionality reduction representation of complex large power grids from a physical structure perspective. The establishment of electrical connections between layers ensures the complete transmission of the overall electrical characteristics of the power grid after hierarchical partitioning. This invention enables flexible simplification of large-scale networks on the low-voltage side to control the amount of simulation computation and improve simulation speed, while ensuring the global accuracy of electromagnetic transient processes through electrical coupling, thus solving the problem of excessive computational resource consumption in full-model simulation.
[0018] 4. This invention deeply binds the temporal characteristics of the operating data with the hierarchical and partitioned model, so that the model is no longer static and fixed, but can dynamically update parameters according to the actual operating state of the power grid in different time periods. This collaboration gives the model the ability to continuously track the actual operating conditions of the power grid, greatly improving the applicability and prediction reliability of electromagnetic transient simulation in different time periods.
[0019] 5. This invention organizes equipment parameters and operating data into standardized CSV data. Through automatic parameter reading, cross-page data transmission, and time-segmented updates, it automatically and accurately completes the parameter configuration of two page models. This collaborative mechanism, which decouples data from models yet automatically associates them, avoids the tedious process of manually entering parameters one by one, reduces the workload of modifying model parameters one by one, and improves the efficiency of switching operating modes and model maintenance. Attached Figure Description
[0020] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is an appearance diagram of the first-layer page model in Example 3; Figure 3 This is an appearance diagram of the second-layer page model in Example 3; Figure 4 This is a schematic diagram of some internal wiring and inter-layer interfaces of ZSGZ in the first-layer page model in Example 3; Figure 5 This is a schematic diagram of some internal wiring and inter-layer interfaces of ZSGZ in the second-layer page model in Example 3; Figure 6 This is a flowchart illustrating the time-segmented update control process for the CSV data reading function in the data-driven module. Detailed Implementation
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0022] Example 1 This embodiment discloses a data-driven hierarchical and partitioned electromagnetic transient modeling method for multi-voltage level power grids, the method as follows: Figure 1 As shown, steps S1 to S4 are included, and each step is described in detail below: Step S1: Collect the geographical wiring diagram, primary network diagram, equipment parameters and operating data of the target multi-voltage level power grid, and organize the equipment parameters and operating data to form CSV data in a predetermined format.
[0023] The predefined CSV data includes a first CSV file for assigning global substitution parameters and a second CSV file for updating model parameters over time. The first CSV file consists of two columns: the first column contains the variable names, and the second column contains the fixed variable values corresponding to each variable name.
[0024] The second CSV data file contains several rows of data. The first row contains variable names, including time-varying parameters. The second row contains the initial values of each variable. The subsequent rows contain the time-varying variable values corresponding to different runtime segments.
[0025] Step S2: Based on the voltage levels of the target multi-voltage power grid, the first-layer page model and the second-layer page model are constructed. In the first-layer page model, a map appearance and a model appearance corresponding to the actual geographical location are established, and the corresponding primary network model is encapsulated inside the model appearance.
[0026] The target multi-voltage power grid is hierarchically structured based on its voltage levels, with high-voltage networks built on the first-level page model and the remaining low-voltage networks built on the second-level page model.
[0027] The following describes how to construct the first-level page model: A map base is established based on the geographical outline of the target multi-voltage power grid area. The relative geographical locations of substations, power plants and main transmission lines are determined based on the geographical wiring diagram. The corresponding substation model appearance, power plant model appearance and main transmission line appearance are arranged on the map base according to the relative geographical locations, so that the positional relationship of each model appearance in the first-layer page model corresponds to the actual geographical wiring diagram.
[0028] Based on the primary network diagram of the target multi-voltage level power grid, the corresponding primary network model is encapsulated inside each model appearance, and the electrical components inside each primary network model and the electrical connection relationships between different model appearances are determined according to the primary network diagram.
[0029] Step S3: Establish a low-voltage level network in the second-layer page model, establish an electrical connection between the first-layer page model and the second-layer page model by using the transformer encapsulated in the first-layer page model inside the strain gauge power station model, and determine whether to partition the second-layer page model according to the size of the graphical modeling page.
[0030] The second-layer page model is used to centrally establish low-voltage level networks.
[0031] The lines, distribution transformers, loads, and reactive power compensation devices of each low voltage level are set up in sequence, and the connections between each electrical component are completed according to the actual power distribution topology.
[0032] When the size of the low-voltage network in the second-layer page model exceeds the maximum size allowed by the graphical modeling page, the low-voltage network is divided into multiple power supply zones according to the actual topology, and a corresponding second-layer partition page model is established for each power supply zone.
[0033] The transformer used to establish inter-layer electrical connections is set in the first-layer page model, and a first-layer inter-layer interface node is set on the low-voltage side of the transformer; a corresponding second-layer inter-layer interface node is set in the second-layer page model, and an electrical connection between the low-voltage side of the transformer and the low-voltage level network in the second-layer page model is established through the corresponding inter-layer interface node.
[0034] Step S4: Read the CSV data and transmit it to the corresponding page model to complete the parameter configuration and time-segmented update of the corresponding page model, and obtain the hierarchical and partitioned electromagnetic transient simulation model.
[0035] First, read and parse the CSV data file to identify the variable names and their corresponding values.
[0036] For the first CSV data file, the fixed variable values that remain unchanged throughout a single simulation are directly imported into the corresponding page model for parameter assignment at the start of the simulation.
[0037] For the second CSV data file, the parsed variable names and corresponding variable values are output to the sending end of the data cross-page sending and receiving module. Corresponding receiving ends are set in the first-level page model and the second-level page model that need to be assigned parameter values. The variable names and corresponding variable values are transmitted to the corresponding page model through the sending end and the receiving end. The parameters and parameter updates of the corresponding page model are written according to the preset time-segmented update process.
[0038] For the second CSV data file, based on the preset simulation initialization time and the simulation duration corresponding to each runtime segment... T and simulation step size Δ t The time-varying parameter values, arranged by row, are updated in time intervals according to row order: After the simulation starts, the second CSV data file is read, and the initial values in the second CSV data file are used to assign parameter values during the simulation initialization phase. When the simulation time reaches the preset simulation initialization time, the row number counter of the time-varying parameter values is activated. i Set it to 1, and count the simulation steps corresponding to the row containing the current time-varying parameter value. j Set to zero.
[0039] Based on the i Simulation is performed using time-varying parameter values. After each simulation step is completed, the following is set: j = j +1; when j Δ t < T Keep the first i The simulation continues with the time-varying parameter values, when j Δ t ≥ TCheck if there is a time-varying parameter value in the next row. If it exists, then set... i = i +1、 j =0 and based on the updated first i The simulation continues if the time-varying parameter value for the current row is not found. If the time-varying parameter value for the current row is not found, the simulation will continue until the simulation ends, thus completing the update process.
[0040] The above process completes the model parameter configuration and time-segmented updates, forming a complete hierarchical and partitioned electromagnetic transient simulation model.
[0041] Example 2 This embodiment, based on Embodiment 1 above, discloses a data-driven hierarchical and partitioned electromagnetic transient modeling system for multi-voltage-level power grids, comprising: Raw data processing module: This module receives geographical wiring diagrams, primary network diagrams, equipment parameters, and operating data of the target multi-voltage level power grid, processes the equipment parameters and operating data, and generates CSV data in a predetermined format.
[0042] The first-layer page model construction module is used to layer the target multi-voltage power grid from high to low voltage levels, establish the high-voltage network in the first-layer page model, and create a map appearance and model appearance in the first-layer page model that correspond to the actual geographical location based on the geographical wiring diagram and primary network diagram, and encapsulate the corresponding primary network model inside the model appearance.
[0043] The second-layer page model construction module is used to establish the remaining low-voltage level networks in the second-layer page model. The transformer used to connect the first-layer page model and the second-layer page model is encapsulated inside the corresponding substation model in the first-layer page model, and an electrical connection is established between the inter-layer interface node set on the low-voltage side of the transformer and the corresponding inter-layer interface node in the second-layer page model. When the size of the low-voltage level network in the second-layer page model exceeds the maximum size allowed by the graphical modeling page, the low-voltage level network is divided into multiple power supply zones according to the actual topology, and a corresponding second-layer partition page model is established for each power supply zone.
[0044] Run the data-driven module: It is used to read and parse CSV data, and transmit the parsed variable names and corresponding variable values to the corresponding model page through the cross-page data sending and receiving module. Based on the variable names and corresponding variable values, it completes the parameter configuration and time-segmented updates of the model on each page, and obtains a complete hierarchical and partitioned electromagnetic transient simulation model.
[0045] In the specific implementation, the running data-driven module can include CSV data reading function and cross-page data sending and receiving function. First, it reads and parses the variable name and corresponding variable value, then transmits it across pages through the sending end and the corresponding receiving end, and finally writes the variable name and corresponding variable value into the corresponding page model parameter.
[0046] For details regarding the above modules, please refer to the relevant descriptions and effects in Example 1 for further understanding.
[0047] Example 3 This embodiment, based on Embodiment 1 above, discloses the practical application process of a data-driven hierarchical and zonal electromagnetic transient modeling method for multi-voltage-level power grids. Taking a local multi-voltage-level power grid as an example, the data-driven hierarchical and zonal electromagnetic transient modeling method of the present invention will be described.
[0048] In this embodiment, the electromagnetic transient model of the multi-voltage level power grid is established in the electromagnetic transient simulation platform.
[0049] A data-driven hierarchical and partitioned electromagnetic transient modeling method for multi-voltage level power grids, such as Figure 1 As shown, it includes steps S1 to S4.
[0050] Step S1: Collect the geographical wiring diagram, primary network diagram, equipment parameters and operating data of the target multi-voltage level power grid, and organize the equipment parameters and operating data to form CSV data in a predetermined format.
[0051] In this embodiment, the original data of the target power grid is first obtained. This original data includes at least: a geographical wiring diagram reflecting the relative geographical locations of substations, power plants, and lines; a primary network diagram reflecting the primary connection relationships of the power grid; equipment parameters reflecting the electrical characteristics of various primary equipment; and operational data reflecting the actual operating status. Equipment parameters include line parameters, transformer parameters, load parameters, capacitor parameters, wind farm parameters, photovoltaic power plant parameters, and thermal power unit parameters, etc.; operational data includes circuit breaker status, load active and reactive power, capacitor-compensated reactive power, transformer tap position, wind power output, photovoltaic power output, and thermal power unit output, etc.
[0052] To facilitate subsequent model building and parameter writing, the equipment parameters and operating data are standardized in naming and unit unification, resulting in a first CSV data file and a second CSV data file. The first CSV data file is used for assigning global substitution parameters and consists of two columns: the first column contains the variable name, and the second column contains the fixed variable value. The variable names correspond one-to-one with the global substitution parameters in the model. The second CSV data file is used for updating model parameters over time. The first row contains the variable names, the second row contains the initial values of each variable, and subsequent rows contain the time-varying variable values corresponding to different operating periods. The variable names correspond one-to-one with the updatable parameters in the model, including load active and reactive power, reactive power output of reactive power compensation devices, transformer tap positions, and output of various power sources.
[0053] Step S2: Based on the voltage levels of the target multi-voltage power grid, divide it into layers, construct a first-layer page model and a second-layer page model, establish a map appearance and model appearance corresponding to the actual geographical location in the first-layer page model, and encapsulate the corresponding primary network model inside the model appearance.
[0054] The power grid includes four voltage levels: 220 kV, 110 kV, 35 kV and 10 kV. In this embodiment, the 220 kV and 110 kV networks are placed in the first-level page model, and the 35 kV and 10 kV networks are placed in the second-level page model.
[0055] Based on the actual geographical wiring diagram of the target power grid, a map appearance corresponding to the target area is created in the first-layer page model. Specifically, the map outline is first drawn with lines, and then, according to the actual relative positions of each 220 kV, 110 kV substation, power station, and major transmission line, the corresponding substation model appearance, power station model appearance, and major transmission line appearance are arranged in the map appearance, so that the map appearance and model appearance displayed in the first-layer page model can intuitively reflect the spatial distribution characteristics of the target power grid.
[0056] Based on the primary network diagram of the target power grid, encapsulate 220 kV and 110 kV primary network models inside the corresponding model appearance, and determine the electrical components inside each primary network model and the electrical connection relationships between different model appearances. Figure 2 This is an appearance diagram of the first-layer page model in this embodiment, showing the actual relative positional relationship of each 220 kV and 110 kV substation and its connecting lines; Figure 3 This is an appearance diagram of the second-layer page model in this embodiment; wherein Figures 2-3 The Chinese abbreviations represent place names.
[0057] Step S3: Establish a 35 kV and 10 kV low-voltage network in the second-layer page model. Establish an electrical connection between the first-layer page model and the second-layer page model by using the transformer encapsulated in the first-layer page model inside the strain gauge substation model. Determine whether to partition the second-layer page model based on the size of the graphical modeling page.
[0058] In the second-layer page model, the lines, distribution transformers, loads and reactive power compensation devices of the 35 kV and 10 kV networks are built respectively, and the connections between the electrical components are completed according to the actual power distribution topology.
[0059] The second-layer page model is used to centrally establish 35 kV and 10 kV low-voltage level networks to avoid affecting structure identification and model maintenance due to the large number of devices and complex topology branches when they are deployed together with 220 kV and 110 kV networks on the same page.
[0060] When the size of the low-voltage network in the second-layer page model exceeds the maximum size allowed by the graphical modeling page, the low-voltage network is divided into multiple power supply zones according to the actual topology, and a corresponding second-layer partition page model is established for each power supply zone.
[0061] The 220 / 110 / 35 kV three-winding transformer and 110 / 35 kV transformer models used to connect the first-layer page model and the second-layer page model are encapsulated inside the corresponding substation model in the first-layer page model. First-layer inter-layer interface nodes are set on their 35 kV low-voltage side, and corresponding second-layer inter-layer interface nodes are set in the second-layer page model. Electrical connections between the low-voltage side of the transformer and the second-layer low-voltage level network are established through the corresponding inter-layer interface nodes.
[0062] To further illustrate the electrical connection between the two page models, taking ZSGZ as an example, the internal wiring of its first-layer page model is as follows: Figure 4 As shown, the internal wiring of the second-layer page model is as follows: Figure 5 As shown in the attached diagram. In the first-layer page model, the ZSGZ main transformer model is encapsulated within the ZSGZ substation model, with three inter-layer interface nodes on its low-voltage side, corresponding to ZSG1_35, ZSG2_35, and ZSG3_35 respectively. Three corresponding inter-layer interface nodes are set in the second-layer page model. To make the interface locations in the attached diagram more prominent, Figure 4 and Figure 5The three inter-layer interface nodes mentioned above are simplified and labeled as 1, 2, and 3, respectively, where 1, 2, and 3 correspond to ZSG1_35, ZSG2_35, and ZSG3_35, respectively. Through the corresponding inter-layer interface nodes, an electrical connection is established between the low-voltage side of the main transformer in the first-layer page model and the corresponding 35 kV network in the second-layer page model.
[0063] Step S4: Read the CSV data and transfer it to the corresponding model page to complete the parameter configuration and time-segmented updates of the page model, and obtain the hierarchical and partitioned electromagnetic transient simulation model.
[0064] This embodiment develops a CSV data reading function in an electromagnetic transient simulation platform to read and parse CSV data files and identify the variable names and corresponding variable values.
[0065] For the first CSV data file, the fixed variable values that remain unchanged during a single simulation are directly imported into the corresponding page model for parameter assignment at the start of the simulation. For the second CSV data file, the parsed time-varying variables are output to the sending end of the data cross-page sending and receiving module, and the receiving end is set in the corresponding first-layer page model and second-layer page model. The time-varying variables are transmitted to the corresponding model page through the corresponding sending and receiving ends.
[0066] Based on the initial values in the second CSV data file and the time-varying variable values corresponding to different runtime segments, the corresponding model parameters are initialized and updated in different time periods.
[0067] Since the circuit breaker's open / closed state remains unchanged during continuous operation in this embodiment, the circuit breaker state variable is assigned values using global substitution parameters. Other data that changes with the operating time segment are assigned values by reading the second CSV data file. In this embodiment, the actual operating data is divided into 1-hour segments, each corresponding to a row of time-varying parameter values in the second CSV data file, and each segment is characterized by a 10-second simulation time. Therefore, the simulation duration for each segment is... T Set to 10 seconds. Run the data update control flow as follows: Figure 6 As shown, where, t For the current simulation time, t initial In this embodiment, to preset the simulation initialization time, t initial =12 s; i A counter for the row number of time-varying parameter values. j Δ is the simulation step count corresponding to the current row of time-varying parameter values. t This is the simulated step size.
[0068] After the simulation begins, the CSV data reading function first reads the time-varying parameter values from the second CSV data file, and then uses the initial values from the second CSV data file to assign model parameters during the initialization phase. t ≥ t initial season i =1、 j =0, and based on the first i Simulation is performed using time-varying parameter values. After each simulation step is completed, the command... j = j +1, when j Δ t < T Keep the first i The time-varying parameter values remain unchanged and the simulation continues; when j Δ t ≥ T At that time, check if there is a time-varying parameter value in the next row. If it exists, then let... i = i +1, will j Reset to zero, and based on the updated first... i The simulation continues with the row time-varying parameter value; if it does not exist, the current row time-varying parameter value is maintained until the simulation ends.
[0069] In this embodiment, the CSV data reading function is set in the second-layer page model to uniformly read CSV data files and generate corresponding data variables. Since parameter assignments between different model pages in the modeling platform cannot be directly passed across pages, the parameter variables to be transmitted are output to the sending end of the data cross-page sending and receiving module. The corresponding receiving ends in the first-layer and second-layer page models receive the parameter variables and write them into the corresponding device models. Through this method, the parameter configuration and time-segmented updates of each model page are completed, forming a complete hierarchical and partitioned electromagnetic transient simulation model.
[0070] Example 4 This embodiment, based on Embodiment 3, describes the application of this method in a large-scale multi-voltage-level power grid. Steps S1 and S2 are in principle the same as in Embodiment 1, and will not be repeated here. In step S3, when the size of the low-voltage-level network in the second-layer page model exceeds the maximum size allowed by the graphical modeling page, it is divided into multiple power supply zones according to the actual topology, and a corresponding second-layer partition page model is established for each power supply zone. In step S4, the running data-driven function uniformly reads CSV data, and transmits the corresponding parameters to each second-layer partition page model through multiple sets of cross-page data sending and receiving modules, completing the parameter configuration and time-segmented updates for each partition.
[0071] Example 5 This embodiment provides a data-driven multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling device, including at least one processing unit, a bus unit, and a storage unit. The processing unit is connected to the storage unit through the bus unit. The storage unit stores a computer program that can run on the processing unit. The processing unit implements the data-driven multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method described in Embodiment 1 by running the computer program.
[0072] At the hardware level, the device may also include a network interface and other hardware required to implement the corresponding services. The processing unit reads and runs the corresponding computer program from the storage unit to implement the above-described data-driven multi-voltage level power grid hierarchical and partitioned electromagnetic transient modeling method. Besides software implementation, this invention does not exclude implementation methods such as logic devices or a combination of hardware and software.
[0073] The storage unit may include random access memory (RAM), read-only memory (ROM), flash memory, and other non-volatile storage media for storing computer programs and data that can be accessed by the processing unit.
[0074] Computer-readable media include both permanent and non-permanent, removable and non-removable media, which can store computer-readable instructions, data structures, program modules, or other data using any method or technology. Examples include non-transfer media such as phase-change memory (PRAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory, CD-ROM, digital versatile optical disc (DVD), magnetic tape, or magnetic disk. As defined herein, computer-readable media do not include modulated data signals and carrier waves.
[0075] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A data-driven, multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method, characterized in that, include: Step 1: Collect the geographical wiring diagram, primary network diagram, equipment parameters and operating data of the target multi-voltage level power grid, and organize the equipment parameters and operating data to form CSV data in a predetermined format; Step 2: Based on the voltage levels of the target multi-voltage power grid, the system is layered to construct a first-layer page model and a second-layer page model. The first-layer page model is constructed based on the high-voltage network, and a map appearance and model appearance corresponding to the actual geographical location are established in the first-layer page model based on the geographical wiring diagram. The corresponding primary network model is encapsulated inside the model appearance based on the primary network diagram. The second-layer page model is constructed based on the low-voltage network, and whether to partition the second-layer page model is determined according to the size of the graphical modeling page. An electrical connection is established between the first-layer page model and the second-layer page model. Step 3: Read the CSV data and transmit it to the corresponding page model. Use the running data to drive the corresponding page model to configure parameters and update them in different time periods to obtain a hierarchical and partitioned electromagnetic transient simulation model.
2. The data-driven, multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method according to claim 1, characterized in that, The predetermined CSV data includes a first CSV data file for assigning global substitution parameters and a second CSV data file for updating model parameters over time. The first CSV data file consists of two columns of data, where the first column is the variable name and the second column is the fixed variable value corresponding to each variable name; The second CSV data file includes several rows of data. The first row contains variable names, which include time-varying parameters. The second row contains the initial values of each variable. The subsequent rows contain the variable values corresponding to different runtime periods, i.e., the time-varying parameter values.
3. The data-driven, multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method according to claim 2, characterized in that, Based on the preset simulation initialization time and the simulation duration corresponding to each runtime segment. T and simulation step size Δ t The time-varying parameter values arranged row by row in the second CSV data file are updated in time intervals. The time-segmented update process includes: After the simulation starts, the second CSV data file is read, and the initial values of each variable in the second CSV data file are used to assign parameter values during the simulation initialization phase. Once the simulation time reaches the preset simulation initialization time, the time-varying parameter value row number counter of the second CSV data file is set. i =1, and increment the simulation step count corresponding to the row containing the current time-varying parameter value. j Set to zero; Based on the i Simulation is performed using time-varying parameter values. After each simulation step is completed, the following is set: j = j +1, when j Δ t < T At that time, maintain the first i The simulation continues with the time-varying parameter values. when j Δ t ≥ T At that time, check if there is a time-varying parameter value in the next row. If it exists, then let... i = i +1, will j Set to zero, and based on the updated first... i If the time-varying parameter value for a row is not found, the simulation continues; if it is not found, the time-varying parameter value for the current row is maintained until the simulation ends, thus completing the update process.
4. The data-driven, multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method according to claim 1, characterized in that, The construction process of the map appearance and model appearance in the first-layer page model includes: A map base is established based on the geographical outline of the target multi-voltage level power grid area. The relative geographical locations of each substation, power plant, and main transmission line are determined according to the geographical wiring diagram. The corresponding substation model appearance, power plant model appearance, and main transmission line are arranged on the map base according to the relative geographical locations, so that the positional relationship of each model appearance in the first-layer page model corresponds to the actual geographical wiring diagram.
5. The data-driven, multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method according to claim 4, characterized in that, Based on the primary network diagram of the target multi-voltage level power grid, the corresponding primary network model is encapsulated inside each model appearance of the first layer page model, and the electrical connection relationship between the electrical components inside each primary network model and between different model appearances is determined according to the primary network diagram.
6. The data-driven, multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method according to claim 1, characterized in that, The construction process of the second-layer page model includes: Based on the low-voltage network, build lines, distribution transformers, loads and reactive power compensation devices of various low-voltage levels, and complete the connection between various electrical components according to the actual power distribution topology, thus completing the construction process of the second-layer page model. When the size of the low-voltage network in the second-layer page model exceeds the maximum size allowed by the graphical modeling page, the low-voltage network is divided into multiple power supply zones according to the actual power distribution topology, and a corresponding second-layer partition page model is established for each power supply zone.
7. The data-driven, multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method according to claim 1, characterized in that, An electrical connection between the first-layer page model and the second-layer page model is established by encapsulating the transformer inside the strain gauge power station model within the first-layer page model.
8. The data-driven, multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method according to claim 7, characterized in that, The steps for establishing the electrical connection include: A first layer of inter-layer interface nodes is provided on the low-voltage side of the transformer; In the second-layer page model, set the second-layer inter-layer interface node corresponding to the first-layer inter-layer interface node; Electrical connections are established between the low-voltage side of the transformer and the low-voltage level network in the second-layer page model through the corresponding first-layer inter-layer interface nodes and second-layer inter-layer interface nodes.
9. The data-driven, multi-voltage-level power grid hierarchical and partitioned electromagnetic transient modeling method according to claim 2, characterized in that, Step 4, the process of using the runtime data for driving includes: Read and parse the CSV data to identify the variable names and corresponding variable values in the CSV data; For the first CSV data file, the fixed variable values that remain unchanged during a single simulation are imported into the corresponding page model for parameter assignment at the start of the simulation. For the second CSV data file, the variable names and corresponding variable values are transmitted to the corresponding first-level page model and second-level page model through cross-page transmission. The parameters of the corresponding page model are assigned and updated according to the preset time-segmented update process to complete the parameter configuration and time-segmented update of the running data of each page model.
10. A data-driven, multi-voltage-level power grid hierarchical and zoned electromagnetic transient modeling system, characterized in that, include: The raw data processing module is used to collect the geographical wiring diagram, primary network diagram, equipment parameters and operating data of the target multi-voltage level power grid, and to process the equipment parameters and operating data into CSV data in a predetermined format. The first-layer page model construction module is used to divide the target multi-voltage power grid into layers according to the voltage level to construct a first-layer page model and a second-layer page model. The first-layer page model is constructed based on the high-voltage network, and a map appearance and model appearance corresponding to the actual geographical location are established in the first-layer page model based on the geographical wiring diagram. The corresponding primary network model is encapsulated inside the model appearance based on the primary network diagram. The second-layer page model construction module is used to construct a second-layer page model based on a low-voltage network, and to determine whether to partition the second-layer page model according to the size of the graphical modeling page, wherein an electrical connection is established between the first-layer page model and the second-layer page model. The running data-driven module is used to read the CSV data and transmit it to the corresponding page model, and use the running data to drive the corresponding page model to configure parameters and update them in different time periods to obtain a hierarchical and partitioned electromagnetic transient simulation model.