Equipment interconnection relation-based asset topological graph automatic drawing method
Through the automated asset topology diagram drawing method, using force-oriented layout and Sugiyama layout algorithm, the layout difficulties, human errors and graph consistency problems in the asset topology diagram drawing of nuclear power plants are solved, and efficient and accurate graph drawing and port recording are achieved.
Patent Information
- Application Number
- CN202411799214.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-05-02
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When drawing the topology chart of the asset of nuclear power plants, the existing technology faces problems such as large amounts of assets, difficulties in typography, errors in humans, graph consistency problems, and inconvenient port recording.
The asset topology diagram automatic drawing method based on device interconnection relationship is adopted, and the asset information is generated by preset asset types and graphics, and the asset graphics and connection lines are automatically arranged using force-oriented layout algorithm and Sugiyama layout algorithm, and port information is recorded.
It effectively improves the efficiency and accuracy of asset topology drawing, reduces human errors, ensures the consistency of the graphics, and provides a convenient port recording method.
Smart Images

Figure CN119918118A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of nuclear power plant operation and maintenance management, and in particular relates to a method for automatically drawing an asset topology map based on equipment interconnection relationships. Background Art
[0002] Nuclear power plants have many assets, and the interconnection between assets is complex. The intuitive and clear representation of the interconnection between assets is crucial for the smooth implementation of daily work such as maintenance, inspection, and safety drills. At present, most power plants use the form of directly drawing topological diagrams in drawing software to record the connection between assets. This method requires manual input of each asset's information, creation of new graphics for the assets, connection of lines according to the connection between assets, and arrangement of the graphics of each asset and the positions of the lines. The above operation not only takes up a lot of man-hours, but also has the following defects:
[0003] (1) It is difficult to effectively layout a large number of assets. Whether it is the position of the asset graphics or the interlacing of the connecting lines, it usually requires multiple adjustments to meet the requirements of intuitiveness and ease of use;
[0004] (2) When there are a large number of assets, human errors are more likely to occur, such as missing an asset or missing or duplicating interconnections;
[0005] (3) Manually arranging the graphics for each asset may result in different graphics being used for the same type of assets, or the same model being used for different types of assets, which may hinder the intuitive transmission of information;
[0006] (4) Traditional drawing software is not convenient for recording ports. Summary of the invention
[0007] The purpose of the present invention is to provide a method for automatically drawing an asset topology map based on the interconnection relationship of equipment, which can realize convenient and effective nuclear power plant equipment asset management. Through the present invention, basic information such as asset types and interconnection relationships can be entered, and a topology map with clear and reasonable layout can be automatically drawn, thereby reducing the hidden dangers of information omissions in manual drawing, improving the accuracy and efficiency of mapping, and the information transmission efficiency of the topology map.
[0008] The technical solution adopted by the present invention is: a method for automatically drawing an asset topology map based on the interconnection relationship of devices, comprising the following steps:
[0009] Step 1: Based on the common asset types of nuclear power plants, the corresponding graphics of common asset types are preset, and the function of self-setting asset types and their corresponding graphics is provided;
[0010] Step 2: Generate a database and its interface to store various types of asset information and the interconnection between assets;
[0011] Step 3: Preset the spacing between graphics, and use the force-directed layout algorithm or the Fruchterman-Reingold algorithm to automatically arrange asset graphics according to the interconnection relationship and hierarchical relationship between assets;
[0012] Step 4: Draw connecting lines between asset graphics with interconnected relationships based on the interconnected relationships between assets, and use the Sugiyama layout algorithm to automatically generate waypoints so that the connecting lines do not overlap with asset graphics;
[0013] Step 5: On the connection line between asset graphics, record the port information at both ends.
[0014] In step 1, after presetting the layout of the asset graphics and the default distances between them, the assets are placed and adjusted according to the order of the assets.
[0015] The step 3 includes the following:
[0016] Step 31: Set the positions of all nodes in the graph to random values and set a total temperature variable;
[0017] Step 32: For each pair of nodes (i, j) in the graph, apply the repulsion formula To determine the magnitude of the repulsive force, k rep Represents the repulsion coefficient, which is a constant used to adjust the magnitude of the repulsion; d i,j 2 Represents the distance between node i and node j;
[0018] Step 33: For each pair of connected nodes (i, j) in the graph, calculate the gravity formula (F att =k att *d i.j ) to determine the magnitude of gravity, where k att Represents the gravitational coefficient, which is a constant used to adjust the magnitude of gravity; d i.j Represents the distance between node i and node j;
[0019] Step 34: For each node, calculate its total result force and use it to update the node position. However, the moving distance each time cannot exceed the set temperature value;
[0020] Step 35: After each iteration, reduce the temperature value so that the movement of the node can gradually stabilize;
[0021] Step 36: Repeat steps 32-35 until the set number of iterations is reached, or the moving distances of all nodes are less than a set threshold.
[0022] The total resultant force in step 34 includes repulsive force and attractive force.
[0023] The step 4 includes the following:
[0024] Step 41: Divide the nodes into different layers according to the direction of the edge. If an edge spans multiple layers, add a pseudo node to connect it to each layer it passes through, ensuring that each edge only connects two adjacent layers.
[0025] Step 42: Change the order of nodes in each layer to reduce edge crossings;
[0026] Step 43: Adjust the horizontal position of the node while ensuring the node order of the previous step;
[0027] Step 44: Draw a graph of the generated node positions and remove pseudo nodes and edges.
[0028] The beneficial effect of the present invention is that the method can effectively improve the efficiency and accuracy of drawing the power plant asset topology map and reduce the possibility of human error. Especially for occasions with a large number of equipment types and quantities, the method can greatly save the time used in creating and arranging asset graphics and arranging the connections between them, and provide an easy-to-use port recording method. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 The present invention is a schematic diagram of the development process of a method for automatically drawing an asset topology map based on device interconnection relationships according to an embodiment of the present invention.
[0030] Figure 2 The present invention is a schematic diagram of the use process of a method for automatically drawing an asset topology map based on device interconnection relationships according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0032] The present invention provides an automatic drawing method of an asset topology map based on the interconnection relationship of equipment. Based on the common asset types of nuclear power plants, corresponding graphics of common asset types are preset, and a function of independently setting asset types and their corresponding graphics is developed; a database and its interface are developed to store various types of asset information and the interconnection relationship between assets; an automatic graphic arrangement function is developed, the spacing between graphics is preset, and the asset graphics are automatically arranged according to the interconnection relationship and the superior-subordinate relationship between assets using the Fruchterman Reingold algorithm; an automatic line drawing function is developed, and connecting lines are drawn between asset graphics with interconnection relationships according to the interconnection relationship between assets, and waypoints are automatically generated using the Sugiyama layout algorithm, so that the connecting lines do not overlap with the asset graphics and the intersection between the connecting lines is as small as possible; a port recording function is developed, and the port information at both ends is recorded on the connecting line between asset graphics.
[0033] like Figure 1 As shown, the present invention provides a method for automatically drawing an asset topology map based on device interconnection relationships, comprising the following steps:
[0034] Step 1: Based on the common asset types of nuclear power plants, which usually include but are not limited to key components such as reactor equipment, cooling system equipment, power system equipment, control system equipment, and safety system equipment, covering various infrastructure and functional modules required for the operation of nuclear power plants, preset corresponding graphics for common asset types. The correspondence between assets and graphics is based on the type and functional characteristics of the assets, and representative graphic symbols are designed or selected for them. For example, reactor equipment may be represented by a simplified icon of the reactor, and power system equipment may be represented by electrical symbols or the outline of related equipment. Develop the function of autonomously setting asset types and their corresponding graphics, and provide a user-friendly interface to allow users to add new asset types as needed, or modify the corresponding graphics of existing asset types. Users can select or upload new graphic symbols through the interface and associate them with specific asset types, thereby realizing customized settings of asset types and graphic symbols;
[0035] To achieve efficient and clear asset topology drawing, it is necessary to arrange the asset graphics reasonably as a basis. The superiority and interconnection relationship between assets determines the relative position relationship between each asset graphics. After presetting the layout of asset graphics and the default distance between them, follow the asset sequence, which is determined by the hierarchical relationship and interconnection logic of the assets. For example, starting from the main device, according to its upstream and downstream connection relationship, gradually expand to related auxiliary equipment and systems, to ensure that the subordinate and connection relationship between assets can be clearly reflected in the drawing process for placement and adjustment, and draw as few cross-connection lines as possible.
[0036] Step 2: Develop a database and its interface. The database contains the asset number, name, type, location, etc., as well as the interconnection data between assets, including connection type, connection direction, port information, etc. The interface is usually in the form of an API interface based on network communication, which supports data addition, deletion, modification and query operations to provide the ability to interact with external systems or applications for data storage.
[0037] Step 3: Develop the automatic layout function of the graph, which is implemented in the following way: First, set the positions of all nodes in the graph to random values, and set a total temperature variable. Then, for each pair of nodes in the graph, apply the repulsion formula to determine the magnitude of the repulsion, which is used to change the moving position of each node so that each node is as far away from other nodes as possible; at the same time, for each pair of connected nodes in the graph, calculate the gravity formula to determine the magnitude of the gravity, and then use the gravity to change the moving position of each node so that the two nodes are as close as possible. Next, for each node, calculate its total result force (repulsion and gravity) and use it to update the node position, but the moving distance each time cannot exceed the set temperature value. After each iteration, the temperature value needs to be appropriately lowered so that the movement of the node can gradually stabilize. Repeat the above steps until the set number of iterations is reached, or the moving distance of all nodes is less than a certain set threshold, reaching a stable state, thereby completing the automatic layout, presetting the spacing between graphics, and using the force-directed layout algorithm or the Fruchterman Reingold algorithm to automatically arrange the asset graphics according to the interconnection relationship between assets and the superior-subordinate relationship;
[0038] Step 31: Set the positions of all nodes in the graph to random values, and set a total temperature variable (which can be regarded as the temperature in the simulated annealing algorithm).
[0039] Step 32: For each pair of nodes (i, j) in the graph, apply the repulsion formula To determine the magnitude of the repulsive force, k rep Represents the repulsion coefficient, which is a constant used to adjust the magnitude of the repulsion; d i,j 2 Represents the distance between node i and node j. Generally, the repulsive force is inversely proportional to the square of the distance between the nodes. The repulsive force is used to change the moving position of each node so that each node is as far away from other nodes as possible.
[0040] Step 33: For each pair of connected nodes (i, j) in the graph, calculate the gravity formula (F att =k att *d i.j ) to determine the magnitude of gravity, where k attRepresents the gravitational coefficient, which is a constant used to adjust the magnitude of gravity; d i.j represents the distance between node i and node j. Usually, the gravitational force is proportional to the distance between the nodes. This gravitational force is then used to change the moving position of each node so that the two nodes are as close as possible.
[0041] Step 34: For each node, the total result force (repulsion and attraction) is calculated and used to update the node position. However, the moving distance each time cannot exceed the set temperature value to avoid unstable results.
[0042] Step 35: After each iteration, the temperature value needs to be appropriately lowered so that the movement of the nodes can gradually stabilize.
[0043] Step 36: Repeat steps 32-35 until the set number of iterations is reached, or the moving distances of all nodes are less than a set threshold, at which point the system is considered to have reached a stable state.
[0044] Step 4: Develop the automatic line drawing function, which relies on the analysis of the interconnection relationship between assets and the application of graphic layout algorithms. First, determine the connection lines that need to be drawn based on the interconnection relationship between assets. These connection lines will connect the asset graphics with interconnection relationships. Then, use the Sugiyama layout algorithm to optimize the layout of the connection lines. The algorithm will automatically generate waypoints (i.e., the middle points on the connection lines) to ensure that the connection lines do not overlap with the asset graphics and minimize the intersections between the connection lines. By constantly adjusting the position of the waypoints and the direction of the connection lines, the best visual and layout effects are achieved. According to the interconnection relationship between assets, connection lines are drawn between the asset graphics with interconnection relationships, and the Sugiyama layout algorithm is used to automatically generate waypoints so that the connection lines do not overlap with the asset graphics and the intersections between the connection lines are minimized;
[0045] Step 41: Divide the nodes into different layers according to the direction of the edge. If an edge spans multiple layers, add a pseudo node to connect to each layer it passes through to ensure that each edge only connects two adjacent layers.
[0046] Step 42: Change the order of nodes in each layer to reduce edge crossings.
[0047] Step 43: Adjust the horizontal position of the node while maintaining the node order of the previous step.
[0048] Step 44: Draw a graph of the generated node positions and remove pseudo nodes and edges.
[0049] Step 5: Develop the port recording function, which is responsible for recording the port information at both ends of each connection line, including key data such as port type, identification, and possible configuration parameters. These data will be stored in the system database or a specific data structure for subsequent retrieval, query or implementation of other related functions. The port information at both ends of the connection line between asset graphics is recorded.
[0050] Please see Figure 2 The present invention provides a method for automatically drawing an asset topology map based on device interconnection relationships, wherein the use process includes the following steps:
[0051] Step 1: The user confirms the asset graphics corresponding to the preset asset type and can add or modify them according to actual needs.
[0052] Step 2: The user fills in the interconnection relationship and other information of the assets by uploading or manually entering.
[0053] Step 3: The user selects some assets that need to be mapped, or directly uploads a list of asset information that meets the format required to be mapped, selects the graphic layout, and clicks to start automatic mapping.
[0054] Step 4: The system checks whether all selected assets have corresponding graphics. If there are any missing, the user will be prompted to supplement them. If there are no missing, proceed to the next step.
[0055] Step 5: The system places the corresponding asset graphics on the screen in order according to the asset number and fills in the asset information. It makes adjustments based on the interconnection between the assets to make the arrangement neat and orderly.
[0056] Step 6: The system draws connection lines between interconnected assets based on the interconnection relationship between assets. The connection lines cannot pass through the locations where asset graphics exist to avoid mutual covering.
[0057] Step 7: The system automatically generates waypoints on the connecting lines and arranges the connecting lines so that there are as few intersections as possible.
[0058] Step 8: The system automatically records the port numbers of the devices at both ends of the connection on the connection line.
[0059] Step 9: The system presents the completed topology map to the user. The user can move the asset graphics and connection line waypoints by dragging in the map. When the asset graphics are moved, the related connection lines will also move together. The user can also add asset graphics, connection lines, and modify asset or connection relationship information independently. These modifications will not be synchronized to the asset information in the database.
[0060] The present invention combines the Fruchterman Reingold algorithm and the Sugiyama layout algorithm to significantly improve the efficiency and accuracy of drawing the power plant asset topology map, thereby reducing the risk caused by human errors. Especially in the case of complex equipment types and quantities, this method can greatly reduce the time spent on creating and arranging asset graphics and drawing the connection lines between them, and provides an easy-to-use port recording method.
[0061] It should be understood that parts not elaborated in detail in this specification belong to the prior art.
[0062] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.
Claims
1. A method for automatically drawing an asset topology map based on device interconnection relationships, characterized in that: The following steps are involved: Step 1: Based on the common asset types of nuclear power plants, the corresponding graphics of common asset types are preset, and the function of self-setting asset types and their corresponding graphics is provided; Step 2: Generate a database and its interface to store various types of asset information and the interconnection between assets; Step 3: Preset the spacing between graphics, and use the force-directed layout algorithm or the Fruchterman Reingold algorithm to automatically arrange asset graphics according to the interconnection relationship and hierarchical relationship between assets; Step 4: Draw connecting lines between asset graphics with interconnected relationships based on the interconnected relationships between assets, and use the Sugiyama layout algorithm to automatically generate waypoints so that the connecting lines do not overlap with asset graphics; Step 5: On the connection line between asset graphics, record the port information at both ends.
2. The method for automatically drawing an asset topology map based on device interconnection relationships according to claim 1, characterized in that: In step 1, after presetting the layout of the asset graphics and the default distances between them, the assets are placed and adjusted according to the order of the assets.
3. The method for automatically drawing an asset topology map based on device interconnection relationships according to claim 1, characterized in that: The step 3 includes the following: Step 31: Set the positions of all nodes in the graph to random values and set a total temperature variable; Step 32: For each pair of nodes (i, j) in the graph, apply the repulsion formula To determine the magnitude of the repulsive force, k rep Represents the repulsion coefficient, which is a constant used to adjust the magnitude of the repulsion; d i,j 2 Represents the distance between node i and node j; Step 33: For each pair of connected nodes (i, j) in the graph, calculate the gravity formula (F att =k att *d i.j ) to determine the magnitude of gravity, where k att Represents the gravitational coefficient, which is a constant used to adjust the magnitude of gravity; d i.j Represents the distance between node i and node j; Step 34: For each node, calculate its total result force and use it to update the node position. However, the moving distance each time cannot exceed the set temperature value; Step 35: After each iteration, reduce the temperature value so that the movement of the node can gradually stabilize; Step 36: Repeat steps 32-35 until the set number of iterations is reached, or the moving distances of all nodes are less than a set threshold.
4. The method for automatically drawing an asset topology map based on device interconnection relationships as claimed in claim 3, characterized in that: The total resultant force in step 34 includes repulsive force and attractive force.
5. The method for automatically drawing an asset topology map based on device interconnection relationships according to claim 1, characterized in that: The step 4 includes the following: Step 41: Divide the nodes into different layers according to the direction of the edge. If an edge spans multiple layers, add a pseudo node to connect to each layer it passes through to ensure that each edge only connects two adjacent layers.
6. The method for automatically drawing an asset topology map based on device interconnection relationships as claimed in claim 5, characterized in that: The step 4 includes the following: Step 42: Change the order of nodes in each layer to reduce edge crossings.
7. The method for automatically drawing an asset topology map based on device interconnection relationships as claimed in claim 6, characterized in that: The step 4 includes the following: Step 43: Adjust the horizontal position of the node while maintaining the node order of the previous step.
8. The method for automatically drawing an asset topology map based on device interconnection relationships as claimed in claim 7, characterized in that: The step 4 includes the following: Step 44: Draw a graph of the generated node positions and remove pseudo nodes and edges.