Simulation program data mapping method and device, electronic equipment and medium

By constructing the initial and mapping subtars, the stable calculation data is updated, and the efficiency and accuracy of the generator object mapping in the trend and the stable calculation data are solved, and the data is efficiently synchronized.

CN119377642AActive Publication Date: 2025-01-28CHINA SOUTHERN POWER GRID COMPANY +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411519323.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-28
Estimated Expiration
2044-10-29

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently and accurately complete the mapping of generator objects in flow and stable computing data in a short period of time, especially between heterologous data sources.

Method used

By formulating the initial mapping table, traversing stable calculation data to determine the data mapping relationship, build a mapping table, and update the stable calculation data to achieve the synchronization of trends and stable calculation data.

Benefits of technology

In a short period of time, the mapping of the trend and stable calculation of the data generator objects is completed in a short period of time, and the problem of inconsistency between the name of the generator object and the benchmark voltage between the generator objects between heresy data sources is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119377642A_ABST
    Figure CN119377642A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and discloses a simulation program data mapping method and device, electronic equipment and a medium, an initial mapping table is formed according to a data mapping relation of a generator of system export data and stable calculation data, and the initial mapping table and the stable calculation data are traversed to obtain a simulation program data mapping result; determining a data mapping relationship between the system exported data and the stability calculation data under each same generator object, thereby determining a data mapping relationship among the system exported data, the stability calculation data and the load flow calculation data, and forming a mapping sub-table among the system exported data, the stability calculation data and the load flow calculation data; and performing data updating on the stable calculation data by utilizing the load flow calculation data in the mapping sub-table so as to realize matching of the stable calculation data and the load flow calculation data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a simulation program data mapping method, device, electronic equipment and medium. Background Art

[0002] The dispatching automation system is a system for collecting, processing and monitoring power data. It can provide a wide range of services for power grid operation, and provide online operation information, analysis and control decision-making tools for the production and operation staff of power dispatching organizations at all levels, thus providing important guarantees for the safe, economical and reliable operation of the power grid.

[0003] The time domain simulation program DSP (Digital Signal Processing) can simulate the operating status of the power system and provide a decision-making basis for the operation and control of the power grid. It requires flow and stability calculation data that meet specific format requirements as input, but the sources of these two types of data may be different. Among them, for flow calculation data, online power grid data can be exported from the dispatching automation system, and the flow calculation data can be obtained through the conversion program. For stability calculation data, it is generally maintained offline by manual labor and is not exported online by the dispatching automation system.

[0004] Therefore, the sources of power flow calculation data and stable calculation data are different, which makes the names and reference voltages of the same generator objects in the power flow and stable calculation data different. However, the time domain simulation program DSP requires that the names and reference voltages of the generators in the power flow and stable calculation data should be consistent. Therefore, it is necessary to map and align the names and reference voltages of the same generator objects in the power flow and stable calculation data.

[0005] At present, business personnel who need to use the time domain simulation program DSP to perform batch time domain simulation business processing, but manual processing is difficult to complete a large amount of power flow and stable calculation data generator object mapping work in a short time, and there is a lack of efficient and accurate means to map heterogeneous power flows with generator objects in stable calculation data. Summary of the invention

[0006] In view of this, in order to solve the above technical problems, the present invention provides a simulation program data mapping method, device, electronic device and medium, so as to complete a large amount of power flow and stable calculation data generator object mapping work in a short time, and efficiently and accurately map the generator objects in the heterogeneous power flow and stable calculation data.

[0007] A first aspect of the present invention provides a simulation program data mapping method, comprising:

[0008] An initial mapping table is formed according to the data mapping relationship between the system export data and the generator of the stable calculation data;

[0009] Traversing the initial mapping table and the stable calculation data, determining the data mapping relationship between the system derived data and the stable calculation data under each same generator object, and forming a mapping master table;

[0010] According to the mapping master table, determining the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data, and forming a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data;

[0011] The corresponding stable calculation data is updated according to the power flow calculation data in the mapping sub-table, and the data update is used to synchronize the stable calculation data with the power flow calculation data.

[0012] Optionally, the data mapping relationship between the generator derived from the system and the stable calculated data is used to form an initial mapping table, including:

[0013] A mapping relationship between the system derived data and the operation information of the generator in the stable calculation data is determined to form an initial mapping table between the system derived data and the stable calculation data, wherein the operation information includes an object name and a voltage of the generator.

[0014] Optionally, traversing the initial mapping table and the stable calculation data, determining the data mapping relationship between the system derived data and the stable calculation data under each same generator object, and forming a mapping master table includes:

[0015] Traversing the data in the initial mapping table row by row to obtain the operation information corresponding to the system derived data and the stable calculation data respectively;

[0016] Mapping all data cards with the same generator object name in the stable calculation data to the data card group of the generator corresponding to the data card to form a stable calculation data card self-mapping table;

[0017] Matching the data cards in the self-mapping table of the stability calculation data card with the system-derived data according to the object name of the generator;

[0018] In the case where the object name of the generator is matched successfully, a mapping master table is constructed according to the mapping relationship between the operation information of the stable calculation data and the operation data of the data card and the system export data.

[0019] Optionally, when the object name of the generator is not matched successfully, the operation information of the stable calculation data and the data card are saved in the mapping master table.

[0020] Optionally, mapping all data cards of the same generator object name in the stable calculation data to the data card group of the generator corresponding to the data card to form a stable calculation data card self-mapping table includes:

[0021] Traversing the stable calculation data row by row for the data in the initial mapping table, wherein the initial mapping table includes a first row of stable calculation data, a second row of stable calculation data, a third row of stable calculation data, ... an Nth row of stable calculation data;

[0022] Put the data card corresponding to the first row of stable calculation data into a temporary data card group, and continue to traverse the next adjacent row of stable calculation data;

[0023] matching the generator object name and voltage of the stable calculation data in the adjacent next row with the generator object name and voltage of the stable calculation data in the first row;

[0024] If the generator object name and voltage of the stable calculation data in the adjacent next row successfully match the generator object name and voltage of the stable calculation data in the first row, then the data card of the second row of stable calculation data is placed in the temporary data card group;

[0025] If the generator object name and voltage of the stable calculation data in the adjacent next row fail to match the generator object name and voltage of the stable calculation data in the first row, then all data cards in the temporary data card group and the operation information are placed in the stable calculation data card self-mapping table;

[0026] By analogy, the next adjacent row of stable calculation data is continuously traversed until the Nth row of stable calculation data is traversed, and the stable calculation data card self-mapping table is output.

[0027] Optionally, determining the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data according to the mapping master table to form a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data includes:

[0028] For each row of the mapping master table, if the operation information of the generator of the system-derived data in this row is not empty, extracting the operation information of the generator of the system-derived data corresponding to the data card of the stable calculation data in this row;

[0029] Based on the mapping relationship between the system derived data and the power flow calculation data, and according to the operating information of the generator of the system derived data, determining the power flow calculation data corresponding to the operating information of the generator of the system derived data and the operating information of the power flow calculation data;

[0030] According to the mapping master table and the system derived data, the mapping relationship between the operating information of the flow calculation data and the operating information of the stable calculation data is determined, and a mapping sub-table between the system derived data, the stable calculation data and the flow calculation data is formed.

[0031] Optionally, updating the corresponding stable calculation data according to the power flow calculation data in the mapping sub-table, wherein the data updating is used to synchronize the stable calculation data with the power flow calculation data, comprises:

[0032] For each row of the mapping subtable, the operation information of the power flow calculation data in this row is extracted, and the operation information of the stable calculation data corresponding to the same row is updated, so that the operation information of the stable calculation data and the power flow calculation data are synchronized.

[0033] In a second aspect, the present invention further provides a simulation program data mapping device, comprising:

[0034] A mapping table building module, used for forming an initial mapping table according to the data mapping relationship between the system export data and the generator of the stable calculation data;

[0035] A master table construction module, used to traverse the initial mapping table and the stable calculation data, determine the data mapping relationship between the system derived data and the stable calculation data under each same generator object, and form a mapping master table;

[0036] A sub-table construction module is used to determine the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data according to the mapping master table, and form a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data;

[0037] A data updating module is used to update the corresponding stable calculation data according to the power flow calculation data in the mapping sub-table, and the data updating is used to synchronize the stable calculation data with the power flow calculation data.

[0038] In a third aspect, the present invention further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the simulation program data mapping method as described in the first aspect.

[0039] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the steps of the simulation program data mapping method as described in the first aspect.

[0040] It can be seen from the above technical solutions that the present invention has the following advantages:

[0041] The embodiment of the present application will form an initial mapping table according to the data mapping relationship between the system exported data and the stable calculation data of the generator, and traverse the initial mapping table and the stable calculation data to determine the data mapping relationship between the system exported data and the stable calculation data under each identical generator object, thereby determining the data mapping relationship between the system exported data, the stable calculation data and the flow calculation data, forming a mapping sub-table between the system exported data, the stable calculation data and the flow calculation data, and using the flow calculation data in the mapping sub-table to update the stable calculation data, thereby achieving matching of the stable calculation data with the flow calculation data, instead of manual processing, and completing a large amount of flow and stable calculation data generator object mapping work in a short time, and efficiently and accurately mapping heterogeneous flows with generator objects in stable calculation data. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 An application environment for a simulation program data mapping method provided by an embodiment of the present invention;

[0043] Figure 2 A flow chart of a simulation program data mapping method provided by an embodiment of the present invention;

[0044] Figure 3 A power flow calculation data file provided by an embodiment of the present invention;

[0045] Figure 4 A mapping table of system export data and power flow calculation data provided in an embodiment of the present invention;

[0046] Figure 5 A stable calculation data file provided by an embodiment of the present invention;

[0047] Figure 6 An initial mapping table provided by an embodiment of the present invention;

[0048] Figure 7 A mapping master table provided by an embodiment of the present invention;

[0049] Figure 8 A mapping sub-table provided by an embodiment of the present invention;

[0050] Fig. 9 A corrected stable calculation data file provided by an embodiment of the present invention;

[0051] Fig.10 A schematic diagram of the structure of a simulation program data mapping device provided by an embodiment of the present invention;

[0052] Fig.11A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] The simulation program data mapping method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the dispatching automation system communicates with the server 102 through the network, and the data storage system can store the data that the server 102 needs to process. The data storage system can be integrated on the server 102, or placed on the cloud or other network servers. The server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0055] like Figure 2 As shown, the embodiment of the present application provides a simulation program data mapping method, which is applied to Figure 1 The server 102 in the example is used as an example to illustrate the method, which includes the following steps S1 to S4. Among them:

[0056] Step S1, forming an initial mapping table according to the data mapping relationship between the system derived data and the generator of the stable calculated data.

[0057] The system export data refers to the data exported by the dispatching automation system, which generally includes the object name and voltage of the generator in the system.

[0058] The stable calculation data refers to the definition of the parameters of the generator, including the object name and reference voltage of the generator.

[0059] Both the system derived data and the stable calculation data contain operation information about each generator. The operation information of the generators in the system derived data and the stable calculation data can be associated with each other based on expert knowledge to form an initial mapping table.

[0060] The initial mapping table includes a mapping relationship of operating information between the system export data and the stable calculation data, including a stable calculation device name, a stable calculation device reference voltage, a device name in the system export data, and a device reference voltage in the system export data.

[0061] Step S2: traverse the initial mapping table and the stable calculation data, determine the data mapping relationship between the system export data and the stable calculation data under each same generator object, and form a mapping master table.

[0062] The mapping master table divides the system derived data and stable calculation data under each identical generator object, and forms a data mapping relationship between the system derived data and stable calculation data under each identical generator object.

[0063] Step S3: According to the mapping master table, determine the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data, and form a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data.

[0064] It can be understood that the flow calculation data refers to the flow calculation data obtained by converting the dispatching automation system export data through an automation program. The flow calculation data and the system export data are mapped according to the same generator object. At the same time, the mapping master table represents the data mapping relationship between the system export data and the stable calculation data under each identical generator object. Therefore, based on the mapping master table and the mapping relationship between the flow calculation data and the system export data, the mapping sub-table between the system export data, the stable calculation data and the flow calculation data can be determined, and then the mapping relationship between the stable calculation data and the flow calculation data can be determined.

[0065] Step S4: updating the corresponding stable calculation data according to the power flow calculation data in the mapping sub-table, wherein the data updating is used to synchronize the stable calculation data with the power flow calculation data.

[0066] Among them, the mapping subtable contains the mapping relationship between the stable calculation data and the flow calculation data. In order to unify the data between the stable calculation data and the flow calculation data, the flow calculation data is used to update the stable calculation data, so that the stable calculation data and the flow calculation data are synchronized, and the matching of the stable calculation data and the flow calculation data is achieved.

[0067] It should be noted that the embodiment of the present application will form an initial mapping table based on the data mapping relationship between the system export data and the stable calculation data of the generator, and traverse the initial mapping table to determine the data mapping relationship between the system export data and the stable calculation data under each identical generator object, thereby determining the data mapping relationship between the system export data, the stable calculation data and the flow calculation data, forming a mapping sub-table between the system export data, the stable calculation data and the flow calculation data, and using the flow calculation data in the mapping sub-table to update the stable calculation data, thereby achieving the matching of the stable calculation data with the flow calculation data, so as to replace manual processing, and achieve a large number of flow and stable calculation data generator object mapping work in a short time, and efficiently and accurately map the heterogeneous flow with the generator object in the stable calculation data. The embodiment of the present application can meet the requirements of the time domain simulation program DSP for time domain simulation, and can be widely used in the field of power system data processing technology.

[0068] In some embodiments, the data mapping relationship between the generator derived from the system and the stable calculated data in step S1 is used to form an initial mapping table, including step S101; wherein:

[0069] Step S101, determining a mapping relationship between system derived data and operation information of a generator in stable calculation data, and forming an initial mapping table between the system derived data and stable calculation data, wherein the operation information includes an object name and voltage of the generator.

[0070] It can be understood that for the operating information of the generator contained in both the system export data and the stable calculation data, multiple generator objects in the stable calculation data are mapped to the generator objects in the system export data to obtain a mapping relationship table file, which represents the mapping relationship between the generator object name and the reference voltage in the system export data and the stable calculation data.

[0071] In some embodiments, the initial mapping table and the stable calculation data are traversed in step S2 to determine the data mapping relationship between the system derived data and the stable calculation data under each same generator object, and form a mapping master table, including:

[0072] Step S201: traverse the data in the initial mapping table row by row to obtain the operation information corresponding to the system export data and the stable calculation data.

[0073] Step S202: Map all data cards with the same generator object name in the stable calculation data to the data card group of the generator corresponding to the data card to form a stable calculation data card self-mapping table.

[0074] The data card of the generator usually contains a series of technical specifications and operating parameters, which is very important for understanding the performance and maintenance of the generator. There are many types of data cards, including MF, MG, EA, EB, EC, ED, EE, EF, EG, EJ, EK, FA, FB, FC, FD, FE, FF, FG, FH, FJ, FK, FL, FR, FQ, FM, FV, FU, FS, GG, GH, GS, GL, GW, GA, GI, GJ, GK, GM, GN, GD / GZ, TA, TB, SF, SP, SS, SG, ST, SH, SH+, SI, SI+, SA, SB, SB+, SD, SE, SJ, SK, SL, SX, SY, SV.

[0075] It can be understood that this step is to divide the data cards of the same generator to form a stable calculation data card self-mapping table, and the stable calculation data card self-mapping table contains data cards of different generators.

[0076] Specifically, step S202 includes steps S2021 to S2026. Among them:

[0077] Step S2021, traverse the data in the initial mapping table row by row to stabilize the calculation data, the initial mapping table includes the first row of stable calculation data, the second row of stable calculation data, the third row of stable calculation data...the Nth row of stable calculation data.

[0078] Here, N refers to the total number of rows, and N>1.

[0079] It should be noted that, for the initial mapping table, multiple rows of data cards defining multiple different generators are stored in adjacent rows. The first row of stable calculation data refers to the first row of data in the data segment consisting of multiple rows of data defining a certain generator, and the Nth row of stable calculation data refers to the Nth row of data in the data segment consisting of multiple rows of data defining a certain generator.

[0080] Step S2022: put the data card corresponding to the first row of stable calculation data into the temporary data card group, and continue to traverse the next adjacent row of stable calculation data.

[0081] Among them, in the first row of stable calculation data, the data card corresponding to the first row of stable calculation data is put into the temporary data card group, and the data is initialized in the temporary data card group. The initial state of the temporary data card group is an empty set.

[0082] Step S2023: Match the generator object name and voltage of the next adjacent row of stable calculation data with the generator object name and voltage of the first row of stable calculation data.

[0083] Step S2024: if the generator object name and voltage of the next row of stable calculation data successfully match the generator object name and voltage of the first row of stable calculation data, the data card of the second row of stable calculation data is placed into the temporary data card group.

[0084] Step S2025: if the generator object name and voltage of the next row of stable calculation data fail to match the generator object name and voltage of the first row of stable calculation data, all data cards and operation information in the temporary data card group are placed in the stable calculation data card self-mapping table;

[0085] Step S2026, and so on, continue to traverse the adjacent next row of stable calculation data until the Nth row of stable calculation data is traversed, and the stable calculation data card self-mapping table is output.

[0086] Exemplarily, 1) stable calculation data is read row by row in the initial mapping table.

[0087] 2) If it is the first row of data, the data card of the first row of data generator object is stored in the temporary data card group.

[0088] 3) If it is not the first row of data, if the name and reference voltage of the generator object in this row of data are the same as those in the previous row of data, the data card of the generator object in this row of data will be temporarily stored; if the name and reference voltage of the generator object in this row of data are different from those in the previous row of data, all data cards in the temporarily stored data card group and the corresponding generator object names and reference voltages will be output to the stable calculation data card self-mapping table, and the temporary storage will be cleared. Temporarily store the data card of this row of objects.

[0089] 4) If it is the last row of data, if the generator object name and reference voltage of this row of data are the same as those of the generator object name and reference voltage of the previous row of data, then its data card is temporarily stored, and all data cards in the temporarily stored data card group and the corresponding generator object name and reference voltage are output to the stable calculation data card self-mapping table.

[0090] 5) If the name and reference voltage of the generator object in the last row of data are different from those in the previous row of data, first output all data cards in the temporary storage data card group and the corresponding generator object names and reference voltages to the stable calculation data card self-mapping table, clear the temporary storage, and then output the generator object name, reference voltage and data card in this row of data to the stable calculation data card self-mapping table.

[0091] Step S203: Match the data cards in the stability calculation data card self-mapping table with the system exported data according to the object name of the generator.

[0092] Step S204: when the object name of the generator is successfully matched, a mapping master table is constructed according to the operation information of the stable calculation data and the mapping relationship between the operation data of the data card and the system export data.

[0093] Wherein, when the object name of the generator is not matched successfully, the operation information and data card of the stable calculation data are saved in the mapping master table.

[0094] It is understandable that, when the object name of the generator is not matched successfully, it means that the operation information of the stable calculation data exists independently, and only the object name, reference voltage, and data card in the stable calculation data are output to the mapping master table for subsequent maintenance.

[0095] In some embodiments, the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data is determined according to the mapping master table in step S3 to form a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data, including steps S301 to S303. Among them:

[0096] Step S301: for each row of the mapping master table, if the operating information of the generator of the system-derived data in this row is not empty, extract the operating information of the generator of the system-derived data corresponding to the data card of the stable calculation data in this row;

[0097] Step S302, based on the mapping relationship between the system derived data and the power flow calculation data, according to the operating information of the generator of the system derived data, determining the power flow calculation data corresponding to the operating information of the generator of the system derived data and the operating information of the power flow calculation data;

[0098] Step S303: According to the mapping master table and the system derived data, the mapping relationship between the operation information of the flow calculation data and the operation information of the stable calculation data is determined, and a mapping sub-table between the system derived data, the stable calculation data and the flow calculation data is formed.

[0099] Exemplarily, 1) the mapping master table is read row by row.

[0100] 2) If the system export data generator object data in this row of data is not empty, then extract the system export data generator object corresponding to the stable calculation data card in this row of data.

[0101] 3) Through the system export data generator object extracted from this row of data, according to the mapping relationship of the same generator in the system export data-flow calculation data mapping table, locate the generator object in the flow calculation data corresponding to the system export data generator object, and extract the name and reference voltage of the generator object. The data output of this row of generator objects in the stable calculation data, system export data and flow calculation data are saved in the stable calculation data-system export data-flow calculation data mapping subtable.

[0102] In some embodiments, the step S4 of updating the corresponding stable calculation data according to the flow calculation data in the mapping sub-table, wherein the data update is used to synchronize the stable calculation data with the flow calculation data, includes: step S401.

[0103] Step S401: for each row of the mapping subtable, extract the operation information of the power flow calculation data of this row, and update the operation information of the stable calculation data corresponding to the same row, so that the operation information of the stable calculation data and the power flow calculation data are synchronized.

[0104] The operation information of the stable calculation data corresponding to the same row is modified into the operation information of the corresponding flow calculation data of the same row, so as to achieve the matching of the same generator object in the stable calculation data and the flow calculation data.

[0105] The following is a calculation example provided in conjunction with the embodiments of the present application.

[0106] In this example, if Figure 3 The dispatching automation system export data shown is a power flow calculation data file obtained by converting the data through an automation program. The file contains 8 nodes, and the floating-point parameters contained in each node have been represented in the figure.

[0107] like Figure 4 The system exported data - flow calculation data mapping table shown, wherein the "ocs_name" field represents the name of the system exported data generator object, the "ocs_volt" field represents the reference voltage of the system exported data generator object, the "dat_name" field represents the name of the flow calculation data generator object, and the "dat_volt" field represents the reference voltage of the flow calculation data generator object; the mapping table is generated by a program that converts system exported data into flow calculation data, realizes the mapping of 8 node generator objects in the flow calculation data to nodes in the system exported data, and can represent the mapping relationship between the system exported data and the generator object name and reference voltage in the flow calculation data.

[0108] like Figure 5The stable calculation data file shown is obtained by offline conversion of the dispatching automation system export data. The file contains 8 nodes and a total of 83 generator parameter cards. Taking the data cards of generator objects "A Power Plant G1", "B Plant G3", "B Plant G4", and "C Plant G1" as examples, the floating-point parameters contained in each parameter card have been represented in the figure.

[0109] The following is the process of synchronizing the stable calculation data and the power flow calculation data:

[0110] The first step is to export the dispatching automation system data and obtain the power flow calculation data file through the automation program. Figure 1 At the same time, the program outputs the system export data-power flow calculation data mapping table, refer to Figure 3 ;

[0111] The second step is to map the stable calculation data to the dispatching automation system export data, build a mapping for the generator object name and reference voltage, and sort out the initial mapping table of system export data-stable calculation data. Figure 6 , where the "swi_type" field indicates the data card type of the generator object in the stable calculation data, the "swi_name" field indicates the name of the generator object in the stable calculation data, and the "swi_volt" field indicates the reference voltage of the generator object in the stable calculation data. The initial mapping table is a mapping relationship table file obtained by mapping the 8 generator objects in the stable calculation data to the generator objects in the system export data, indicating the mapping relationship between the generator object name and the reference voltage in the system export data and the stable calculation data, which is convenient for subsequent mapping steps;

[0112] The third step is to read the name and reference voltage of the generator object in the system export data and stable calculation data line by line.

[0113] According to the stable calculation data Figure 5 and the initial mapping table Figure 6 , Taking the generator objects "A Power Plant G1", "B Plant G3", and "C Plant G1" as examples, the stable calculation data is processed, and the different types of data cards describing the same generator object are placed in the data card group of the same generator object. The data cards M, MF, FR, F+, S, SI+, GA, GJ, TB under the generator object "A Power Plant G1", the data cards M, MF, FV, F+, SI, SI+, GA, GA+, GJ, GJ+, TB under the generator object "B Plant G3", and the data cards M, MF, FV, F+, SI, SI+, GA, GI, GI+, TB under the generator object "C Plant G1" are stored in the corresponding data card groups to obtain Table 1;

[0114] Table 1 Data card group self-mapping table of "Power Plant A G1" and "Power Plant B G3"

[0115]

[0116] According to the initial mapping table, the system export data generator object name and reference voltage are mapped to the stable calculation data generator object in Table 1. The generator object name "A plant. #1 unit" and the reference voltage "27." in the system export data are mapped to "A power plant G1", and the generator object name "B plant. #3 unit" and the reference voltage "27." are mapped to "B plant G3", and Table 2 is obtained;

[0117] Table 2 Data card group mapping table of "Power Plant A G1" and "Power Plant B G3"

[0118]

[0119] Output the name and reference voltage of the generator object mapped by each data card in the data card group in Table 2 in the stable calculation data and system export data to the stable calculation data-system export data mapping master table. For example, refer to the output result. Figure 7 ;

[0120] Step 4. Read the mapping master table line by line, extract the name and reference voltage of the system exported data generator object corresponding to the generator object of the stable calculation data card, query the system exported data-flow calculation data mapping table, and obtain the generator object whose system exported data generator object name and reference voltage are the same as the extracted name and reference voltage, and map the name and reference voltage of the generator object in the flow calculation data to the stable calculation data.

[0121] by Figure 7 Taking the generator objects "A Power Plant G1", "B Plant G3" and "C Plant G1" in the mapping master table as examples, extract the name "A Plant. #1 Unit" and reference voltage "27." of the generator object "A Power Plant G1" in the system export data, the name "B Plant. #3 Unit" and reference voltage "27." of the generator object "B Plant G3" in the system export data, and the name "C Plant G1" and reference voltage "26." of the generator object "C Plant G1" in the system export data. Query Figure 2Mapping table, get the name "A Plant G1" and reference voltage "27." of the generator object "A Power Plant G1" in the flow calculation data, the name "B Plant G1" and reference voltage "27." of the generator object "B Plant G3" in the flow calculation data, and the name "C Plant G1" and reference voltage "27." of the generator object "C Plant G1" in the flow calculation data. Map the generator object in the flow calculation data to the generator object in the stable calculation data, build the mapping relationship between the generator objects in the stable calculation data-system export data-flow calculation data, and output it to the mapping subtable. For example output results, refer to Figure 8 .

[0122] Step 5: Read the stable calculation data line by line. Take the generator objects "A Power Plant G1", "B Plant G3" and "C Plant G1" in the stable calculation data as examples. According to the mapping relationship of the generator objects in the mapping subtable, extract the name "A Plant G1" and reference voltage "27." of the generator object "B Plant G3" in the flow calculation data, the name "B Plant G1" and reference voltage "27." of the generator object "B Plant G3" in the flow calculation data, and the name "C Plant G1" and reference voltage "26.0" of the generator object "C Plant G1" in the flow calculation data. It can be found that there is a stable calculation. In the case where the name and reference voltage of the same generator in the stable calculation data are different from those in the flow calculation data, in order to meet the requirements of the time domain simulation program DSP for time domain simulation, the generator object name and reference voltage of the stable calculation data are modified to be consistent with the flow calculation data, and the "A Power Plant G1" in the stable calculation data is corrected to "A Plant G1", and the "B Plant G3" is corrected to "B Plant G1", and the "C Plant G1" generator object reference voltage "26.0" is corrected to "27." to achieve the matching of the flow calculation data and the stable calculation data, and the corrected stable calculation data file is output. For the example output results, refer to Fig. 9 .

[0123] This illustrates that the method provided in the embodiment of the present invention maps the generator objects in the system derived data and the flow calculation data to the data card of the same generator object in the stable calculation data according to the mapping relationship between the stable calculation data, the system derived data and the flow calculation data. This can comprehensively correct the problem of different generator object names and reference voltages caused by the different sources of the stable calculation data and the flow calculation data, thereby realizing automatic mapping of the flow and stable calculation data for the time domain simulation program DSP.

[0124] Based on the same inventive concept, an embodiment of the present application also provides a simulation program data mapping device for implementing the above-mentioned simulation program data mapping method.

[0125] The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more simulation program data mapping device embodiments provided below can refer to the limitations on the simulation program data mapping method above, and will not be repeated here.

[0126] like Fig.10 As shown, the embodiment of the present application provides a simulation program data mapping device, including:

[0127] A mapping table building module 100 is used to form an initial mapping table according to the data mapping relationship between the system derived data and the generator of the stable calculated data;

[0128] The master table construction module 200 is used to traverse the initial mapping table and the stable calculation data, determine the data mapping relationship between the system export data and the stable calculation data under each same generator object, and form a mapping master table;

[0129] The sub-table construction module 300 is used to determine the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data according to the mapping master table, and form a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data;

[0130] The data updating module 400 is used to update the corresponding stable calculation data according to the power flow calculation data in the mapping sub-table. The data updating is used to synchronize the stable calculation data with the power flow calculation data.

[0131] In some embodiments, an initial mapping table is formed according to the data mapping relationship between the system derived data and the generator of the stable calculated data, including:

[0132] A mapping relationship between the system derived data and the operation information of the generator in the stable calculation data is determined to form an initial mapping table between the system derived data and the stable calculation data, wherein the operation information includes an object name and a voltage of the generator.

[0133] In some embodiments, the initial mapping table and the stable calculation data are traversed to determine the data mapping relationship between the system derived data and the stable calculation data under each same generator object, and form a mapping master table, including:

[0134] Traverse the data in the initial mapping table row by row to obtain the operation information corresponding to the system export data and the stable calculation data respectively;

[0135] Mapping all data cards with the same generator object name in the stable calculation data to the data card group of the generator corresponding to the data card to form a stable calculation data card self-mapping table;

[0136] Match each data card in the stability calculation data card self-mapping table with the system exported data according to the object name of the generator;

[0137] When the object name of the generator is matched successfully, a mapping master table is constructed according to the operation information of the stable calculation data and the mapping relationship between the operation data of the data card and the system export data.

[0138] In some embodiments, when the object name of the generator is not successfully matched, the operation information of the stable calculation data and the data card are saved in the mapping master table.

[0139] In some embodiments, all data cards with the same generator object name in the stable calculation data are mapped to the data card group of the generator corresponding to the data card to form a stable calculation data card self-mapping table, including:

[0140] Traverse the data in the initial mapping table row by row to stabilize the calculation data, the initial mapping table includes the first row of stable calculation data, the second row of stable calculation data, the third row of stable calculation data...the Nth row of stable calculation data;

[0141] Put the data card corresponding to the first row of stable calculation data into the temporary data card group, and continue to traverse the stable calculation data of the next adjacent row;

[0142] Matching the generator object name and voltage of the stable calculation data in the next row with the generator object name and voltage of the stable calculation data in the first row;

[0143] If the generator object name and voltage of the stable calculation data in the next row successfully match the generator object name and voltage of the stable calculation data in the first row, the data card of the second row of stable calculation data is placed in the temporary data card group;

[0144] If the generator object name and voltage of the stable calculation data in the next row fail to match the generator object name and voltage of the stable calculation data in the first row, all data cards and operation information in the temporary data card group are placed in the stable calculation data card self-mapping table;

[0145] By analogy, the stable calculation data of the next adjacent row is continuously traversed until the Nth row of stable calculation data is traversed, and the stable calculation data card self-mapping table is output.

[0146] In some embodiments, according to the mapping master table, the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data is determined to form a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data, including:

[0147] For each row of the mapping master table, if the operating information of the generator of the system-derived data in this row is not empty, the operating information of the generator of the system-derived data corresponding to the data card of the stable calculation data in this row is extracted;

[0148] Based on the mapping relationship between the system exported data and the power flow calculation data, and according to the operation information of the generator of the system exported data, the power flow calculation data corresponding to the operation information of the generator of the system exported data and the operation information of the power flow calculation data are determined;

[0149] According to the mapping master table and the system derived data, the mapping relationship between the operation information of the flow calculation data and the operation information of the stable calculation data is determined, and a mapping sub-table between the system derived data, the stable calculation data and the flow calculation data is formed.

[0150] In some embodiments, the corresponding stable calculation data is updated according to the power flow calculation data in the mapping sub-table, and the data update is used to synchronize the stable calculation data with the power flow calculation data, including:

[0151] For each row of the mapping subtable, the running information of the power flow calculation data of this row is extracted, and the running information of the stable calculation data corresponding to the same row is updated, so that the running information of the stable calculation data and the power flow calculation data are synchronized.

[0152] like Fig.11 As shown, an embodiment of the present application provides an electronic device, the electronic device 10 includes a memory 20 and a processor 30, the memory 20 stores a computer program, and when the computer program is executed by the processor 30, the processor 30 executes the steps of the simulation program data mapping method in any of the above embodiments.

[0153] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the steps of the simulation program data mapping method in any of the above embodiments are implemented.

[0154] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, electronic device and computer storage medium can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0155] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.

[0156] In several embodiments provided by the present invention, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

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

[0158] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

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

[0160] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for executing all or part of the steps of the method described in each embodiment of the present invention through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

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

Claims

1. A simulation program data mapping method, characterized in that: include: An initial mapping table is formed according to the data mapping relationship between the system export data and the generator of the stable calculation data; Traversing the initial mapping table and the stable calculation data, determining the data mapping relationship between the system derived data and the stable calculation data under each same generator object, and forming a mapping master table; According to the mapping master table, determining the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data, and forming a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data; The corresponding stable calculation data is updated according to the power flow calculation data in the mapping sub-table, and the data update is used to synchronize the stable calculation data with the power flow calculation data.

2. The simulation program data mapping method according to claim 1, characterized in that: The data mapping relationship between the generator derived from the system and the stable calculated data is used to form an initial mapping table, including: A mapping relationship between the system derived data and the operation information of the generator in the stable calculation data is determined to form an initial mapping table between the system derived data and the stable calculation data, wherein the operation information includes an object name and a voltage of the generator.

3. The simulation program data mapping method according to claim 2, characterized in that: The initial mapping table and the stable calculation data are traversed to determine the data mapping relationship between the system derived data and the stable calculation data under each same generator object, and form a mapping master table, including: Traversing the data in the initial mapping table row by row to obtain the operation information corresponding to the system derived data and the stable calculation data respectively; Mapping all data cards with the same generator object name in the stable calculation data to the data card group of the generator corresponding to the data card to form a stable calculation data card self-mapping table; Matching the data cards in the self-mapping table of the stability calculation data card with the system-derived data according to the object name of the generator; In the case where the object name of the generator is matched successfully, a mapping master table is constructed according to the mapping relationship between the operation information of the stable calculation data and the operation data of the data card and the system export data.

4. The simulation program data mapping method according to claim 3, characterized in that: In the case that the object name of the generator is not matched successfully, the operation information of the stable calculation data and the data card are saved in the mapping master table.

5. The simulation program data mapping method according to claim 3, characterized in that: The step of mapping all data cards of the same generator object name in the stable calculation data to the data card group of the generator corresponding to the data card to form a stable calculation data card self-mapping table includes: Traversing the stable calculation data row by row for the data in the initial mapping table, wherein the initial mapping table includes a first row of stable calculation data, a second row of stable calculation data, a third row of stable calculation data, ... an Nth row of stable calculation data; Put the data card corresponding to the first row of stable calculation data into a temporary data card group, and continue to traverse the next adjacent row of stable calculation data; matching the generator object name and voltage of the stable calculation data in the adjacent next row with the generator object name and voltage of the stable calculation data in the first row; If the generator object name and voltage of the stable calculation data in the adjacent next row successfully match the generator object name and voltage of the stable calculation data in the first row, then the data card of the second row of stable calculation data is placed in the temporary data card group; If the generator object name and voltage of the stable calculation data in the adjacent next row fail to match the generator object name and voltage of the stable calculation data in the first row, then all data cards in the temporary data card group and the operation information are placed in the stable calculation data card self-mapping table; By analogy, the next adjacent row of stable calculation data is continuously traversed until the Nth row of stable calculation data is traversed, and the stable calculation data card self-mapping table is output.

6. The simulation program data mapping method according to claim 1, characterized in that: The step of determining the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data according to the mapping master table, and forming a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data, comprises: For each row of the mapping master table, if the operation information of the generator of the system-derived data in this row is not empty, extracting the operation information of the generator of the system-derived data corresponding to the data card of the stable calculation data in this row; Based on the mapping relationship between the system derived data and the power flow calculation data, and according to the operating information of the generator of the system derived data, determining the power flow calculation data corresponding to the operating information of the generator of the system derived data and the operating information of the power flow calculation data; According to the mapping master table and the system derived data, the mapping relationship between the operating information of the flow calculation data and the operating information of the stable calculation data is determined, and a mapping sub-table between the system derived data, the stable calculation data and the flow calculation data is formed.

7. The simulation program data mapping method according to claim 1, characterized in that: The updating of the corresponding stable calculation data according to the power flow calculation data in the mapping sub-table, wherein the data updating is used to synchronize the stable calculation data with the power flow calculation data, comprises: For each row of the mapping subtable, the operation information of the power flow calculation data in this row is extracted, and the operation information of the stable calculation data corresponding to the same row is updated, so that the operation information of the stable calculation data and the power flow calculation data are synchronized.

8. A simulation program data mapping device, characterized in that: include: A mapping table building module, used for forming an initial mapping table according to the data mapping relationship between the system export data and the generator of the stable calculation data; A master table construction module, used to traverse the initial mapping table and the stable calculation data, determine the data mapping relationship between the system derived data and the stable calculation data under each same generator object, and form a mapping master table; A sub-table construction module is used to determine the data mapping relationship between the system derived data, the stable calculation data and the power flow calculation data according to the mapping master table, and form a mapping sub-table between the system derived data, the stable calculation data and the power flow calculation data; A data updating module is used to update the corresponding stable calculation data according to the power flow calculation data in the mapping sub-table, and the data updating is used to synchronize the stable calculation data with the power flow calculation data.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the simulation program data mapping method as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the steps of the simulation program data mapping method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for processing data for real-time load flow calculation in large electric systems

    CN101692575A

  • Small-interference stability optimal calibration control system and method of electric power system

    CN104167729A

  • PSD (Power System Department) tide data and stable data editing and correction method based on object orientation

    CN104933513A

  • Method and system for initializing PSD-BPA data to PSDB database

    CN114817236A