A simulation program data mapping method and device, electronic equipment and medium
By forming an initial mapping table, a parent table, and a child table, and using power flow calculation data to update stability calculation data, the problem of the difference between generator object names and reference voltages in power flow and stability calculation data is solved, achieving efficient and accurate data mapping and meeting the requirements of the time-domain simulation program DSP.
Patent Information
- Application Number
- CN202411519323.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2044-10-29
AI Technical Summary
In existing technologies, the generator object names in power flow calculation data and stability calculation data differ from the reference voltage, which makes data mapping difficult in the time-domain simulation program DSP, and manual processing is inefficient and inaccurate.
By forming an initial mapping table, traversing stable calculation data, constructing a parent and child mapping table, and updating stable calculation data using power flow calculation data, automatic mapping of generator objects is achieved.
It achieves efficient and accurate mapping of power flow and stability calculation data, meets the requirements of time-domain simulation program DSP, and reduces manual processing time.
Smart Images

Figure CN119377642B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a simulation program data mapping method, apparatus, electronic device, and medium. Background Technology
[0002] The dispatch automation system is a system for collecting, processing, and monitoring power data. It can provide a wide range of services for power grid operation, provide online operation information, analysis, control, and decision-making tools for power system production and operation personnel at all levels of power dispatching agencies, and provide important guarantees for the safe, economical, and reliable operation of the power grid.
[0003] Time-domain simulation programs (DSPs, or Digital Signal Processing) can simulate the operating state of power systems, providing decision-making support for grid operation and control. They require power flow and stability calculation data in specific formats as input, but the sources of these two types of data may differ. Power flow calculation data can be obtained by exporting online grid data from the dispatch automation system and then converting it using a conversion program. Stability calculation data, on the other hand, is generally maintained manually offline and is not exported online from the dispatch automation system.
[0004] Therefore, the different sources of power flow calculation data and stability calculation data lead to differences in the names and reference voltages of the same generator objects in the power flow and stability calculation data. However, the time-domain simulation program DSP requires that the generator names and reference voltages be consistent in both power flow and stability calculation data. Therefore, it is necessary to map and align the names and reference voltages of the same generator object in the power flow and stability calculation data.
[0005] Currently, business personnel who need to use time-domain simulation programs (DSPs) perform batch time-domain simulation business processing. However, manual processing is difficult to complete the mapping of a large number of power flow and stability calculation data generator objects in a short time. There is a lack of efficient and accurate means to map heterogeneous power flow to generator objects in stability calculation data. Summary of the Invention
[0006] In view of this, in order to solve the above-mentioned technical problems, the present invention provides a simulation program data mapping method, device, electronic device and medium, thereby completing the mapping of a large amount of power flow and stability calculation data generator objects in a short time, and using an efficient and accurate means to map heterogeneous power flow to generator objects in stability calculation data.
[0007] The first aspect of this invention provides a simulation program data mapping method, comprising:
[0008] An initial mapping table is formed based on the data mapping relationship between the generator's exported data and stable calculation data.
[0009] The initial mapping table and the stable calculation data are traversed to determine the data mapping relationship between the system exported data and the stable calculation data under each identical generator object, and a mapping master table is formed.
[0010] Based on the mapping parent table, the data mapping relationship between the system exported data, the stability calculation data, and the power flow calculation data is determined, forming a mapping sub-table between the system exported data, the stability calculation data, and the power flow calculation data;
[0011] The corresponding stability calculation data is updated based on the power flow calculation data in the mapping sub-table. The data update is used to synchronize the stability calculation data and the power flow calculation data.
[0012] Optionally, the step of forming an initial mapping table based on the data mapping relationship between the generator derived data and the stable calculation data includes:
[0013] The mapping relationship between the generator operating information in the system exported data and the stable calculation data is determined, forming an initial mapping table between the system exported data and the stable calculation data. The operating information includes the generator's object name and voltage.
[0014] Optionally, the step of traversing the initial mapping table and the stable calculation data to determine the data mapping relationship between the system-derived data and the stable calculation data under each identical generator object, and forming a mapping master table, includes:
[0015] The data in the initial mapping table is traversed row by row to obtain the running information corresponding to the system exported data and the stable calculation data, respectively.
[0016] Map all data cards with the same generator object name in the stable computing data to the data card group of the generator corresponding to the data card, forming a stable computing data card self-mapping table;
[0017] The stable computing data cards are matched with each data card in the mapping table and the system exported data according to the object name of the generator;
[0018] If the object name of the generator is successfully matched, a mapping master table is constructed based on the operation information of the stable calculation data and the mapping relationship between the data card and the operation data exported by the system.
[0019] Optionally, if the object name of the generator fails to match, the running information of the stable calculation data and the data card are saved to the mapping master table.
[0020] Optionally, the step of mapping all data cards with the same generator object name within the stable computing data to the data card group of the corresponding generator, forming a stable computing data card self-mapping table, includes:
[0021] The stable computation data in the initial mapping table is traversed row by row. The initial mapping table contains the first row of stable computation data, the second row of stable computation data, the third row of stable computation data, ... the Nth row of stable computation data.
[0022] Place 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;
[0023] 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;
[0024] If the generator object name and voltage of the next adjacent row of stable calculation data successfully match the generator object name and voltage of the first row of stable calculation data, then the data card of the second row of stable calculation data is placed into the temporary data card group.
[0025] If the generator object name and voltage of the next adjacent row of stable calculation data fail to match the generator object name and voltage of the first row of stable calculation data, then all data cards in the temporary data card group and the operation information are placed into the stable calculation data card self-mapping table.
[0026] Similarly, continue traversing the stable calculation data of the next adjacent row until the Nth row of stable calculation data is reached, and output the stable calculation data card self-mapping table.
[0027] Optionally, determining the data mapping relationship between the system-derived data, the stability calculation data, and the power flow calculation data based on the mapping master table, and forming a mapping sub-table between the system-derived data, the stability calculation data, and the power flow calculation data, includes:
[0028] For each row of the mapping master table, if the generator operation information of the system exported data in this row is not empty, then extract the generator operation information of the system exported data corresponding to the data card of the stable calculation data in this row.
[0029] Based on the mapping relationship between the system-exported data and the power flow calculation data, and according to the generator operating information in the system-exported data, the power flow calculation data corresponding to the generator operating information in the system-exported data and the operating information of the power flow calculation data are determined.
[0030] Based on the mapping master table and the system-derived data, the mapping relationship between the operation information of the power flow calculation data and the operation information of the stability calculation data is determined, and a mapping sub-table is formed between the system-derived data, the stability calculation data, and the power flow calculation data.
[0031] Optionally, updating the corresponding stability calculation data based on the power flow calculation data in the mapping sub-table, wherein the data update is used to synchronize the stability calculation data and the power flow calculation data, includes:
[0032] For each row of the mapping sub-table, the running information of the power flow calculation data in that row is extracted, and the running information of the stable calculation data corresponding to the same row is updated to synchronize the running information of the stable calculation data and the power flow calculation data.
[0033] Secondly, the present invention also provides a simulation program data mapping device, comprising:
[0034] The mapping table construction module is used to form an initial mapping table based on the data mapping relationship between the generators and the system-exported data and stable calculation data;
[0035] The parent table construction module is used to traverse the initial mapping table and the stable calculation data, determine the data mapping relationship between the system exported data and the stable calculation data under each identical generator object, and form a mapping parent table;
[0036] The sub-table construction module is used to determine the data mapping relationship between the system exported data, the stability calculation data and the power flow calculation data based on the mapping parent table, and to form a mapping sub-table between the system exported data, the stability calculation data and the power flow calculation data;
[0037] The data update module is used to update the corresponding stability calculation data based on the power flow calculation data in the mapping sub-table. The data update is used to synchronize the stability calculation data and the power flow calculation data.
[0038] Thirdly, the present invention also provides an electronic device, the electronic device including a memory and a processor, the memory storing a computer program, the computer program being executed by the processor causing the processor to perform the steps of the simulation program data mapping method as described in the first aspect.
[0039] Fourthly, the present invention also 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] As can be seen from the above technical solutions, the present invention has the following advantages:
[0041] This application embodiment forms an initial mapping table based on the data mapping relationship between generators in the system-exported data and stable calculation data. The initial mapping table and the stable calculation data are then traversed to determine the data mapping relationship between the system-exported data and the stable calculation data for each identical generator object. This determines the data mapping relationship between the system-exported data, stable calculation data, and power flow calculation data, forming a mapping sub-table between these three data types. The stable calculation data is then updated using the power flow calculation data within the mapping sub-table, thereby achieving the matching of stable calculation data and power flow calculation data. This replaces manual processing, enabling the mapping of a large number of generator objects in power flow and stable calculation data in a short time. This efficient and accurate method maps heterogeneous power flows to generator objects in stable calculation data. Attached Figure Description
[0042] Figure 1 This invention provides an application environment for a simulation program data mapping method.
[0043] Figure 2 A flowchart of a simulation program data mapping method provided in an embodiment of the present invention;
[0044] Figure 3 Power flow calculation data file provided for embodiments of the present invention;
[0045] Figure 4 This is a system export data-power flow calculation data mapping table provided in the embodiments of the present invention;
[0046] Figure 5 Stable computational data files provided for embodiments of the present invention;
[0047] Figure 6 An initial mapping table provided for embodiments of the present invention;
[0048] Figure 7 The mapping master table provided in the embodiments of the present invention;
[0049] Figure 8 The mapping sub-table provided in the embodiments of the present invention;
[0050] Figure 9 This is a modified stable calculation data file provided in the embodiments of the present invention;
[0051] Figure 10 This is a schematic diagram of the structure of a simulation program data mapping device provided in an embodiment of the present invention;
[0052] Figure 11This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0053] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0054] The simulation program data mapping method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the scheduling automation system communicates with server 102 via a network, and the data storage system stores the data that server 102 needs to process. The data storage system can be integrated onto server 102, or it can be located in the cloud or on other network servers. Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0055] like Figure 2 As shown, this application embodiment provides a simulation program data mapping method, which is applied to... Figure 1 Taking server 102 as an example, the explanation includes the following steps S1 to S4. Wherein:
[0056] Step S1: Based on the data mapping relationship between the generator exported by the system and the stable calculation data, form an initial mapping table.
[0057] Among them, the system exported data refers to the data exported by the dispatch automation system, which generally includes the object name and voltage of the generator in the system.
[0058] Stable calculation data refers to the definition of generator parameters, including the generator's object name and reference voltage.
[0059] Both the system-exported data and the stability calculation data contain operating information about each generator. Based on expert knowledge, the generator operating information in the system-exported data and the stability calculation data can be correlated to form an initial mapping table.
[0060] The initial mapping table contains the mapping relationship between the system exported data and the stable calculation data, including the stable calculation device name, the stable calculation device reference voltage, the device name in the system exported data, and the device reference voltage in the system exported data.
[0061] Step S2: 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, and form a mapping master table.
[0062] The mapping master table divides the system-derived data and stability calculation data under each identical generator object, and forms a data mapping relationship between the system-derived data and stability calculation data under each identical generator object.
[0063] Step S3: Based on the mapping master table, determine the data mapping relationship between system exported data, stability calculation data and power flow calculation data, and form a mapping sub-table between system exported data, stability calculation data and power flow calculation data.
[0064] It is understandable that power flow calculation data refers to power flow calculation data obtained by converting data exported from the scheduling automation system through an automated program. Power flow calculation data and system exported data are mapped according to the same generator objects. At the same time, the mapping master table represents the data mapping relationship between system exported data and stability calculation data under each same generator object. Therefore, based on the mapping master table and the mapping relationship between power flow calculation data and system exported data, the mapping sub-tables between system exported data, stability calculation data and power flow calculation data can be determined, and then the mapping relationship between stability calculation data and power flow calculation data can be determined.
[0065] Step S4: Update the corresponding stability calculation data based on the power flow calculation data in the mapping sub-table. The data update is used to synchronize the stability calculation data and the power flow calculation data.
[0066] The mapping sub-table contains the mapping relationship between stable calculation data and current flow calculation data. In order to unify the data between stable calculation data and current flow calculation data, the stable calculation data is updated using current flow calculation data to synchronize the stable calculation data and current flow calculation data, thereby achieving the matching of stable calculation data and current flow calculation data.
[0067] It should be noted that, in this embodiment, an initial mapping table is formed based on the data mapping relationship between generators in the system-exported data and stability calculation data. This initial mapping table is then traversed to determine the data mapping relationship between system-exported data and stability calculation data for each identical generator object. This determines the data mapping relationship between system-exported data, stability calculation data, and power flow calculation data, forming a mapping sub-table between these three data types. The stability calculation data is then updated using the power flow calculation data within the mapping sub-table, thereby achieving the matching of stability calculation data and power flow calculation data. This replaces manual processing and enables the mapping of a large number of generator objects in power flow and stability calculation data in a short time. This efficient and accurate method maps heterogeneous power flows to generator objects in stability calculation data. This embodiment can meet the requirements of time-domain simulation programs (DSPs) for time-domain simulation and can be widely applied in the field of power system data processing technology.
[0068] In some embodiments, step S1, which involves forming an initial mapping table based on the data mapping relationship between the generator derived data and the stable calculation data, includes step S101; wherein:
[0069] Step S101: Determine the mapping relationship between the generator's operating information in the system exported data and the stability calculation data, and form an initial mapping table between the system exported data and the stability calculation data. The operating information includes the generator's object name and voltage.
[0070] It is understandable that since both the system exported data and the stability calculation data contain generator operating information, multiple generator objects in the stability calculation data are mapped to generator objects in the system exported data to obtain a mapping table file, which represents the mapping relationship between generator object names and reference voltages in the system exported data and the stability calculation data.
[0071] In some embodiments, step S2 involves traversing the initial mapping table and the stable calculation data to determine the data mapping relationship between the system-derived data and the stable calculation data under each identical generator object, and forming a mapping master table, including:
[0072] Step S201: Traverse the data in the initial mapping table row by row to obtain the running information corresponding to the system exported data and stable calculation data respectively.
[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 corresponding generator, forming a stable calculation data card self-mapping table.
[0074] Generator data cards typically contain a range of technical specifications and operating parameters, which are crucial for understanding generator performance and maintenance. Data cards come in several types, 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, and SV.
[0075] Understandably, this step involves dividing the data cards of the same generator into a stable computing data card self-mapping table, which contains data cards of different generators.
[0076] Specifically, step S202 includes steps S2021 to S2026. Wherein:
[0077] Step S2021: Traverse the data in the initial mapping table row by row to obtain stable calculation data. The initial mapping table contains 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] Where 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 different generators are stored in adjacent rows. The first row of stability calculation data refers to the first row of data within the data segment consisting of multiple rows of data defining a particular generator, and the Nth row of stability calculation data refers to the Nth row of data within the data segment consisting of multiple rows of data defining a particular generator.
[0080] Step S2022: Place 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.
[0081] Specifically, in the first row of stable calculation data, the corresponding data card is placed into a temporary data card group, and the data is initialized in the temporary data card group. The temporary data card group is initially empty.
[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 adjacent row of stable calculation data match the generator object name and voltage of the first row of stable calculation data, then put the data card of the second row of stable calculation data into the temporary data card group.
[0084] Step S2025: If the generator object name and voltage of the next adjacent row of stable calculation data fail to match the generator object name and voltage of the first row of stable calculation data, then put all data cards and operating information in the temporary data card group into the stable calculation data card self-mapping table.
[0085] Step S2026: Continue to traverse the stable calculation data of the next adjacent row until the Nth row of stable calculation data is reached, and output the stable calculation data card self-mapping table.
[0086] For example, 1) Read stable computation data row by row within the initial mapping table.
[0087] 2) If it is the first row of data, then store the data card of the generator object in the first row of data into the temporary data card group.
[0088] 3) If this is not the first row of data, and the generator object name and reference voltage of this row are the same as those of the previous row, then the generator object data card for this row will be temporarily stored. If the generator object name and reference voltage of this row are different from those of the previous row, all data cards in the temporary storage data card group, along with their corresponding generator object names and reference voltages, will be output to the stability calculation data card self-mapping table, and the temporary storage will be cleared. The data card for this row of objects will be temporarily stored.
[0089] 4) If it is the last line of data, and the generator object name and reference voltage of this line of data are the same as those of the previous line of data, then its data card is temporarily stored, and all data cards in the temporarily stored data card group, as well as the corresponding generator object name and reference voltage, are output to the stability calculation data card self-mapping table.
[0090] 5) If the generator object name and reference voltage of the last row of data are different from those of the previous row of data, first output all data cards in the temporary storage data card group and the corresponding generator object name and reference voltage to the stability calculation data card self-mapping table, clear the temporary storage, and then output the generator object name, reference voltage and data card of this row of data to the stability calculation data card self-mapping table.
[0091] Step S203: Match the data cards in the stable calculation data card mapping table with the system exported data according to the generator object name.
[0092] Step S204: If the generator object name is successfully matched, construct a mapping master table based on the operation information of the stable calculation data and the mapping relationship between the data card and the system exported operation data.
[0093] In cases where the generator's object name fails to match, the operation information of the stable calculation data and the data card are saved to the mapping master table.
[0094] It is understandable that if the generator object name is not matched successfully, it means that the operation information of the stability calculation data exists independently. In this case, only the object name, reference voltage, and data card in the stability calculation data will be output to the mapping master table for subsequent maintenance.
[0095] In some embodiments, step S3, which determines the data mapping relationship between system-derived data, stability calculation data, and power flow calculation data based on the mapping master table, and forms a mapping sub-table between system-derived data, stability calculation data, and power flow calculation data, includes steps S301 to S303. Wherein:
[0096] Step S301: For each row of the mapping master table, if the generator operation information of the system exported data in this row is not empty, then extract the generator operation information of the system exported data corresponding to the data card of the stable calculation data in this row.
[0097] Step S302: Based on the mapping relationship between system exported data and power flow calculation data, determine the power flow calculation data corresponding to the generator operating information in the system exported data and the operating information of the power flow calculation data according to the generator operating information in the system exported data.
[0098] Step S303: Based on the mapping master table and the system exported data, determine the mapping relationship between the operation information of the power flow calculation data and the operation information of the stability calculation data, and form a mapping sub-table between the system exported data, the stability calculation data and the power flow calculation data.
[0099] For example, 1) Read the mapping parent table row by row.
[0100] 2) If the system exported data generator object data in this row of data is not empty, then extract the system exported data generator object corresponding to the stable calculation data card in this row of data.
[0101] 3) Extract the generator object from the system-exported data in this row of data. Based on the mapping relationship of the same generator in the system-exported data-power flow calculation data mapping table, locate the generator object in the power flow calculation data corresponding to the system-exported data generator object, and extract the name and reference voltage of the generator object. Save the data output of this generator object in the stability calculation data, system-exported data, and power flow calculation data to the stability calculation data-system-exported data-power flow calculation data mapping sub-table.
[0102] In some embodiments, step S4, which updates the corresponding stability calculation data based on the power flow calculation data in the mapping sub-table, is used to synchronize the stability calculation data and the power flow calculation data. This includes step S401. Wherein:
[0103] Step S401: For each row of the mapping sub-table, extract the running information of the power flow calculation data for that row, and update the running information of the stable calculation data corresponding to the same row, so that the running information of the stable calculation data and the power flow calculation data are synchronized.
[0104] Specifically, the operation information of the stable calculation data corresponding to the same row is modified to the operation information of the power flow calculation data of the corresponding row, so as to achieve the matching of the same generator object in the stable calculation data and the power flow calculation data.
[0105] The following are examples provided in conjunction with embodiments of this application.
[0106] In this example, such as Figure 3 The power flow calculation data file shown is obtained by converting the data exported by the scheduling automation system through an automated program. The file contains 8 nodes, and the floating-point parameters contained in each node are shown in the figure.
[0107] like Figure 4 The system exported data - power flow calculation data mapping table shown has the following fields: "ocs_name" field represents the name of the generator object in the system exported data, "ocs_volt" field represents the reference voltage of the generator object in the system exported data, "dat_name" field represents the name of the generator object in the power flow calculation data, and "dat_volt" field represents the reference voltage of the generator object in the power flow calculation data. This mapping table is generated by a program that converts system exported data into power flow calculation data, realizing the mapping of the 8 node generator objects in the power flow calculation data to the nodes in the system exported data, and can represent the mapping relationship between the generator object name and reference voltage in the system exported data and the power flow calculation data.
[0108] like Figure 5The stable calculation data file shown is obtained by offline conversion of data exported from the scheduling automation system. The file contains 8 nodes and a total of 83 generator parameter cards. Taking the generator objects "Power Plant A G1", "Power Plant B G3", "Power Plant B G4" and "Power Plant C 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 stability calculation data and power flow calculation data:
[0110] The first step is to export the data from the scheduling automation system, obtain the power flow calculation data file through the automation program, and refer to... Figure 1 Simultaneously, the program outputs a system-exported data-power flow calculation data mapping table, which can be referenced. Figure 3 ;
[0111] The second step is to map the stability calculation data to the data exported from the dispatch automation system. A mapping is constructed based on the generator object name and reference voltage, and an initial mapping table between the system's exported data and the stability calculation data is created, referring to... Figure 6 The "swi_type" field indicates the data card type of the generator object in the stability calculation data, the "swi_name" field indicates the name of the generator object in the stability calculation data, and the "swi_volt" field indicates the reference voltage of the generator object in the stability calculation data. The initial mapping table is a mapping relationship table file obtained by mapping the 8 generator objects in the stability calculation data to the generator objects in the system exported data. It shows the mapping relationship between the generator object names and reference voltages in the system exported data and the stability calculation data, which facilitates subsequent mapping steps.
[0112] The third step is to read the name of the generator object and the reference voltage from the system exported data and the stability calculation data line by line.
[0113] Based on stability calculation data Figure 5 and initial mapping table Figure 6 Taking generator objects “Power Plant G1”, “Power Plant G3”, and “Power Plant G1” as examples, the stability calculation data is processed by placing different types of data cards describing the same generator object into the same generator object's data card group. The data cards M, MF, FR, F+, S, SI+, GA, GJ, and TB under generator object “Power Plant G1”, the data cards M, MF, FV, F+, SI, SI+, GA, GA+, GJ, GJ+, and TB under generator object “Power Plant G3”, and the data cards M, MF, FV, F+, SI, SI+, GA, GI, GI+, and TB under generator object “Power Plant G1” are stored in the corresponding data card groups, resulting in Table 1.
[0114] Table 1. Data Card Set Self-Mapping Table for "Power Plant A G1" and "Power Plant B G3"
[0115]
[0116] Based on the initial mapping table, the generator object names and reference voltages in the system exported data are mapped to the generator objects in the stable calculation data in Table 1. The generator object name "A Plant. #1 Unit" and the reference voltage "27." in the system exported 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", resulting in Table 2.
[0117] Table 2 Data Card Set Mapping Table for "Power Plant A G1" and "Power Plant B G3"
[0118]
[0119] Output the name and reference voltage of the generator object mapped to each data card in the data card group in Table 2 to the Stability Calculation Data-System Export Data mapping master table. See the example output result for reference. Figure 7 ;
[0120] Step 4: Read the mapping master table line by line, extract the name and reference voltage of the generator object corresponding to the generator object in the system exported data of the stability calculation data card, query the system exported data-power flow calculation data mapping table, obtain the generator object whose name and reference voltage in the system exported data are the same as the extracted name and reference voltage, and map the name and reference voltage of the generator object in the power flow calculation data to the stability calculation data.
[0121] by Figure 7 Taking generator objects “Power Plant G1”, “Power Plant G3”, and “Power Plant G1” from the mapping parent table as examples, extract the name “Power Plant G1” as “A.#1 Unit” and the reference voltage “27.” in the system exported data; the name “B.#3 Unit” as “B.#3 Unit” and the reference voltage “27.” as “B.#3 Unit” as “B.#3 Unit” as “B.#3 Unit” as “27.” as “B.#3 Unit” as “26.” as “B.#3 Unit” as “B.#3 Unit” as “27.” as “B.#3 Unit” as “26.” as “B.#3 Unit” as “B.#3 Unit” as “27.” as “B.#3 Unit” as “B.#3 Unit” as “26.” as “B.#3 Unit” as “B.#3 Unit” as “27.” as “B.#3 Unit” as “B.#3 Unit” as “B.#3 Unit” as “26.” as “B.#3 Unit” ... Figure 2The mapping table retrieves the name "A-Plant G1" and reference voltage "27." for generator object "A-Plant G1" in the power flow calculation data, the name "B-Plant G3" and reference voltage "27." for generator object "B-Plant G3" in the power flow calculation data, and the name "C-Plant G1" and reference voltage "27." for generator object "C-Plant G1" in the power flow calculation data. The generator objects in the power flow calculation data are then mapped to the generator objects in the stability calculation data, establishing a mapping relationship between generator objects in the stability calculation data, system-exported data, and power flow calculation data. This mapping is output to a mapping sub-table. See the example output results for reference. Figure 8 .
[0122] Step 5: Read the stability calculation data line by line. Taking generator objects "Plant A G1", "Plant B G3", and "Plant C G1" in the stability calculation data as examples, according to the mapping relationship of generator objects in the mapping sub-table, extract the name "Plant A G1" and the reference voltage "27." for generator object "Plant A G1", the name "Plant B G3" and the reference voltage "27." for generator object "Plant B G3", and the name "Plant C G1" and the reference voltage "26.0" for generator object "Plant C G1". It can be found that there is a stability calculation... To address the discrepancy between the generator name and reference voltage in the stability calculation data and the power flow calculation data, and to meet the time-domain simulation requirements of the DSP program, the generator object name and reference voltage in the stability calculation data are modified to match those in the power flow calculation data. Specifically, "Power Plant A G1" is corrected to "Plant A G1", "Plant B G3" to "Plant B G1", and the reference voltage "26.0" for generator object "Plant C G1" is corrected to "27." This achieves matching between the power flow calculation data and the stability calculation data. The corrected stability calculation data file is then output. See the example output for reference. Figure 9 .
[0123] This demonstrates that the method provided in this embodiment of the invention maps generator objects in the system-derived data and power flow calculation data to the same generator object data card in the stable calculation data based on the mapping relationship between stable calculation data, system-derived data and power flow calculation data. This can comprehensively correct the problem of different generator object names and reference voltages caused by heterogeneous sources of stable calculation data and power flow calculation data, thereby enabling automatic mapping of power flow and stable calculation data for time-domain simulation programs (DSPs).
[0124] Based on the same inventive concept, this application also provides a simulation program data mapping device for implementing the simulation program data mapping method described above.
[0125] The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more simulation program data mapping device embodiments provided below can be found in the limitations of the simulation program data mapping method above, and will not be repeated here.
[0126] like Figure 10 As shown, this application embodiment provides a simulation program data mapping device, including:
[0127] The mapping table construction module 100 is used to form an initial mapping table based on the data mapping relationship between the generators of the system-derived data and the stable calculation data;
[0128] The parent table construction module 200 is used to traverse the initial mapping table and stable calculation data, determine the data mapping relationship between the system exported data and stable calculation data under each identical generator object, and form a mapping parent table.
[0129] The sub-table construction module 300 is used to determine the data mapping relationship between system exported data, stability calculation data and power flow calculation data based on the mapping parent table, and to form a mapping sub-table between system exported data, stability calculation data and power flow calculation data;
[0130] The data update module 400 is used to update the corresponding stability calculation data based on the power flow calculation data in the mapping sub-table. The data update is used to synchronize the stability calculation data and the power flow calculation data.
[0131] In some embodiments, an initial mapping table is formed based on the data mapping relationship between the generator's exported data and stable calculation data, including:
[0132] Determine the mapping relationship between the generator operating information in the system exported data and the stability calculation data, and form an initial mapping table between the system exported data and the stability calculation data. The operating information includes the generator object name and voltage.
[0133] In some embodiments, the initial mapping table and stable calculation data are traversed to determine the data mapping relationship between the system-derived data and stable calculation data under each identical generator object, and a mapping master table is formed, including:
[0134] The data in the initial mapping table is traversed row by row to obtain the running information corresponding to the system exported data and the stable calculation data, respectively.
[0135] Map all data cards with the same generator object name in the stable calculation data to the data card group of the corresponding generator, forming a stable calculation data card self-mapping table;
[0136] Match the stable computing data cards with the data cards in the mapping table and the system exported data according to the generator object name;
[0137] If the generator object name is successfully matched, a mapping master table is constructed based on the operation information of the stable calculation data and the mapping relationship between the data card and the system exported operation data.
[0138] In some embodiments, if the generator object name does not match successfully, the operation information of the stable calculation data and the data card are saved to the mapping master table.
[0139] In some embodiments, all data cards with the same generator object name within the stable computing data are mapped to the data card group of the corresponding generator, forming a stable computing data card self-mapping table, including:
[0140] The data in the initial mapping table is traversed row by row to obtain stable calculation data. The initial mapping table contains 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] Place 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;
[0142] Match the generator object name and voltage of the next adjacent row of stability calculation data with the generator object name and voltage of the first row of stability calculation data;
[0143] If the generator object name and voltage of the next row of stable calculation data match the generator object name and voltage of the first row of stable calculation data, then the data card of the second row of stable calculation data is placed into the temporary data card group.
[0144] If the generator object name and voltage of the next adjacent row of stable calculation data fail to match the generator object name and voltage of the first row of stable calculation data, then all data cards and operating information in the temporary data card group will be placed into the stable calculation data card self-mapping table.
[0145] By analogy, continue traversing the stable calculation data of the next adjacent row until the Nth row of stable calculation data is reached, and output the stable calculation data card self-mapping table.
[0146] In some embodiments, based on the mapping master table, the data mapping relationship between system-derived data, stability calculation data, and power flow calculation data is determined, forming a mapping sub-table between system-derived data, stability calculation data, and power flow calculation data, including:
[0147] For each row of the mapping master table, if the generator operation information of the system exported data in this row is not empty, then extract the generator operation information of the system exported data corresponding to the data card of the stable calculation data in this row.
[0148] Based on the mapping relationship between system exported data and power flow calculation data, and according to the generator operating information in the system exported data, the power flow calculation data corresponding to the generator operating information in the system exported data and the operating information of the power flow calculation data are determined.
[0149] Based on the mapping master table and the system-exported data, the mapping relationship between the operation information of power flow calculation data and the operation information of stability calculation data is determined, and a mapping sub-table is formed between the system-exported data, stability calculation data, and power flow calculation data.
[0150] In some embodiments, the corresponding stability calculation data is updated based on the power flow calculation data in the mapping sub-table. This data update is used to synchronize the stability calculation data and the power flow calculation data, including:
[0151] For each row of the mapping sub-table, extract the running information of the power flow calculation data for that row, and update the running information of the stable calculation data corresponding to the same row to synchronize the running information of the stable calculation data and the power flow calculation data.
[0152] like Figure 11 As shown, this application provides an electronic device. The electronic device 10 includes a memory 20 and a processor 30. The memory 20 stores a computer program. When the computer program is executed by the processor 30, the processor 30 performs the steps of the simulation program data mapping method as described in any of the above embodiments.
[0153] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed, implements the steps of the simulation program data mapping method as described in any of the above embodiments.
[0154] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, electronic devices, and computer storage media described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0155] It should be noted that the terms "comprising" and "having" and any variations thereof in the specification, claims and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such processes, methods, products or devices.
[0156] In the several embodiments provided by this invention, it will be understood that each block in the flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the figures. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved.
[0157] In the embodiments provided by this 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 merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between devices or units, and may be electrical, mechanical, or other forms.
[0158] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0159] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0160] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for executing all or part of the steps of the methods described in the various embodiments of the present invention through a computer device (which may be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.
[0161] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A simulation program data mapping method, characterized in that, include: An initial mapping table is formed based on the data mapping relationship between the generator's exported data and stable calculation data. The initial mapping table and the stable calculation data are traversed to determine the data mapping relationship between the system exported data and the stable calculation data under each identical generator object, and a mapping master table is formed. Based on the mapping parent table, the data mapping relationship between the system exported data, the stability calculation data, and the power flow calculation data is determined, forming a mapping sub-table between the system exported data, the stability calculation data, and the power flow calculation data; The corresponding stability calculation data is updated based on the power flow calculation data in the mapping sub-table. The data update is used to synchronize the stability calculation data and the power flow calculation data.
2. The simulation program data mapping method according to claim 1, characterized in that, The initial mapping table is formed based on the data mapping relationship between the generator derived from the system and the stable calculation data, including: The mapping relationship between the generator operating information in the system exported data and the stable calculation data is determined, forming an initial mapping table between the system exported data and the stable calculation data. The operating information includes the generator's object name and voltage.
3. The simulation program data mapping method according to claim 2, characterized in that, The step of traversing the initial mapping table and the stable calculation data to determine the data mapping relationship between the system-derived data and the stable calculation data under each identical generator object, and forming a mapping master table, includes: The data in the initial mapping table is traversed row by row to obtain the running information corresponding to the system exported data and the stable calculation data, respectively. Map all data cards with the same generator object name in the stable computing data to the data card group of the generator corresponding to the data card, forming a stable computing data card self-mapping table; The stable computing data cards are matched with each data card in the mapping table and the system exported data according to the object name of the generator; If the object name of the generator is successfully matched, a mapping master table is constructed based on the operation information of the stable calculation data and the mapping relationship between the data card and the operation data exported by the system.
4. The simulation program data mapping method according to claim 3, characterized in that, If the object name of the generator fails to match, the running information of the stable calculation data and the data card are saved to 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 with the same generator object name within the stable computing data to the data card group of the corresponding generator, forming a stable computing data card self-mapping table, includes: The stable computation data in the initial mapping table is traversed row by row. The initial mapping table contains the first row of stable computation data, the second row of stable computation data, the third row of stable computation data, ... the Nth row of stable computation data. Place 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; 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; If the generator object name and voltage of the next adjacent row of stable calculation data successfully match the generator object name and voltage of the first row of stable calculation data, then the data card of the second row of stable calculation data is placed into the temporary data card group. If the generator object name and voltage of the next adjacent row of stable calculation data fail to match the generator object name and voltage of the first row of stable calculation data, then all data cards in the temporary data card group and the operation information are placed into the stable calculation data card self-mapping table. Similarly, continue traversing the stable calculation data of the next adjacent row until the Nth row of stable calculation data is reached, and output the stable calculation data card self-mapping table.
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 stability calculation data, and the power flow calculation data based on the mapping master table, and forming a mapping sub-table between the system-derived data, the stability calculation data, and the power flow calculation data, includes: For each row of the mapping master table, if the generator operation information of the system exported data in this row is not empty, then extract the generator operation information of the system exported data corresponding to the data card of the stable calculation data in this row. Based on the mapping relationship between the system-exported data and the power flow calculation data, and according to the generator operating information in the system-exported data, the power flow calculation data corresponding to the generator operating information in the system-exported data and the operating information of the power flow calculation data are determined. Based on the mapping master table and the system-derived data, the mapping relationship between the operation information of the power flow calculation data and the operation information of the stability calculation data is determined, and a mapping sub-table is formed between the system-derived data, the stability calculation data, and the power flow calculation data.
7. The simulation program data mapping method according to claim 1, characterized in that, The step of updating the corresponding stability calculation data based on the power flow calculation data in the mapping sub-table, wherein the data update is used to synchronize the stability calculation data and the power flow calculation data, includes: For each row of the mapping sub-table, the running information of the power flow calculation data in that row is extracted, and the running information of the stable calculation data corresponding to the same row is updated to synchronize the running information of the stable calculation data and the power flow calculation data.
8. A simulation program data mapping device, characterized in that, include: The mapping table construction module is used to form an initial mapping table based on the data mapping relationship between the generators and the system-exported data and stable calculation data; The parent table construction module is used to traverse the initial mapping table and the stable calculation data, determine the data mapping relationship between the system exported data and the stable calculation data under each identical generator object, and form a mapping parent table; The sub-table construction module is used to determine the data mapping relationship between the system exported data, the stability calculation data and the power flow calculation data based on the mapping parent table, and to form a mapping sub-table between the system exported data, the stability calculation data and the power flow calculation data; The data update module is used to update the corresponding stability calculation data based on the power flow calculation data in the mapping sub-table. The data update is used to synchronize the stability calculation data and the power flow calculation data.
9. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform 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, it implements the steps of the simulation program data mapping method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
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