A Method for Converting Data Structures of Power System Simulation Software
By converting PSASP database data into EXCEL reports and performing voltage level and region equivalent processing, the conversion complexity caused by the difference in data structures of PSASP and PSMSD software is solved, and the data conversion efficiency and accuracy of maintenance solutions are improved.
Patent Information
- Application Number
- CN202210932375.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-04
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-08-04
AI Technical Summary
In the prior art, due to the difference in data structures between PSASP and PSMSD software, data conversion is complex and inefficient, and errors often occur, affecting the use and promotion of PSMSD software.
By outputting the PSASP database data as an EXCEL report, extracting useful fields to form a matrix, performing voltage level and region equivalent processing, forming a data format recognized by the PSMSD software.
It realizes flexible conversion of PSASP data to PSMSD, reduces the probability of error, and improves the flexibility and accuracy of data conversion efficiency and maintenance plan formulation.
Smart Images

Figure CN115390894B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power systems, and specifically to a method for converting data structures of power system simulation software. Background Art
[0002] The Power System Maintance Scheme Decision (PSMSD) is a software platform for power grid maintenance scheme decision-making jointly developed by the Electric Power Research Institute of State Grid Hubei Electric Power Co., Ltd. and Wuhan University of Technology. Based on this software, the optimal maintenance scheme can be automatically calculated and decided under any maintenance mode of the substation, which is of great significance for improving the safety risk level of power grid operation during maintenance.
[0003] As a general power system calculation platform for power grids, the Power System Analysis Software Package (PSASP) database stores the structural parameters and operation data of power grids in various provinces, and is also the data source for the calculation of the PSMSD software. However, due to different data structures, the data in PSASP is stored in three data tables including a basic library table, a power flow operation table, and a power flow result table when stored, and each data table contains many sub-tables with components as units, and the data volume is huge; in contrast, the data content of the PSMSD software is divided into three sub-tables, but the three tables are respectively based on node information, branch information, and generator information as the division basis, and the required amount of information is far less than the original PSASP data. Therefore, the conversion process from the internal data of PSASP to the PSMSD software is complex and has been affecting the calculation efficiency of PSMSD. Traditional data conversion methods require professional technicians to perform a large number of data entry and correction tasks. Due to the huge and complex data volume and the existence of a certain equivalent conversion relationship between the data of different software, the converted data often has errors and extremely low efficiency, which greatly affects the use and promotion of the PSMSD software.
[0004] Therefore, it is of crucial significance to study a general data structure conversion method for converting from PSASP to the PSMSD software. Summary of the Invention
[0005] In view of this, the present invention aims to flexibly convert the data input format of the PSASP software to the data input format of the PSMSD software, and proposes a method for converting data structures of power system simulation software. This method can be used to solve problems such as the large amount of data input work, the difficulty in obtaining data, and the easy occurrence of errors in data conversion for the PSMSD software.
[0006] The technical solution adopted by the present invention is as follows:
[0007] A method for converting the data structure of a power system simulation software, comprising the following steps:
[0008] Step 1: Output the basic library data in the PSASP database internal data into an EXCEL report form and store it as a basic library data table. The output data content includes: bus data, AC line data, two-winding transformer data, three-winding transformer data, and generator data;
[0009] Step 2: Set the system operation mode, output the power flow calculation job data in the PSASP database internal data into an EXCEL report form and store it as a power flow job data table. The output data content includes: AC line data, generator data, and load data;
[0010] Step 3: According to the designed operation mode, output the power flow calculation result data in the PSASP database internal data into an EXCEL report form and store it as a power flow result data table. The output data content includes: generator data, two-winding transformer data, and three-winding transformer data;
[0011] Step 4: Extract the useful field content in each sub-table of the basic library data table and store it separately in matrix form;
[0012] Step 5: Extract the useful field content in each sub-table of the power flow job data table and store it separately in matrix form;
[0013] Step 6: Extract the useful field content in each sub-table of the power flow result data table and store it separately in matrix form;
[0014] Step 7: Input relevant parameters for representing the voltage level and regional network where the substation to be overhauled is located, including: system base capacity S, node voltage upper limit Vmax, node voltage lower limit Vmin, equivalent voltage level BusVoltage, and any bus node name BusTarget in the regional power grid;
[0015] Step 8: Perform voltage level equivalence on the data in the already output basic library data table, power flow job data table, and power flow result data table, and extract the power grid data at the equivalent voltage level BusVoltage;
[0016] Step 9: According to the requirements of the field content of the three data tables required by the PSMSD software, extract and form three data tables according to the requirements of each field from the equivalent processed PSASP data content;
[0017] Step 10: According to any bus node name BusTarget in the regional power grid, extract the power grid data in the area where BusTarget is located from the three data tables obtained in Step 9;
[0018] Step Eleven: Perform node attribute correction on the regional grid data extracted in Step Ten. The resulting data card is the input data format that can be calculated by PSMSD, realizing the data conversion operation.
[0019] Furthermore, in Step Four, the matrices formed by separately storing each sub-table include:
[0020] (1) Bus table: Extract the information of the three fields "Bus_Name", "PS_Name", and "Base_kV" in the bus table separately and store it in the matrix dataBase_Bus.
[0021] (2) AC line table: Extract the information of the nine fields "I_Name", "J_Name", "ID_No", "R1", "X1", "B1_Half", "Rate_Ka", "Up_limit", and "Type" in the AC line table separately and store it in the matrix dataBase_AcLine.
[0022] (3) Two-winding transformer table: Extract the information of the nine fields "I_Name", "J_Name", "ID_No", "R1", "X1", "B1_Half", "Rate_Ka", "Up_limit", and "Type" in the two-winding transformer table separately and store it in the matrix dataBase_dTrans.
[0023] (4) Three-winding transformer table: Extract the information of the nine fields "I_Name", "J_Name", "ID_No", "R1", "X1", "B1_Half", "Rate_Ka", "Up_limit", and "Type" in the three-winding transformer table separately and store it in the matrix dataBase_tTrans.
[0024] (5) Generator table: Extract the information of the field "ID_Name" in the generator table separately and store it in the matrix dataBase_Gen.
[0025] Furthermore, in Step Five, the matrices formed by separately storing each sub-table include:
[0026] (1) AC line table: Extract the information of the five fields "I_Name", "J_Name", "Valid", "Ntype", and "ID_No" in the AC line table separately and store it in the matrix pfWork_AcLine.
[0027] (2) Generator table: Separate the information of the seven fields "Valid", "V0", "Angle", "Qmax", "Qmin", "Pmax", and "Pmin" in the AC line table and store them in the matrix pfWork_Gen matrix;
[0028] (3) Load table: Separate the information of the three fields "ID_Name", "Pl", and "Ql" in the load table and store them in the matrix pfWork_Load matrix.
[0029] Furthermore, in step six, the matrices formed by separately storing each sub-table include:
[0030] (1) Generator table: Separate the information of the five fields "Generator Name", "Bus Name", "Type", "Active Power Generation", and "Reactive Power Generation" in the generator table and store them in the matrix pfResult_Gen matrix;
[0031] (2) Two-winding transformer table: Separate the information of the four fields "Two-winding Transformer Name", "J-side Bus", "J-side Active Power", and "J-side Reactive Power" in the two-winding transformer table and store them in the matrix pfResult_dTrans matrix;
[0032] (3) Three-winding transformer table: Separate the information of the nine fields "Three-winding Transformer Name", "1st-side Bus", "2nd-side Bus", "3rd-side Bus", "1st-side Active Power", "1st-side Reactive Power", "2nd-side Active Power", "2nd-side Reactive Power", "3rd-side Active Power", and "3rd-side Reactive Power" in the three-winding transformer table and store them in the matrix pfResult_tTrans matrix.
[0033] Furthermore, the specific steps for extracting grid data under BusVoltage in step eight are as follows:
[0034] (1) According to BusVoltage, search for the "Base_kV" column in dataBase_Bus, filter out the data rows whose values are equal to BusVoltage, extract the information of the "Bus_Name" column in the corresponding rows, and number each bus node in order to form the matrix TableNodesLevel;
[0035] (2) Compare the "1st-side Bus", "2nd-side Bus", and "3rd-side Bus" in pfResult_tTrans with the bus names stored in TableNodesLevel respectively, filter out the node names existing in TableNodesLevel, and store the information in TTransOne, TTransTwo, and TTransTri respectively;
[0036] (3) Based on the three matrices TTransOne, TTransTwo, and TTransTri, the equivalent information of the three windings of the three-winding transformer on the BusVoltage side is obtained respectively. Taking TTransOne as an example, when TTransOne is not empty, first find the set of row numbers of each bus node name in TTransOne in the "Bus on the 1st side" column of pfResult_tTrans; then, sum the data of "Active power on the 1st side" and "Reactive power on the 1st side" corresponding to the set of row numbers in pfResult_tTrans, and record the calculation results as PsumtTrans and QsumtTrans. According to the positive and negative conditions of PsumtTrans and QsumTtrans, the transformer is equivalently regarded as a load node or a generator node connected to this node; when the value is negative, the power flow direction is from the bus node to the transformer, and the power information of the transformer on this side node is equivalent to a load; when the value is positive, the power flow direction is from the transformer to the bus node, and the power information of this transformer is equivalent to a generator of PQ type; using the same operation, all bus nodes in the three matrices TTransOne, TTransTwo, and TTransTri are processed, that is, the decoupling and equivalent operation of the interconnection of three-winding transformers between different voltage levels is realized;
[0037] (4) Compare the "Bus on the Jth side" of pfResult_dTrans with the bus names stored in TableNodesLevel, filter out the node names existing in TableNodesLevel, and store the information in matrix DTransJ;
[0038] (5) Based on matrix DTransJ, obtain the equivalent information of the generator on the low-voltage side of the two-winding transformer to the high-voltage side node: when DTransJ is not empty, first find the set of row numbers of each bus node name in DTransJ in the "Bus on the Jth side" column of pfResult_dTrans; then, sum the data of "Active power on the 1st side" and "Reactive power on the 1st side" corresponding to the set of row numbers in pfResult_tTrans, and record the calculation results as PsumdTrans and QsumdTrans; the above two values become the active power output and reactive power output values of the equivalent generator node; at the same time, query the upper and lower limits of the active power output and the initial phase angle and amplitude information of the original generator connected to each two-winding transformer in DTransJ; at the same time, the type of the equivalent generator node is consistent with the attributes of the original generator.
[0039] Further, in the ninth step, the three data tables required by the PSMSD software include a node data card, a branch data card, and a generator data card, and the field information included is as follows:
[0040] (1) The node data card contains a total of 11 field information, namely node number, node type, active load, reactive load, conductance, susceptance, voltage magnitude, voltage phase angle, voltage base, voltage maximum and minimum values:
[0041] 1) Node number: The storage information in the first column of the matrix TableNodesLevel is used as the node number;
[0042] 2) Node type: The node type records the bus node attributes, including 4 node attribute types of PQ, PV, Slack, and Island, which are represented by numbers 1 to 4 respectively; among them, PQ nodes include non-generator nodes and equivalent generator nodes of three-winding transformers, PV nodes are equivalent nodes of two-winding transformers, Slack nodes are also known as balance nodes, and are obtained by querying the "type" of pfResult_Gen according to the node name, Island is the island node type, and any node will be set to this node type after being identified as an island node;
[0043] 3) The information of active load and reactive load comes from two places. One is to query whether there is a load connected to this node according to pfWork_Load. If so, the numerical value is read and recorded as the active and reactive load information; the other is the load information of the three-winding equivalent. If a node has both of the above two loads at the same time, their numerical values are added;
[0044] 4) The conductance and susceptance values come from the data of shunt capacitors and reactors and series capacitors and reactors. If the values are missing, they are set to 0;
[0045] 5) The voltage magnitude and voltage phase angle information are defaulted to 1 and 0, and are obtained by querying the "V0" and "Angle" data corresponding to this node in pfWork_Gen;
[0046] 6) The voltage base data comes from "BasekV" of dataBase_Bus;
[0047] 7) The voltage maximum and minimum values data come from Vmin and Vmax set in the eighth step;
[0048] (2) The branch data card contains a total of 7 field information, namely the head-end node, the tail-end node, the line resistance, the line reactance, the line susceptance, the line capacity, and the line status information:
[0049] 1) The head node and the tail node are obtained by searching for the first column numbers corresponding to "I_Name" and "J_Name" in TableNodesLevel of dataBase_AcLine;
[0050] 2) The line resistance, line reactance, and line susceptance information are respectively from the "R1", "X1", and "B1_Half" information of dataBase_AcLine. It should be noted that the line susceptance value is equal to the value of "B1_Half" multiplied by 2;
[0051] 3) The line capacity is equal to the product of "RateKA" and "Up_limit" in dataBase_AcLine;
[0052] 4) The line status information comes from the "Valid" information of pfWork_AcLine;
[0053] (3) The generator data card contains a total of 10 field information, namely node number, active power output, reactive power output, upper limit of reactive power output, lower limit of reactive power output, initial voltage amplitude, base capacity, generator status, upper limit of active power output, lower limit of active power output:
[0054] 1) The node number is obtained by searching TableNodesLevel based on the generator bus name;
[0055] 2) The generator power-related information includes active power output, reactive power output, upper limit of reactive power output, lower limit of reactive power output, upper limit of active power output, and lower limit of active power output, which need to be obtained separately according to different generator types described above; for the generator node equivalent to a three-winding transformer, after recording its active and reactive power outputs, the upper limit of active power is recorded as the active power output value, and the lower limit of active power is recorded as 0; if the reactive power output value is negative, the upper limit of reactive power is recorded as 0, and the lower limit of reactive power is recorded as the reactive power output value; otherwise, the upper limit of reactive power is recorded as the reactive power output value, and the lower limit of reactive power is recorded as 0; for the generator equivalent to a two-winding transformer, record the corresponding data according to the output and output upper and lower limit values recorded in the steps described above; for the original generator data directly connected to the power grid, record the generator active power output and reactive power output values according to the "active power generation" and "reactive power generation" in pfResult_Gen, and at the same time record the output limit values of the generator according to "Qmax", "Qmin", "Pmax", and "Pmin" in pfWork_Gen;
[0056] 3) Record the effective value and the initial voltage amplitude of the generator according to "Valid" and "V0" in pfWork_Gen;
[0057] 4) The base capacity is uniformly set to the base capacity value S set in step eight.
[0058] Further, in step ten, the steps for extracting the power grid data of the area where BusTarget is located are as follows:
[0059] (1) First, based on the island identification method, partition and identify the whole network data at the BusVoltage voltage level, search for the number of partitions that can be divided in the entire area under a specific operation mode and the node set of each area, and after numbering each area, record the partition number information of each node in the third column of TableNodesLevel;
[0060] (2) According to BusTarget, find the partition number where the node is located, and extract the node name and node number belonging to this area from TableNodesLevel, denoted as NodeArea;
[0061] (3) Extract the data related to the internal nodes of NodeArea from the whole network node data card, branch data card, and generator data card to form the area power grid data cards, denoted as BusLevelArea, BranchLevelArea, and GenLevelArea respectively;
[0062] (4) Perform power flow calculation and verification on the data information recorded in BusLevelArea, BranchLevelArea, and GenLevelArea to ensure the information is correct;
[0063] Further, step eleven performs node attribute correction on the area power grid data extracted in step ten, specifically including: the value in the second column of BusLevelArea represents the node attribute. Determine whether there is a node with a value of 3 in the second column data of BusLevelArea. If not, it means there is no balancing node in this area power grid, and 1 balancing node needs to be set artificially: First, screen all nodes with a node attribute of 2, find the upper limit value of the generator output of the node, and select the node with the largest upper limit value of the output as the balancing node of this area power grid, and update the data card information of BusLevelArea, BranchLevelArea, and GenLevelArea.
[0064] The beneficial effects of the present invention are as follows:
[0065] A method for converting data structures of a power system simulation software proposed by the present invention can be used to implement data conversion operations from the internal database of PSASP to the PSMSD software under any operating mode, any voltage level, and any power grid area. Based on this data conversion method, relevant personnel do not need to access the internal structure of the PSASP database. Only simple data export operations are required to complete the preparation of basic data. At the same time, this data conversion method eliminates the cumbersome operation steps of generating traditional data cards, reduces the error probability of data conversion, improves the data conversion efficiency, and improves the flexibility and accuracy of maintenance personnel in formulating power system maintenance plans using the PSMSD software. Brief Description of the Drawings
[0066] Figure 1 It is a schematic flowchart of one embodiment of a method for converting data structures of a power system simulation software of the present invention;
[0067] Figure 2 It is a topological diagram of a regional power grid system at the 220 kV voltage level in Hubei Province. Detailed Embodiments
[0068] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0069] The present invention converts the basic library data, power flow operation data, and power flow result data of the PSASP database into a PSMSD data input file of a certain voltage level in a certain regional network under a certain operating mode that can be directly used for calculation through data conversion, node numbering, voltage level equivalence, and regional network equivalence operations according to the specified voltage level and any substation information of the network to be studied in the region.
[0070] The basic library data, power flow operation data under the specified operator, and power flow result data of the PSASP database described are all Excel report format files; the data conversion described refers to converting the PSASP data content into a data format recognizable by PSMSD; the node numbering described refers to storing the converted data in a certain order; the voltage level equivalence described is to extract the network data of the specified voltage level from the full voltage level data according to the input voltage level, and during the extraction process, it is necessary to perform equivalent processing of the high voltage level and low voltage level part of the network to the network of the voltage level to be evaluated; the regional network equivalent operation described refers to extracting the regional network where the specified substation is located from the entire network.
[0071] Such as Figure 1 shown, is a schematic flowchart of one embodiment of a method for converting the data structure of a power system simulation software according to the present invention. The method includes the following steps:
[0072] Step 1: Output the basic library data in the PSASP database internal data into an EXCEL report form and store it as a basic library data table. The output data content includes: bus data, AC line data, two-winding transformer data, three-winding transformer data, and generator data.
[0073] Step 2: Set the system operation mode, output the power flow calculation operation data in the PSASP database internal data into an EXCEL report form and store it as a power flow operation data table. The output data content includes: AC line data, generator data, and load data.
[0074] Step 3: According to the designed operation mode, output the power flow calculation result data in the PSASP database internal data into an EXCEL report form and store it as a power flow result data table. The output data content includes: generator data, two-winding transformer data, and three-winding transformer data.
[0075] Step 4: Extract the useful field content in each sub-table of the basic library data table and store it separately in a matrix form.
[0076] In the said step 4, the matrix formed by storing each sub-table separately includes:
[0077] (1) Bus table: Extract the information of the three fields of "Bus_Name", "PS_Name", and "Base_kV" in the bus table and store it in the matrix dataBase_Bus matrix;
[0078] (2) AC Line Table: Extract the information of the nine fields of "I_Name", "J_Name", "ID_No", "R1", "X1", "B1_Half", "Rate_Ka", "Up_limit", and "Type" in the AC line table and store them separately in the matrix dataBase_AcLine;
[0079] (3) Two-Winding Transformer Table: Extract the information of the nine fields of "I_Name", "J_Name", "ID_No", "R1", "X1", "B1_Half", "Rate_Ka", "Up_limit", and "Type" in the two-winding transformer table and store them separately in the matrix dataBase_dTrans;
[0080] (4) Three-Winding Transformer Table: Extract the information of the nine fields of "I_Name", "J_Name", "ID_No", "R1", "X1", "B1_Half", "Rate_Ka", "Up_limit", and "Type" in the three-winding transformer table and store them separately in the matrix dataBase_tTrans;
[0081] (5) Generator Table: Extract the information of the "ID_Name" field in the generator table and store it separately in the matrix dataBase_Gen;
[0082] Step Five: Extract the useful field contents in each sub-table of the power flow operation data table and store them separately in matrix form.
[0083] In the above Step Five, the matrices formed by separately storing each sub-table include:
[0084] (1) AC Line Table: Extract the information of the five fields of "I_Name", "J_Name", "Valid", "Ntype", and "ID_No" in the AC line table and store them separately in the matrix pfWork_AcLine;
[0085] (2) Generator Table: Extract the information of the seven fields of "Valid", "V0", "Angle", "Qmax", "Qmin", "Pmax", and "Pmin" in the AC line table and store them separately in the matrix pfWork_Gen;
[0086] (3) Load Table: Extract the information of the three fields of "ID_Name", "Pl", and "Ql" in the load table and store them separately in the matrix pfWork_Load;
[0087] Step 6: Extract the useful field contents from each sub-table in the power flow result data table and store them separately in a matrix form.
[0088] In the above Step 6, the matrices formed by separately storing each sub-table include:
[0089] (1) Generator table: Extract the information of the five fields of "Generator Name", "Bus Name", "Type", "Active Power Generation", and "Reactive Power Generation" in the generator table and store them in the matrix pfResult_Gen.
[0090] (2) Two-winding transformer table: Extract the information of the four fields of "Two-winding Transformer Name", "J-side Bus", "J-side Active Power", and "J-side Reactive Power" in the two-winding transformer table and store them in the matrix pfResult_dTrans.
[0091] (3) Three-winding transformer table: Extract the information of the nine fields of "Three-winding Transformer Name", "1-side Bus", "2-side Bus", "3-side Bus", "1-side Active Power", "1-side Reactive Power", "2-side Active Power", "2-side Reactive Power", "3-side Active Power", and "3-side Reactive Power" in the three-winding transformer table and store them in the matrix pfResult_tTrans.
[0092] Step 7: Input the relevant parameters representing the voltage level and regional network of the substation to be overhauled, including: system base capacity S, node voltage upper limit Vmax, node voltage lower limit Vmin, equivalent voltage level BusVoltage, and any bus node name BusTarget in the regional power grid. Based on these data, equivalence can be performed to convert the original network data into data corresponding to the voltage level and regional power grid.
[0093] Step 8: Perform voltage level equivalence on the data in the already output basic library data table, power flow operation data table, and power flow result data table, and extract the power grid data under the equivalent voltage level BusVoltage.
[0094] In the above Step 8, the specific steps for extracting the power grid data under BusVoltage are as follows:
[0095] (1) According to BusVoltage, search the "Base_kV" column in dataBase_Bus, filter out the data rows whose values are equal to BusVoltage, extract the information of the "Bus_Name" column in the corresponding rows, and number each bus node in order to form the matrix TableNodesLevel.
[0096] (2) Compare the "1-side bus", "2-side bus", and "3-side bus" in pfResult_tTrans with the bus names stored in TableNodesLevel respectively, filter out the node names existing in TableNodesLevel, and store the information in TTransOne, TTransTwo, and TTransTri respectively.
[0097] (3) Based on the three matrices of TTransOne, TTransTwo, and TTransTri, obtain the equivalent information of the three windings of the three-winding transformer on the BusVoltage side respectively. Taking TTransOne as an example, when TTransOne is not empty, first find the set of row numbers of each bus node name in TTransOne in the "1-side bus" column of pfResult_tTrans. Subsequently, sum the data of "1-side active power" and "1-side reactive power" corresponding to the row number set in pfResult_tTrans, and record the calculation results as PsumtTrans and QsumtTrans. According to the positive and negative situations of PsumtTrans and QsumTtrans, the transformer is equivalently regarded as a load node or a generator node connected to this node. When the value is negative, the power flow direction is from the bus node to the transformer, and the power information of the transformer side node is equivalent to a load; when the value is positive, the power flow direction is from the transformer to the bus node, and the power information of this transformer is equivalent to a PQ-type generator. Using the same operation, process all the bus nodes in the three matrices of TTransOne, TTransTwo, and TTransTri, that is, realize the decoupling and equivalent operation of the interconnection of three-winding transformers between different voltage levels.
[0098] (4) Compare the "J-side bus" in pfResult_dTrans with the bus names stored in TableNodesLevel, filter out the node names existing in TableNodesLevel, and store the information in the matrix DTransJ.
[0099] (5) Based on the matrix DTransJ, obtain the equivalent information of the generator on the low-voltage side of the two-winding transformer to the high-voltage side node. When DTransJ is not empty, first find the set of row numbers in the "J-side bus" column of pfResult_dTrans for each bus node name in DTransJ. Subsequently, sum the data of "active power on the 1 side" and "reactive power on the 1 side" in pfResult_tTrans corresponding to the set of row numbers, and record the calculation results as PsumdTrans and QsumdTrans. The above two values become the active power output and reactive power output values of the equivalent generator node. At the same time, query the upper and lower limits of the active power output and the initial phase angle and amplitude information of the original generator connected to each two-winding transformer in DTransJ, and this information will be used as the generator information of the equivalent generator node. At the same time, the type of the equivalent generator node is consistent with the original generator attribute.
[0100] Step Nine: According to the requirements of the three data table fields required by the PSMSD software, extract the PSASP data content after equivalent processing according to the requirements of each field and form three data tables.
[0101] In the above Step Nine, the three data tables required by the PSMSD software include a node data card, a branch data card, and a generator data card, and the field information included is as follows:
[0102] (1) The node data card contains a total of 11 field information, namely node number, node type, active power load, reactive power load, conductance, susceptance, voltage amplitude, voltage phase angle, voltage reference, voltage maximum and minimum.
[0103] 1) Node number: The storage information in the first column of the matrix TableNodesLevel is used as the node number.
[0104] 2) Node type: The node type records the bus node attributes, including 4 types of node attribute types: PQ, PV, Slack, and Island, which are represented by the numbers 1 to 4 respectively. Among them, PQ nodes include non-generator nodes and equivalent generator nodes of three-winding transformers, PV nodes are equivalent nodes of two-winding transformers, Slack nodes are also known as balance nodes, and are obtained by querying the "type" of pfResult_Gen according to the node name. Island is the island node type, and any node will be set to this node type after being identified as an island node.
[0105] 3) The information of active power load and reactive power load comes from two places. One is to query whether there is a load connected to this node according to pfWork_Load. If so, read the value and record it as the active power and reactive power load information. The other is the equivalent load information of the three-winding. If a node has both of the above two loads at the same time, the values will be superimposed.
[0106] 4) The conductance and susceptance values are from the data of shunt capacitor reactors and series capacitor reactors. If the values are missing, they are set to 0.
[0107] 5) The voltage magnitude and voltage phase angle information are defaulted to 1 and 0, and are obtained by querying the "V0" and "Angle" data corresponding to the node in pfWork_Gen.
[0108] 6) The voltage base data is from "BasekV" of dataBase_Bus.
[0109] 7) The maximum and minimum voltage data are from Vmin and Vmax set in Step 8.
[0110] (2) The branch data card contains a total of 7 field information, namely the head node, tail node, line resistance, line reactance, line susceptance, line capacity, and line status information.
[0111] 1) The head node and tail node are obtained by searching for the first column numbers corresponding to "I_Name" and "J_Name" in dataBase_AcLine in TableNodesLevel.
[0112] 2) The line resistance, line reactance, and line susceptance information are respectively from "R1", "X1", and "B1_Half" in dataBase_AcLine. It should be noted that the line susceptance value is equal to the value of "B1_Half" multiplied by 2.
[0113] 3) The line capacity is equal to the product of "RateKA" and "Up_limit" in dataBase_AcLine.
[0114] 4) The line status information is from the "Valid" information in pfWork_AcLine.
[0115] (3) The generator data card contains a total of 10 field information, namely the node number, active power output, reactive power output, upper limit of reactive power output, lower limit of reactive power output, initial voltage magnitude, base capacity, generator status, upper limit of active power output, lower limit of active power output.
[0116] 1) The node number is obtained by searching TableNodesLevel based on the generator bus name.
[0117] 2) Generator power-related information includes active power output, reactive power output, upper limit of reactive power output, lower limit of reactive power output, upper limit of active power output, and lower limit of active power output, which need to be obtained separately according to different generator types described above. For the generator node equivalent to a three-winding transformer, after recording its active and reactive power outputs, the upper limit of active power is recorded as the active power output value, and the lower limit of active power is recorded as 0. If the reactive power output value is negative, the upper limit of reactive power output is recorded as 0, and the lower limit of reactive power output is recorded as the reactive power output value. Otherwise, the upper limit of reactive power output is recorded as the reactive power output value, and the lower limit of reactive power output is recorded as 0; for the generator equivalent to a two-winding transformer, record the corresponding data according to the output and output upper and lower limit values recorded in the steps described above; for the original generator data directly connected to the power grid, record the generator's active power output and reactive power output values according to the "active power generation" and "reactive power generation" in pfResult_Gen, and at the same time record the generator's output limit values according to "Qmax", "Qmin", "Pmax", and "Pmin" in pfWork_Gen.
[0118] 3) Record the effective value and initial voltage amplitude of the generator according to "Valid" and "V0" in pfWork_Gen.
[0119] 4) The base capacity is uniformly set to the base capacity value S set in Step 8.
[0120] Step 10: According to the name BusTarget of any bus node in the regional power grid, extract the power grid data in the area where BusTarget is located from the three data tables obtained in Step 9.
[0121] In the above-mentioned Step 10, the steps to extract the power grid data in the area where BusTarget is located are as follows:
[0122] (1) First, based on the island identification method, partition and identify the whole network data at the BusVoltage voltage level, search for the number of partitions that can be divided in the entire area under a specific operation mode and the node set of each area, and after numbering each area, record the partition number information of each node in the third column of TableNodesLevel.
[0123] (2) According to BusTarget, find the partition number where the node is located, and extract the node name and node number belonging to this area from TableNodesLevel, denoted as NodeArea.
[0124] (3) Extract the data related to the internal nodes of the NodeArea from the network-wide node data cards, branch data cards, and generator data cards to form the regional power grid data cards, denoted as BusLevelArea, BranchLevelArea, and GenLevelArea respectively.
[0125] (4) Conduct power flow calculation verification on the data information recorded in BusLevelArea, BranchLevelArea, and GenLevelArea to ensure the information is correct.
[0126] Step Eleven: Perform node attribute correction on the regional power grid data extracted in Step Ten. Since the second column value of BusLevelArea represents the node attribute, determine whether there is a node with a value of 3 in the second column data of BusLevelArea. If not, it means there is no balancing node in this regional power grid, and 1 balancing node needs to be set manually. First, filter all nodes with a node attribute of 2, find the upper limit value of the generator output of the node, and select the node with the largest upper limit value of the output as the balancing node of this regional power grid, and update the data card information of BusLevelArea, BranchLevelArea, and GenLevelArea.
[0127] So far, the obtained data cards BusLevelArea, BranchLevelArea, and GenLevelArea are in the input data format that can be calculated by PSMSD, realizing the data conversion operation.
[0128] The beneficial effects of the present invention are as follows: A data structure conversion method for a power system simulation software proposed by the present invention. Through steps such as PSASP data export, data classification storage, voltage level equivalence, and regional power grid data, it can realize the data conversion operation from the internal database of PSASP to the PSMSD software under any operating mode, any voltage level, and any power grid area. Based on this data conversion method, relevant personnel do not need to access the internal structure of the PSASP database, and only need to perform a simple data export operation to complete the preparation work of the basic data. At the same time, this data conversion method eliminates the cumbersome operation steps of traditional data card generation, reduces the error probability of data conversion, improves the data conversion efficiency, and improves the flexibility and accuracy of maintenance personnel in formulating power system maintenance plans using the PSMSD software.
[0129] Taking the original PSASP data of a large-scale interconnected AC system A as the basis for data conversion, and aiming to convert the data into the input data content of the power grid area B where the substation T is located at the voltage level of 220 kV that can be used for PSMSD calculation, a data structure conversion method for a power system simulation software determined by the present invention is described in detail.
[0130] (1) Export the basic library data of System A in the PSASP database to the basic library data table.xlsx. The basic library of this system contains 9,570 bus nodes, 4,875 AC lines, 839 two-winding transformers, 2,176 three-winding transformers, and 730 generators.
[0131] (2) Set the operation mode to the "Fengda" operation mode. Export the power flow operation data of System A in the C operation mode in the PSASP database to the power flow operation data table.xlsx. In this operation mode, the number of load nodes in the power flow operation of the system is 1,694, and the number of AC lines is 13,466 (including the virtual branches in the substation).
[0132] (3) Set the operation mode to the C operation mode. Export the power flow result data of System A in the C operation mode in the PSASP database to the power flow result data table.xlsx. In this operation mode, the number of actually operating three-winding transformers in the power flow calculation of the system is 1,998, the number of two-winding transformers is 740, and the number of generators is 594.
[0133] (4) Extract the data of the required fields in the basic library data table.xlsx to form the data matrices dataBase_Bus, dataBase_AcLine, dataBase_dTrans, dataBase_tTrans, and dataBase_Gen matrices.
[0134] (5) Extract the data of the required fields in the power flow operation data table.xlsx to form the data matrices pfWork_AcLine, pfWork_Gen, and pfWork_Load matrices.
[0135] (6) Extract the data of the required fields in the power flow result data table.xlsx to form the data matrices pfResult_Gen, pfResult_dTrans, and pfResult_tTrans matrices.
[0136] (7) Set the base capacity of the system to 100 MW, the equivalent voltage level BusVoltage to 220 kV, the name of any bus node in the region BusTarget to T, and the upper and lower limits of the node voltage to 1.05 p.u. and 0.95 p.u. respectively. Then the values of Vmax and Vmin are as follows:
[0137] V max = Voltage * 1.05
[0138] V min = Voltage * 0.95
[0139] (8) Search the "Base_kV" column in dataBase_Bus according to BusVoltage, filter out the data rows whose values are equal to BusVoltage, extract the information in the "Bus_Name" column of the corresponding rows, and number each bus node in the front-to-back order to form the matrix TableNodesLevel. The number of nodes filtered is 2243.
[0140] Compare the "1st side bus", "2nd side bus", and "3rd side bus" in pfResult_tTrans with the bus names stored in TableNodesLevel respectively, filter out the node names existing in TableNodesLevel, and store the information in TTransOne, TTransTwo, and TTransTri respectively. According to the calculation, TTransOne contains 1063 nodes in total, TTransTwo contains 223 nodes in total, and TTransTri contains 0 nodes. This is because the set BusVoltage level is relatively high and it is only on one side of the medium-voltage winding or high-voltage winding of the transformer in the whole system.
[0141] Obtain the equivalent information of TTransOne and TTransTwo at the BusVoltage level. Take TTransOne as an example. When TTransOne is not empty, first find the set of row numbers of each bus node name in TTransOne in the "1st side bus" column of pfResult_tTrans. Subsequently, sum the data of "1st side active power" and "1st side reactive power" corresponding to the row number set in pfResult_tTrans, and record the calculation results as PsumtTrans and QsumtTrans. According to the positive and negative conditions of PsumtTrans and QsumTtrans, the transformer is equivalently connected to this node as a load node or a generator node respectively. When the value is negative, the power flow direction is from the bus node to the transformer, and the power information of the transformer side node is equivalent to a load; when the value is positive, the power flow direction is from the transformer to the bus node, and the power information of this transformer is equivalent to a PQ-type generator. Among them, TTransOne is equivalently 1019 load nodes and 44 generator nodes in total. TTransTwo is equivalently 1033 load nodes and 253 generator nodes in total.
[0142] Filter out the bus names of the J side of the two-winding transformer in TableNodesLevel and store them in DTransJ. After calculation, there are 264 nodes in total.
[0143] Based on the matrix DTransJ, obtain the equivalent information of the generator on the low-voltage side of the two-winding transformer to the high-voltage side node.
[0144] (9)Extract the equivalent PSASP data to form three data cards required by the PSMSD software, including the node data card, branch data card, and generator data card. Among them, the node data card contains 2,243 rows in total, the branch data card contains 3,717 rows in total, and the generator data card contains 508 rows of data.
[0145] (10)Screen the regional power grid data according to BusTarget. First, through island identification, it is obtained that the entire system can be divided into 31 partitions, and the area numbers are 0 to 30. Subsequently, it is found that the area number where BusTarget is located is 22. Based on this, extract the regional power grid data cards, including BusLevelArea, BranchLevelArea, and GenLevelArea. Among them, BusLevelArea contains 30 bus nodes, and the total active load is 3,797.44 MW. BranchLevelArea contains a total of 50 AC line branches. GenLevelArea contains a total of 6 generators, and the initial total active power output is 3,816.41 MW. Among them, 4 generators are equivalent to three-winding generators, 2 generators are connected by two-winding step-up. At the same time, one of the two-winding step-up generators with a higher active power limit is set as the Slack node. Therefore, the 30 nodes in BusLevelArea contain 28 PQ nodes, 1 PV node, and 1 balance node. The obtained regional network node diagram is as Figure 2 shown.
[0146] (11)So far, the obtained BusLevelArea, BranchLevelArea, and GenLevelArea record the data content that can be directly used for the calculation of the software PSMSD within the regional power grid of BusVoltage and BusTarget, realizing the data conversion from PSASP to PSMSD.
[0147] To verify the correctness of the converted result data, the three obtained data cards are input into the software PSMSD for power flow calculation. The calculation method uses the Newton-Raphson method, and the calculation results are shown in Table 1.
[0148] Table 1 shows the results obtained from the power flow calculation of the converted regional power grid data using PSMSD. From the results, it can be seen that the total active power output of the generator is 3,816.60 MW, which is very close to the initial condition of 3,816.14 MW obtained by conversion, proving the correctness of the data.
[0149] Table 1
[0150]
[0151]
[0152] A method for converting the data structure of a power system simulation software proposed by the present invention. Through steps such as PSASP data export, data classification storage, voltage level equivalence, and regional power grid data, it is possible to achieve data conversion operations from the internal database of PSASP to the PSMSD software under any operating mode, any voltage level, and any power grid area. Based on this data conversion method, relevant personnel do not need to access the internal structure of the PSASP database, and only need to perform simple data export operations to complete the preparation of basic data. At the same time, this data conversion method eliminates the cumbersome operation steps of traditional data card generation, reduces the error probability of data conversion, improves the data conversion efficiency, and improves the flexibility and accuracy of maintenance personnel in formulating power system maintenance plans using the PSMSD software.
[0153] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0154] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0155] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implements the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0156] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby the instructions executed on the computer or other programmable apparatus provide steps for realizing the functions specified in one process or a plurality of processes and / or blocks Figure 1 one process or a plurality of processes and / or blocks Figure 1 steps for realizing the functions specified in one block or a plurality of blocks.
[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications or equivalent replacements can still be made to the specific embodiments of the present invention, and any modification or equivalent replacement without departing from the spirit and scope of the present invention shall be covered by the protection scope of the claims of the present invention.
Claims
1. A method for converting data structures of a power system simulation software, characterized in that: It includes the following steps: Step 1: Output the basic library data in the internal data of the PSASP database into an EXCEL report form and store it as a basic library data table. The output data content includes: bus data, AC line data, two-winding transformer data, three-winding transformer data, and generator data; Step 2: Set the system operation mode, output the power flow calculation job data in the internal data of the PSASP database into an EXCEL report form and store it as a power flow job data table. The output data content includes: AC line data, generator data, and load data; Step 3: According to the designed operation mode, output the power flow calculation result data in the internal data of the PSASP database into an EXCEL report form and store it as a power flow result data table. The output data content includes: generator data, two-winding transformer data, and three-winding transformer data; Step 4: Extract the useful field content in each sub-table of the basic library data table and store it separately in matrix form; Step 5: Extract the useful field content in each sub-table of the power flow job data table and store it separately in matrix form; Step 6: Extract the useful field content in each sub-table of the power flow result data table and store it separately in matrix form; Step 7: Input the relevant parameters representing the voltage level and regional network where the substation to be overhauled is located, including: system base capacity S, node voltage upper limit Vmax, node voltage lower limit Vmin, equivalent voltage level BusVoltage, and any bus node name BusTarget in the regional power grid; Step 8: Perform voltage level equivalence on the data in the already output basic library data table, power flow job data table, and power flow result data table, and extract the power grid data at the equivalent voltage level BusVoltage; Step 9: According to the requirements of the three data table fields needed by the PSMSD software, extract and form three data tables from the PSASP data content after equivalence processing according to each field requirement; Step 10: According to any bus node name BusTarget in the regional power grid, extract the power grid data in the area where BusTarget is located from the three data tables obtained in Step 9; Step 11: Perform node attribute correction on the regional power grid data extracted in Step 10, and the obtained data card is the input data format that can be calculated by the PSMSD, realizing the data conversion operation; In the said Step 5, the matrix form formed by storing each sub-table separately includes: (1) AC line table: Extract the information of the five fields of "I_Name", "J_Name", "Valid", "Ntype", and "ID_No" in the AC line table separately and store it in the matrix pfWork_AcLine matrix; (2) Generator table: Extract the information of the seven fields of "Valid", "V0", "Angle", "Qmax", "Qmin", "Pmax", and "Pmin" in the AC line table separately and store it in the matrix pfWork_Gen matrix; (3) Load Table: Extract the information of the three fields "ID_Name", "Pl", and "Ql" in the load table separately and store it in the matrix pfWork_Load.
2. A method for converting the data structure of a power system simulation software according to claim 1, characterized in that: In the fourth step, the matrix forms formed by separately storing each sub-table include: (1) Bus Table: Extract the information of the three fields "Bus_Name", "PS_Name", and "Base_kV" in the bus table separately and store it in the matrix dataBase_Bus. (2) AC Line Table: Extract the information of the nine fields "I_Name", "J_Name", "ID_No", "R1", "X1", "B1_Half", "Rate_Ka", "Up_limit", and "Type" in the AC line table separately and store it in the matrix dataBase_AcLine. (3) Two-Winding Transformer Table: Extract the information of the nine fields "I_Name", "J_Name", "ID_No", "R1", "X1", "B1_Half", "Rate_Ka", "Up_limit", and "Type" in the two-winding transformer table separately and store it in the matrix dataBase_dTrans. (4) Three-Winding Transformer Table: Extract the information of the nine fields "I_Name", "J_Name", "ID_No", "R1", "X1", "B1_Half", "Rate_Ka", "Up_limit", and "Type" in the three-winding transformer table separately and store it in the matrix dataBase_tTrans. (5) Generator Table: Extract the information of the field "ID_Name" in the generator table separately and store it in the matrix dataBase_Gen.
3. A method for converting data structures of a power system simulation software according to claim 1, characterized in that: In the sixth step, the matrix forms formed by separately storing each sub-table include: (1) Generator Table: Extract the information of the five fields "Generator Name", "Bus Name", "Type", "Active Power Generation", and "Reactive Power Generation" in the generator table separately and store it in the matrix pfResult_Gen. (2) Two-Winding Transformer Table: Extract the information of the four fields "Two-Winding Transformer Name", "J-Side Bus", "J-Side Active Power", and "J-Side Reactive Power" in the two-winding transformer table separately and store it in the matrix pfResult_dTrans. (3) Three-Winding Transformer Table: Extract the information of the nine fields "Three-Winding Transformer Name", "1-Side Bus", "2-Side Bus", "3-Side Bus", "1-Side Active Power", "1-Side Reactive Power", "2-Side Active Power", "2-Side Reactive Power", "3-Side Active Power", and "3-Side Reactive Power" in the three-winding transformer table separately and store it in the matrix pfResult_tTrans.
4. A method for converting data structures of a power system simulation software as described in claim 1, characterized in that: The specific steps for extracting grid data under BusVoltage in step eight are as follows: (1) According to BusVoltage, search the "Base_kV" column in dataBase_Bus, filter out the data rows whose values are equal to BusVoltage, extract the information in the "Bus_Name" column of the corresponding rows, and number each bus node in order to form a matrix TableNodesLevel; (2) Compare the "1-side bus", "2-side bus", and "3-side bus" in pfResult_tTrans with the bus names stored in TableNodesLevel respectively, filter out the node names existing in TableNodesLevel, and store the information in TTransOne, TTransTwo, and TTransTri respectively; (3) Based on the three matrices TTransOne, TTransTwo, and TTransTri, calculate the equivalent information of the three windings of the three-winding transformer on the BusVoltage side respectively. Taking TTransOne as an example, when TTransOne is not empty, first find the set of row numbers of each bus node name in TTransOne in the "1-side bus" column of pfResult_tTrans; then, sum the data of "1-side active power" and "1-side reactive power" corresponding to the row number set, and record the calculation results as PsumtTrans and QsumtTrans. According to the positive and negative conditions of PsumtTrans and QsumTtrans, the transformer is equivalently regarded as a load node or a generator node connected to this node; when the value is negative, the power flow direction is from the bus node to the transformer, and the power information of the side node of the transformer is equivalently regarded as a load; when the value is positive, the power flow direction is from the transformer to the bus node, and the power information of this transformer is equivalently regarded as a PQ-type generator; use the same operation to process all bus nodes in the three matrices TTransOne, TTransTwo, and TTransTri, that is, to achieve the decoupling and equivalent operation of the interconnection of three-winding transformers between different voltage levels; (4) Compare the "J-side bus" in pfResult_dTrans with the bus names stored in TableNodesLevel, filter out the node names existing in TableNodesLevel, and store the information in matrix DTransJ; (5) Based on the matrix DTransJ, obtain the equivalent information of the generator on the low-voltage side of the two-winding transformer to the high-voltage side node: When DTransJ is not empty, first find the set of row numbers of the name of each bus node in DTransJ in the column of "J-side bus" in pfResult_dTrans; Subsequently, sum the data of "active power on the 1 side" and "reactive power on the 1 side" in pfResult_tTrans corresponding to the set of row numbers, and record the calculation results as PsumdTrans and QsumdTrans; The above two values become the active power output and reactive power output values of the equivalent generator node; At the same time, query the upper and lower limits of the active power output and the initial phase angle and amplitude information of the original generator connected to each two-winding transformer in DTransJ; At the same time, the type of the equivalent generator node is consistent with the original generator attribute.
5. A method for converting the data structure of a power system simulation software according to claim 4, characterized in that: In the ninth step described above, the three data tables required by the PSMSD software include a node data card, a branch data card, and a generator data card, and the field information included is as follows: (1) The node data card includes a total of 11 field information, namely node number, node type, active load, reactive load, conductance, susceptance, voltage amplitude, voltage phase angle, voltage reference, voltage maximum and minimum values: 1) Node number: The storage information in the first column of the matrix TableNodesLevel is used as the node number; 2) Node type: The node type records the bus node attributes, including 4 node attribute types of PQ, PV, Slack, and Island, which are represented by the numbers 1 to 4 respectively; Among them, the PQ nodes include non-generator nodes and equivalent generator nodes of three-winding transformers, the PV nodes are equivalent nodes of two-winding transformers, the Slack node is also called the balance node, and is obtained by querying the "type" of pfResult_Gen according to the node name, and the Island is the island node type. After any node is identified as an island node, it will be set to this node type; 3) The information of active load and reactive load comes from two places. One is to query whether there is a load connected to this node according to pfWork_Load. If so, read the value and record it as the active and reactive load information; The other is the load information equivalent to the three windings. If a node has both of the above two loads at the same time, their values will be superimposed; 4) The conductance and susceptance values come from the shunt capacitor reactor and series capacitor reactor data. If the value is missing, it is set to 0; 5) The voltage amplitude and voltage phase angle information are defaulted to 1 and 0, and are obtained by querying the "V0" and "Angle" data corresponding to this node in pfWork_Gen; 6) The voltage reference data comes from "BasekV" of dataBase_Bus; 7) The voltage maximum and minimum values come from Vmin and Vmax set in the eighth step; (2) The branch data card contains a total of 7 field information, namely the head-end node, tail-end node, line resistance, line reactance, line susceptance, line capacity, and line status information: 1) The head-end node and tail-end node are obtained by searching for the first column numbers corresponding to "I_Name" and "J_Name" in TableNodesLevel of dataBase_AcLine; 2) The line resistance, line reactance, and line susceptance information are respectively from the "R1", "X1", and "B1_Half" information of dataBase_AcLine. It should be noted that the line susceptance value is equal to the value of "B1_Half" multiplied by 2; 3) The line capacity is equal to the product of "RateKA" and "Up_limit" of dataBase_AcLine; 4) The line status information comes from the "Valid" information of pfWork_AcLine; (3) The generator data card contains a total of 10 field information, namely node number, active power output, reactive power output, upper limit of reactive power output, lower limit of reactive power output, initial voltage amplitude, base capacity, generator status, upper limit of active power output, lower limit of active power output: 1) The node number is obtained by searching TableNodesLevel based on the generator bus name; 2) The generator power-related information includes active power output, reactive power output, upper limit of reactive power output, lower limit of reactive power output, upper limit of active power output, and lower limit of active power output, which need to be obtained separately according to different generator types; for the generator node equivalent to a three-winding transformer, after recording its active and reactive power outputs, the upper limit of active power is recorded as the active power output value, and the lower limit of active power is recorded as 0; if the reactive power output value is negative, the upper limit of reactive power is recorded as 0, and the lower limit of reactive power is recorded as the reactive power output value; otherwise, the upper limit of reactive power is recorded as the reactive power output value, and the lower limit of reactive power is recorded as 0; for the generator equivalent to a two-winding transformer, record the corresponding data according to the output and output upper and lower limit values recorded in the previous steps; for the original generator data directly connected to the power grid, record the generator active power output and reactive power output values according to the "active power generation" and "reactive power generation" of pfResult_Gen, and at the same time record the output limit values of the generator according to "Qmax", "Qmin", "Pmax", and "Pmin" of pfWork_Gen; 3) Record the effective value and initial voltage amplitude of the generator according to "Valid" and "V0" of pfWork_Gen; 4) The base capacity is uniformly set to the base capacity value S set in step eight.
6. A method for converting the data structure of a power system simulation software as described in claim 5, characterized in that: In the step ten, the steps for extracting the power grid data in the area where BusTarget is located are as follows: (1) First, based on the island identification method, partition and identify the whole network data at the BusVoltage voltage level, search for the number of partitions divided under a specific operation mode in the entire area and the node set of each area. After numbering each area, record the partition number information of each node in the third column of TableNodesLevel; (2) According to BusTarget, find the partition number where the node is located, and extract the node name and node number belonging to this area from TableNodesLevel, denoted as NodeArea; (3) Extract the data related to the internal nodes of NodeArea from the whole network node data card, branch data card, and generator data card to form the regional power grid data card, denoted as BusLevelArea, BranchLevelArea, and GenLevelArea respectively; (4) Conduct power flow calculation and verification on the data information recorded in BusLevelArea, BranchLevelArea, and GenLevelArea to ensure the information is correct.
7. A method for converting data structures of a power system simulation software according to claim 6, characterized in that: Step Eleven performs node attribute correction on the regional power grid data extracted in Step Ten, specifically including: the value in the second column of BusLevelArea represents the node attribute. Judge whether there is a node with a value of 3 in the second column data of BusLevelArea. If not, it means there is no balancing node in this regional power grid, and 1 balancing node needs to be set artificially: First, filter all nodes with a node attribute of 2, find the upper limit value of the generator output of the node, and select the node with the largest upper limit value of the output as the balancing node of this regional power grid, and update the data card information of BusLevelArea, BranchLevelArea, and GenLevelArea.
Citation Information
Patent Citations
Distributed parallel load flow calculation system development method based on PQ method
CN106201985A
Conversion method for power system power flow input data from PSD-BPA to pandapower
CN110209635A
Cited By
Full-stack digital twinborn simulation method and system for power grid dispatching master station
CN121302701A