CN116186181A - Visualization method and device for power flow diagram and electronic equipment - Google Patents

Visualization method and device for power flow diagram and electronic equipment Download PDF

Info

Publication number
CN116186181A
CN116186181A CN202211730199.4A CN202211730199A CN116186181A CN 116186181 A CN116186181 A CN 116186181A CN 202211730199 A CN202211730199 A CN 202211730199A CN 116186181 A CN116186181 A CN 116186181A
Authority
CN
China
Prior art keywords
target
line
power flow
grid
gis map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211730199.4A
Other languages
Chinese (zh)
Inventor
郭小江
潘霄峰
宋墩文
孙财新
陈延峰
杨学涛
李希洋
刘开欣
郅治
涂强
丁攀
谢家正
姚中原
黄赵晶
卢文龙
施俊佼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaneng Clean Energy Research Institute
China Electric Power Research Institute Co Ltd CEPRI
Huaneng Offshore Wind Power Science and Technology Research Co Ltd
Shengdong Rudong Offshore Wind Power Co Ltd
Original Assignee
Huaneng Clean Energy Research Institute
China Electric Power Research Institute Co Ltd CEPRI
Huaneng Offshore Wind Power Science and Technology Research Co Ltd
Shengdong Rudong Offshore Wind Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huaneng Clean Energy Research Institute, China Electric Power Research Institute Co Ltd CEPRI, Huaneng Offshore Wind Power Science and Technology Research Co Ltd, Shengdong Rudong Offshore Wind Power Co Ltd filed Critical Huaneng Clean Energy Research Institute
Priority to CN202211730199.4A priority Critical patent/CN116186181A/en
Publication of CN116186181A publication Critical patent/CN116186181A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The application provides a visualization method, a device and electronic equipment of a power flow graph, wherein the method comprises the following steps: drawing a target power grid section on a GIS map; acquiring a target grid frame line of the GIS map on the target grid section; and acquiring the power flow parameters of the target grid frame line, and visually displaying a target power flow diagram of the target grid frame line on the target grid section based on the power flow parameters. In the method, the target power flow diagram of the target grid section is generated based on the power flow parameters of the target grid line and is visually displayed, visual display of the power flow conditions of the target grid line on the target grid section is achieved, support is provided for section analysis of the GIS map, and display accuracy and effect of the power flow parameters of the GIS map are optimized.

Description

Visualization method and device for power flow diagram and electronic equipment
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a method and apparatus for visualizing a power flow diagram, and an electronic device.
Background
In implementation, visualization (Visualization) is a theory, method and technology that uses computer graphics and image processing technology to convert data into graphics or images to be displayed on a screen, and performs interactive processing according to requirements. The visualization technology is a powerful tool for cognizing matters, clarifying rules and highlighting points, and meets the current social development needs. The massive data with various sources adds a lot of pressure to the research, and the existing visualization technology is utilized to better analyze the data mode and the complex system, so that a user can obtain new findings and correct decisions, and the method is beneficial to the progress and development of the information age. The visual technology enables information acquisition and analysis to be simpler and more visual, and the working quality and efficiency of a user are effectively improved.
In the process of analyzing the section of the power grid, the section of the power grid at a certain moment can be visually displayed, so that relevant parameters of the power grid can be obtained. In the related technology, the power flow direction of a line on a section can be expressed by a single-line arrow, but specific information of related parameters cannot be represented graphically, and the display of the power grid section parameters can be performed in a tabular form, so that the visualization effect is poor and the visual degree is poor.
Disclosure of Invention
The present application aims to solve, at least to some extent, one of the technical problems in the related art.
To this end, a first aspect of the present application proposes a method for visualizing a power flow graph.
The second aspect of the application also provides a visualization device for a power flow graph.
A third aspect of the present application proposes an electronic device.
A fourth aspect of the present application proposes a computer-readable storage medium.
A fifth aspect of the present application proposes a computer program product.
The first aspect of the present application proposes a method for visualizing a power flow graph, the method comprising: drawing a target power grid section on a GIS map; acquiring a target grid frame line of the GIS map on the target grid section; and acquiring the power flow parameters of the target grid frame line, and visually displaying a target power flow diagram of the target grid frame line on the target grid section based on the power flow parameters.
In addition, the visualization method for the power flow graph provided in the first aspect of the present application may further have the following additional technical features:
according to one embodiment of the present application, the drawing of the target grid section on the GIS map includes: acquiring section arc line nodes on a GIS map, and acquiring a power grid section arc line on the GIS map according to all the section arc line nodes; acquiring target line intersection points which are intersected with the power grid section arc lines in all lines of the GIS map;
and determining a section of the target line intersection point on the power grid section arc line on the GIS map as the target power grid section of the GIS map.
According to an embodiment of the present application, the obtaining the section arc line node on the GIS map, and obtaining the power grid section arc line on the GIS map according to all the section arc line nodes includes: determining the respective endpoint coordinates of the two endpoints of the grid section arc on the GIS map, and determining the midpoint coordinates of the grid section arc according to the respective endpoint coordinates of the two endpoints; determining node coordinates of the section arc node of the power grid section arc according to the endpoint coordinates and the midpoint coordinates; and connecting all the section arc line nodes according to the node coordinate sequence to obtain the power grid section arc line on the GIS map.
According to one embodiment of the present application, the determining the endpoint coordinates of each of the two endpoints of the grid section arc on the GIS map, and determining the midpoint coordinates of the grid section arc according to the endpoint coordinates of each of the two endpoints includes: acquiring a first abscissa and a first ordinate of a first endpoint of the power grid section arc, and a second abscissa and a second ordinate of a second endpoint of the power grid section arc; determining the midpoint coordinates of the grid section arc according to a first formula in response to the first ordinate being the same as the second ordinate; determining the midpoint coordinates of the grid section arc according to a second formula in response to the first abscissa being the same as the second abscissa and the first ordinate being different from the second ordinate; in response to the first abscissa being different from the second abscissa and the first ordinate being different from the second ordinate, the midpoint coordinate of the grid section arc is determined according to a third formula.
According to one embodiment of the present application, the determining, according to the end point coordinates and the middle point coordinates, the node coordinates of the section arc node of the grid section arc includes: acquiring the node number of the section arc nodes, and determining node ordering identifiers of the section arc nodes according to the node number; and determining the node coordinates of the section arc node according to the endpoint coordinates, the midpoint coordinates and the node ordering identifier.
According to an embodiment of the present application, the obtaining the target grid frame line of the GIS map on the target grid section includes: acquiring intersecting lines of all lines on the GIS map and the grid section arc; and determining a target intersecting line which participates in section analysis in the intersecting lines, and acquiring the target grid frame line of the GIS map on the target grid section according to the target intersecting line.
According to an embodiment of the present application, the obtaining the power flow parameter of the target grid structure line, and visually displaying the target power flow diagram of the target grid structure line on the target grid section based on the power flow parameter includes: acquiring the total power flow value of the target net rack line; acquiring respective power flow directions of the target grid lines; and generating the target power flow diagram of the target grid frame line on the target grid section according to the total power flow value and the power flow direction, and carrying out visual display on the target power flow diagram based on the constructed visual graphic element of the GIS map.
According to one embodiment of the present application, the obtaining the total power flow value of the target rack line includes: acquiring line power grid data of each target grid line on a GIS map; according to the line power grid data, obtaining respective target power flow values of the target grid lines from a power flow calculation database corresponding to the GIS map; a sum of all target power flow values is determined as the total power flow value of the target rack line.
According to an embodiment of the present application, the obtaining, according to the line power grid data, the respective target power flow value of the target grid line from the power flow calculation database corresponding to the GIS map includes: acquiring a mapping relation between a first line element identifier in a line power grid database of the GIS map and a second line element identifier in the tide calculation database; determining a third line element identification of the target grid line from the first line element identifications; and according to the mapping relation, determining a fourth line element identifier mapped by the second line element identifier and the third line element identifier, and determining an associated power flow value of the fourth line element identifier in the power flow calculation database as the target power flow value of the target grid line corresponding to the third line element identifier.
According to an embodiment of the present application, the obtaining the respective power flow directions of the target network frame lines includes: and obtaining the line power grid data of each target grid line on a GIS map, and calculating the power flow direction of each target grid line according to the line power grid data.
According to one embodiment of the present application, the method further comprises: obtaining a visual effect of the visual graphic element on the target power flow graph; and adjusting attribute parameters of the visual graphic element in response to the optimization requirement of the visual effect, and performing visual display on the target power flow graph according to the visual graphic element with the adjusted attribute parameters.
The second aspect of the present application further provides a visualization apparatus for a power flow graph, where the apparatus includes: the drawing module is used for drawing the target power grid section on the GIS map; the acquisition module is used for acquiring a target grid frame line of the GIS map on the target grid section; and the visualization module is used for acquiring the power flow parameters of the target grid frame line and carrying out visual display on the target power flow diagram of the target grid frame line on the target grid section based on the power flow parameters.
In addition, the visualization device for the power flow graph provided in the second aspect of the present application may further have the following additional technical features:
according to one embodiment of the present application, the drawing module is further configured to: acquiring section arc line nodes on a GIS map, and acquiring a power grid section arc line on the GIS map according to all the section arc line nodes; acquiring target line intersection points which are intersected with the power grid section arc lines in all lines of the GIS map; and determining a section of the target line intersection point on the power grid section arc line on the GIS map as the target power grid section of the GIS map.
According to one embodiment of the present application, the drawing module is further configured to: determining the respective endpoint coordinates of the two endpoints of the grid section arc on the GIS map, and determining the midpoint coordinates of the grid section arc according to the respective endpoint coordinates of the two endpoints; determining node coordinates of the section arc node of the power grid section arc according to the endpoint coordinates and the midpoint coordinates; and connecting all the section arc line nodes according to the node coordinate sequence to obtain the power grid section arc line on the GIS map.
According to one embodiment of the present application, the drawing module is further configured to: acquiring a first abscissa and a first ordinate of a first endpoint of the power grid section arc, and a second abscissa and a second ordinate of a second endpoint of the power grid section arc; determining the midpoint coordinates of the grid section arc according to a first formula in response to the first ordinate being the same as the second ordinate; determining the midpoint coordinates of the grid section arc according to a second formula in response to the first abscissa being the same as the second abscissa and the first ordinate being different from the second ordinate; in response to the first abscissa being different from the second abscissa and the first ordinate being different from the second ordinate, the midpoint coordinate of the grid section arc is determined according to a third formula.
According to one embodiment of the present application, the drawing module is further configured to: acquiring the node number of the section arc nodes, and determining node ordering identifiers of the section arc nodes according to the node number; and determining the node coordinates of the section arc node according to the endpoint coordinates, the midpoint coordinates and the node ordering identifier.
According to an embodiment of the present application, the obtaining module is further configured to: acquiring intersecting lines of all lines on the GIS map and the grid section arc; and determining a target intersecting line which participates in section analysis in the intersecting lines, and acquiring the target grid frame line of the GIS map on the target grid section according to the target intersecting line.
According to one embodiment of the application, the visualization module is further configured to: acquiring the total power flow value of the target net rack line; acquiring respective power flow directions of the target grid lines; and generating the target power flow diagram of the target grid frame line on the target grid section according to the total power flow value and the power flow direction, and carrying out visual display on the target power flow diagram based on the constructed visual graphic element of the GIS map.
According to one embodiment of the application, the visualization module is further configured to: acquiring line power grid data of each target grid line on a GIS map; according to the line power grid data, obtaining respective target power flow values of the target grid lines from a power flow calculation database corresponding to the GIS map; a sum of all target power flow values is determined as the total power flow value of the target rack line.
According to one embodiment of the application, the visualization module is further configured to: acquiring a mapping relation between a first line element identifier in a line power grid database of the GIS map and a second line element identifier in the tide calculation database; determining a third line element identification of the target grid line from the first line element identifications; and according to the mapping relation, determining a fourth line element identifier mapped by the second line element identifier and the third line element identifier, and determining an associated power flow value of the fourth line element identifier in the power flow calculation database as the target power flow value of the target grid line corresponding to the third line element identifier.
According to one embodiment of the application, the visualization module is further configured to: and obtaining the line power grid data of each target grid line on a GIS map, and calculating the power flow direction of each target grid line according to the line power grid data.
According to one embodiment of the application, the visualization module is further configured to: obtaining a visual effect of the visual graphic element on the target power flow graph; and adjusting attribute parameters of the visual graphic element in response to the optimization requirement of the visual effect, and performing visual display on the target power flow graph according to the visual graphic element with the adjusted attribute parameters.
A third aspect of the present application proposes an electronic device comprising a memory, a processor; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the visualization method of the power flow graph set forth in the first aspect.
A fourth aspect of the present application proposes a computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the method for visualizing a power flow graph proposed in the first aspect above.
A fifth aspect of the present application proposes a computer program product comprising a computer program which, when executed by a processor, implements the method of visualizing a power flow graph proposed by the first aspect described above.
According to the visualization method and device for the power flow graph, the target grid section on the GIS map is drawn, the target grid frame line of the GIS map on the target grid section is obtained, further, the power flow parameters of the target grid frame line are obtained, and the target grid section is visualized according to the power flow parameters. In the method, the target power flow diagram of the target grid section is generated based on the power flow parameters of the target grid line and is visually displayed, visual display of the power flow conditions of the target grid line on the target grid section is achieved, support is provided for section analysis of the GIS map, and display accuracy and effect of the power flow parameters of the GIS map are optimized.
It should be understood that the description herein is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a method of visualizing a power flow graph in accordance with an embodiment of the present application;
FIG. 2 is a schematic diagram of a method of visualizing a power flow graph in accordance with another embodiment of the present application;
FIG. 3 is a schematic diagram of a method of visualizing a power flow graph in accordance with another embodiment of the present application;
FIG. 4 is a schematic diagram of a method of visualizing a power flow graph in accordance with another embodiment of the present application;
FIG. 5 is a schematic diagram of a method of visualizing a power flow graph in accordance with another embodiment of the present application;
FIG. 6 is a schematic structural diagram of a power flow diagram visualization device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present application and are not to be construed as limiting the present application.
The following describes a visualization method, a device, an electronic apparatus and a storage medium of a power flow graph according to an embodiment of the present application with reference to the accompanying drawings.
FIG. 1 is a schematic diagram of a method for visualizing a power flow graph according to an embodiment of the present application, as shown in FIG. 1, the method comprising
S101, drawing a target power grid section on a GIS map.
In the power grid analysis process of a geographic information system (Geographic Information System, GIS) map, the power flow on a plurality of lines needs to be displayed in a concentrated mode, wherein the section analysis can be performed on the power grid section of the GIS map at a certain moment, and therefore the power flow condition of the grid lines on the power grid section is obtained.
In order to realize visual display of the power flow of the grid frame line on the grid section of the GIS map, optionally, the power flow parameters of the grid frame line on the grid section of the GIS map can be obtained, and a power flow diagram corresponding to the grid section can be constructed according to the obtained power flow parameters.
The power grid section which needs to generate a power flow diagram and is visually displayed can be determined to be a target power grid section on the GIS map.
In the embodiment of the application, the GIS map can be processed according to the preset drawing method, so that a target power grid section which needs to generate a power flow diagram and visually display is drawn on the GIS map.
S102, acquiring a target grid frame line of the GIS map on a target grid section.
In the embodiment of the application, all the grid lines in the GIS map can be obtained, and the lines existing on the target grid section are determined to be the target grid lines of the GIS map on the target grid section.
It should be noted that, a grid section dictionary may be constructed to store relevant data of a target grid section and a target grid rack line on the target grid section, where the storing of relevant data of the target grid section and the target grid rack line on the target grid section may be performed by using xml language, and the storing of relevant data of the target grid section and the target grid rack line on the target grid section may also be performed by using other languages, which is not limited herein specifically.
And S103, acquiring the power flow parameters of the target grid frame line, and visually displaying the target power flow diagram of the target grid frame line on the target grid section based on the power flow parameters.
In the embodiment of the application, the power flow parameters of the target grid frame line on the target grid section can be obtained, and the target power flow diagram of the target grid section is constructed according to the target grid frame line and the power flow parameters of the target grid frame line.
Alternatively, the power flow parameters may include a power flow value of the target rack line, and may also include a power flow direction of the target rack line.
In this scenario, an image showing the power flow condition of the target grid section may be generated as a target power flow map of the target grid section according to the power flow value and the corresponding power flow direction of the target grid line.
Further, based on a visualization technology of the GIS map in the related technology, the target power flow diagram of the target power grid section is subjected to visualization processing, and further the visual display of the target power flow diagram of the target power grid section is realized.
According to the visualization method for the power flow graph, the target grid section on the GIS map is drawn, the target grid frame line of the GIS map on the target grid section is obtained, further, the power flow parameters of the target grid frame line are obtained, and the target grid section is visualized according to the power flow parameters. In the method, the target power flow diagram of the target grid section is generated based on the power flow parameters of the target grid line and is visually displayed, visual display of the power flow conditions of the target grid line on the target grid section is achieved, support is provided for section analysis of the GIS map, and display accuracy and effect of the power flow parameters of the GIS map are optimized.
In the above embodiment, regarding the acquisition of the target grid section, it may be further understood with reference to fig. 2, and fig. 2 is a schematic diagram of a visualization method of a power flow chart according to another embodiment of the present application, as shown in fig. 2, where the method includes:
s201, obtaining section arc line nodes on the GIS map, and obtaining the power grid section arc line on the GIS map according to all the section arc line nodes.
In the embodiment of the application, the arc line of the power grid section can be drawn on the GIS map, so that the target power grid section on the GIS map is obtained.
Alternatively, the coordinates of the two end points of the grid section arc on the GIS map may be determined, and the coordinates of the middle point of the grid section arc may be determined according to the coordinates of the two end points.
The two end points of the grid section arc line on the GIS map and the respective end point coordinates of the two end points can be determined in advance, and the midpoint coordinates of the grid section arc line are determined according to the respective end point coordinates of the two end points.
Alternatively, a first abscissa and a first ordinate of a first end point of the grid section arc and a second abscissa and a second ordinate of a second end point of the grid section arc may be obtained.
In the embodiment of the application, the GIS map has a corresponding coordinate system, and the positions of the two endpoints of the power grid section arc line can be determined on the GIS map based on the coordinate system, so that the endpoint coordinates of the two endpoints are obtained.
Wherein one of the endpoints of the grid section arc may be identified as a first endpoint and the other endpoint as a second endpoint.
As an example, as shown in fig. 3, points a and B are two endpoints of the grid section arc shown in fig. 3 on the GIS map, where point a may be identified as a first endpoint, point B may be identified as a second endpoint, and the following is setThe endpoint coordinates of the point a are (X A ,Y A ) The endpoint coordinates of point B are (X B ,Y B ) X can be then A Identified as the first abscissa, Y A Identified as the first ordinate, X B Marked as the second abscissa, Y B Identified as the second ordinate.
Further, a midpoint coordinate of the grid section arc is determined based on the first abscissa and the first ordinate of the first endpoint, and the second abscissa and the second ordinate of the second endpoint.
As one possible implementation, in response to the first ordinate being the same as the second ordinate, a midpoint coordinate of the grid section arc is determined according to a first formula.
As an example, as shown in fig. 3, at a first ordinate Y A And a second ordinate Y B In the same scenario, the midpoint coordinates of the point C of the midpoint of the grid section arc shown in fig. 3 may be calculated according to the first formula.
Wherein the midpoint coordinates (X C ,Y C ) The first formula of (2) is as follows:
Figure BDA0004031311120000081
Figure BDA0004031311120000082
as another possible implementation, the midpoint coordinates of the grid section arc are determined according to a second formula in response to the first abscissa being the same as the second abscissa and the first ordinate being different from the second ordinate.
As an example, as shown in fig. 3, at a first abscissa X A With a second abscissa X B Identical and first ordinate Y A And a second ordinate Y B In a different scenario, the midpoint coordinates of the point C of the midpoint of the grid section arc shown in fig. 3 may be calculated according to a second formula.
Wherein, the middle of the point C is acquiredPoint coordinates (X) C ,Y C ) The second formula of (2) is as follows:
Figure BDA0004031311120000083
Figure BDA0004031311120000084
as another possible implementation, the midpoint coordinate of the grid section arc is determined according to a third formula in response to the first abscissa being different from the second abscissa and the first ordinate being different from the second ordinate.
As an example, as shown in fig. 3, at a first abscissa X A With a second abscissa X B Different and first ordinate Y A And a second ordinate Y B In a different scenario, the midpoint coordinates of the point C of the midpoint of the grid section arc shown in fig. 3 may be calculated according to a third formula.
Wherein the midpoint coordinates (X C ,Y C ) The third formula of (2) is as follows:
Figure BDA0004031311120000085
Figure BDA0004031311120000086
optionally, determining the node coordinates of the section arc node of the grid section arc according to the end point coordinates and the middle point coordinates.
In this embodiment of the present application, the grid section arc may be formed by a plurality of line segments, where points at two ends of each line segment may be identified as a section arc node of the grid section arc.
In the scene, the position of the section arc node on the GIS map can be obtained, wherein the coordinate of the section arc endpoint in the coordinate system corresponding to the GIS map can be determined as the node coordinate.
Optionally, the node number of the section arc node can be obtained, and the node ordering identifier of the section arc node can be determined according to the node number.
The node quantity of the section arc nodes included in the power grid section arc can be preset, and then node sequencing identification of each section arc node in all section arc nodes is determined according to the preset node quantity.
For example, if the line segments forming the section arc of the power grid are set to be 30, the number of nodes of the section arc nodes included in the section arc of the power grid is set to be 31, on the basis of fig. 3, all the section arc nodes are set to be ordered from the point a to the point B, the node ordering identifier of the section arc node corresponding to the first line segment is set to be 1, the node ordering identifiers of the section arc nodes corresponding to the adjacent second line segment can be 2 and 3 respectively, and so on.
Optionally, the node coordinates of the section arc node are determined according to the endpoint coordinates, the midpoint coordinates and the node ordering identifier.
As an example, if the number of nodes of the section arc nodes included in the section arc of the power grid is set to be 31 and the node sequence of the section arc nodes is set to be n, the following formula can be adopted, and the endpoint coordinates of the point a are set to be (X A ,Y A ) The endpoint coordinates of point B are (X B ,Y B ) Midpoint coordinates of point C (X C ,Y C ) And node ordering identifier n, determining node coordinates (X) of the section arc node corresponding to the node ordering identifier n n ,Y n ) Wherein the formula is as follows:
Figure BDA0004031311120000091
Figure BDA0004031311120000092
further, all section arc nodes are sequentially connected according to the node coordinates, and the power grid section arc on the GIS map is obtained.
In this embodiment of the present application, after determining the node coordinates of each section arc node, all section arc nodes may be connected according to a preset sequence, and a line obtained after connection is determined as a power grid section arc on a GIS map.
S202, acquiring target line intersection points intersecting with the power grid section arc lines in all lines of the GIS map.
In the embodiment of the application, the intersecting lines of all lines on the GIS map and the grid section arc line can be obtained, and the intersecting points of the intersecting lines and the grid section arc line are determined as target line intersecting points.
In some implementations, the coordinate sequences of all lines on the GIS map can be obtained according to the coordinate system corresponding to the GIS map, the coordinate sequences corresponding to the grid section arcs are compared, the lines with the same coordinates in the coordinate sequences corresponding to the grid section arcs are screened from the coordinate sequences of all lines on the GIS map, and the lines are determined to be intersecting lines intersecting the grid section arcs in all lines of the GIS map.
Further, the point corresponding to the same coordinate is determined as a target line intersection point intersecting with the grid section arc line in all lines of the GIS map.
In other implementations, the coordinate sequences of all the lines on the GIS map and the coordinate sequences corresponding to the grid section arcs can be processed according to a set algorithm, so that intersecting lines intersecting the grid section arcs in all the lines can be identified.
As an example, a certain line on the GIS map is set to be P1-P2, the grid section arc is set to be Q1-Q2, wherein P1 and P2 are two endpoints of the line, and Q1 and Q2 are two endpoints of the grid section arc.
Then it may be determined whether the lines P1-P2 intersect the grid section arcs Q1-Q2 based on the following formula:
(P 1 -Q 1 )×(Q 2 -Q 1 )×(Q 2 -Q 1 )×(P 2 -Q 1 )≥0
(Q 1 -P 1 )×(P 2 -P 1 )×(P 2 -P 1 )×(Q 2 -P 1 )≥0
When the lines P1-P2 and the power grid section arcs Q1-Q2 meet the two formulas at the same time, the lines P1-P2 and the power grid section arcs Q1-Q2 can be judged to be intersected, and the lines P1-P2 are intersected lines on a GIS map and intersected with the power grid section arcs Q1-Q2.
Further, according to the coordinate sequences of the lines P1-P2 and the power grid section arcs Q1-Q2 on the GIS map, the target line intersection point where the lines P1-P2 and the power grid section arcs Q1-Q2 intersect is determined.
S203, determining a section of the target line intersection point on the power grid section arc on the GIS map as a target power grid section of the GIS map.
It can be understood that each target line intersection point on the arc line of the power grid section has a corresponding tangent plane on the GIS map, and in this scenario, the tangent plane corresponding to each target line intersection point can be used as the target power grid section of the GIS map.
According to the visualization method for the power flow graph, the section arc line nodes on the GIS map are obtained, the power grid section arc line on the GIS map is obtained according to all the section arc line nodes, further, the target line intersection point intersecting with the power grid section arc line in all lines of the GIS map is obtained, and the tangent plane of the target line intersection point on the GIS map is determined to be the target power grid section. According to the method and the device, the target power grid section of the GIS map is obtained by drawing the power grid section arc line, visual display of a plurality of grid lines on the target power grid end is achieved, further, support is provided for visual display of the power flow condition of the target grid lines on the target power grid section, and the display precision and effect of the power flow parameters of the GIS map are optimized.
In the above embodiment, regarding the acquisition of the target grid lines on the target grid section by the GIS map, it can be further understood with reference to fig. 4, and fig. 4 is a schematic diagram of a visualization method of a power flow chart according to another embodiment of the present application, as shown in fig. 4, where the method includes:
s401, acquiring intersecting lines of all lines on the GIS map and the grid section arc line.
For specific information of S401, reference may be made to the related content in the above embodiment, and details are not described here.
S402, determining a target intersecting line which participates in section analysis in the intersecting lines, and acquiring a target grid frame line of the GIS map on the section of the target power grid according to the target intersecting line.
In the embodiment of the present application, in an intersecting line where all lines of the GIS map intersect with the grid section arc, there may be a section analysis where part of the lines do not participate in the target grid section of the GIS map.
In the scene, the lines which participate in the section analysis of the target power grid section are determined in all the intersecting lines, the lines are determined to be target intersecting lines, and the target grid frame lines of the GIS map on the target power grid section are obtained according to the display lines of the target intersecting lines on the target power grid section.
It should be noted that, after the target grid frame line on the target grid section is determined, the target grid frame line can be adjusted based on the subsequent section analysis requirement, which can be understood that if the subsequent section analysis requires adding and/or deleting part of the target grid frame line, the target grid frame line on the target grid section can be adjusted and updated based on the specific requirement.
S403, acquiring the total power flow value of the target grid line.
Optionally, line power grid data of each target grid line on the GIS map can be obtained, and according to the line power grid data, respective target power flow values of the target grid lines are obtained from a tide calculation database corresponding to the GIS map.
In the embodiment of the application, the line power grid database of the GIS map and the tide calculation database obtained by tide calculation can be stored separately, wherein the line power grid database stores related information such as line elements and dimensions of the GIS map, and related record information such as a factory station information table and a line information table can be defined by adopting E language symbol rules, so that the storage of the space and topological relation of all lines of the GIS map is realized.
Correspondingly, after carrying out power flow calculation on the GIS map, a corresponding power flow calculation database can be obtained, wherein the power flow calculation database stores line component information of the GIS map and related information of a power flow calculation result, and related information such as an alternating current node calculation result data table (< PSDPFEACNODE >), an alternating current line calculation result data table (< PSDPFEACLINE >), a direct current node calculation result data table (< PSDPFEDCNODE >), a direct current line calculation result data table (< PSDPFEDCLINE >) and the like can be defined by adopting E language symbol rules.
The power flow calculation database is provided with a field for recording the power flow related parameters of the line of the GIS map.
Alternatively, a mapping relationship between the first line element identifier in the line grid database of the GIS map and the second line element identifier in the tide calculation database may be obtained.
In some implementations, a mapping relationship exists between a first line element identifier in a line power grid database of the GIS map and a second line element identifier in the tide calculation database, wherein identifiers with the same combination key value in the first line element identifier and the second line element identifier can be determined to be line element identifiers with the mapping relationship, and then the mapping relationship between the first line element identifier in the line power grid database of the GIS map and the second line element identifier in the tide calculation database is obtained.
The first line element identifier of the line power grid database and the second line element identifier of the power flow calculation database each store the same part of line element identifiers, and may include a line element identifier corresponding to an I-side bus name, a line element identifier corresponding to an I-side reference voltage, a line element identifier corresponding to a J-side bus name, a line element identifier corresponding to a J-side reference voltage, a line element identifier corresponding to a parallel loop identifier, and the like.
In this scenario, a mapping relationship between a first line element identifier in a line power grid database of the GIS map and a second line element identifier in a tide calculation database may be constructed according to the partially identical line element identifiers.
Optionally, the related information of the first circuit element identifier corresponding to the ac circuit table in the line power grid database may be as shown in the following table 5:
Figure BDA0004031311120000121
correspondingly, the related information of the first circuit element identifier corresponding to the direct current circuit table in the circuit power grid database can be as follows
The following table shows:
Figure BDA0004031311120000122
alternatively, the relevant information of the second line element identifier corresponding to the ac circuit table in the power flow calculation database may be as follows
The following table shows:
Figure BDA0004031311120000123
correspondingly, the relevant information of the second line element identifier corresponding to the direct current circuit table in the tide calculation database can be as follows
Shown in the following table
Figure BDA0004031311120000124
/>
Figure BDA0004031311120000131
In this scenario, a mapping relationship between the first line element identifier in the line grid database and the second line element identifier in the power flow calculation database may be obtained in a table.
Further, from the first line element identification, a third line element identification of the target rack line is determined.
It is understood that, from all the first line element identifications, the line element identifications corresponding to the intersecting lines intersecting the grid section arc of the GIS map and participating in the section analysis are identified, and the third line element identification of the target grid line is determined.
Correspondingly, according to the mapping relation, determining a fourth line element identifier mapped by the second line element identifier and the third line element identifier, and determining the associated power flow value of the fourth line element identifier in the power flow calculation database as the target power flow value of the target grid line corresponding to the third line element identifier.
Alternatively, from the second line element identifiers, a line element identifier having a mapping relationship with the third line element identifier may be determined as a fourth line element identifier, and the associated power flow value of the fourth line element identifier in the power flow calculation database may be determined as the target power flow value of the target rack line corresponding to the third line element identifier.
Further, the sum of all the target power flow values is determined as the total power flow value of the target rack line.
The summation algorithm in the related technology can be used for carrying out algorithm processing on the respective target power flow values of all the target grid lines, so that the sum of all the target power flow values is obtained according to the result of the algorithm processing, and the sum is determined as the total power flow value of the target grid lines.
S404, acquiring respective power flow directions of the target grid lines.
Optionally, line power grid data of each target grid line on the GIS map can be obtained, and respective power flow directions of the target grid lines can be obtained through calculation according to the line power grid data.
The method for determining the power flow direction in the related technology can be used for carrying out data processing on the line power grid data of each target grid line on the GIS map, and further determining the power flow direction of each target grid line according to the data processing result.
S405, generating a target power flow diagram of a target grid frame line on a target grid section according to the total power flow value and the power flow direction, and performing visual display on the target power flow diagram based on a visual graphic element of the constructed GIS map.
In the embodiment of the application, the arrow can be used for indicating the power flow direction of the target grid line, and the total power flow value and related attribute information of the target grid line are displayed at the position inside the arrow, so that the construction and the visual display of the target power flow diagram are realized.
As shown in fig. 5, the direction angle, the size proportion, the filling color and the offset of the arrow can be configured to complete the visual configuration operation of the power flow arrow of the target grid line, and further, the target grid line of the intersecting line participating in the section analysis on the target grid section and the total power flow value of the target grid line are combined to realize the visual display of the target power flow diagram of the target grid line on the target grid section.
Optionally, a visual graphic element can be constructed on the GIS map, and the visual display of the target power flow diagram of the target grid line on the target grid section is realized by the visual graphic element based on the power flow arrow, the appearance parameter of the target grid section, the target grid line on the target grid section and the total power flow value of the target grid line.
In some implementations, the visual effect of the visual primitive on the target power flow graph can be obtained by performing visual processing on the target power flow graph according to the visual primitive, the visual primitive of the target power flow graph can be adjusted, the visual effect of the visual primitive on the target power flow graph can be obtained, wherein the attribute parameters of the visual primitive are adjusted in response to the optimization requirement of the visual effect, and the visual display is performed on the target power flow graph according to the visual primitive with the adjusted attribute parameters.
For example, the direction angle, the size, the color and other appearance parameters in the attribute parameters can be adjusted, so that the optimization and the update of the visual effect corresponding to the visual display of the visual primitive on the target power flow graph are realized.
According to the visualization method for the power flow graph, the target power grid section of the GIS map is obtained by drawing the power grid section arc line, visual display of a plurality of grid lines on the target power grid end is achieved, further support is provided for visual display of the power flow condition of the target grid lines on the target power grid section, and display accuracy and effect of the power flow parameters of the GIS map are optimized.
Corresponding to the visualization methods of the power flow diagrams provided by the above embodiments, an embodiment of the present application further provides a visualization device of the power flow diagrams, and since the visualization device of the power flow diagrams provided by the embodiment of the present application corresponds to the visualization methods of the power flow diagrams provided by the above embodiments, the implementation of the visualization method of the power flow diagrams is also applicable to the visualization device of the power flow diagrams provided by the embodiment of the present application, which is not described in detail in the following embodiments.
Fig. 6 is a schematic structural diagram of a visualization device for a power flow chart according to an embodiment of the present application, as shown in fig. 6, a visualization device 600 for a power flow chart, including a drawing module 61, an obtaining module 62, and a visualization module 63, where:
the drawing module 61 is used for drawing the target power grid section on the GIS map;
the acquiring module 62 is configured to acquire a target grid frame line of the GIS map on a target grid section;
and the visualization module 63 is used for acquiring the power flow parameters of the target grid frame line and performing visual display on the target power flow diagram of the target grid frame line on the target grid section based on the power flow parameters.
According to one embodiment of the present application, the drawing module 61 is further configured to: acquiring section arc line nodes on a GIS map, and acquiring a power grid section arc line on the GIS map according to all the section arc line nodes; acquiring target line intersection points which are intersected with the grid section arc lines in all lines of a GIS map; and determining the section of the target line intersection point on the arc line of the power grid section on the GIS map as the target power grid section of the GIS map.
According to one embodiment of the present application, the drawing module 61 is further configured to: determining the respective endpoint coordinates of two endpoints of the power grid section arc on the GIS map, and determining the midpoint coordinates of the power grid section arc according to the respective endpoint coordinates of the two endpoints; determining node coordinates of section arc nodes of the power grid section arc according to the endpoint coordinates and the midpoint coordinates; and connecting all section arc nodes according to the node coordinate sequence to obtain the power grid section arc on the GIS map.
According to one embodiment of the present application, the drawing module 61 is further configured to: acquiring a first abscissa and a first ordinate of a first endpoint of the power grid section arc, and a second abscissa and a second ordinate of a second endpoint of the power grid section arc; determining a midpoint coordinate of the grid section arc according to a first formula in response to the first ordinate being the same as the second ordinate; responding to the fact that the first abscissa is identical to the second abscissa, the first ordinate is different from the second ordinate, and determining the midpoint coordinate of the grid section arc line according to a second formula; and determining the midpoint coordinate of the grid section arc according to a third formula in response to the first abscissa being different from the second abscissa and the first ordinate being different from the second ordinate.
According to one embodiment of the present application, the drawing module 61 is further configured to: acquiring the node number of the section arc nodes, and determining node ordering identifiers of the section arc nodes according to the node number; and determining the node coordinates of the section arc nodes according to the endpoint coordinates, the midpoint coordinates and the node ordering identification.
According to one embodiment of the present application, the obtaining module 62 is further configured to: acquiring all lines on a GIS map and intersecting lines of the grid section arc line; and determining a target intersecting line which participates in section analysis in the intersecting lines, and acquiring a target net rack line of the GIS map on the section of the target power grid according to the target intersecting line.
According to one embodiment of the present application, the visualization module 63 is further configured to: acquiring the total power flow value of a target net rack line; acquiring respective power flow directions of the target grid lines; and generating a target power flow diagram of a target grid frame line on a target grid section according to the total power flow value and the power flow direction, and performing visual display on the target power flow diagram based on the visual graphic element of the constructed GIS map.
According to one embodiment of the present application, the visualization module 63 is further configured to: acquiring line power grid data of each target grid line on a GIS map; according to the line power grid data, obtaining respective target power flow values of the target grid lines from a tide calculation database corresponding to the GIS map; the sum of all the target power flow values is determined as the total power flow value of the target rack line.
According to one embodiment of the present application, the visualization module 63 is further configured to: acquiring a mapping relation between a first line element identifier in a line power grid database of a GIS map and a second line element identifier in a tide calculation database; determining a third line element identification of the target net rack line from the first line element identifications; and determining a fourth line element identifier mapped by the second line element identifier and the third line element identifier according to the mapping relation, and determining the associated power flow value of the fourth line element identifier in the power flow calculation database as the target power flow value of the target grid line corresponding to the third line element identifier.
According to one embodiment of the present application, the visualization module 63 is further configured to: and obtaining the line power grid data of each target grid line on the GIS map, and calculating according to the line power grid data to obtain the respective power flow direction of the target grid lines.
According to one embodiment of the present application, the visualization module 63 is further configured to: obtaining a visual effect of a visual graphic element on a target power flow graph; and adjusting attribute parameters of the visual graphic element in response to the optimization requirement of the visual effect, and performing visual display on the target power flow graph according to the visual graphic element after the adjustment of the attribute parameters.
According to the visualization device for the power flow diagram, the target grid section on the GIS map is drawn, the target grid frame line of the GIS map on the target grid section is obtained, further, the power flow parameters of the target grid frame line are obtained, and the target grid section is visualized according to the power flow parameters. In the method, the target power flow diagram of the target grid section is generated based on the power flow parameters of the target grid line and is visually displayed, visual display of the power flow conditions of the target grid line on the target grid section is achieved, support is provided for section analysis of the GIS map, and display accuracy and effect of the power flow parameters of the GIS map are optimized.
In order to implement the above embodiment, the application further proposes an electronic device 700, as shown in fig. 7, including a memory 71, a processor 72, and a computer program stored on the memory 71 and executable on the processor 72, where the processor implements the method for visualizing a power flow graph as described above when executing the program.
To achieve the above embodiments, the present application also proposes a non-transitory computer readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements a method of visualizing a power flow graph as described above.
To achieve the above embodiments, the present application also proposes a computer program product comprising a computer program which, when executed by a processor, implements a method of visualizing a power flow graph as described above.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out the methods themselves may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a grid browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication grid). Examples of communication grids include: local Area Networks (LANs), wide Area Networks (WANs), the internet, and blockchain grids.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communications grid. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates blockchains.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. Although embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (25)

1. A method of visualizing a power flow graph, the method comprising:
Drawing a target power grid section on a GIS map;
acquiring a target grid frame line of the GIS map on the target grid section;
and acquiring the power flow parameters of the target grid frame line, and visually displaying a target power flow diagram of the target grid frame line on the target grid section based on the power flow parameters.
2. The method of claim 1, wherein the drawing the target grid section on the GIS map comprises:
acquiring section arc line nodes on a GIS map, and acquiring a power grid section arc line on the GIS map according to all the section arc line nodes;
acquiring target line intersection points which are intersected with the power grid section arc lines in all lines of the GIS map;
and determining a section of the target line intersection point on the power grid section arc line on the GIS map as the target power grid section of the GIS map.
3. The method according to claim 2, wherein the obtaining section arc nodes on the GIS map and obtaining the grid section arc on the GIS map according to all the section arc nodes comprises:
determining the respective endpoint coordinates of the two endpoints of the grid section arc on the GIS map, and determining the midpoint coordinates of the grid section arc according to the respective endpoint coordinates of the two endpoints;
Determining node coordinates of the section arc node of the power grid section arc according to the endpoint coordinates and the midpoint coordinates;
and connecting all the section arc line nodes according to the node coordinate sequence to obtain the power grid section arc line on the GIS map.
4. A method according to claim 3, wherein determining the end point coordinates of each of the two end points of the grid section arc on the GIS map, and determining the midpoint coordinates of the grid section arc according to the end point coordinates of each of the two end points, comprises:
acquiring a first abscissa and a first ordinate of a first endpoint of the power grid section arc, and a second abscissa and a second ordinate of a second endpoint of the power grid section arc;
determining the midpoint coordinates of the grid section arc according to a first formula in response to the first ordinate being the same as the second ordinate;
determining the midpoint coordinates of the grid section arc according to a second formula in response to the first abscissa being the same as the second abscissa and the first ordinate being different from the second ordinate;
in response to the first abscissa being different from the second abscissa and the first ordinate being different from the second ordinate, the midpoint coordinate of the grid section arc is determined according to a third formula.
5. A method according to claim 3, wherein said determining node coordinates of said section arc node of said grid section arc from said end point coordinates and said midpoint coordinates comprises:
acquiring the node number of the section arc nodes, and determining node ordering identifiers of the section arc nodes according to the node number;
and determining the node coordinates of the section arc node according to the endpoint coordinates, the midpoint coordinates and the node ordering identifier.
6. The method of claim 1, wherein the obtaining the target grid tie of the GIS map on the target grid section comprises:
acquiring intersecting lines of all lines on the GIS map and the grid section arc;
and determining a target intersecting line which participates in section analysis in the intersecting lines, and acquiring the target grid frame line of the GIS map on the target grid section according to the target intersecting line.
7. The method of claim 1, wherein the obtaining the power flow parameter of the target rack line and visually displaying the target power flow graph of the target rack line on the target grid section based on the power flow parameter comprises:
Acquiring the total power flow value of the target net rack line;
acquiring respective power flow directions of the target grid lines;
and generating the target power flow diagram of the target grid frame line on the target grid section according to the total power flow value and the power flow direction, and carrying out visual display on the target power flow diagram based on the constructed visual graphic element of the GIS map.
8. The method of claim 7, wherein the obtaining the total power flow value of the target rack line comprises:
acquiring line power grid data of each target grid line on a GIS map;
according to the line power grid data, obtaining respective target power flow values of the target grid lines from a power flow calculation database corresponding to the GIS map;
a sum of all target power flow values is determined as the total power flow value of the target rack line.
9. The method according to claim 8, wherein the obtaining, from the power flow calculation database corresponding to the GIS map, the respective target power flow values of the target grid lines according to the line grid data includes:
Acquiring a mapping relation between a first line element identifier in a line power grid database of the GIS map and a second line element identifier in the tide calculation database;
determining a third line element identification of the target grid line from the first line element identifications;
and according to the mapping relation, determining a fourth line element identifier mapped by the second line element identifier and the third line element identifier, and determining an associated power flow value of the fourth line element identifier in the power flow calculation database as the target power flow value of the target grid line corresponding to the third line element identifier.
10. The method of claim 7, wherein the obtaining the respective power flow directions of the target rack lines comprises:
and obtaining the line power grid data of each target grid line on a GIS map, and calculating the power flow direction of each target grid line according to the line power grid data.
11. The method according to any one of claims 1-10, further comprising:
obtaining a visual effect of the visual graphic element on the target power flow graph;
And adjusting attribute parameters of the visual graphic element in response to the optimization requirement of the visual effect, and performing visual display on the target power flow graph according to the visual graphic element with the adjusted attribute parameters.
12. A power flow graph visualization apparatus, the apparatus comprising:
the drawing module is used for drawing the target power grid section on the GIS map;
the acquisition module is used for acquiring a target grid frame line of the GIS map on the target grid section;
and the visualization module is used for acquiring the power flow parameters of the target grid frame line and carrying out visual display on the target power flow diagram of the target grid frame line on the target grid section based on the power flow parameters.
13. The apparatus of claim 12, wherein the rendering module is further configured to:
acquiring section arc line nodes on a GIS map, and acquiring a power grid section arc line on the GIS map according to all the section arc line nodes;
acquiring target line intersection points which are intersected with the power grid section arc lines in all lines of the GIS map;
and determining a section of the target line intersection point on the power grid section arc line on the GIS map as the target power grid section of the GIS map.
14. The apparatus of claim 13, wherein the rendering module is further configured to:
determining the respective endpoint coordinates of the two endpoints of the grid section arc on the GIS map, and determining the midpoint coordinates of the grid section arc according to the respective endpoint coordinates of the two endpoints;
determining node coordinates of the section arc node of the power grid section arc according to the endpoint coordinates and the midpoint coordinates;
and connecting all the section arc line nodes according to the node coordinate sequence to obtain the power grid section arc line on the GIS map.
15. The apparatus of claim 14, wherein the rendering module is further configured to:
acquiring a first abscissa and a first ordinate of a first endpoint of the power grid section arc, and a second abscissa and a second ordinate of a second endpoint of the power grid section arc;
determining the midpoint coordinates of the grid section arc according to a first formula in response to the first ordinate being the same as the second ordinate;
determining the midpoint coordinates of the grid section arc according to a second formula in response to the first abscissa being the same as the second abscissa and the first ordinate being different from the second ordinate;
In response to the first abscissa being different from the second abscissa and the first ordinate being different from the second ordinate, the midpoint coordinate of the grid section arc is determined according to a third formula.
16. The apparatus of claim 14, wherein the rendering module is further configured to:
acquiring the node number of the section arc nodes, and determining node ordering identifiers of the section arc nodes according to the node number;
and determining the node coordinates of the section arc node according to the endpoint coordinates, the midpoint coordinates and the node ordering identifier.
17. The apparatus of claim 12, wherein the acquisition module is further configured to:
acquiring intersecting lines of all lines on the GIS map and the grid section arc;
and determining a target intersecting line which participates in section analysis in the intersecting lines, and acquiring the target grid frame line of the GIS map on the target grid section according to the target intersecting line.
18. The apparatus of claim 12, wherein the visualization module is further configured to:
acquiring the total power flow value of the target net rack line;
Acquiring respective power flow directions of the target grid lines;
and generating the target power flow diagram of the target grid frame line on the target grid section according to the total power flow value and the power flow direction, and carrying out visual display on the target power flow diagram based on the constructed visual graphic element of the GIS map.
19. The apparatus of claim 18, wherein the visualization module is further configured to:
acquiring line power grid data of each target grid line on a GIS map;
according to the line power grid data, obtaining respective target power flow values of the target grid lines from a power flow calculation database corresponding to the GIS map;
a sum of all target power flow values is determined as the total power flow value of the target rack line.
20. The apparatus of claim 19, wherein the visualization module is further configured to:
acquiring a mapping relation between a first line element identifier in a line power grid database of the GIS map and a second line element identifier in the tide calculation database;
determining a third line element identification of the target grid line from the first line element identifications;
And according to the mapping relation, determining a fourth line element identifier mapped by the second line element identifier and the third line element identifier, and determining an associated power flow value of the fourth line element identifier in the power flow calculation database as the target power flow value of the target grid line corresponding to the third line element identifier.
21. The apparatus of claim 18, wherein the visualization module is further configured to:
and obtaining the line power grid data of each target grid line on a GIS map, and calculating the power flow direction of each target grid line according to the line power grid data.
22. The apparatus of any one of claims 12-21, wherein the visualization module is further configured to:
obtaining a visual effect of the visual graphic element on the target power flow graph;
and adjusting attribute parameters of the visual graphic element in response to the optimization requirement of the visual effect, and performing visual display on the target power flow graph according to the visual graphic element with the adjusted attribute parameters.
23. An electronic device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-11.
24. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-11.
25. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-11.
CN202211730199.4A 2022-12-30 2022-12-30 Visualization method and device for power flow diagram and electronic equipment Pending CN116186181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211730199.4A CN116186181A (en) 2022-12-30 2022-12-30 Visualization method and device for power flow diagram and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211730199.4A CN116186181A (en) 2022-12-30 2022-12-30 Visualization method and device for power flow diagram and electronic equipment

Publications (1)

Publication Number Publication Date
CN116186181A true CN116186181A (en) 2023-05-30

Family

ID=86435815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211730199.4A Pending CN116186181A (en) 2022-12-30 2022-12-30 Visualization method and device for power flow diagram and electronic equipment

Country Status (1)

Country Link
CN (1) CN116186181A (en)

Similar Documents

Publication Publication Date Title
TWI601020B (en) Graphical analysis system and graphical analysis method
CN106934842B (en) Method and device for identifying closed area
CN111932464B (en) Super-resolution model using and training method, device, equipment and medium
CN112802037A (en) Portrait extraction method, device, electronic equipment and storage medium
CN113688545A (en) Visualization method and system for finite element post-processing result and data processing terminal
US10067950B1 (en) Systems and methods for efficiently organizing map styling information
CN110751706B (en) Method, device, equipment and storage medium for processing graphics in game
CN112085814B (en) Electronic map display method, device, equipment and readable storage medium
CN114627239B (en) Bounding box generation method, device, equipment and storage medium
CN110428505B (en) Method for removing video projection interferents in three-dimensional map and computer storage medium
CN113392246B (en) Drawing display method and device, storage medium and electronic equipment
CN115238331B (en) CAD graph processing method, device, equipment and storage medium
CN116756836B (en) Tunnel super-undermining volume calculation method, electronic equipment and storage medium
CN116524165B (en) Migration method, migration device, migration equipment and migration storage medium for three-dimensional expression model
CN116186181A (en) Visualization method and device for power flow diagram and electronic equipment
CN114564268A (en) Equipment management method and device, electronic equipment and storage medium
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN113191310B (en) Boundary recognition method, device and equipment for vector PDF drawing entity filling
CN113781653B (en) Object model generation method and device, electronic equipment and storage medium
CN114387378A (en) Image generation method and device based on digital twin rendering engine and electronic equipment
CN113470145A (en) Map data processing method, map data processing device, map data processing equipment and storage medium
CN114549303A (en) Image display method, image processing method, image display device, image processing equipment and storage medium
CN113506356A (en) Drawing method and device of area map, readable medium and electronic equipment
CN114419199B (en) Picture marking method and device, electronic equipment and storage medium
CN114741072B (en) Page generation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination