Distribution network single line diagram generation method and system for digital distribution network
By intelligently dividing the main and branch equipment, and adopting a directional strategy of horizontal rightward main trunk and vertical staggered branches, as well as dynamic spacing adjustment, the problem of insufficient space utilization in traditional single-line distribution network diagrams is solved, achieving a compact and reasonable layout and efficient drawing presentation.
Patent Information
- Application Number
- CN202510874291.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-11-04
AI Technical Summary
Traditional manual drawing of single-line power distribution network diagrams is inefficient, while automatic layout algorithms result in insufficient use of drawing space, affecting the intuitiveness and readability of the topology structure.
By intelligently dividing the main and branch devices, adopting a directional strategy of horizontal rightward mains and vertical staggered branches, combined with a fixed-spacing progressive anti-overlap layout algorithm, the device spacing and connection line routing strategy are dynamically adjusted to optimize the layout space utilization.
It significantly improves the space utilization and topological clarity of drawings, reduces wasted drawing area, and enhances the aesthetics and readability of drawings.
Smart Images

Figure CN120893152A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of digital power grid, and particularly relates to a distribution network single-line diagram generation method and system for a digital distribution network. BACKGROUND
[0002] With the acceleration of new power system construction, distributed photovoltaic, wind power, energy storage and other new energy equipment are massively connected to the distribution network side, and the scale and complexity of the distribution network are significantly improved. This trend makes the operation and control of distribution network equipment face more severe challenges, and it is urgent to realize efficient management through digital means. As an important carrier of energy transformation, the digital distribution network can integrate distribution network data resources and support equipment management, power failure analysis, load transfer and other key businesses. Among them, the distribution network single-line diagram presents the topology structure through simplified electrical symbols and line connection relationships, and becomes a basic tool for visualization and decision analysis of the digital distribution network.
[0003] In view of the low efficiency of traditional manual drawing of single-line diagrams, the prior art proposes an automatic generation method to improve the efficiency. For example, patent CN112685868A discloses a distribution network single-line diagram generation method, device and storage medium. The method generates a single-line diagram through an automatic layout algorithm, specifically including analyzing distribution network topology data, dividing electrical connection relationships, constructing branch outer boxes, and performing device layout based on the outer boxes.
[0004] However, the above method has a coarse granularity in the cutting process of the branch outer box, resulting in a large amount of unused white space inside the outer box. Due to the large number and dense distribution of devices on the distribution network side, the problem of insufficient space utilization will cause the single-line diagram layout to be too empty, which not only affects the aesthetics of the drawing, but also may reduce the intuitiveness and readability of the topology structure, which is not conducive to subsequent operation and maintenance analysis and decision support. SUMMARY
[0005] The purpose of the present application is to provide a distribution network single-line diagram generation method for a digital distribution network, which can solve the problem of low efficiency of traditional manual drawing and overcome the defect of waste of drawing paper of the existing automatic layout algorithm. On the other hand, a distribution network single-line diagram generation system for a digital distribution network is provided.
[0006] TECHNICAL SOLUTION: The distribution network single-line diagram generation method disclosed by the present application comprises the following steps:
[0007] (1) traversing the topology relationship of all devices in the distribution network, and dividing the devices into trunk devices and branch devices according to a preset weight rule;
[0008] (2) setting the layout direction of the main equipment and branch equipment, wherein the initial layout direction of the main equipment is set to horizontal right, and the layout direction of the branch equipment is the vertical direction of the upper branch, and the layout directions of adjacent branches are staggered with each other;
[0009] (3) arranging the equipment according to the layout direction of the branch to which the equipment belongs, and placing the current equipment at the adjacent position of the last equipment along the layout direction at a preset fixed interval, if it is detected that there is overlap between the equipment, then the current equipment is continuously moved along the layout direction, and each time the equipment is moved by a fixed interval until there is no overlap;
[0010] (4) filling the connection lines between the equipment, wherein the connection lines of the station equipment are drawn according to the corresponding preset wiring strategy according to the layout direction.
[0011] The application intelligently divides the main equipment and branch equipment based on the weight rule, ensures the clear network hierarchy, optimizes the layout space utilization from the source, adopts the horizontal right direction strategy of the main equipment and the vertical staggered direction strategy of the branch equipment, makes the topology trend intuitive and the path compact, reduces the horizontal / vertical redundant space of the drawing, through the fixed interval progressive anti-overlapping layout algorithm, eliminates the graphic overlap while dynamically compressing the equipment spacing, maximizes the use of the effective area of the drawing, and combines the layout direction to adaptively select the optimal connection line wiring strategy, so as to realize the shortest path wiring and avoid the space waste caused by the roundabout wiring. Finally, under the premise of ensuring the topology accuracy and readability, the space utilization of the drawing is significantly improved, the area waste of the drawing caused by loose layout is reduced, and the printing and storage costs are reduced.
[0012] Preferably, step 1 comprises:
[0013] all paths from the power supply equipment to the terminal equipment are traversed through topology search, and a T node encountered in the traversal process is recorded, the T node being an equipment with multiple subsequent branches;
[0014] The weight of each equipment is calculated, and the calculation formula is:
[0015]
[0016] wherein W is the weight value of the equipment, B is the corresponding basic weight value of the equipment type, N is the number of subordinate branches, is the weight value of the current i-th branch;
[0017] The weight of each branch is calculated according to the equipment weight, and the branch with the largest weight is determined as the main branch, and the remaining branches are taken as the subordinate branches of the main branch.
[0018] The T node is identified through topology search and the device weight is dynamically calculated, the importance of each branch in the topology is accurately quantified, and the main trunk and branch are intelligently distinguished; the weight formula design ensures that the main trunk determination is more in line with the actual power supply level, avoids misjudgment caused by the reliance on manual experience in traditional methods, and provides accurate and reliable network structure division basis for subsequent automatic layout.
[0019] Preferably, for the T node with more than 3 branches in step 2, the layout direction setting method comprises:
[0020] The lower branches are divided into two parts and are respectively laid on the two sides of the T node;
[0021] The layout directions of the two parts of branches are respectively perpendicular to the layout direction of the current T node.
[0022] By symmetrically distributing the lower branches of the multi-branch T node in the two vertical directions on the two sides, the layout congestion problem of the complex branch node is effectively solved, not only making the topology more clear and intuitive, but also avoiding the line crossing and space waste caused by the same side arrangement of multi-branch, significantly improving the readability and space utilization of the drawing.
[0023] Preferably, the device layout method in step 3 comprises:
[0024] The initial coordinates and fixed interval value of the power supply device are set, and the current device is arranged at the fixed interval of the last device along the layout direction;
[0025] For the T node device, after being arranged according to the fixed interval, all the lower branches are arranged in turn; the outer package box of each branch is calculated, the outer package box of the main branch is the accumulation of the outer package boxes of all the devices on the main trunk, and the outer package box of the lower branch is the accumulation of all the subsequent device outer package boxes along the layout direction from the T node; if overlap is detected, the T node and its lower branches are moved as a whole along the layout direction by the fixed interval until there is no overlap;
[0026] For the station building device, a special layout method is adopted, when the layout direction is upward, the point device is arranged first and then adjusted to align with the outgoing point of the last device; when the layout direction is downward, the point device is directly arranged; when the layout direction is horizontal and there is a subsequent device, the point device is arranged first and then adjusted.
[0027] By dynamically calculating the outer package box range of the branch and moving the T node branch group as a whole, the overlap problem is intelligently eliminated under the premise of ensuring the fixed interval between devices, and the direction adaptive fine positioning strategy (such as outgoing point alignment adjustment) is adopted for the station building device, realizing the compact layout of the complex topology structure, avoiding the low efficiency problem of traditional device-by-device adjustment, and ensuring the natural trend of the connection line of the station building device, significantly improving the neatness and readability of the single-line drawing.
[0028] Preferably, the layout method for T nodes containing more than 3 branches includes:
[0029] Divide the lower branches into two groups and arrange them on both sides of the T node;
[0030] Arrange the branches in each group in sequence according to the layout direction, and when it is detected that a subsequent branch overlaps with a previously laid branch, translate the overlapping branch by a fixed distance along the T node layout direction until the overlap is eliminated;
[0031] After the layout of the branches on both sides is completed, calculate the positional deviation of the center point of the outer box of each branch group from the T node, and translate all the devices in each branch group in the opposite direction of the T node layout direction by a distance equal to the absolute value of the distance from the center point of the outer box of the group to the T node.
[0032] By intelligently grouping and symmetrically laying the lower branches of the multi-branch T node (independent arrangement of branches on both sides and dynamic elimination of intra-group overlap), and combining with the outer box center point calibration technology (overall translation to make the branch group center of gravity symmetrically distributed on both sides of the T node), the compact and balanced arrangement of complex multi-branch nodes is achieved, avoiding the layout congestion and line crossing caused by traditional single-sided stacking, and ensuring the visual balance of the topology through mathematical positioning, significantly improving the aesthetic appearance and space utilization of the drawing.
[0033] Preferably, the layout method for the subordinate branches of the T node station equipment includes:
[0034] When the layout direction of the station equipment is upward, the branch connected to the outgoing point of the previous device is determined as the main branch, and the other branches are symmetrically arranged on both sides of the main branch at a preset interval;
[0035] When the layout direction of the station equipment is not upward, calculate the weight value of each subordinate branch, which is determined according to the number and type of devices connected to the branch, select the branch with the largest weight value as the main branch, and the other branches are symmetrically arranged on both sides of the main branch at a preset interval.
[0036] By intelligently identifying the main branch of the station equipment (based on the position of the outgoing point or the weight of the branch), and using a symmetric layout strategy based on the main branch, the hierarchical and balanced arrangement of the subordinate branches of the station equipment is achieved. This method not only ensures the prominent display of the key power supply path (main branch), but also effectively optimizes the branch spacing through weight calculation and symmetric distribution, avoiding the line crossing or space waste caused by traditional uniform layout, significantly improving the clarity of the topology around the station equipment and the space utilization of the drawing.
[0037] Preferably, the method for filling the connection line in step 4 includes:
[0038] Determine whether the first and last nodes of the connection line contain station equipment;
[0039] When the station building equipment is not included, the connection line is directly filled in;
[0040] When the station building equipment is included, if the layout direction of the station building equipment is upward, the connection line is directly filled in; if the layout direction of the station building equipment is downward or horizontal, the connection line is filled in according to the horizontal-vertical logic calculation of the turning point.
[0041] The horizontal-vertical logic calculation of the connection line refers to that the connection line is composed of horizontal line segments and vertical line segments, and adjacent line segments maintain a vertical relationship.
[0042] By intelligently identifying the type and layout direction of the station building equipment, the optimal wiring strategy is dynamically selected, the direct connection line is used for the non-station building equipment or the station building equipment arranged upward to ensure simplicity, and the horizontal-vertical turning point calculation (forced orthogonal wiring) is used for the station building equipment arranged downward or horizontally, so that the visual confusion caused by the intersection of diagonal lines is effectively avoided while the intuitive connection line is ensured, the drawing is not only in line with the electrical wiring specification but also improves the readability, and the line presentation effect of the complex station building equipment is particularly optimized.
[0043] In a second aspect, the distribution network single-line diagram generation system provided by the present application comprises:
[0044] A main branch generation module is configured to traverse the topological relationship of all devices in the distribution network, and divide the devices into main devices and branch devices according to a preset weight rule;
[0045] A layout direction setting module is configured to set the layout direction of the main devices and the branch devices, wherein the initial layout direction of the main devices is set to be horizontal right, and the layout direction of the branch devices is taken as the vertical direction of the upper branch, and the layout directions of adjacent branches are staggered with each other;
[0046] A device layout module is configured to perform device layout according to the layout direction of the branch to which the device belongs, place the current device at the adjacent position of the previous device along the layout direction at a preset fixed interval, and if it is detected that there is overlap between the devices, continue to move the current device along the layout direction, and move the current device by one fixed interval each time until there is no overlap.
[0047] A connection line filling module is configured to fill the connection line between the devices, wherein the connection line of the station building equipment is drawn according to the corresponding preset wiring strategy according to the layout direction thereof.
[0048] In a third aspect, the present application further provides a computer device comprising a memory and a processor, and the memory stores a computer program capable of being loaded and executed by the processor to perform the distribution network single-line diagram generation method for the digital distribution network.
[0049] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the power distribution network single-line diagram generation method for digital power distribution network.
[0050] Advantages: Compared with the prior art, the present application has the following advantages: 1. Rapid mapping is realized by automatic topology traversal and intelligent weight distribution, which significantly improves the mapping efficiency; the compact and reasonable layout effect is realized by branch outsourcing box detection and dynamic spacing adjustment mechanism, which effectively avoids the waste of drawing space; 2. The T node multi-branch processing mechanism effectively solves the problem of multi-branch intersection and overlap in complex power distribution network through bidirectional grouping layout and reverse translation algorithm, and ensures the clear expression of the topology relationship; 3. For the special connection requirements of station equipment, a differentiated wiring strategy based on layout direction is developed, and through automatic alignment of outgoing points and intelligent inflection point calculation, the connection accuracy and standardization are ensured; 4. The standardized "horizontal and vertical" wiring method is adopted, which ensures the accuracy of the electrical topology relationship, improves the readability and standardization of the drawing, and meets the graphical requirements of digital power distribution network. BRIEF DESCRIPTION OF DRAWINGS
[0051] Figure 1 The method flowchart of the present application is shown in the figure;
[0052] Figure 2 The branch direction setting flowchart of the present application is shown in the figure;
[0053] Figure 3 The overlap detection schematic diagram in the layout process of the present application is shown in the figure;
[0054] Figure 4 The outsourcing box expansion schematic diagram of the present application is shown in the figure;
[0055] Figure 5 The branch outsourcing box calculation result schematic diagram of the present application is shown in the figure;
[0056] Figure 6 The multi-branch T node translation beautification schematic diagram of the present application is shown in the figure;
[0057] Figure 7 The station house translation schematic diagram of the present application is shown in the figure. DETAILED DESCRIPTION
[0058] The technical solutions of the present application will be further described below with reference to the accompanying drawings.
[0059] As shown in the figure, the power distribution network single-line diagram generation method of the present application comprises the following steps: Figure 1
[0060] Step 1, the main branch generation module is used for marking the main trunk and other branches, which includes topology search and main trunk division.
[0061] (1) Topology search
[0062] From the starting device, traverse all the end devices and save the path to the set, and then save each branch name and each path set as a K-V key value pair.
[0063] In addition, save all T nodes in the traversal process to a set. T nodes are devices containing multiple subordinate branches. Due to their special nature, they need to be used as the basis for subordinate branches in the layout later.
[0064] (2) Main trunk division
[0065] First, calculate the weight of each device according to the device basic weight and subordinate branch weight. The calculation formula is:
[0066]
[0067] Where W is the weight value of the device, B is the corresponding basic weight value of the device type, N is the number of subordinate branches, is the weight value of the current i-th branch.
[0068] According to the branch path set and the weight of each device, calculate the weight of each branch. The branch with the largest weight is taken as the main trunk, and the remaining branches are taken as the subordinate branches of the main trunk.
[0069] Step 2, the layout direction setting module divides the layout direction into four categories according to the principle of horizontal and vertical, i.e. horizontal right, horizontal left, vertical up and vertical down. Taking the setting of the layout direction of the subsequent branch directly connected to the main trunk as an example, the layout direction of the main trunk is set to horizontal right by default, and the subordinate branches are evenly distributed on both sides of the main trunk. The main direction of the subordinate branches is determined to be vertical down, and the secondary direction is vertical up. Get the number of subordinate branches of the T node on the main trunk, and select different layout direction setting logics according to the number. The flow chart of this part is shown in Figure 2
[0070] If the number of branches is 1, if there is a previous T node on the main trunk, the number of branches of the T node is 1, and the direction of the branch is the main direction vertical down, then the direction of the branch of the current T node is set to the secondary direction vertical up, otherwise the direction of the branch of the current T node is set to the main direction vertical down.
[0071] If the number of branches is 2, the layout direction of the first branch is set to the main direction vertical down, and the layout direction of the second branch is set to the secondary direction vertical up.
[0072] If the number of branches is 3, the branch with the largest weight is set to the main direction vertical down, and the other two are set to the secondary direction vertical up.
[0073] If the number of branches is greater than 3, the first half of the branches are set as the main direction vertically downward, and the second half of the branches are set as the secondary direction vertically upward.
[0074] The subsequent branches are added to the branch queue, and the execution is repeated until the queue is empty. If the layout direction of the upper branch is vertical, the layout direction of the lower branch is horizontal, the main direction is horizontally right, and the secondary direction is horizontally left, and the layout directions of all branches are sequentially set according to the above logic.
[0075] In step 3, the device layout module performs overlap detection and solves during the layout of the device, and the utilization rate of the drawing is improved by means of fine-grained division of the branch outer box, and the user's reading experience is improved.
[0076] First, the coordinates of the power supply device are set to (0, 0), and a fixed interval size d is set, the horizontal coordinate increases along the horizontal right direction, and the vertical coordinate increases along the vertical downward direction. When the subsequent device of the power supply device is laid out, the device is laid out at a fixed interval d of the power supply device along the layout direction. According to this logic, the subsequent device is laid out according to the coordinates and layout direction of the previous device.
[0077] Since the T node contains subordinate branches, its subsequent branches may overlap with existing branches, so overlap detection is needed by calculating the branch outer box.
[0078] First, the T node device is placed at a fixed interval of the previous device according to the layout logic of the ordinary device, and then the lower branches are laid out. After the layout is completed, it is checked whether there is overlap between the branch outer boxes. If there is overlap, the T node and its lower branches are moved a fixed interval d in the layout direction of the T node, and so on, until there is no overlap, as shown in the schematic diagram Figure 3 , in which the length of each connection line before translation is a fixed interval d, and the distance after translation is 2d.
[0079] (1) Calculate the outer box
[0080] First, it is judged whether the current branch is the main trunk. If it is the main trunk, the device outer box is the accumulation of all device outer boxes of the main trunk. Since the connection line of the branch needs to be included, the above accumulation is a process of gradually expanding the branch outer box to include all device outer boxes, as shown in the diagram Figure 4 . The left frame of the final branch outer box is the minimum horizontal coordinate of all devices, the right frame is the maximum horizontal coordinate of all devices, the upper frame is the minimum vertical coordinate of all devices, and the lower frame is the maximum vertical coordinate of all devices.
[0081] If the current branch is not the main branch, the head node of each branch is a T node at this time, and the outer package box of the downstream branch is calculated according to the layout direction. The calculation method is the accumulation of all subsequent device outer package boxes of the current T node in the layout direction. Each T node is contained in the outer package box of the branch to which it belongs. The calculation result of the final branch outer package box is shown in the schematic diagram of Figure 5 .
[0082] All branch outer package boxes are saved in a list for subsequent judgment of whether there is overlap between the outer package boxes. The logic for judging whether there is overlap is that the four corner coordinates of a certain outer package box fall into another outer package box.
[0083] (2) Layout of subsequent branches of T nodes with more than 3 branches
[0084] For T nodes containing more than 3 branches, the subsequent branches are arranged on both sides of the T node. For a specific side, the layout direction of all branches on that side is the same, and the layout is performed according to the layout logic of step 3. The branches laid out later and the branches laid out earlier must have overlap, which is solved by translating a fixed distance along the T node layout direction. The layout of one side is completed, and the layout of the other side is similar.
[0085] After the layout of the branches on both sides is completed, considering the beauty of the layout effect, the devices on both sides are uniformly translated in the opposite direction of the T node layout direction. For a specific side, the translation distance is the absolute value of the difference between the center point of the outer package box of all devices on that side and the T node along the T node layout direction. Taking the case where the T node layout direction is horizontal to the right and the side to be translated is the upper side of the T node as an example, all devices on that side should be translated a certain distance along the horizontal left. Let the coordinates of the T node be (x0, y0), and the coordinates of the center point of the outer package box of all devices on that side be (x1, y1). The calculation method of the translation distance d' is as follows:
[0086] d' = |x0-x1| (2)
[0087] where d' represents the absolute value of the difference between the center point of the outer package box and the horizontal coordinate of the T node. The schematic diagram of this part is shown in Figure 6 .
[0088] (3) Layout of station equipment and subsequent branches
[0089] ① Layout of station
[0090] The station equipment is connected to other devices through the outgoing point, and the outgoing point is always on the lower side of the station bus. The outgoing point connected to the previous device is on the leftmost side. Different layout logic is selected for the layout of the station according to the different layout directions of the station.
[0091] When the layout direction of the station building device is vertically upward, after logical layout according to step 3, the station building device is translated to the right by a distance, and the horizontal coordinates of the corresponding outlet point of the station building are aligned with the previous device;
[0092] When the layout direction of the station building device is vertically downward, the station building is regarded as a point device, and is logically laid out below the previous device according to step 3;
[0093] When the layout direction of the station building device is leftward or rightward, if the station building has no subsequent device, the station building is directly laid out as a point device according to step 3, otherwise, the coordinates of the station building are set as a point device, and then the subsequent device is laid out. In order to improve the overall layout, the station building device is moved upward by a distance d after the layout is completed. * The part of the schematic diagram is shown in Figure 7
[0094] 2. Layout of the subsequent branch of the station building
[0095] Since the station building device includes multiple subsequent branches, which are connected to the station building through the outlet point of the station building, the layout of the subsequent branches may overlap. In the layout process, a branch is marked as the most important branch, and other branches are arranged on both sides of the branch, so as to realize the layout beauty.
[0096] First, the layout direction of the station building device is judged. When the layout direction is vertically upward, the branch connected to the outlet point of the previous device is regarded as the most important branch, and other branches are arranged on both sides of the branch. When the layout direction is not vertically upward, the weights of all subsequent branches of the station building are calculated, the branch with the largest weight is laid out first, and other branches are arranged on both sides of the branch.
[0097] Step 4, the connection line filling module first judges whether the head and tail nodes of the connection line are station buildings. If yes, different connection line filling strategies are selected according to the layout direction of the station building device, and if not, the connection line is directly filled.
[0098] For convenience of description, it is assumed that the head node of the connection line is the previous device, and the tail node is the station building device. The layout direction of the station building device is obtained. When the layout direction of the station building device is upward, the connection line is directly filled. When the layout direction of the station building device is downward, a set of inflection points from the previous device to the outlet point of the station building are recorded according to the horizontal and vertical logical wiring, and then all the connection lines are filled. When the layout direction of the station building device is leftward or rightward, the inflection points from the previous device to the outlet point of the station building are recorded according to the horizontal and vertical logical wiring, and then the connection line is filled. The layout logic when the head node of the connection line is the station building device is similar to the above logic.
Claims
1. A method for generating single-line diagrams of distribution networks for digital distribution networks, characterized in that, Includes the following steps: (1) Traverse the topology of all devices in the distribution network and divide the devices into main devices and branch devices according to the preset weight rules; (2) Set the layout direction of the main equipment and the branch equipment. The initial layout direction of the main equipment is set to horizontal to the right. For the branch equipment, the layout direction is taken as the vertical direction of the upper branch, and the layout directions of adjacent branches are staggered. (3) Arrange the equipment according to the layout direction of the branch to which the equipment belongs. Place the current equipment in the adjacent position of the previous equipment along the layout direction at a preset fixed interval. If an overlap between the equipment is detected, continue to move the current equipment along the layout direction, moving one fixed interval each time, until there is no overlap. (4) Fill in the connection lines between the equipment, wherein the connection lines of the station equipment are drawn according to the corresponding preset routing strategy based on their layout direction.
2. The method for generating a single-line diagram of a distribution network according to claim 1, characterized in that, Step 1 includes: The topology search is used to traverse all paths from the power supply device to the end device and to record the T nodes encountered during the traversal. The T node is a device with multiple subsequent branches. The weight of each device is calculated using the following formula: Where W is the weight value of the device, B is the base weight value corresponding to the device type, and N is the number of subordinate branches. This represents the weight value of the current i-th branch; The weight of each branch is calculated based on the equipment weight, and the branch with the largest weight is determined as the main branch, with the remaining branches serving as subordinate branches of the main branch.
3. The method for generating a single-line diagram of a distribution network according to claim 1, characterized in that, In step 2, for node T with more than 3 branches, the method for setting its layout direction includes: Divide the lower-level branches into two parts, and place them on both sides of node T respectively; The layout directions of the two branches are respectively taken as the two perpendicular directions of the current T node's layout direction.
4. The method for generating a single-line diagram of a distribution network according to claim 1, characterized in that, The equipment layout methods in step 3 include: Set the initial coordinates and fixed spacing value of the power supply equipment, and place the current equipment at the fixed spacing of the previous equipment along the layout direction; For the T-node device, first arrange it at a fixed interval, then arrange all its subordinate branches in sequence; calculate the outer box of each branch. The outer box of the main branch is the sum of the outer boxes of all devices on the main branch, and the outer box of the subordinate branch is the sum of the outer boxes of all subsequent devices along the layout direction starting from the T-node; if an overlap is detected, move the T-node and its subordinate branches as a whole along the layout direction by a fixed interval until there is no overlap. For the equipment in the station building, a special layout method is adopted. When the layout direction is upward, the equipment is arranged point by point first and then the position is adjusted to align with the output point of the previous equipment. When the layout direction is downward, the equipment is arranged directly point by point. When the layout direction is horizontal and there is subsequent equipment, the equipment is arranged point by point first and then the position is adjusted.
5. The method for generating a single-line diagram of a distribution network according to claim 4, characterized in that, Layout methods for a T node containing more than 3 branches include: Divide the lower-level branches into two groups and place them on both sides of node T. For each group of branches, arrange the branch equipment sequentially according to the layout direction. When it is detected that the subsequent branch overlaps with the previously laid-out branch, shift the overlapping branch along the layout direction of node T by a fixed distance until the overlap is eliminated. After the branches on both sides are laid out, calculate the positional deviation between the center point of the outer box of each branch and node T. Then, translate all the devices in each branch in the opposite direction of the layout direction of node T. The translation distance is the absolute value of the distance from the center point of the outer box of that branch to node T.
6. The method for generating a single-line diagram of a distribution network according to claim 4, characterized in that, The methods for the subordinate branch layout of equipment at node T include: When the station equipment layout is upward, the branch connected to the outgoing line point of the previous equipment is determined as the main branch, and other branches are arranged symmetrically on both sides of the main branch according to the preset spacing. When the layout direction of the station equipment is not upward, the weight value of each subordinate branch is calculated. The weight value is determined according to the number and type of equipment connected to the branch. The branch with the largest weight value is selected as the main branch, and the other branches are arranged symmetrically on both sides of the main branch according to the preset spacing.
7. The method for generating a single-line diagram of a distribution network according to claim 1, characterized in that, Step 4, the method for filling the connecting lines, includes: Determine whether the first and last nodes of the connecting line contain station equipment; When station building equipment is not included, directly fill in the connecting lines; When station building equipment is included, if the layout direction of the station building equipment is upward, fill the connecting line directly; if the layout direction of the station building equipment is downward or horizontal, calculate the routing inflection point according to the horizontal and vertical logic and then fill the connecting line. The horizontal and vertical logic calculation routing refers to the connection line consisting of horizontal and vertical segments, with adjacent segments maintaining a vertical relationship.
8. A distribution network single-line diagram generation system for digital distribution networks, characterized in that, include: The backbone and branch generation module is used to traverse the topology of all devices in the distribution network and divide the devices into backbone devices and branch devices according to preset weight rules. The layout direction setting module is used to set the layout direction of the main equipment and the branch equipment. The initial layout direction of the main equipment is set to horizontal to the right. For the branch equipment, its layout direction is the vertical direction of the upper branch, and the layout directions of adjacent branches are staggered. The device layout module is used to lay out devices according to the layout direction of the branch to which the device belongs. It places the current device at a preset fixed interval along the layout direction adjacent to the previous device. If an overlap between devices is detected, the current device continues to move along the layout direction, moving one fixed interval each time, until there is no overlap. The connection line filling module is used to fill connection lines between devices. The connection lines of the station equipment are drawn according to their layout direction using the corresponding preset routing strategy.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the method for generating single-line diagrams of a distribution network for digital distribution networks as described in any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method for generating single-line diagrams of distribution networks for digital distribution networks according to any one of claims 1 to 7.
Citation Information
Patent Citations
Power distribution network single line diagram generation method and device and storage medium
CN112685868A