Method and system for generating topological structure of electromagnetic transient simulation model
By obtaining and correcting the connection relationship of component topology during the power system model transplantation process, determining the endpoint phase, and using the depth-first search algorithm to generate the electromagnetic transient simulation model of ADPSS, the problems of low model transplantation efficiency and high error rate in the existing technology are solved, and an efficient and accurate modeling process is achieved.
Patent Information
- Application Number
- CN202510043212.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-05-13
AI Technical Summary
The prior art is inefficient and has high error rates during the transplantation of power system models from PSCAD to ADPSS, especially in the processing of large-scale and complex topological structures.
By obtaining the component topology of the power system, determining and correcting the connection relationship, determining the phase of the component endpoint based on the corrected connection relationship, and finally generating the topology of the electromagnetic transient simulation model in ADPSS. This method uses depth-first search algorithm and topological analysis technology to ensure the correctness of the topological connection of the model.
It ensures the correctness of model topological connections to the greatest extent, effectively shortens modeling time, and improves modeling efficiency. It is suitable for new power system electronic transient simulation technology with high proportion new energy and high proportion power electronics as the main body.
Smart Images

Figure CN119989653A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electromagnetic transient simulation, and more specifically, to a method and system for generating a topological structure of an electromagnetic transient simulation model. Background Art
[0002] PSCAD has been widely used in academia and industry due to its excellent algorithms and complete component library. At present, many power system models are established through PSCAD, and the simulation results obtained are also generally recognized by scientific research institutions. However, as a traditional simulation program running on a computer, PSCAD has inherent disadvantages such as slow calculation speed, limited simulation scale, and restricted usage rights. Compared with PSCAD, ADPSS has fast calculation speed, large simulation scale, and domestic independent intellectual property rights. It is increasingly gaining widespread attention and use in the industry and academia. In order to improve the simulation scale and efficiency, many models that have been built on PSCAD also need to be transplanted to ADPSS for re-simulation analysis under different working conditions. In order to improve the simulation efficiency, it is necessary to develop a method for transplanting power system models from PSCAD to ADPSS.
[0003] In the past, manual modeling was usually used for model transplantation, that is, the PSCAD model was manually constructed in ADPSS by observing its components and their topological structures with the naked eye to form the corresponding components and their topological connections. Manual modeling is convenient for small-scale system models; however, in actual projects, the AC and DC power systems are large in scale and have complex topological connections. If manual modeling is still used, it will not only be inefficient but also have a high error rate. Summary of the invention
[0004] In view of the above problems, the present invention proposes a method for generating a topological structure of an electromagnetic transient simulation model, comprising:
[0005] Acquire a component topology structure of the power system, determine a connection relationship of the component topology structure, and modify the connection relationship;
[0006] Determining the phase of the component endpoints in the component topology structure based on the modified connection relationship;
[0007] Based on the phases of the component terminals, a topology of the power system is generated in the electromagnetic transient simulation model.
[0008] Optionally, determining the connection relationship of the component topology structure includes:
[0009] Establishing node objects for component endpoints in the component topology structure, traversing the components in the component topology structure, and determining whether all the components have been traversed based on the node objects;
[0010] If the traversal of the component is completed, the connection lines in the topological structure of the component are traversed to determine the connection relationship between the component and the connection line;
[0011] Wherein, when traversing the connection lines in the component topological structure, if the endpoints of the component are not connected to the endpoints on both sides of the connection line, the endpoints of the component are connected to the endpoints on both sides of the connection line.
[0012] Optionally, modifying the connection relationship includes:
[0013] The relationship between the endpoint of the component and the busbar in the connection relationship is determined, and based on the relationship between the endpoint of the component and the busbar, the connection relationship is modified to determine that in the connection relationship, the endpoint of the component is connected to only one busbar.
[0014] Optionally, determining the phase of the component endpoints in the component topology structure includes:
[0015] Classify the components in the component topology structure into phase components and non-phase components, and determine the phase of the non-phase component endpoint according to the phase of the phase component endpoint based on a depth-first search algorithm;
[0016] Non-phase elements, including: resistor elements.
[0017] Optionally, generating a topology of the power system in the electromagnetic transient simulation model based on the phase of the component endpoints includes:
[0018] Based on the phase of the primary element endpoints and the phase of the secondary element endpoints, a primary topology and a secondary topology are established for the primary elements and the secondary elements in the topological structure of the power system respectively.
[0019] In another aspect, the present invention further provides a system for generating a topological structure of an electromagnetic transient simulation model, comprising:
[0020] An initial unit, used to obtain a component topology structure of a power system, determine a connection relationship of the component topology structure, and modify the connection relationship;
[0021] A calculation unit, configured to determine the phase of the component endpoints in the component topology structure based on the modified connection relationship;
[0022] The output unit is used to generate a topology structure of the power system in the electromagnetic transient simulation model based on the phase of the element terminals.
[0023] Optionally, determining the connection relationship of the component topology structure includes:
[0024] Establishing node objects for component endpoints in the component topology structure, traversing the components in the component topology structure, and determining whether all the components have been traversed based on the node objects;
[0025] If the traversal of the component is completed, the connection lines in the topological structure of the component are traversed to determine the connection relationship between the component and the connection line;
[0026] Wherein, when traversing the connection lines in the component topological structure, if the endpoints of the component are not connected to the endpoints on both sides of the connection line, the endpoints of the component are connected to the endpoints on both sides of the connection line.
[0027] Optionally, modifying the connection relationship includes:
[0028] The relationship between the endpoint of the component and the busbar in the connection relationship is determined, and based on the relationship between the endpoint of the component and the busbar, the connection relationship is modified to determine that in the connection relationship, the endpoint of the component is connected to only one busbar.
[0029] Optionally, determining the phase of the component endpoints in the component topology structure includes:
[0030] Classify the components in the component topology structure into phase components and non-phase components, and determine the phase of the non-phase component endpoint according to the phase of the phase component endpoint based on a depth-first search algorithm;
[0031] Non-phase elements, including: resistor elements.
[0032] Optionally, generating a topology of the power system in the electromagnetic transient simulation model based on the phase of the component endpoints includes:
[0033] Based on the phase of the primary element endpoints and the phase of the secondary element endpoints, a primary topology and a secondary topology are established for the primary elements and the secondary elements in the topological structure of the power system respectively.
[0034] In yet another aspect, the present invention further provides a computing device, comprising: one or more processors;
[0035] a processor for executing one or more programs;
[0036] When the one or more programs are executed by the one or more processors, the above-described method is implemented.
[0037] In yet another aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, the method described above is implemented.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] The present invention provides a method for generating a topological structure of an electromagnetic transient simulation model, comprising: obtaining a component topological structure of an electric power system, determining a connection relationship of the component topological structure, and correcting the connection relationship; determining the phase of the component endpoints in the component topological structure based on the corrected connection relationship; and generating a topological structure of the electric power system in the electromagnetic transient simulation model based on the phase of the component endpoints. The present invention can guarantee the correctness of the model topological connection to the greatest extent, effectively shorten the modeling time, and improve the modeling efficiency, and has great significance for the research and development of electromagnetic transient simulation software technology and the promotion of new power system electronic transient simulation technology with a high proportion of new energy and a high proportion of power electronics as the main body. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart of the method of the present invention;
[0041] Figure 2 A topology analysis flow chart of an embodiment of the method of the present invention;
[0042] Figure 3 A schematic diagram of a component end point connected to the middle of a connecting line in an embodiment of the method of the present invention;
[0043] Figure 4 A plurality of one-to-three connected diagrams of an embodiment of the method of the present invention;
[0044] Figure 5 A schematic diagram of a depth-first search in an embodiment of the method of the present invention;
[0045] Figure 6 It is a structural diagram of the system of the present invention. DETAILED DESCRIPTION
[0046] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.
[0047] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.
[0048] Embodiment 1:
[0049] The present invention proposes a method for generating a topological structure of an electromagnetic transient simulation model, such as Figure 1 As shown, including:
[0050] Step 1: obtaining a component topology structure of a power system, determining a connection relationship of the component topology structure, and modifying the connection relationship;
[0051] Step 2: determining the phase of the component endpoints in the component topology structure based on the corrected connection relationship;
[0052] Step 3: Based on the phases of the component endpoints, a topological structure of the power system is generated in the electromagnetic transient simulation model.
[0053] Wherein, determining the connection relationship of the component topology structure includes:
[0054] Establishing node objects for component endpoints in the component topology structure, traversing the components in the component topology structure, and determining whether all the components have been traversed based on the node objects;
[0055] If the traversal of the component is completed, the connection lines in the topological structure of the component are traversed to determine the connection relationship between the component and the connection line;
[0056] Wherein, when traversing the connection lines in the component topological structure, if the endpoints of the component are not connected to the endpoints on both sides of the connection line, the endpoints of the component are connected to the endpoints on both sides of the connection line.
[0057] Wherein, modifying the connection relationship includes:
[0058] The relationship between the endpoint of the component and the busbar in the connection relationship is determined, and based on the relationship between the endpoint of the component and the busbar, the connection relationship is modified to determine that in the connection relationship, the endpoint of the component is connected to only one busbar.
[0059] Wherein, determining the phase of the component endpoints in the component topology structure includes:
[0060] Classify the components in the component topology structure into phase components and non-phase components, and determine the phase of the non-phase component endpoint according to the phase of the phase component endpoint based on a depth-first search algorithm;
[0061] Non-phase elements, including: resistor elements.
[0062] Wherein, based on the phase of the component endpoints, generating the topology of the power system in the electromagnetic transient simulation model includes:
[0063] Based on the phase of the primary element endpoints and the phase of the secondary element endpoints, a primary topology and a secondary topology are established for the primary elements and the secondary elements in the topological structure of the power system respectively.
[0064] The present invention is further described below with reference to specific cases:
[0065] The present invention is based on the principle of depth-first search and is implemented through the steps of topological analysis, parsing component endpoint phase, topological connection, parsing bus reference voltage, processing signal terminals, etc., and specifically includes:
[0066] (1) Topological analysis:
[0067] In the ADPSS environment, in order to make the circuit diagram topology clearer, each component must be connected by a busbar. In PSCAD, there is no concept of a busbar, and each component can only be connected by a connecting line. Therefore, in the process of converting the PSCAD model to the ADPSS model, the PSCAD electrical transient model must be topologically analyzed to obtain the topological relationship of each component in the circuit, as well as the position and direction of each busbar.
[0068] Since all components in PSCAD are connected by connecting lines or directly, this report first analyzes the coordinates of each component and each connecting line endpoint to obtain the connection relationship between each component and each node; then, traverse each node and preliminarily determine whether it is a busbar based on its topological relationship; after initially screening the busbar, traverse all component endpoints. If the endpoint is not connected to the busbar, search for the busbar along the connecting line based on the node topological relationship. If the busbar cannot be found, add a new busbar to the two components; at this point, all component endpoints are connected to the busbar. In order to avoid the situation where both ends of the connecting line are connected to the busbar, traverse all connecting lines. If this situation occurs, merge the two busbars. Figure 2 The following is a flowchart of the traversal, and each specific process is described in subsections. The topology analysis process is as follows:
[0069] A. Determine the connection relationship:
[0070] Traverse all components and connecting lines, and create a node object (node) for each endpoint.
[0071] In addition to its coordinate information, the node object mainly contains the following topological information:
[0072] The component ID number (component_id) directly connected to the node;
[0073] The ID number of the connection line directly connected to the node (wires_id);
[0074] In order to obtain the topological relationship of the nodes in the model, the node coordinates are used as keywords and the node ID is stored in the associated container map. During the traversal of components and connection line endpoints, if the endpoint coordinates already exist in the map container, the component id number or connection line id number is recorded in the node object; if the endpoint coordinates are not found in the map container, a new node object is created and its coordinate information is stored in the map container. Each time an endpoint is traversed, the corresponding node object id number is stored in the component endpoint information.
[0075] However, in PSCAD, components or connecting lines are not connected only through endpoints. Figure 3 As shown in the figure, the endpoints of the component are not connected to the endpoints on both sides of the connection line, but to the middle part of the connection line. In this case, the node located in the middle of the connection line needs to be merged. The method is:
[0076] Traverse all connection lines. If there is a node coordinate on the connection line, merge the node to the nearest endpoint of the connection line.
[0077] At this point, the node object in the model contains the ID number of the component or connection line it is connected to, and the endpoint information of each component and each connection line also contains the corresponding node information. In other words, the program has parsed the connection relationship between each component in the model.
[0078] B. Determine the busbar:
[0079] The endpoints of components in ADPSS must be connected to the busbar directly or through connecting lines, and there is only one determined busbar. Therefore, an ordinary node cannot be connected to more than two busbars at the same time. Only nodes on the busbar can be connected to multiple busbars and finally merged into one busbar.
[0080] The connection rule of components in ADPSS is: connect from the component endpoint to the corresponding busbar. You cannot connect from one component endpoint directly to another component endpoint, nor can you connect from the busbar to the component endpoint. The direction of the connection line and the object of the connection must be correct. In the topological relationship currently parsed, nodes can be directly connected by connection lines, so it is necessary to traverse the nodes and select the real busbar.
[0081] In the actual process of judging the busbar, according to the analyzed connection relationship, that is, the number of components directly connected to the node (n_component) and the number of connecting wires directly connected to it (n_wires), this report divides all nodes into the following five categories:
[0082] n_component>=2: node connects two or more components;
[0083] n_component=1,n_wires>=2:node outgoing wire degree is greater than or equal to 3;
[0084] n_component=1, n_wires=1: the node appearance degree is 2;
[0085] n_component=1,n_wires=0:The endpoints of this component are left floating;
[0086] n_component=0,n_wires>=3:node outgoing wire degree is greater than or equal to 3;
[0087] n_component=0,n_wires=2:This type of node is a pure connection line node and only serves as a connection;
[0088] n_component=0,n_wires=1:The endpoint of the connection line is left floating;
[0089] The above five categories can accurately cover all possible situations of nodes between components and connecting lines. Therefore, the location of the busbar can be obtained by traversing the nodes to determine whether they are busbar nodes.
[0090] First, perform a preliminary busbar screening. Traverse all nodes, and the outgoing degree of each node can be known from the determined connection relationship. If the outgoing degree of the node is greater than 2 or the node is a connection point between components, that is, a type a, b or e node, then the node is determined to be a busbar node.
[0091] However, the initial screening of the busbar cannot ensure that each component endpoint finds a busbar node, and further screening of the busbar is required, that is, secondary screening. Traverse all component endpoints. If the endpoint is not connected to the busbar node, search from the endpoint along the connection line to the inside of the system: if the node is suspended, that is, a g-type node, stop searching; if a node between connection lines is found, that is, an f-type node, continue searching the busbar along the next connection line; if a busbar node is found, it is considered that the component is connected to the busbar; if another component is searched and the busbar node is still not found, that is, a c-type node, indicating that the two components are connected by a connection line, then add a busbar at the midpoint of the connection line between the two components, and add the topological information of the two components to the busbar node.
[0092] At this point, all component terminals are connected to the determined busbar.
[0093] C. Merge busbars:
[0094] The wiring rule in ADPSS: component endpoints can only be connected to the corresponding type of busbar. However, the current processing of PSCAD models cannot guarantee that the topological wiring rules in ADPSS can be met. Therefore, redundant buses need to be merged.
[0095] Even if all component endpoints are connected to a certain bus, it cannot be guaranteed that there are no buses connected by connecting lines, which violates the ADPSS connection rules. In the ADPSS model converted by such a topological result, the components that should be under one bus will be connected to two separated buses. Therefore, the buses connected by connecting lines need to be merged.
[0096] After the previous step, all components are connected to the bus, but there may be a situation where both ends of the connection line are bus nodes, which is not allowed in ADPSS. The solution in this report is to traverse all connection lines, merge them if their endpoints are bus nodes, and modify the bus information of the relevant component endpoints.
[0097] In PSCAD, a one-to-three connection is treated as a component; while in ADPSS, a one-to-three connection is treated as a type of busbar. In other words, there is no component in ADPSS that corresponds to a one-to-three connection in PSCAD. When the program processes the PSCAD model, a one-to-three connection is treated as a four-terminal component, and its four terminals are connected to four buses. Therefore, the four buses of the one-to-three connection need to be merged into one one-to-three connection.
[0098] The difficulty in dealing with one-to-three busbars is: Figure 4 As shown, when multiple one-to-three busbars are directly connected, that is, two one-to-three end busbars will overlap. Simply merging the four end busbars of the one-to-three busbars will result in duplicate busbar merging, resulting in redundant busbars, incorrect position of component end busbars, and other problems.
[0099] In this regard, the solution of this report is: establish a map association container named bus2bus, store the path of specific bus merging in the map container, and search the operating bus and the target bus in bus2bus every time the bus is merged. If the bus is found, it means that the bus has been merged. Find the target bus that will eventually merge it and operate on this bus. Traverse the one-to-three components in PSCAD, merge its single-phase endpoint bus into its three-phase endpoint bus, and correct the endpoint bus information of the relevant components.
[0100] (2) Analyze the component endpoint phase:
[0101] Since the components in PSCAD are divided into two categories, phase components and non-phase components. For non-phase components, such as resistors, in three-phase circuits and single-phase circuits that can be directly connected, the endpoint phase cannot be obtained by analyzing the components alone; for phase components, such as transformers and three-in-one components, the endpoint phase information can be obtained by analyzing the components alone. In ADPSS, each component requires endpoint phase information. Therefore, the endpoint phase of the non-phase component in PSCAD needs to be determined based on the parsed topological results. This paper adopts a depth-first search algorithm to obtain the breakpoint phase of the non-phase component in the system starting from the endpoint of the phase component.
[0102] A. Depth-first search principle:
[0103] Depth-First Search, in the process of traversal, takes depth as the priority criterion, traverses to the end of the tree and then backtracks. If all vertices of the given graph have not been visited, randomly select a vertex v i As the starting point. The depth-first search algorithm can be defined as: the first step is to start from vi and mark it as visited; the second step is to randomly select the adjacent point vj of vi. If vj has not been visited, then continue to search downward with vj as the new starting point. This process is called depth-first search.
[0104] Obviously, the depth-first search method is completed by a recursive method, which is very consistent with the idea of computer programming. Because it searches in the depth direction as much as possible, it is called depth-first search. For example, according to the depth-first search method, if vi has just been visited, the next step is to search for an unvisited edge (vi, vi) from vi. If vertex vj has been visited, return to vi and select an undetected edge from vi again; if vertex vj has never been visited, follow this edge from vi to vj, visit vj, and mark it as visited, and then start searching from vj. The search method is the same as vi, until all paths starting from vj are searched, and then backtrack to vertex vi. Finally, search for an undetected edge starting from vi, and repeat the above process until all edges starting from the starting point vi have been detected. At this time, if vi is not the initial starting point, backtrack to the vertex that was visited before vi; if vi is the initial starting point, the entire search process ends.
[0105] If the search process from the starting point ends for a connected undirected graph or a strongly connected directed network, it means that the complete traversal of the island in the graph is completed. However, for a non-connected undirected graph or a non-strongly connected directed graph, a traversal from the starting point can only access one connected component in the graph. Therefore, it is necessary to traverse all connected components to completely traverse a non-connected graph.
[0106] For an undirected graph, a depth-first search traversal process is performed starting from a fixed point vi, such as Figure 5 shown.
[0107] When a graph is traversed using a depth-first search algorithm, the depth-first search traversal sequence of the graph is the sequence obtained by following the order of the traversed vertices. The access sequence of a graph is not unique. It is not only related to the algorithm, but also to the storage structure of each point in the graph and the choice of the starting point.
[0108] B. Analyze component endpoint phase flow:
[0109] The ADPSS component model includes the phase information of each endpoint. In the topological connection process of the component model, endpoints with different phases cannot be directly connected, so the endpoint phases need to be matched and verified during the connection process. However, the PSCAD example file does not include phase information, and its processing of phase is reflected in the program. In addition, the PSCAD component library contains many components that do not distinguish between single-phase and three-phase, such as resistors, inductors, and capacitors. Therefore, the phase analysis of these component endpoints cannot obtain their true phases.
[0110] The present invention distinguishes whether the component is a phase component and analyzes the component endpoint phase while analyzing the PSCAD component endpoint coordinates. In other words, analyzing the component endpoint phase is the process of determining the non-phase component endpoint phase using the known phase component endpoint phase.
[0111] Determining the endpoint phase actually means finding the phase of the phase component endpoint connected to the endpoint. In other words, it means finding the next node from one node based on the endpoint of the component with a known phase, until the phase component is found or all nodes with electrical connections have been visited. The phases of all nodes on the access path are consistent with the phase of the starting node.
[0112] The purpose of designing a depth-first search program is to allow all component endpoints to find a certain phase. Since there are fewer phase components than non-phase components, the starting point of the depth search is set at the phase component endpoint. During the search process, if a phase component is encountered, its processing method is the same as the processing method for hanging nodes.
[0113] We can also find that the depth-first search is a process of going deep to the end and then backtracking. It can be understood as obtaining a chain-like structure each time searching, then backtracking to the previous node, taking this node as the vertex, and then searching for several chain-like branches. Design a sub-function find_singlebus, which is used to search for another node downward with the current node as the vertex, and assign the phase of the corresponding endpoint. In the main function, each time a node is backtracked, as long as there are unvisited nodes near the node, the find_singlebus function is called once to find other branches extending from the node. If a phase element is found, backtracking is done, and the processing method is equivalent to leaving the node hanging. The visited nodes can be searched repeatedly, but the same route cannot be repeated to avoid cyclic search on a ring branch. Therefore, the visited routes should be deleted from the topological array in a timely manner. In the process of continuous backtracking, it can be guaranteed that every node is searched. In this way, the idea of continuously going deep into the end and backtracking in the depth-first search is realized.
[0114] (3) Topological connection:
[0115] A. Primary topology:
[0116] When storing PSCAD component ports, they are stored according to the port number of the primary component in ADPSS.
[0117] For example, the C port of component A in PSCAD corresponds to the first port of component A in ADPSS. When storing component information, the C port information of component A is stored at the position of the first port. After creating a component in ADPSS, connect it according to the bus id connected to the component port. If the bus id is -1, it means that the port is suspended and no other components are connected; if the bus id is -2, it means that the port is grounded and needs to be connected to the grounding component according to the phase of the component (single phase or three phase).
[0118] For the topology of subcircuit elements, it is necessary to set external electrical nodes in the subcircuit in ADPSS before the subcircuit will have ports. Therefore, when creating a primary element, first create the subcircuit element, then find the element with the same name as the subcircuit element, and search for the layer with the same name as the subcircuit element. Find the corresponding external node element by the name of the subcircuit element port, and consider the phase of the external node element. If it is single-phase, create an external single-phase electrical node, and if it is three-phase, create an external bus. After that, treat the subcircuit element as an ordinary primary element for topological connection.
[0119] B. Secondary topology:
[0120] Through topological analysis, the connection relationship between components and busbars can be analyzed. However, in ADPSS, secondary components do not need to be connected through busbars. The input port and output port of the component can be directly connected. Since only the connection relationship between the busbar and the component can be obtained during the topological analysis process, the component name information, port number, and port type (input / output) of the component are also required for the secondary component connection. Therefore, the topological connection function is also called once during the secondary topology to record the component port number and component name, which are the information required for the secondary topology.
[0121] Traverse all buses, and based on the information of the secondary components connected to the bus, considering that an input port can only be connected to one output port, find the component with the port type of "Output" on the bus, and connect the output port of the component to the input port of other components with the port type of "Input".
[0122] After the secondary topology is completed, the busbars connected to the secondary components are deleted to avoid isolated busbars affecting the simulation.
[0123] When building a topology, it also includes:
[0124] Processing of special components:
[0125] A. Measuring meter components:
[0126] Voltmeters, ammeters, and multimeters are all measuring instruments. In PSCAD, the output signals of these components may participate in the calculation of the secondary system. Based on the parameter information of such components in PSCAD, the output signal name is obtained, and then UDin is created according to the component that uses the signal to realize signal transmission.
[0127] B. Variable resistor components:
[0128] The variable resistor is a controlled component, and its resistance is controlled by a secondary signal. After the above processing, the sources of all signals have been parsed. According to the signal name at the variable resistor parameter, the corresponding UDout is created at the source of the signal to control the variable resistor.
[0129] Embodiment 2:
[0130] The present invention also proposes a system 200 for generating a topological structure of an electromagnetic transient simulation model, such as Figure 6 As shown, including:
[0131] The initial unit 201 is used to obtain the component topology structure of the power system, determine the connection relationship of the component topology structure, and modify the connection relationship;
[0132] A calculation unit 202, configured to determine the phase of the component endpoints in the component topology structure based on the modified connection relationship;
[0133] The output unit 203 is used to generate a topological structure of the power system in the electromagnetic transient simulation model based on the phase of the component endpoints.
[0134] Wherein, determining the connection relationship of the component topology structure includes:
[0135] Establishing node objects for component endpoints in the component topology structure, traversing the components in the component topology structure, and determining whether all the components have been traversed based on the node objects;
[0136] If the traversal of the component is completed, the connection lines in the topological structure of the component are traversed to determine the connection relationship between the component and the connection line;
[0137] Wherein, when traversing the connection lines in the component topological structure, if the endpoints of the component are not connected to the endpoints on both sides of the connection line, the endpoints of the component are connected to the endpoints on both sides of the connection line.
[0138] Wherein, modifying the connection relationship includes:
[0139] The relationship between the endpoint of the component and the busbar in the connection relationship is determined, and based on the relationship between the endpoint of the component and the busbar, the connection relationship is modified to determine that in the connection relationship, the endpoint of the component is connected to only one busbar.
[0140] Wherein, determining the phase of the component endpoints in the component topology structure includes:
[0141] Classify the components in the component topology structure into phase components and non-phase components, and determine the phase of the non-phase component endpoint according to the phase of the phase component endpoint based on a depth-first search algorithm;
[0142] Non-phase elements, including: resistor elements.
[0143] Wherein, based on the phase of the component endpoints, generating the topology of the power system in the electromagnetic transient simulation model includes:
[0144] Based on the phase of the primary element endpoints and the phase of the secondary element endpoints, a primary topology and a secondary topology are established for the primary elements and the secondary elements in the topological structure of the power system respectively.
[0145] The present invention can ensure the correctness of the model topology connection to the greatest extent, effectively shorten the modeling time, and improve the modeling efficiency. It is of great significance to the research and development of electromagnetic transient simulation software technology and the promotion of new power system electronic transient simulation technology with a high proportion of new energy and a high proportion of power electronics as the main body.
[0146] Embodiment 3:
[0147] Based on the same inventive concept, the present invention also provides a computer device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of the method in the above embodiment.
[0148] Embodiment 4:
[0149] Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both a built-in storage medium in a computer device and an extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of the method in the above embodiment.
[0150] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may 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 codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0151] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0152] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0153] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0154] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0155] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for generating a topological structure of an electromagnetic transient simulation model, characterized in that: include: Acquire a component topology structure of the power system, determine a connection relationship of the component topology structure, and modify the connection relationship; Determining the phase of the component endpoints in the component topology structure based on the modified connection relationship; Based on the phases of the component terminals, a topology of the power system is generated in the electromagnetic transient simulation model.
2. The method according to claim 1, characterized in that The determining of the connection relationship of the component topology structure includes: Establishing node objects for component endpoints in the component topology structure, traversing the components in the component topology structure, and determining whether all the components have been traversed based on the node objects; If the traversal of the component is completed, the connection lines in the topological structure of the component are traversed to determine the connection relationship between the component and the connection line; Wherein, when traversing the connection lines in the component topological structure, if the endpoints of the component are not connected to the endpoints on both sides of the connection line, the endpoints of the component are connected to the endpoints on both sides of the connection line.
3. The method according to claim 1, characterized in that The modifying of the connection relationship comprises: The relationship between the endpoint of the component and the busbar in the connection relationship is determined, and based on the relationship between the endpoint of the component and the busbar, the connection relationship is modified to determine that in the connection relationship, the endpoint of the component is connected to only one busbar.
4. The method according to claim 1, characterized in that: The determining of the phase of the component endpoints in the component topology structure comprises: Classify the components in the component topology structure into phase components and non-phase components, and determine the phase of the non-phase component endpoint according to the phase of the phase component endpoint based on a depth-first search algorithm; Non-phase elements, including: resistor elements.
5. The method according to claim 1, characterized in that The generating of the topology of the power system in the electromagnetic transient simulation model based on the phase of the component endpoints includes: Based on the phase of the primary element endpoints and the phase of the secondary element endpoints, a primary topology and a secondary topology are established for the primary elements and the secondary elements in the topological structure of the power system respectively.
6. A system for generating a topological structure of an electromagnetic transient simulation model, characterized in that: include: An initial unit, used to obtain a component topology structure of a power system, determine a connection relationship of the component topology structure, and modify the connection relationship; A calculation unit, configured to determine the phase of the component endpoints in the component topology structure based on the modified connection relationship; The output unit is used to generate a topology structure of the power system in the electromagnetic transient simulation model based on the phase of the element terminals.
7. The system according to claim 6, characterized in that The determining of the connection relationship of the component topology structure includes: Establishing node objects for component endpoints in the component topology structure, traversing the components in the component topology structure, and determining whether all the components have been traversed based on the node objects; If the traversal of the component is completed, the connection lines in the topological structure of the component are traversed to determine the connection relationship between the component and the connection line; Wherein, when traversing the connection lines in the component topological structure, if the endpoints of the component are not connected to the endpoints on both sides of the connection line, the endpoints of the component are connected to the endpoints on both sides of the connection line.
8. The system according to claim 6, characterized in that The modifying of the connection relationship comprises: The relationship between the endpoint of the component and the busbar in the connection relationship is determined, and based on the relationship between the endpoint of the component and the busbar, the connection relationship is modified to determine that in the connection relationship, the endpoint of the component is connected to only one busbar.
9. The system according to claim 6, characterized in that The determining of the phase of the component endpoints in the component topology structure comprises: Classify the components in the component topology structure into phase components and non-phase components, and determine the phase of the non-phase component endpoint according to the phase of the phase component endpoint based on a depth-first search algorithm; Non-phase elements, including: resistor elements.
10. The system according to claim 9, characterized in that The generating of the topology of the power system in the electromagnetic transient simulation model based on the phase of the component endpoints includes: Based on the phase of the primary element endpoints and the phase of the secondary element endpoints, a primary topology and a secondary topology are established for the primary elements and the secondary elements in the topological structure of the power system respectively.
11. A computer device, characterized in that: include: one or more processors; a processor for executing one or more programs; When the one or more programs are executed by the one or more processors, the method according to any one of claims 1 to 5 is implemented.
12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the method according to any one of claims 1 to 5 is implemented.