Photovoltaic module arrangement method and device, storage medium and electronic equipment
By determining the effective photovoltaic module vertex coordinates and calculating the three-dimensional layout in the photovoltaic module layout, the problem of low photovoltaic module layout efficiency and accuracy in the existing technology is solved, and efficient and accurate photovoltaic module layout is achieved.
Patent Information
- Application Number
- CN202410811317.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing photovoltaic module layout methods, the parallel line algorithm calculation is complex and error-prone, and manual layout is difficult to handle complex layout and shadow analysis, resulting in low photovoltaic module layout efficiency and accuracy.
By determining the vertex coordinates of the surface to be arranged, obstacles and photovoltaic modules in the two-dimensional space, the vertex coordinates of the effective photovoltaic modules located inside the surface to be arranged and not intersecting with the obstacles are calculated, and then the three-dimensional layout of the photovoltaic modules is determined, using the ray method and projection direction vectors to detect the relationship of components to layout surfaces and obstacles.
It improves the efficiency and accuracy of photovoltaic module layout, simplifies the detection process of complex layouts, ensures no intersection between modules and obstacles, and improves space utilization and layout accuracy.
Smart Images

Figure CN118627682A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of photovoltaic power stations, and in particular, to a photovoltaic component arrangement method, device, storage medium and electronic equipment. Background Art
[0002] Large-scale ground-mounted power stations and distributed photovoltaic power stations usually occupy a large amount of land or building surface. Through effective component layout, space resources can be saved to the maximum extent, power generation efficiency can be improved, and sustainable development can be achieved.
[0003] In the related art, parallel line algorithms or manual layout schemes are mainly used to determine the layout area and arrange photovoltaic modules. The parallel line algorithm has complex calculation steps and is prone to errors when determining the layout area. Manual layout is difficult for complex layouts and shadow analysis, and is prone to conflicts with surrounding non-layout areas, thereby affecting the efficiency and accuracy of photovoltaic module layout. Summary of the invention
[0004] The purpose of the present disclosure is to provide a photovoltaic assembly arrangement method, device, storage medium and electronic device to solve the problems existing in the related art.
[0005] In order to achieve the above objectives, in a first aspect, the present disclosure provides a photovoltaic assembly arrangement method, the method comprising: Determine the vertex coordinates of the surface to be arranged, the vertex coordinates of the obstacle, and the vertex coordinates of the photovoltaic component to be detected in the two-dimensional space; Determining the vertex coordinates of the photovoltaic assembly located inside the surface to be arranged according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be inspected; Determine, according to the photovoltaic module vertex coordinates and the obstacle vertex coordinates, the valid photovoltaic module vertex coordinates that do not intersect with the obstacle; Calculate the corresponding three-dimensional coordinates according to the vertex coordinates of the effective photovoltaic components; The photovoltaic assembly layout is determined according to the three-dimensional coordinates.
[0006] Optionally, determining the vertex coordinates of the photovoltaic components located inside the surface to be arranged according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic components to be detected includes: Determine the boundary range of the surface to be arranged according to the vertex coordinates of the surface to be arranged, and determine the geometric range of the photovoltaic assembly to be inspected according to the vertex coordinates of the photovoltaic assembly to be inspected; Determining the number of intersections between a ray of a direction vector along each edge of the geometric range and the boundary range; According to the number of intersection points, the coordinates of the vertices of the photovoltaic components located inside the surface to be arranged are determined.
[0007] Optionally, determining the valid photovoltaic component vertex coordinates that do not intersect with the obstacle according to the photovoltaic component vertex coordinates and the obstacle vertex coordinates includes: Decomposing the concave polygon formed by the vertex coordinates of the obstacle to obtain a plurality of convex polygons; Obtaining a component projection direction vector and an obstacle projection direction vector, wherein the component projection direction vector is a unit vector of a polygon formed by the vertex coordinates of the photovoltaic component in the x-axis direction and the y-axis direction, and the obstacle projection direction vector is a unit vector in the normal direction of each edge of the convex polygon; Projecting the vertex coordinates of the photovoltaic component to the component projection direction vector to obtain a photovoltaic component projection length set, and projecting the vertex coordinates of the convex polygon to the obstacle projection direction vector to obtain an obstacle projection length set; The effective photovoltaic component vertex coordinates that do not intersect with obstacles are determined according to the photovoltaic component projection length set and the obstacle projection length set.
[0008] Optionally, determining the coordinates of the valid photovoltaic assembly vertices that do not intersect with obstacles according to the photovoltaic assembly projection length set and the obstacle projection length set includes: Projecting the photovoltaic assembly projection length set and the obstacle projection length set respectively to a preset normal direction to obtain the projection intervals of the photovoltaic assembly and the obstacle in the preset normal direction; The projection intervals of the photovoltaic assembly and the obstacle in the preset normal direction are compared. If there is no overlap between the two, the photovoltaic assembly and the obstacle do not intersect, and the vertex coordinates of the photovoltaic assembly are determined as the effective vertex coordinates of the photovoltaic assembly.
[0009] Optionally, the step of disassembling the concave polygon formed by the vertex coordinates of the obstacle to obtain a plurality of convex polygons includes: Obtain the unit direction vector of each edge line in the polygon formed by the vertex coordinates of the obstacle; Determine that the polygon is a concave polygon according to the cross product value of the normal vectors of any two adjacent edge lines in the polygon, and determine the opposite-signed edges of the concave polygon; Determine the intersection point of the ray along the direction vector of the opposite-sign edge and the edge line of the concave polygon; The concave polygon is decomposed into a plurality of convex polygons according to the intersection points.
[0010] In a second aspect, the present disclosure further provides a photovoltaic assembly arrangement device, the device comprising: The first determination module is used to determine the vertex coordinates of the surface to be arranged, the vertex coordinates of the obstacle and the vertex coordinates of the photovoltaic assembly to be detected in the two-dimensional space; A second determination module is used to determine the vertex coordinates of the photovoltaic assembly located inside the surface to be arranged according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be detected; A third determination module is used to determine the coordinates of the vertices of the effective photovoltaic components that do not intersect with the obstacles according to the vertex coordinates of the photovoltaic components and the vertex coordinates of the obstacle; A calculation module, used for calculating corresponding three-dimensional coordinates according to the vertex coordinates of the photovoltaic components that meet the preset conditions; The layout module is used to determine the layout of the photovoltaic components according to the three-dimensional coordinates.
[0011] Optionally, the second determining module is used to: Determine the boundary range of the surface to be arranged according to the vertex coordinates of the surface to be arranged, and determine the geometric range of the photovoltaic assembly to be inspected according to the vertex coordinates of the photovoltaic assembly to be inspected; Determining the number of intersections between a ray of a direction vector along each edge of the geometric range and the boundary range; According to the number of intersection points, the coordinates of the vertices of the photovoltaic components located inside the surface to be arranged are determined.
[0012] Optionally, the third determining module is used to: Decomposing the concave polygon formed by the vertex coordinates of the obstacle to obtain a plurality of convex polygons; Obtaining a component projection direction vector and an obstacle projection direction vector, wherein the component projection direction vector is a unit vector of a polygon formed by the vertex coordinates of the photovoltaic component in the x-axis direction and the y-axis direction, and the obstacle projection direction vector is a unit vector in the normal direction of each edge of the convex polygon; Projecting the vertex coordinates of the photovoltaic component to the component projection direction vector to obtain a photovoltaic component projection length set, and projecting the vertex coordinates of the convex polygon to the obstacle projection direction vector to obtain an obstacle projection length set; The effective photovoltaic component vertex coordinates that do not intersect with obstacles are determined according to the photovoltaic component projection length set and the obstacle projection length set.
[0013] In a third aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0014] In a fourth aspect, the present disclosure further provides an electronic device, including: a memory having a computer program stored thereon; A processor is used to execute the computer program in the memory to implement the steps of any one of the methods in the first aspect.
[0015] Through the above technical solution, the vertex coordinates of the surface to be arranged, the vertex coordinates of the obstacle and the vertex coordinates of the photovoltaic assembly to be detected in the two-dimensional space are first determined, and the vertex coordinates of the photovoltaic assembly located inside the surface to be arranged are determined according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be detected, and the vertex coordinates of the effective photovoltaic assembly that does not intersect with the obstacle are determined according to the vertex coordinates of the photovoltaic assembly and the vertex coordinates of the obstacle, so that the corresponding three-dimensional coordinates can be calculated according to the vertex coordinates of the effective photovoltaic assembly to determine the layout of the photovoltaic assembly. Among them, according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be detected, the inclusion relationship between the photovoltaic assembly and the arrangement surface can be detected, and according to the vertex coordinates of the photovoltaic assembly and the vertex coordinates of the obstacle, the intersection relationship between the photovoltaic assembly and the obstacle can be detected. This method of directly detecting the relationship between the photovoltaic assembly and the arrangement surface and the obstacle can improve the accuracy of the detection result, and quickly screen the photovoltaic assembly, thereby improving the efficiency and accuracy of the photovoltaic assembly arrangement.
[0016] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings: Figure 1 The figure is a flow chart of a photovoltaic assembly arrangement method according to an exemplary embodiment of the present disclosure.
[0018] Figure 2 is a coordinate network diagram of a photovoltaic assembly according to an exemplary embodiment of the present disclosure.
[0019] Figure 3 The diagram is a schematic diagram showing the boundary position of a photovoltaic assembly and a surface to be arranged according to an exemplary embodiment of the present disclosure.
[0020] Figure 4 The figure is a schematic diagram of a concave polygon disassembly according to an exemplary embodiment of the present disclosure.
[0021] Figure 5 It is a block diagram of a photovoltaic assembly arrangement device according to an exemplary embodiment of the present disclosure.
[0022] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0024] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0025] As mentioned in the background technology, in the related art, parallel line algorithms or manual layout schemes are mainly used to determine the layout area and arrange photovoltaic modules. The parallel line algorithm has complex calculation steps and is prone to errors when determining the layout area. Manual layout is difficult for complex layouts and shadow analysis, and is prone to conflicts with surrounding non-layout areas, thereby affecting the efficiency and accuracy of photovoltaic module layout.
[0026] In view of this, the present disclosure provides a photovoltaic assembly arrangement method, an apparatus, a storage medium and an electronic device to improve the efficiency and accuracy of photovoltaic assembly arrangement.
[0027] Figure 1 is a flow chart of a photovoltaic assembly arrangement method according to an exemplary embodiment of the present disclosure. Figure 1 , the method comprises the following steps: Step S101, determining the vertex coordinates of the surface to be arranged, the vertex coordinates of the obstacle, and the vertex coordinates of the photovoltaic assembly to be detected in the two-dimensional space.
[0028] It should be understood that by calculating the azimuth and inclination of the surface to be arranged, and performing coordinate transformation according to the azimuth and inclination of the surface to be arranged and the relative azimuth of the photovoltaic module relative to the surface to be arranged, the surface to be arranged is transformed to the xoy plane, and the coordinates of the vertices of the surface to be arranged and the vertices of the obstacle in two-dimensional space can be obtained.
[0029] Specifically, firstly, the azimuth and inclination of the surface to be arranged are calculated according to the normal vector n of the surface to be arranged, and the following calculation formula (1) can be used: (1) in, is the inclination angle of the surface to be arranged; is the azimuth of the surface to be arranged; , , is the xyz coordinate of the normal vector n of the surface to be arranged.
[0030] The calculation of the normal vector n of the surface to be arranged can be done using the following formula (2): (2) Among them, P 0 , P 1 , P 2 are any three non-collinear points in the surface to be arranged, for example, three adjacent vertices of the surface to be arranged can be selected.
[0031] The azimuth angle of the target surface to be arranged is rotated around the z-axis so that the surface to be arranged faces the negative direction of the y-axis.
[0032] For example, the coordinate transformation regarding the azimuth rotation may be calculated using the following formula (3): (3) The inclination angle of the surface to be arranged facing the negative direction of the y-axis is rotated around the x-axis so that the surface to be arranged is parallel to the xoy plane.
[0033] For example, the coordinate transformation regarding the tilt angle rotation may be calculated using the following formula (4): (4) The surface parallel to the xoy plane is rotated around the z-axis by a corresponding angle according to actual needs, that is, the relative azimuth angle of the photovoltaic module relative to the layout surface. The calculation formula is the same as the coordinate transformation calculation formula for azimuth rotation.
[0034] By moving the surface to be arranged after the above rotation, the following coordinate transformation calculation formula (5) can be obtained: (5) Among them, θ is the inclination angle of the surface to be arranged; is the azimuth of the surface to be arranged, is the relative azimuth angle of the photovoltaic module relative to the surface to be arranged; x, y, z is the preset movement variable.
[0035] It should also be understood that the vertex coordinates of the photovoltaic components to be inspected in two-dimensional space can be determined based on design parameters such as photovoltaic component parameters (length and width), layout spacing, maintenance channel size, number of components, and relative azimuth and relative inclination of the components.
[0036] For example, based on the starting point of the component layout, a coordinate network for arranging photovoltaic components is created, and the following calculation formula (6) can be used: (6) in, is the coordinate of the lower left corner vertex of the rth row and cth column component; P is the preset starting point of the photovoltaic component layout; W, L are the width and length of the photovoltaic component; , is the longitudinal spacing and lateral spacing of the photovoltaic modules; , The longitudinal width and transverse width of the maintenance channel; , is the number of maintenance channels before the row.
[0037] about , It can be determined using the following calculation formula (7): (7) Among them, rem(a / b) is the quotient operation of dividing a by b; , They are the number of longitudinal components and the number of transverse components between the inspection channels, respectively.
[0038] Reference Figure 2 , is a coordinate network of a photovoltaic assembly according to an exemplary embodiment of the present disclosure. As shown in the figure, the number of longitudinal assemblies between the maintenance channels is 3, and the number of transverse assemblies is 3. According to the transverse width of the maintenance channel and vertical width , the length L and width W of the photovoltaic module, the lateral spacing of the photovoltaic modules and vertical spacing , the vertex coordinates of the photovoltaic module to be detected can be determined.
[0039] Step S102, determining the vertex coordinates of the photovoltaic components located inside the surface to be arranged according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic components to be detected.
[0040] Step S103, determining the valid photovoltaic module vertex coordinates that do not intersect with the obstacle according to the photovoltaic module vertex coordinates and the obstacle vertex coordinates.
[0041] Step S104, calculating corresponding three-dimensional coordinates according to the coordinates of the vertices of the effective photovoltaic components.
[0042] It should be understood that the corresponding three-dimensional coordinates can be obtained by supplementing the z coordinates (z=0) of the vertex coordinates of the effective photovoltaic module and performing an inverse coordinate transformation.
[0043] For example, the following calculation formula (8) can be used: (8) Among them, θ is the inclination angle of the surface to be arranged; is the azimuth of the surface to be arranged, is the relative azimuth angle of the photovoltaic module relative to the surface to be arranged; x, y, z is the preset movement variable.
[0044] Step S105, determining the layout of photovoltaic modules according to the three-dimensional coordinates.
[0045] Through the above method, the vertex coordinates of the surface to be arranged, the vertex coordinates of the obstacle and the vertex coordinates of the photovoltaic assembly to be detected in the two-dimensional space are first determined, and the vertex coordinates of the photovoltaic assembly located inside the surface to be arranged are determined according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be detected, and the vertex coordinates of the effective photovoltaic assembly that does not intersect with the obstacle are determined according to the vertex coordinates of the photovoltaic assembly and the vertex coordinates of the obstacle, so that the corresponding three-dimensional coordinates can be calculated according to the vertex coordinates of the effective photovoltaic assembly to determine the layout of the photovoltaic assembly. Among them, according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be detected, the inclusion relationship between the photovoltaic assembly and the arrangement surface can be detected, and according to the vertex coordinates of the photovoltaic assembly and the vertex coordinates of the obstacle, the intersection relationship between the photovoltaic assembly and the obstacle can be detected. This method of directly detecting the relationship between the photovoltaic assembly and the arrangement surface and the obstacle can improve the accuracy of the detection result, and quickly screen the photovoltaic assembly, thereby improving the efficiency and accuracy of the photovoltaic assembly arrangement.
[0046] In order to enable those skilled in the art to better understand the belt tear detection method in the above embodiment of the present disclosure, the above steps are described below with examples.
[0047] In a possible manner, step S102 may be: The boundary range of the surface to be arranged is determined according to the vertex coordinates of the surface to be arranged, and the geometric range of the photovoltaic assembly to be inspected is determined according to the vertex coordinates of the photovoltaic assembly to be inspected.
[0048] For example, the geometric range of the photovoltaic module can be determined as:
[0049] Among them for hour, for ,when for hour, for , L and W are the length and width of the photovoltaic module.
[0050] Determines the number of intersections between a ray along the direction vector of each edge of the geometry's extents and the bounding extents.
[0051] For example, the intersection points of the rays of each side line of the geometric range of the photovoltaic component in the x-axis direction and the boundary range can be calculated, and the intersection points of the rays of each side line of the geometric range of the photovoltaic component in the y-axis direction and the boundary range can be calculated. In other words, the intersection points with the boundary range of the surface to be arranged can be found by using the ray method.
[0052] Specifically, first, starting from the vertex on the ray, along the ray where the direction vector of each edge of the geometric range of the photovoltaic module is located, the ray equation is constructed. The coordinates of the starting point of the ray are (x 0 ,y 0 ), the direction vector is (x d ,y d ), the ray equation can be expressed as formula (9): (9) Among them, k>0.
[0053] And calculate the intersection points of the line segments of the remaining edges on the surface to be arranged and the current straight line. For example, the intersection point of the straight line where the line segment i is located and the ray is calculated. The intersection point can satisfy the following calculation formula (10): (10) Where k>0, , , , are the x and y coordinates of the two vertices of the i-th edge.
[0054] According to the number of intersection points, the coordinates of the vertices of the photovoltaic components located inside the surface to be arranged are determined.
[0055] For example, calculating the intersection of the ray of each edge line of the geometric range of the photovoltaic module in the x-axis direction and the boundary range may include the following situations: according to the starting point ( , ) Calculate the intersection of the two rays and the surface to be arranged with the direction vector (1, 0). If the number of intersections is 0 or an even number, it means that the PV module is outside the surface to be arranged, and the current PV module is deleted; according to the starting point ( , ) calculates the intersection of the two rays and the surface to be arranged with the direction vector (1, 0). If the number of intersections is greater than the starting point ( , ) calculated, it means that the PV module has an intersection with the surface to be arranged, and the current PV module is deleted; according to the starting point ( , ) Calculate the intersection of the two rays and the surface to be arranged with the direction vector (1, 0). If the number of intersections is 0 or an even number, it means that the PV module is outside the surface to be arranged, and the current PV module is deleted; according to the starting point ( , ) Calculate the intersection points of the two rays with the surface to be arranged with the direction vector (1, 0). If the number of intersection points is greater than the aforementioned starting point ( , ) calculated, it means that the PV module has intersections with the surface to be arranged, and the current PV module is deleted.
[0056] For example, calculating the intersection of the ray of each edge line of the geometric range of the photovoltaic module in the y-axis direction and the boundary range may include the following situations: according to the starting point ( , ) Calculate the intersection of the two rays and the surface to be arranged with the direction vector (0, 1). If the number of intersections is 0 or an even number, it means that the PV module is outside the surface to be arranged, and the current PV module is deleted; according to the starting point ( , ) calculates the intersection of the two rays and the surface to be arranged with the direction vector (0, 1). If the number of intersections is greater than the aforementioned starting point ( , ) calculated, it means that the PV module has an intersection with the surface to be arranged, and the current PV module is deleted; according to the starting point ( , ) Calculate the intersection of the two rays and the surface to be arranged with the direction vector (0, 1). If the number of intersections is 0 or an even number, it means that the PV module is outside the surface to be arranged, and the current PV module is deleted; according to the starting point ( , ) calculates the intersection of the two rays and the surface to be arranged with the direction vector (0, 1). If the number of intersections is greater than the aforementioned starting point ( , ) If the number of intersection points calculated is greater, it means that the PV module has intersections with the surface to be arranged, and the current PV module is deleted.
[0057] Reference Figure 3 , about PV module 1, through the starting point ( , ) Calculate the intersection of the two rays and the surface to be arranged with the direction vector (1, 0), and determine that PV module 1 is outside the surface to be arranged, and delete PV module 1; for PV module 3, through the starting point ( , ) Calculate the intersection of the two rays with the surface to be arranged with the direction vector (1, 0), and determine that PV module 3 has an intersection with the surface to be arranged, and delete PV module 3; for PV module 4, through the starting point ( , ) The intersection of the two rays and the surface to be arranged is calculated with the direction vector (1, 0), and it can be determined that the photovoltaic component 4 is outside the surface to be arranged, and the photovoltaic component 4 is deleted; regarding the photovoltaic component 2, it can be determined that it is inside the surface to be arranged according to the ray method, and the photovoltaic component 2 is retained.
[0058] In the above manner, whether the photovoltaic component is located inside the layout surface is determined according to the number of intersections between the calculated ray and the boundary range, so that the layout position of the photovoltaic component can be determined more accurately, thereby improving the accuracy of the photovoltaic component layout.
[0059] In a possible manner, step S103 may be: Decompose the concave polygon formed by the vertex coordinates of the obstacle to obtain multiple convex polygons; Get the component projection direction vector and the obstacle projection direction vector. The component projection direction vector is the unit vector of the polygon formed by the vertex coordinates of the photovoltaic component in the x-axis direction and the y-axis direction. The obstacle projection direction vector is the unit vector in the normal direction of each edge of the convex polygon. The vertex coordinates of the photovoltaic module are projected onto the module projection direction vector to obtain a set of photovoltaic module projection lengths, and the vertex coordinates of the convex polygon are projected onto the obstacle projection direction vector to obtain a set of obstacle projection lengths; The valid photovoltaic component vertex coordinates that do not intersect with the obstacles are determined according to the photovoltaic component projection length set and the obstacle projection length set.
[0060] For example, the obstacle projection direction vector can be obtained by the following calculation formula (11): (11) in, Project the direction vector for the obstacle; , , , are the vertex coordinate values corresponding to edge line i.
[0061] For example, the four vertices of the photovoltaic module and all the vertices of the obstacle are projected to the module projection direction vector and the obstacle projection direction vector in sequence, that is, the point ( , ) are projected onto the direction vector =( , ) can be calculated using the following formula: For the maximum value of L among all vertices on a face and minimum value is the projection of the vertex in the corresponding direction ( , ).
[0062] By disassembling obstacle polygons and performing projection analysis in the above manner, the layout position of photovoltaic modules can be accurately and efficiently determined to ensure that they do not intersect with obstacles, thereby improving the space utilization and accuracy of photovoltaic module layout.
[0063] In a possible manner, determining the coordinates of the valid photovoltaic component vertices that do not intersect with obstacles according to the photovoltaic component projection length set and the obstacle projection length set may include: The photovoltaic module projection length set and the obstacle projection length set are projected respectively to the preset normal direction to obtain the projection intervals of the photovoltaic module and the obstacle in the preset normal direction; The projection intervals of the photovoltaic module and the obstacle in the preset normal direction are compared. If there is no overlap between the two, the photovoltaic module and the obstacle do not intersect, and the vertex coordinates of the photovoltaic module are determined as the valid vertex coordinates of the photovoltaic module.
[0064] It should be understood that if in a certain preset normal direction, the projections of the obstacle polygon and the vertices of the photovoltaic module polygon are respectively ( , )and( , ),when < or < When , it means that the projections of the two polygons have no intersection, then the obstacle and the PV module do not intersect, and the current corresponding PV module is retained; if the projections of the two polygons have an intersection on the preset normal vector, it means that the PV module intersects with the obstacle, and the corresponding PV module is deleted.
[0065] By comparing the projection intervals to determine the spatial relationship between the components and obstacles in the above manner, it is possible to quickly confirm whether the PV components are in a valid position, and converting complex spatial geometry problems into one-dimensional intervals for comparison can simplify the calculation process and thus improve efficiency.
[0066] In one possible approach, the concave polygon formed by the vertex coordinates of the obstacle is decomposed to obtain multiple convex polygons, which may include: Get the unit direction vector of each edge in the polygon formed by the obstacle vertex coordinates.
[0067] For example, to obtain the unit direction vector of each edge of the polygon formed by the vertex coordinates of the obstacle, the following calculation formula (12) can be used: (12) in, is the normal vector of the i-th edge; , , , are the x and y coordinates of the two vertices of the i-th edge.
[0068] According to the cross product value of the normal vectors of any two adjacent edge lines in the polygon, the polygon is determined to be a concave polygon, and the opposite-signed edges of the concave polygon are determined.
[0069] For example, we can select the direction vectors of two adjacent edges and To calculate the vector cross product, we can use the following formula (13): = (13) in, is the vector cross product of the ith edge and the i+1th edge.
[0070] If all the z-coordinates of the vector cross products r have the same sign, the polygon is determined to be a convex polygon; if one of the vector cross products If the z coordinate of the polygon is cross-producted with the other vector r and has a different sign, the polygon is determined to be a concave polygon, and the i-th side is called the side of different sign.
[0071] Determine the intersection of the ray along the direction vector of the opposite-sign edge with the edge of the concave polygon.
[0072] For example, on an edge of opposite sign, the intersection point of the ray along the direction vector of the edge of opposite sign can be calculated with the edge line of the concave polygon, that is, the intersection point can be calculated with the vertex of the polygon using the ray method.
[0073] Specifically, first, take the vertex on the ray as the starting point, follow the ray where the direction vector of the edge with the opposite sign is located, construct the ray equation with reference to the aforementioned calculation formula (9), and determine the intersection point with reference to calculation formula (10).
[0074] And if the following conditions are met:
[0075] when hour,
[0076] in, , , , are the x and y coordinates of the two vertices of the i-th edge.
[0077] It can be determined that the intersection point is the vertex coordinate used to cut the concave polygon into a convex polygon.
[0078] Based on the intersection points, the concave polygon is decomposed into multiple convex polygons.
[0079] For example, the concave polygon can be decomposed according to the detected intersection points to obtain multiple convex polygons, referring to Figure 4 , five vertices ~ The coordinates are: (0,0,0), (10,0,0), (10,8,0), (5,6,0), (0,8,0); the normal vectors of the five edges are: (10,0,0), (0,8,0), (-5, -2,0), (-5, 2,0), (0, -8,0); the cross product results of the five edges are: (0,0,80), (0,0,40), (0,0,-20), (0,0,40), (0,0,80).
[0080] Therefore, we can determine that the third side is an opposite-sign side. Extend the opposite-sign side and intersect it with the concave polygon at point (0,4,0), so that the polygon can be split into and They are convex polygons.
[0081] By decomposing the concave polygonal obstacles into convex polygons in the above manner, it is easier to identify the effective layout space, and thus accurately arrange the photovoltaic components, which is conducive to simplifying the calculation process and improving processing efficiency and accuracy.
[0082] Figure 5 FIG. 5 is a block diagram of a photovoltaic assembly arrangement device 500 according to an exemplary embodiment. Figure 5 As shown, the device comprises: The first determination module 501 is used to determine the vertex coordinates of the surface to be arranged, the vertex coordinates of the obstacle, and the vertex coordinates of the photovoltaic assembly to be detected in the two-dimensional space; The second determination module 502 is used to determine the vertex coordinates of the photovoltaic components located inside the surface to be arranged according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic components to be detected; The third determination module 503 is used to determine the valid photovoltaic component vertex coordinates that do not intersect with the obstacle according to the photovoltaic component vertex coordinates and the obstacle vertex coordinates; A calculation module 504 is used to calculate corresponding three-dimensional coordinates according to the vertex coordinates of the photovoltaic components that meet the preset conditions; The layout module 505 is used to determine the layout of the photovoltaic components according to the three-dimensional coordinates.
[0083] Optionally, the second determining module 502 is used to: Determine the boundary range of the surface to be arranged according to the vertex coordinates of the surface to be arranged, and determine the geometric range of the photovoltaic assembly to be inspected according to the vertex coordinates of the photovoltaic assembly to be inspected; Determine the number of intersections of the ray along each edge of the geometric extent with the boundary extent; According to the number of intersection points, the coordinates of the vertices of the photovoltaic components located inside the surface to be arranged are determined.
[0084] Optionally, the third determining module 503 includes: A disassembly submodule is used to disassemble the concave polygon formed by the vertex coordinates of the obstacle to obtain multiple convex polygons; The acquisition submodule is used to obtain the component projection direction vector and the obstacle projection direction vector. The component projection direction vector is the unit vector of the polygon formed by the vertex coordinates of the photovoltaic component in the x-axis direction and the y-axis direction. The obstacle projection direction vector is the unit vector in the normal direction of each edge of the convex polygon. The projection submodule is used to project the vertex coordinates of the photovoltaic module to the module projection direction vector to obtain the photovoltaic module projection length set, and to project the vertex coordinates of the convex polygon to the obstacle projection direction vector to obtain the obstacle projection length set; The determination submodule is used to determine the coordinates of the valid photovoltaic component vertices that do not intersect with the obstacles according to the photovoltaic component projection length set and the obstacle projection length set.
[0085] Optionally, the determining submodule is used to: The photovoltaic module projection length set and the obstacle projection length set are projected respectively to the preset normal direction to obtain the projection intervals of the photovoltaic module and the obstacle in the preset normal direction; The projection intervals of the photovoltaic module and the obstacle in the preset normal direction are compared. If there is no overlap between the two, the photovoltaic module and the obstacle do not intersect, and the vertex coordinates of the photovoltaic module are determined as the valid vertex coordinates of the photovoltaic module.
[0086] Optionally, the disassembly submodule is used to: Get the unit direction vector of each edge of the polygon formed by the vertex coordinates of the obstacle; According to the cross product value of the normal vectors of any two adjacent edge lines in the polygon, determine whether the polygon is a concave polygon, and determine the opposite-signed edges of the concave polygon; Determine the intersection of the ray along the direction vector of the opposite-sign edge with the edge of the concave polygon; Based on the intersection points, the concave polygon is decomposed into multiple convex polygons.
[0087] Through the above device, the vertex coordinates of the surface to be arranged, the vertex coordinates of the obstacle and the vertex coordinates of the photovoltaic assembly to be detected in the two-dimensional space are first determined, and the vertex coordinates of the photovoltaic assembly located inside the surface to be arranged are determined according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be detected, and the vertex coordinates of the effective photovoltaic assembly that does not intersect with the obstacle are determined according to the vertex coordinates of the photovoltaic assembly and the vertex coordinates of the obstacle, so that the corresponding three-dimensional coordinates can be calculated according to the vertex coordinates of the effective photovoltaic assembly to determine the layout of the photovoltaic assembly. Among them, according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be detected, the inclusion relationship between the photovoltaic assembly and the arrangement surface can be detected, and according to the vertex coordinates of the photovoltaic assembly and the vertex coordinates of the obstacle, the intersection relationship between the photovoltaic assembly and the obstacle can be detected. This method of directly detecting the relationship between the photovoltaic assembly and the arrangement surface and the obstacle can improve the accuracy of the detection result, and quickly screen the photovoltaic assembly, thereby improving the efficiency and accuracy of the photovoltaic assembly arrangement.
[0088] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0089] Figure 6 FIG. 6 is a block diagram of an electronic device 600 according to an exemplary embodiment. Figure 6 As shown, the electronic device 600 may include: a processor 601 , a memory 602 . The electronic device 600 may also include one or more of a multimedia component 603 , an input / output (I / O) interface 604 , and a communication component 605 .
[0090] The processor 601 is used to control the overall operation of the electronic device 600 to complete all or part of the steps in the above-mentioned photovoltaic assembly arrangement method. The memory 602 is used to store various types of data to support the operation of the electronic device 600, and these data may include, for example, instructions for any application or method for operating on the electronic device 600, and application-related data. The memory 602 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 603 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving an external audio signal. The received audio signal may be further stored in the memory 602 or sent through the communication component 605. The audio component also includes at least one speaker for outputting an audio signal. The I / O interface 604 provides an interface between the processor 601 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, etc. These buttons may be virtual buttons or physical buttons. The communication component 605 is used for wired or wireless communication between the electronic device 600 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 605 may include: a Wi-Fi module, a Bluetooth module, an NFC module, etc.
[0091] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned photovoltaic assembly arrangement method.
[0092] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned photovoltaic assembly arrangement method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 602 including program instructions, and the above-mentioned program instructions can be executed by the processor 601 of the electronic device 600 to complete the above-mentioned photovoltaic assembly arrangement method.
[0093] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0094] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0095] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A photovoltaic module arrangement method, characterized in that: The method comprises: Determine the vertex coordinates of the surface to be arranged, the vertex coordinates of the obstacle, and the vertex coordinates of the photovoltaic component to be detected in the two-dimensional space; Determining the vertex coordinates of the photovoltaic assembly located inside the surface to be arranged according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be inspected; Determine, according to the photovoltaic module vertex coordinates and the obstacle vertex coordinates, the valid photovoltaic module vertex coordinates that do not intersect with the obstacle; Calculate the corresponding three-dimensional coordinates according to the vertex coordinates of the effective photovoltaic components; The photovoltaic assembly layout is determined according to the three-dimensional coordinates.
2. The method according to claim 1, characterized in that The step of determining the vertex coordinates of the photovoltaic assembly located inside the surface to be arranged according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be detected comprises: Determine the boundary range of the surface to be arranged according to the vertex coordinates of the surface to be arranged, and determine the geometric range of the photovoltaic assembly to be inspected according to the vertex coordinates of the photovoltaic assembly to be inspected; Determining the number of intersections between a ray of a direction vector along each edge of the geometric range and the boundary range; According to the number of intersection points, the coordinates of the vertices of the photovoltaic components located inside the surface to be arranged are determined.
3. The method according to claim 1, characterized in that: The step of determining the valid photovoltaic component vertex coordinates that do not intersect with the obstacle according to the photovoltaic component vertex coordinates and the obstacle vertex coordinates includes: Decomposing the concave polygon formed by the vertex coordinates of the obstacle to obtain a plurality of convex polygons; Obtaining a component projection direction vector and an obstacle projection direction vector, wherein the component projection direction vector is a unit vector of a polygon formed by the vertex coordinates of the photovoltaic component in the x-axis direction and the y-axis direction, and the obstacle projection direction vector is a unit vector in the normal direction of each edge of the convex polygon; Projecting the vertex coordinates of the photovoltaic component to the component projection direction vector to obtain a photovoltaic component projection length set, and projecting the vertex coordinates of the convex polygon to the obstacle projection direction vector to obtain an obstacle projection length set; The effective photovoltaic component vertex coordinates that do not intersect with obstacles are determined according to the photovoltaic component projection length set and the obstacle projection length set.
4. The method according to claim 3, characterized in that The determining, according to the photovoltaic assembly projection length set and the obstacle projection length set, the coordinates of the valid photovoltaic assembly vertices that do not intersect with the obstacle comprises: Projecting the photovoltaic assembly projection length set and the obstacle projection length set respectively to a preset normal direction to obtain the projection intervals of the photovoltaic assembly and the obstacle in the preset normal direction; The projection intervals of the photovoltaic assembly and the obstacle in the preset normal direction are compared. If there is no overlap between the two, the photovoltaic assembly and the obstacle do not intersect, and the vertex coordinates of the photovoltaic assembly are determined as the effective vertex coordinates of the photovoltaic assembly.
5. The method according to claim 3, characterized in that: The concave polygon formed by the vertex coordinates of the obstacle is disassembled to obtain a plurality of convex polygons, including: Obtain the unit direction vector of each edge line in the polygon formed by the vertex coordinates of the obstacle; Determine that the polygon is a concave polygon according to the cross product value of the normal vectors of any two adjacent edge lines in the polygon, and determine the opposite-signed edges of the concave polygon; Determine the intersection point of the ray along the direction vector of the opposite-sign edge and the edge line of the concave polygon; The concave polygon is decomposed into a plurality of convex polygons according to the intersection points.
6. A photovoltaic module arrangement device, characterized in that: The device comprises: The first determination module is used to determine the vertex coordinates of the surface to be arranged, the vertex coordinates of the obstacle and the vertex coordinates of the photovoltaic assembly to be detected in the two-dimensional space; A second determination module is used to determine the vertex coordinates of the photovoltaic assembly located inside the surface to be arranged according to the vertex coordinates of the surface to be arranged and the vertex coordinates of the photovoltaic assembly to be detected; A third determination module is used to determine the coordinates of the valid photovoltaic assembly vertices that do not intersect with the obstacles according to the photovoltaic assembly vertex coordinates and the obstacle vertex coordinates; A calculation module, used for calculating corresponding three-dimensional coordinates according to the vertex coordinates of the photovoltaic components that meet the preset conditions; The layout module is used to determine the layout of the photovoltaic components according to the three-dimensional coordinates.
7. The device according to claim 6, characterized in that The second determining module is used for: Determine the boundary range of the surface to be arranged according to the vertex coordinates of the surface to be arranged, and determine the geometric range of the photovoltaic assembly to be inspected according to the vertex coordinates of the photovoltaic assembly to be inspected; Determining the number of intersections between a ray of a direction vector along each edge of the geometric range and the boundary range; According to the number of intersection points, the coordinates of the vertices of the photovoltaic components located inside the surface to be arranged are determined.
8. The device according to claim 6, characterized in that The third determination module is used for: Decomposing the concave polygon formed by the vertex coordinates of the obstacle to obtain a plurality of convex polygons; Obtaining a component projection direction vector and an obstacle projection direction vector, wherein the component projection direction vector is a unit vector of a polygon formed by the vertex coordinates of the photovoltaic component in the x-axis direction and the y-axis direction, and the obstacle projection direction vector is a unit vector in the normal direction of each edge of the convex polygon; Projecting the vertex coordinates of the photovoltaic component to the component projection direction vector to obtain a photovoltaic component projection length set, and projecting the vertex coordinates of the convex polygon to the obstacle projection direction vector to obtain an obstacle projection length set; The effective photovoltaic component vertex coordinates that do not intersect with obstacles are determined according to the photovoltaic component projection length set and the obstacle projection length set.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.
10. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 5.
