Data conversion method and device, computer device and storage medium
By screening and identifying the node types of the topology model in the power system, and using the DC line topology retrieval strategy to quickly convert AC and DC system data, the problem of low efficiency in the existing technology is solved, and efficient data conversion and applicability are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA SOUTHERN POWER GRID COMPANY
- Filing Date
- 2023-06-06
- Publication Date
- 2026-04-28
Smart Images

Figure CN116662611B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power system dispatching technology, and in particular to a data conversion method, apparatus, computer equipment, and storage medium. Background Technology
[0002] The Common Information Model (CIM), serving as a unified standard for information interaction in power dispatching systems, uses Extensible Markup Language (XML) and a Resource Description Framework (RDF) to describe power system objects and their interrelationships in detail. A gap exists between the input data of power system analysis software and the data from the dispatching system. The former consists of graphical information or network parameters and initial values arranged in a specific order, while the latter uses CIM for data description. These two systems exist on heterogeneous platforms, using different topology models, description syntaxes, and parameter units, leading to complex data exchange during conversion. As the proportion of DC systems in power systems gradually increases, the complex topological connections within DC systems also pose challenges to the generation of power flow calculation data. Converting, exchanging, and accessing data of different formats across heterogeneous platforms is essential to eliminating information silos and achieving intelligent grid interconnection.
[0003] Currently, many scholars have researched algorithms for converting Extensible Markup Language (Extended Markup Language) documents in General Information Models (GIMs) into power flow calculation input data. Existing literature generally ignores the DC system during the conversion process or employs manual conversion methods, thus avoiding the complex conversion process for DC data. Compared to pure AC systems, AC / DC systems containing LCCs (line commutated converters) or MMCs (modular multilevel converters) have complex converter topology connections and DC system information in their CIM data. Clearly, the generation of field AC / DC power flow data cannot be avoided by ignoring DC lines, and with the increase in DC lines, manual conversion requires a significant amount of manpower and is inefficient. Summary of the Invention
[0004] Therefore, it is necessary to provide a data conversion method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can have high applicability, improve conversion speed, and avoid cumbersome conversion operations to address the above-mentioned technical problems.
[0005] Firstly, this application provides a data transformation method. The method includes:
[0006] The topology model of the preset format file is filtered according to the preset node selection strategy to obtain the target node, and the target node is marked based on the marking information to obtain the marked node;
[0007] The labeled nodes are identified based on the labeled information to obtain the identification results;
[0008] Based on the recognition results, the marked nodes are identified to obtain identification node information and identification branch information. The identification node information and identification branch information are then converted into a new format to obtain the target conversion data.
[0009] In one embodiment, the marking information includes marking parameters, and the marked nodes include marked AC nodes, marked DC nodes, and marked invalid nodes; the marked nodes are identified based on the marking information to obtain identification results, including:
[0010] Extract the tag data for all tagged nodes;
[0011] The tag data is compared with the DC parameters in the tag parameters to obtain the comparison results;
[0012] The DC system in the topology model is identified based on the comparison results, and the identification results are obtained.
[0013] In one embodiment, the marked nodes are identified based on the identification results to obtain identified node information and identified branch information, including:
[0014] When the identification result indicates that the topology model has a DC system, the marked nodes are identified based on the identification result, and the marked DC node information, marked AC node information, and AC branch information are obtained.
[0015] The DC branch information is obtained by searching based on the DC line topology search strategy and the marked DC node information.
[0016] The marked DC node information and marked AC node information are identified as the identification node information, and the DC branch information and AC branch information are identified as the identification branch information.
[0017] In one embodiment, DC branch information is obtained by searching based on a DC line topology retrieval strategy and marked DC node information, including:
[0018] Based on the DC line topology retrieval strategy, the marked nodes are traversed according to the marking parameters, the marked DC nodes are numbered, and the marked DC nodes are divided according to the marking parameters and the marked DC node information to obtain the first DC node and the second DC node.
[0019] The first DC node and the second DC node are set as the starting nodes of the DC branch. The first equipment group connected to the first DC node and the second DC node is determined according to the converter endpoint information and the connection information of the first DC node and the second DC node.
[0020] The resistance of the second equipment group and the DC line is determined based on the first equipment group and its connected physical connection nodes.
[0021] The marked DC node connected to the second equipment group is determined according to the second equipment group and set as the end node;
[0022] The DC branch information is obtained based on the starting node, the first equipment group, the second equipment group, the DC line resistance, and the ending node.
[0023] In one embodiment, the target node is identified based on the identification result to obtain identified node information and identified branch information, including:
[0024] When the identification result indicates that the topology model does not have a DC system, the target node is identified based on the identification result, and the marked AC node information and AC branch information are obtained.
[0025] The marked communication node information is identified as the identification node information, and the communication branch information is identified as the identification branch information.
[0026] In one embodiment, the target nodes include AC nodes, DC nodes, and invalid nodes; the topology model of a preset format file is filtered according to a preset node selection strategy to obtain the target nodes, including:
[0027] Determine the transformer type based on the transformer information;
[0028] When the transformer type is a three-winding transformer, all virtual nodes generated by the three-winding transformer are set as AC nodes;
[0029] When the transformer type is a two-winding transformer, the node type is determined based on the AC bus terminal information, the two-winding transformer terminal information, the converter terminal information, and the connection information of the physical connection node.
[0030] The physical connection nodes are divided according to node type to obtain the target node.
[0031] In one embodiment, node types include invalid, DC, and AC; the node type is determined based on AC bus endpoint information, two-winding transformer endpoint information, converter endpoint information, and connection information of physical connection endpoints, including:
[0032] Based on the connection information of the physical connection endpoints and the first preset endpoint information in the converter endpoint information, the first node is determined and set as an invalid node.
[0033] Based on the second preset endpoint information in the AC bus endpoint information, dual-winding transformer endpoint information, connection information and converter endpoint information, determine the second node and the third node, set the second node as an invalid node and the third node as a DC node;
[0034] All physical connection nodes other than the first, second, and third nodes mentioned above are designated as communication nodes.
[0035] Secondly, this application also provides a data conversion apparatus. The apparatus includes:
[0036] The node filtering module is used to filter the topology model of a preset format file according to a preset node selection strategy, obtain target nodes, and mark the target nodes based on the marking information to obtain marked nodes.
[0037] The node identification module is used to identify marked nodes based on the marking information and obtain the identification results;
[0038] The data processing module is used to identify the marked nodes based on the recognition results, obtain identification node information and identification branch information, and convert the identification node information and identification branch information into a format to obtain the target conversion data.
[0039] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0040] The topology model of the preset format file is filtered according to the preset node selection strategy to obtain the target node, and the target node is marked based on the marking information to obtain the marked node;
[0041] The labeled nodes are identified based on the labeled information to obtain the identification results;
[0042] Based on the recognition results, the marked nodes are identified to obtain identification node information and identification branch information. The identification node information and identification branch information are then converted into a new format to obtain the target conversion data.
[0043] Fourthly, this application also provides a computer-readable storage medium. This computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0044] The topology model of the preset format file is filtered according to the preset node selection strategy to obtain the target node, and the target node is marked based on the marking information to obtain the marked node;
[0045] The labeled nodes are identified based on the labeled information to obtain the identification results;
[0046] Based on the recognition results, the marked nodes are identified to obtain identification node information and identification branch information. The identification node information and identification branch information are then converted into a new format to obtain the target conversion data.
[0047] Fifthly, this application also provides a computer program product. This computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0048] The topology model of the preset format file is filtered according to the preset node selection strategy to obtain the target node, and the target node is marked based on the marking information to obtain the marked node;
[0049] The labeled nodes are identified based on the labeled information to obtain the identification results;
[0050] Based on the recognition results, the marked nodes are identified to obtain identification node information and identification branch information. The identification node information and identification branch information are then converted into a new format to obtain the target conversion data.
[0051] The aforementioned data conversion method, apparatus, computer equipment, storage medium, and computer program product select physical connection nodes in the topology model of a preset format file, classify the selected nodes using a preset node selection strategy to obtain target nodes, then traverse all target nodes and mark them using marking parameters to obtain marked nodes, then use the marking parameters to identify the DC system in the topology model, perform a discrimination operation based on the identification results, obtain discrimination node information and discrimination branch information, and perform data conversion operations to obtain target conversion data that can be used for power flow calculation. It can effectively identify the DC system in the converted topology model, classify the information of the DC system and AC system in the topology model through discrimination, achieve the efficiency of quickly obtaining and converting DC system information, and has high applicability to DC systems connected in DC topologies. Attached Figure Description
[0052] Figure 1 This is a flowchart illustrating a data conversion method in one embodiment;
[0053] Figure 2 This is a flowchart illustrating the process of identifying target nodes in one embodiment;
[0054] Figure 3 This is a flowchart illustrating the process of obtaining line information in one embodiment;
[0055] Figure 4 This is a schematic diagram of the process for obtaining DC branch information in one embodiment;
[0056] Figure 5 This is a flowchart illustrating the process of obtaining line information in another embodiment;
[0057] Figure 6 This is a schematic diagram of the process of obtaining the target node in one embodiment;
[0058] Figure 7 This is a schematic diagram of the LCC model in one embodiment;
[0059] Figure 8 This is a schematic diagram of an MMC model in one embodiment;
[0060] Figure 9 This is a structural block diagram of a data conversion device in one embodiment;
[0061] Figure 10 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0062] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0063] In one embodiment, such as Figure 1 As shown, a data conversion method is provided. This embodiment illustrates the method applied to a terminal. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0064] Step 102: Filter the topology model of the preset format file according to the preset node selection strategy to obtain target nodes, and mark the target nodes based on the marking information to obtain marked nodes.
[0065] The target nodes are AC nodes, DC nodes, and invalid nodes, and the marking information consists of the type parameters of AC nodes, DC nodes, and invalid nodes.
[0066] Specifically, the Extensible Markup Language (XML) document topology in the Common Information Model (CIM) is converted into a CIM / XML file topology model. After conversion, physical connection nodes in the topology model are selected according to a preset node selection strategy. After the target nodes are selected, they are marked and distinguished to obtain marked nodes.
[0067] Step 104: Identify the marked nodes based on the marked information to obtain the identification results.
[0068] The marking information includes marking parameters, and the marking nodes include marked AC nodes, marked DC nodes, and marked invalid nodes.
[0069] Specifically, after marking is completed, the marking parameters of the marked nodes are identified, and the marked DC nodes in the topology model are identified to determine whether a DC system exists in the topology model and obtain the identification results.
[0070] Step 106: Based on the recognition results, identify the marked nodes to obtain identification node information and identification branch information. Then, perform parameter transformation on the identification node information and identification branch information to obtain target transformation data.
[0071] Specifically, after obtaining the identification results, the marked nodes are identified by type based on the identification results, and the identified node information and corresponding identified branch information are obtained by classifying the marked nodes by type. Then, the data in the identified DC information is converted to obtain the power flow calculation input data in a specific format, i.e., the target conversion data.
[0072] In this embodiment, physical connection nodes in the topology model of a preset format file are selected, and the selected nodes are classified using a preset node selection strategy to obtain target nodes. Then, all target nodes are traversed and marked using marking parameters to obtain marked nodes. The DC system in the topology model is then identified using the marking parameters. Based on the identification results, a discrimination operation is performed to obtain discrimination node information and discrimination branch information, and a data conversion operation is performed to obtain target conversion data that can be used for power flow calculation. This method can effectively identify the DC system in the converted topology model. By classifying the information of the DC system and AC system in the topology model through discrimination, it achieves the efficiency of quickly obtaining and converting DC system information, and has high applicability to DC systems connected in DC topologies.
[0073] In one embodiment, such as Figure 2 As shown, the identified nodes are identified based on the tagging information, and the identification results are obtained, including:
[0074] Step 202: Extract the tag data of all tag nodes.
[0075] The labeled node includes the target node information and its corresponding labeled data.
[0076] Specifically, the labeled data is extracted from the labeled nodes.
[0077] Step 204: Compare the tag data with the DC parameters in the tag parameters to obtain the comparison results.
[0078] Specifically, the marked data is compared with the DC parameters in the marked parameters to determine whether the marked node has a DC node.
[0079] Step 206: Identify the DC system in the topology model based on the comparison results and obtain the identification results.
[0080] The comparison results are used to determine whether a DC system exists in the topology model, and the determination result is used as the identification result.
[0081] In this embodiment, by performing data identification on the marked nodes, the identification result of whether a DC system exists in the topology model can be obtained. Based on the identification result, the data of line information in the topology model can be easily converted, reducing the tediousness of data conversion and having the advantage of high adaptability.
[0082] In one embodiment, such as Figure 3 As shown, based on the recognition results, the marked nodes are identified to obtain identification node information and identification branch information, including:
[0083] Step 302: When the identification result indicates that the topology model has a DC system, the marked nodes are identified based on the identification result, and the marked DC node information, marked AC node information, and AC branch information are obtained.
[0084] Specifically, when the topology model is confirmed to have a DC system based on the identification results, all marked nodes are traversed and marked DC node information and marked AC node information are collected based on the marking information. Among them, the marked DC node information includes the equipment attribute values of multiple sets of converters connected to the marked DC node information, and the marked AC node information includes the number of generator sets connected to the marked AC node information, load, and grounding capacitance parameters.
[0085] Based on the collected information on marked AC nodes, a marked AC node or a marked DC node is used as the starting node, and another marked AC node or another marked DC node connected to its starting node is used as the ending node. The equipment attributes of the connecting devices between the starting node and the ending node, namely transformer windings and AC lines, are used as AC branch information.
[0086] Step 304: Search according to the DC line topology search strategy and the marked DC node information to obtain DC branch information.
[0087] Specifically, based on the DC line topology retrieval strategy, a marked DC node is used as the starting node and another marked DC node is used as the ending node. When searching for devices between the starting node and the ending node, the DC branch resistance is recorded, and the DC branch resistance, the devices connected in the DC branch, and the connection information are used as DC branch information.
[0088] Step 306: Determine the marked DC node information and marked AC node information as identification node information, and determine the DC branch information and AC branch information as identification branch information.
[0089] Specifically, the statistically analyzed and marked DC node information and marked AC node information are compiled and summarized to determine the identification node information, and the statistically analyzed DC branch information and AC branch information are compiled and summarized to determine the identification branch information.
[0090] In this embodiment, after node selection is completed, information on AC and DC lines is acquired. A pre-set DC line topology retrieval strategy is used to acquire DC line information, enabling rapid acquisition of AC and DC line information. This facilitates subsequent data conversion of DC lines, thereby improving conversion efficiency while avoiding cumbersome conversion operations.
[0091] In one embodiment, such as Figure 4 As shown, DC branch information is obtained by searching based on the DC line topology search strategy and the marked DC node information, including:
[0092] Step 402: Based on the DC line topology retrieval strategy, the marked nodes are traversed according to the marking parameters, the marked DC nodes are numbered, and the marked DC nodes are divided according to the marking parameters and the marked DC node information to obtain the first DC node and the second DC node.
[0093] Among them, the first DC node is a single type of marked DC node, and the second DC node is a multi-type marked DC node, including marked LCC DC node, marked MMC DC node, and marked LCC and MMC DC node.
[0094] Specifically, after identifying the marked nodes, each identified marked node is numbered based on the marking parameters, and the marked nodes are divided to obtain the first DC node and the second DC node.
[0095] Step 404: Set the first DC node and the second DC node as the starting nodes of the DC branch, and determine the first equipment group connected to the first DC node and the second DC node based on the converter endpoint information and the connection information of the first DC node and the second DC node.
[0096] The first equipment group includes a first converter, or the first equipment group includes a first converter and a first dual-winding transformer, wherein the converter includes terminals T1, T2 and T3.
[0097] Specifically, a first DC node of a certain type is selected, and the first DC node and the second DC node are used as the starting node.
[0098] When the first equipment group is the first converter, the first DC node and the second DC node are respectively connected to the T1 endpoint of the first converter. The T2 endpoint and T3 endpoint of the same first converter can be found through the T1 endpoint of each first converter. The two endpoints of the DC line, that is, one end of the two bipolar DC lines, can be found through the T2 endpoints and T3 endpoints of multiple sets of converters.
[0099] When the first equipment group consists of the first converter and the first double-winding transformer, the first DC node and the second DC node are respectively connected to one end of the first double-winding transformer. The other ends of the two first double-winding transformers are respectively connected to the T1 endpoint of the first converter. The T2 endpoint and T3 endpoint of the same first converter can be found through the T1 endpoint of each first converter. The two endpoints of the DC line, i.e., one end of the two bipolar DC lines, can be found through the T2 endpoints and T3 endpoints of multiple sets of converters.
[0100] like Figure 7 As shown, in an LCC converter station, the AC bus is connected to the LCC via a converter transformer. Two LCCs are connected in parallel via converter transformers with a voltage phase difference of 30 degrees to form a 12-pulse converter unit. In the Extensible Markup Language (ExtEX) document of the General Information Model, a 12-pulse converter unit is defined as an LCC, with endpoint T1 representing the AC busside connection point of the converter transformer, and endpoints T2 and T3 representing the DC side connection points of the valve group.
[0101] like Figure 8 As shown, in the MMC converter station, the AC bus is connected to the MMC via the converter transformer. In the Extensible Markup Language (Extended Markup Language) document of the General Information Model, the MMC is defined as the converter itself, endpoint T1 represents the valve group side connection point of the converter transformer, and endpoints T2 and T3 represent the valve group DC side connection points.
[0102] Step 406: Determine the resistance of the second equipment group and the DC line based on the first equipment group and its connected physical connection nodes.
[0103] The second equipment group includes a second converter, or the second equipment group includes a second converter and a second double-winding transformer.
[0104] Specifically, after locating the two ends of the DC line, i.e., one end of the two bipolar DC lines, record the resistance of the DC line. Then continue to locate the other end of the DC line and the second equipment group connected to it.
[0105] Step 408: Determine the marked DC node connected to the second equipment group based on the second equipment group and set it as the end node.
[0106] Specifically, when the second equipment group is the second converter, the other end of the DC line is connected to the T2 and T3 ends of the second converter, and the first DC node connected to the T1 end of one second converter and the second DC node connected to the T1 end of another second converter are set as the end node.
[0107] When the second equipment group consists of a second converter and a second double-winding transformer, the other end of the DC line is connected to the T2 and T3 ends of the second converter. The T1 end of one second converter is connected to one end of a second double-winding transformer, the T1 end of another second converter is connected to one end of another second double-winding transformer, the other end of one second double-winding transformer is connected to another first DC node, the other end of another second double-winding transformer is connected to another second DC node, and both the other first DC node and the other second DC node are only connected to the second double-winding transformer. Then, the other first DC node and the other second DC node are set as end nodes.
[0108] Step 410: Obtain DC branch information based on the starting node, the first converter, the second converter, the DC line resistance, and the ending node.
[0109] Specifically, when the first equipment group is the first converter, the second equipment group is the second converter, the two starting nodes are LCC DC nodes and LCC and MMC DC nodes, and the two ending nodes are LCC DC nodes and LCC and MMC DC nodes, the starting node information, ending node information, equipment attribute values of the first equipment group, equipment attribute values of the second equipment group, and DC line resistance are set as DC branch information of the LCC DC line.
[0110] When the first equipment group is the first converter and the first double-winding transformer, the second equipment group is the second converter and the second double-winding transformer, the two starting nodes are MMC DC nodes and LCC and MMC DC nodes, and the two ending nodes are MMC DC nodes and LCC and MMC DC nodes, the starting node information, ending node information, equipment attribute values of the first equipment group, equipment attribute values of the second equipment group, and DC line resistance are set to MMC DC branch information.
[0111] In addition to the two cases mentioned above, the starting node information, ending node information, equipment attribute values of the first equipment group, equipment attribute values of the second equipment group, and DC line resistance are set as LCC and MMC mixed DC branch information.
[0112] In this embodiment, a starting node is selected, and then the equipment groups and physical connection nodes at both ends of the two bipolar DC lines are searched according to the connection status. Based on the obtained information, the information is divided into different DC branch information. Through orderly search and clear DC line topology retrieval strategy, the time for searching the DC system is saved, thereby improving the efficiency of converting DC data.
[0113] In one embodiment, such as Figure 5 As shown, based on the recognition results, target nodes are identified to obtain identification node information and identification branch information, including:
[0114] Step 502: When the identification result is that the topology model does not have a DC system, the target node is identified based on the identification result, and the marked AC node information and AC branch information are obtained.
[0115] Specifically, when it is confirmed based on the identification results that the topology model does not have a DC system, all marked nodes are traversed and the marked AC node information is collected based on the marking information. The marked AC node information includes the number of generator sets connected to the marked AC node, the load, and the grounding capacitance parameters.
[0116] Based on the collected information on marked AC nodes, the marked AC node is taken as the starting node, and another marked AC node connected to its starting node is taken as the ending node. The equipment attributes of the connecting devices between the starting node and the ending node, namely transformer windings and AC lines, are taken as AC branch information.
[0117] Step 504: The marked communication node information is determined as the identification node information, and the communication branch information is determined as the identification branch information.
[0118] Specifically, the statistically analyzed and marked communication node information is compiled and identified as the identification node information, and the communication branch information is compiled and identified as the identification branch information.
[0119] In this embodiment, after the identification is completed, the AC and DC lines in the topology model are sorted out, and the absence of DC system is determined based on the identification results. This saves the time of data conversion for DC lines and achieves the effect of improving conversion efficiency while avoiding cumbersome conversion operations.
[0120] In one embodiment, such as Figure 6 As shown, the topology model of a preset format file is filtered according to a preset node selection strategy to obtain target nodes, including:
[0121] Step 602: Determine the transformer type based on the transformer information.
[0122] The transformer types include two-winding transformers and three-winding transformers.
[0123] Specifically, transformer information is extracted from the topology model, and the transformer type is determined based on the transformer information.
[0124] Step 604: When the transformer type is a three-winding transformer, set all virtual nodes generated by the three-winding transformer as AC nodes.
[0125] Specifically, when the transformer is determined to be a three-winding transformer, the virtual node generated by the three-winding transformer is set as an AC node.
[0126] Step 606: When the transformer type is a two-winding transformer, determine the node type based on the AC bus endpoint information, the two-winding transformer endpoint information, the converter endpoint information, and the connection information of the physical connection node.
[0127] The node types include invalid, DC, and AC.
[0128] Specifically, based on the connection information of the physical connection endpoints and the first preset endpoint information in the converter endpoint information, a first node is determined and set as an invalid node. That is:
[0129] When a physical connection node is connected to either the T2 or T3 endpoint of the converter, that physical connection node is set as an invalid node. The first preset endpoint information includes the T2 and T3 endpoint information of the converter.
[0130] Based on the second preset endpoint information from the AC bus endpoint information, dual-winding transformer endpoint information, connection information, and converter endpoint information, the second node and the third node are determined. The second node is set as an invalid node, and the third node is set as a DC node. That is:
[0131] When a physical connection node is connected to the T1 node of the converter and the endpoint of the dual-winding transformer, and there are no other connection endpoints, the physical connection node is set as an invalid node, and the physical connection node connected to the other endpoint of the dual-winding transformer is set as an MMC DC node.
[0132] When a physical connection node is connected to the T1 node of the converter and the AC bus terminal, the physical connection node is set as an LCC DC node.
[0133] All physical connection nodes other than the first, second, and third nodes mentioned above are designated as communication nodes.
[0134] Step 608: Divide the physical connection nodes according to the node type to obtain the target node.
[0135] Specifically, after the physical connection node is set, it can simultaneously meet the setting conditions of both the LCC DC node and the MMC DC node.
[0136] Then, the N parameter is set, and the N parameter is specifically:
[0137]
[0138] Based on the above N parameter settings, the target node is obtained, which is the node after the settings are completed.
[0139] In this embodiment, physical connection nodes are distinguished based on a preset node selection strategy, and N parameters are preset to obtain different types of nodes, thus completing node selection. This facilitates the subsequent retrieval of DC lines, making the acquisition of subsequent DC data convenient and ensuring that the data is organized, thereby improving the rate of subsequent DC data conversion.
[0140] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0141] Based on the same inventive concept, this application also provides a data conversion apparatus for implementing the data conversion method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more data conversion apparatus embodiments provided below can be found in the limitations of the data conversion method described above, and will not be repeated here.
[0142] In one embodiment, such as Figure 9 As shown, a data conversion device is provided, including: a node filtering module 902, a node identification module 904, and a data processing module 906, wherein:
[0143] The node filtering module 902 is used to filter the topology model of the preset format file according to the preset node selection strategy, obtain the target node, and mark the target node based on the marking information to obtain the marked node.
[0144] The node identification module 904 is used to identify marked nodes based on the marking information and obtain the identification results.
[0145] The data processing module 906 is used to identify the marked nodes based on the identification results, obtain identification node information and identification branch information, and convert the identification node information and identification branch information into a format to obtain target conversion data.
[0146] In one embodiment, the node filtering module 902 is further configured to determine the transformer type based on the transformer information; when the transformer type is a three-winding transformer, all virtual nodes generated by the three-winding transformer are set as AC nodes; when the transformer type is a two-winding transformer, the node type is determined based on the AC bus endpoint information, the two-winding transformer endpoint information, the converter endpoint information, and the connection information of the physical connection nodes; and the physical connection nodes are divided according to the node type to obtain the target nodes.
[0147] In one embodiment, the node filtering module 902 is further configured to determine a first node based on the connection information of the physical connection endpoints and the first preset endpoint information in the converter endpoint information, and set the first node as an invalid node; determine a second node and a third node based on the AC bus endpoint information, the dual-winding transformer endpoint information, the connection information and the second preset endpoint information in the converter endpoint information, and set the second node as an invalid node and the third node as a DC node; and set physical connection nodes other than the first node, the second node and the third node as AC nodes.
[0148] In one embodiment, the node identification module 904 is further configured to extract the labeling data of all labeled nodes; compare the labeling data with the DC parameters in the labeling parameters to obtain the comparison result; and identify the DC system in the topology model based on the comparison result to obtain the identification result.
[0149] In one embodiment, the data processing module 906 is further configured to, when the identification result indicates that the topology model has a DC system, identify the marked nodes based on the identification result, and obtain the marked DC node information, marked AC node information, and AC branch information; perform a retrieval based on the DC line topology retrieval strategy and the marked DC node information to obtain DC branch information; determine the marked DC node information and the marked AC node information as identification node information, and determine the DC branch information and the AC branch information as identification branch information.
[0150] In one embodiment, the data processing module 906 is further configured to, based on a DC line topology retrieval strategy, traverse the marked nodes according to the marking parameters, number the marked DC nodes among the marked nodes, divide the marked DC nodes according to the marking parameters and the marked DC node information, and obtain a first DC node and a second DC node; set the first DC node and the second DC node as the starting nodes of the DC branch; determine a first equipment group connected to the first DC node and the second DC node according to the converter endpoint information and the connection information of the first DC node and the second DC node; determine a second equipment group and the DC line resistance according to the first equipment group and its connected physical connection nodes; determine the marked DC nodes connected to the second equipment group according to the second equipment group and set them as the ending nodes; and obtain DC branch information according to the starting node, the first equipment group, the second equipment group, the DC line resistance, and the ending node.
[0151] In one embodiment, the data processing module 906 is further configured to, when the identification result indicates that the topology model does not have a DC system, identify the target node based on the identification result, obtain the marked AC node information and AC branch information; determine the marked AC node information as the identification node information, and determine the AC branch information as the identification branch information.
[0152] Each module in the aforementioned data conversion device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0153] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores power flow calculation input data in a specific format. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements a data conversion method.
[0154] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0155] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0156] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0157] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0158] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0159] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0160] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A data conversion method, characterized in that, The method includes: The topology model of the preset format file is filtered according to the preset node selection strategy to obtain target nodes, and the target nodes are marked based on the marking information to obtain marked nodes; wherein, the marking information includes marking parameters, and the marked nodes include marked AC nodes, marked DC nodes, and marked invalid nodes; The marked nodes are identified based on the marked information to obtain identification results; wherein, after marking is completed, the marking parameters of the marked nodes are identified, and the marked DC nodes in the topology model are identified to determine whether a DC system exists in the topology model, and identification results are obtained. Based on the identification results, the marked nodes are identified to obtain identification node information and identification branch information. The identification node information and the identification branch information are then converted into a new format to obtain target conversion data. The step of identifying the marked nodes based on the identification results to obtain identified node information and identified branch information includes: when the identification result indicates that the topology model has a DC system, identifying the marked nodes based on the identification result to obtain marked DC node information, marked AC node information, and AC branch information; retrieving DC branch information according to the DC line topology retrieval strategy and the marked DC node information; determining the marked DC node information and the marked AC node information as identified node information, and determining the DC branch information and the AC branch information as identified branch information; The step of retrieving DC branch information based on the DC line topology retrieval strategy and the marked DC node information includes: traversing marked nodes according to the marking parameters based on the DC line topology retrieval strategy; numbering the marked DC nodes among the marked nodes; dividing the marked DC nodes according to the marking parameters and the marked DC node information to obtain a first DC node and a second DC node; setting the first DC node and the second DC node as the starting nodes of the DC branch; determining a first equipment group connected to the first DC node and the second DC node according to the converter endpoint information and the connection information of the first DC node and the second DC node; determining a second equipment group and the DC line resistance according to the first equipment group and its connected physical connection nodes; determining the marked DC node connected to the second equipment group according to the second equipment group and setting it as the ending node; and obtaining the DC branch information according to the starting node, the first equipment group, the second equipment group, the DC line resistance, and the ending node.
2. The method according to claim 1, characterized in that, The marking information includes marking parameters, and the marked nodes include marked AC nodes, marked DC nodes, and marked invalid nodes; The process of identifying the marked nodes based on the marked information to obtain the identification result includes: Extract the tag data for all the tagged nodes; The tagging data is compared with the DC parameters in the tagging parameters to obtain the comparison result; Based on the comparison results, the DC system in the topology model is identified to obtain the identification results.
3. The method according to claim 1, characterized in that, The step of identifying the target node based on the identification result to obtain identified node information and identified branch information includes: When the identification result indicates that the topology model does not have a DC system, the target node is identified based on the identification result, and the marked AC node information and AC branch information are obtained. The marked communication node information is determined as the identification node information, and the communication branch information is determined as the identification branch information.
4. The method according to claim 1, characterized in that, The target nodes include AC nodes, DC nodes, and invalid nodes; the step of filtering the topology model of a preset format file according to a preset node selection strategy to obtain target nodes includes: Determine the transformer type based on the transformer information; When the transformer type is a three-winding transformer, all virtual nodes generated by the three-winding transformer are set as AC nodes; When the transformer type is a two-winding transformer, the node type is determined based on the AC bus terminal information, the two-winding transformer terminal information, the converter terminal information, and the connection information of the physical connection node. The physical connection nodes are divided according to the node type to obtain the target node.
5. The method according to claim 4, characterized in that, Node types include invalid, DC, and AC; determining the node type based on AC bus endpoint information, the dual-winding transformer endpoint information, the converter endpoint information, and the connection information of the physical connection endpoints includes: Based on the connection information of the physical connection endpoint and the first preset endpoint information in the converter endpoint information, the first node is determined and set as an invalid node. Based on the second preset endpoint information in the AC bus endpoint information, the dual-winding transformer endpoint information, the connection information, and the converter endpoint information, the second node and the third node are determined, the second node is set as an invalid node, and the third node is set as a DC node. All physical connection nodes other than the first, second, and third nodes mentioned above are designated as communication nodes.
6. A data conversion device, characterized in that, The device includes: The node filtering module is used to filter the topology model of a preset format file according to a preset node selection strategy to obtain target nodes, and to mark the target nodes based on marking information to obtain marked nodes; wherein, the marking information includes marking parameters, and the marked nodes include marked AC nodes, marked DC nodes, and marked invalid nodes; A node identification module is used to identify the marked nodes based on the marking information and obtain identification results; The data processing module is used to identify the marked nodes based on the identification results, obtain identified node information and identified branch information, and convert the identified node information and identified branch information into a format to obtain target converted data; it is also used to identify the marked nodes based on the identification results when the identification result indicates that the topology model has a DC system, obtain marked DC node information, marked AC node information, and AC branch information; search according to the DC line topology retrieval strategy and the marked DC node information to obtain DC branch information; determine the marked DC node information and the marked AC node information as identified node information, and determine the DC branch information and the AC branch information as identified branch information; it is also used to classify the marked nodes according to the marking parameters based on the DC line topology retrieval strategy. The nodes are traversed, and the marked DC nodes are numbered. The marked DC nodes are divided according to the marking parameters and the marked DC node information to obtain the first DC node and the second DC node. The first DC node and the second DC node are set as the starting nodes of the DC branch. The first equipment group connected to the first DC node and the second DC node is determined according to the converter endpoint information and the connection information of the first DC node and the second DC node. The second equipment group and the DC line resistance are determined according to the first equipment group and its connected physical connection nodes. The marked DC nodes connected to the second equipment group are determined according to the second equipment group and set as the ending nodes. The DC branch information is obtained according to the starting node, the first equipment group, the second equipment group, the DC line resistance, and the ending node.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Power distribution network feeder line contact mode identification method and system based on CIM model
CN111428376A
File conversion method and device for hybrid power
CN112464314A