Photovoltaic power station electrical wiring optimization method and device and storage medium

Through the calculation of photovoltaic module branch segmentation and string length, fully automatic wiring of photovoltaic power stations is achieved, solving the problems of difficulty in handling obstacles and cumbersome operations in the prior art, improving wiring efficiency and accuracy, and adapting to commercial needs.

CN119228000APending Publication Date: 2024-12-31HOHAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411085262.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The existing automatic cabling technology of photovoltaic power stations has flying lines problems and is complicated to operate when dealing with obstacles. The multi-scheme optimization algorithm consumes a lot of computing power and time, and cannot meet the fast and efficient commercial needs.

Method used

The photovoltaic module branch segmentation method is adopted. Through scanning and segmentation processing, combined with the pre-acquisitioned string length range, the line number, segment number and serial number of the string connection are automatically calculated to realize fully automatic photovoltaic module connection to avoid flying lines and Shorten the DC cable length.

Benefits of technology

The automation of electrical wiring of photovoltaic power stations has been realized, which reduces operating steps, saves time and costs, adapts to actual application scenarios, and eliminates flying lines on obstacles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119228000A_ABST
    Figure CN119228000A_ABST
Patent Text Reader

Abstract

The invention discloses a photovoltaic power station electrical wiring optimization method and device and a storage medium, and belongs to the technical field of photovoltaic power stations. The method comprises the following steps: scanning according to the long side direction or the short side direction of all photovoltaic modules; segmenting the photovoltaic modules in each row by judging whether the photovoltaic modules intersect with obstacles or outer boundaries or not; calculating the length range of the string according to the parameters of the photovoltaic module and the inverter, and calculating the length of each string; calculating a line number, a segment number and a photovoltaic module serial number of the photovoltaic module which is subjected to string connection at present; and performing photovoltaic module connection on the current string based on the line number, the segment number and the serial number of the photovoltaic module which is currently subjected to string connection, and starting to connect the next string after the length of the current string is reached until all strings are connected. According to the invention, automatic wiring capable of crossing obstacles can be realized, the system can adapt to complex actual scenes and has higher flexibility, and meanwhile, full-automatic wiring is adopted, and massive operation is not needed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of photovoltaic power stations, and in particular relates to a method, a device and a storage medium for optimizing electrical wiring of a photovoltaic power station. Background Art

[0002] There are two main solutions for realizing automatic wiring technology platform: one is to use "s" wiring. The biggest problem of this solution is that it does not consider the existence of obstacles when wiring, and directly uses flying wires to cross obstacles. In actual installation, some obstacles cannot be crossed, so this solution cannot be used for actual connection; the other is the "pick-up" method, which selects several local photovoltaic modules during wiring and connects them according to the preset form. The biggest problem of this solution is that it considers too local when connecting photovoltaic modules, and it is necessary to continuously adjust the layout of photovoltaic modules and inverters during wiring. At the same time, when a large number of photovoltaic modules need to be connected in complex scenes, the operation steps are cumbersome. Because it continuously gathers strings, it will make the operation very difficult and cannot play a good role. At the same time, there is also a solution that uses multiple schemes to find the best and is accompanied by a certain optimization algorithm, in the hope of finding a solution with a relatively short wiring distance and fewer flying wires, but this method will consume a lot of computing power and time, and cannot meet the commercial requirements of fast and efficient goals. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a method, device and storage medium for optimizing the electrical wiring of a photovoltaic power station, so as to eliminate flying wires on obstacles as much as possible, shorten the length of DC cables, and adopt a fully automatic wiring form without a large amount of operation.

[0004] The present invention provides the following technical solutions:

[0005] In a first aspect, a method for optimizing electrical wiring of a photovoltaic power station is provided, comprising: scanning in the long side direction or the short side direction of all photovoltaic modules to obtain rows of photovoltaic modules; segmenting the rows of photovoltaic modules by determining whether the photovoltaic modules intersect with obstacles or outer boundaries to obtain a photovoltaic module segmentation list; calculating a length range of a string according to pre-acquired parameters of the photovoltaic modules and the inverter, and calculating the length of each string based on the length range of the string to obtain a string length distribution list; calculating a row number, a segment number and a photovoltaic module serial number of a photovoltaic module currently being connected in a string based on the photovoltaic module segmentation list and the string length distribution list; connecting photovoltaic modules to a current string based on the row number, the segment number and the photovoltaic module serial number of the photovoltaic module currently being connected in a string, and starting to connect the next string after the current string length is reached, until all strings are connected.

[0006] As an optional technical solution of the present invention, scanning in the long side direction or the short side direction of all photovoltaic modules to obtain each row of photovoltaic modules includes:

[0007] Take the long side or short side direction of all photovoltaic modules as the scanning direction and obtain the scanning direction vector , where n represents the scanning direction vector, , and Represent the components of n on the x-axis, y-axis, and z-axis respectively;

[0008] The distance between two photovoltaic modules in the scanning direction is taken as the scanning spacing d; if the scanning direction is the long side direction of the photovoltaic module, then ,in Indicates the length of the long side of the PV module. Indicates the distance between the two PV modules in front and behind in the long side direction of the PV module; if the scanning direction is the short side direction of the PV module, then ,in Indicates the short side length of the PV module. Indicates the distance between the two PV modules in front and behind in the short side direction of the PV module;

[0009] The coordinates of the lower left corner vertices of all photovoltaic modules are projected onto the scanning direction vector to obtain the projection height h of each photovoltaic module in the scanning direction, which is expressed as:

[0010] ;

[0011] in, Respectively represent the x value, y value and z value of the lower left vertex coordinates of the t-th photovoltaic module;

[0012] The minimum projection height h of all PV panels min As the scanning starting point h s ;

[0013] [h s ,h s +d] as the current scanning interval, the current scanning interval [h s ,h s +d] as a row of PV modules;

[0014] Set the position h s +d as the next scan starting point h s1 , and the next scanning interval [h s1 ,h s1 +d] as a row of PV modules;

[0015] When the scanning starting point is greater than the maximum projection height h of all photovoltaic modules max Stop scanning when the number of rows of photovoltaic modules is obtained.

[0016] As an optional technical solution of the present invention, the photovoltaic components in each row are segmented by determining whether each photovoltaic component intersects with an obstacle or an outer boundary to obtain a photovoltaic component segmentation list, including:

[0017] Calculate the direction vector of the current row , expressed as:

[0018] ;

[0019] Among them, cross represents the cross product calculation of the vector, n f represents the normal vector of the current layout surface, and n represents the scanning direction vector;

[0020] Projecting the coordinates of the lower left corner vertex of each photovoltaic module in the current row onto the direction vector to obtain the projection height of each photovoltaic module in the current row on the direction vector;

[0021] Sort all photovoltaic modules in the current row in ascending order of projection height;

[0022] Create an empty list and create the first segment in it, put the first PV module after sorting into the first segment, and the PV module sequence number of the first PV module is counted as 1;

[0023] The PV module number of the next PV module is counted as n t , judge the nth t The nth photovoltaic module and t -1Whether the PV panels intersect with obstacles or outer boundaries; if so, the nth t The nth photovoltaic module t -1 PV module is not in the same segment, create a new segment in the list and add the nth segment t PV panels are placed in the new segment; if they do not intersect, then the nth t The nth photovoltaic module t -1 PV modules are in the same segment, and the nth t The nth photovoltaic module is placed in t - In the segment where 1 photovoltaic module is located;

[0024] Until all photovoltaic modules are placed in corresponding segments, a photovoltaic module segment list is obtained.

[0025] As an optional technical solution of the present invention, the step of determining whether each photovoltaic module intersects with an obstacle or an outer boundary includes:

[0026] Connect the lower left corner vertex and the upper right corner vertex of the two photovoltaic modules respectively, and form a connecting line segment, which is expressed as [ p 11 , p 12 ] ,in, and Respectively represent the coordinates of the endpoints of the connecting line segment;

[0027] Get the edge segment of the obstacle or outer boundary, expressed as [ p 21 , p 22 ] ,in, and Respectively represent the coordinates of the endpoints of the edge segment;

[0028] It is determined in turn whether there is an intersection between the current edge segment and any connecting line segment between two photovoltaic modules, which is expressed as:

[0029] d 1 = [( x 12 − x 11 )( y 21 − y 11 ) + ( y 12 − y 11 )( x 21 − x 11 )][( x 12 − x 11 )( y 22 − y 11 ) + ( y 12 − y 11 )( x 22 − x 11 )] ;

[0030] d 2 = [( x 22 − x 21 )( y 11 − y 21 ) + ( y 22 − y 21 )( x 11 − x 21 )][( x 22 − x 21 )( y 12 − y 21 ) + ( y 22 − y 21 )( x 12 − x 21 )] ;

[0031] in, , , and Respectively , , and The horizontal axis of , , and Respectively , , and The vertical coordinate of

[0032] If d1<0 and d2<0, there is an intersection point between the edge line segment and any connecting line segment between two photovoltaic modules; otherwise, there is no intersection point.

[0033] As an optional technical solution of the present invention, the length range of the strings is calculated according to the pre-acquired parameters of the photovoltaic modules and the inverter, and the length of each string is calculated based on the length range of the strings to obtain a string length distribution list, including:

[0034] The length range of the string is calculated based on the parameters of the PV modules and inverters, expressed as:

[0035] N ≤ V dc ,max V oc × [ 1 + ( t − 25 ) × K V ] ;

[0036] V mppt ,min V pm × [ 1 + ( t ' − 25 ) × K V '] ≤ N ≤ V mppt ,max V pm × [ 1 + ( t ' − 25 ) × K V '] ;

[0037] Among them, K v Indicates the open circuit voltage temperature coefficient of the photovoltaic module, K v ' represents the working voltage temperature coefficient of the photovoltaic module, N represents the number of photovoltaic modules in series, t represents the extreme low temperature under the working conditions of the photovoltaic module, t' represents the extreme high temperature under the working conditions of the photovoltaic module, V dc,max Indicates the maximum DC input voltage allowed by the inverter, V mppt,max Indicates the maximum value of the inverter mppt voltage, V mppt,min Indicates the minimum value of the inverter mppt voltage, V oc Indicates the open circuit voltage of the photovoltaic module, V pm Indicates the operating voltage of the photovoltaic module;

[0038] The maximum number of photovoltaic modules connected in series within the length range of the string is taken as the string length N0;

[0039] Calculate the number of inverters required for the current layout, expressed as:

[0040] ;

[0041] Among them, N 0,inv Indicates the number of inverters, N pv represents the number of PV panels on the current layout surface, and m represents the number of strings on a single inverter;

[0042] Determine the number of inverters N 0,inv Is it an integer? If so, all strings have a length of N0, and a m×N 0,inv If not, the inverter number N0 is 0,inv Round up to get N 1,inv , recalculate the string length N1, expressed as:

[0043] ;

[0044] Determine whether the current string length N1 is an integer; if so, all string lengths are N1, and create an m×N 1,inv If not, the current string length N1 is rounded up to N2, and the number of strings with a string length of N2 is It is expressed as:

[0045] ;

[0046] Among them, % means to find the remainder;

[0047] The number of strings with a string length of N2-1 It is expressed as:

[0048] ;

[0049] A string length distribution list including all string lengths is created according to the string lengths and the number of strings.

[0050] As an optional technical solution of the present invention, the calculating of the row number, segment number and photovoltaic module sequence number of the photovoltaic module currently connected in string based on the photovoltaic module segment list and the string length distribution list includes:

[0051] Taking any string in the string length distribution list as the current string;

[0052] Select a point that is not on the layout surface as the starting point, and calculate the projection height h of the starting point on the scanning direction vector start , expressed as:

[0053] ;

[0054] in, Respectively represent the x value, y value and z value of the starting point coordinates;

[0055] Calculate the projection height h of a photovoltaic module in the first row and the last row on the scanning direction vector ’ min and h ’ max , and calculate h ’ min and h ’ max With h start The absolute value of the difference is taken, and the row with the smaller absolute value is taken as the current row, and its row number is taken as the row number of the photovoltaic module currently connected in string;

[0056] Obtain the lower left corner fixed point coordinates of the first and last two photovoltaic modules of all segments in the current row, and calculate the distance L from the lower left corner fixed point coordinates to the starting point, expressed as:

[0057] ;

[0058] in, , and They represent the x, y and z values ​​of the fixed point coordinates of the lower left corner of the photovoltaic module, , and Respectively represent the x value, y value and z value of the starting point coordinates;

[0059] The segment number of the photovoltaic assembly with the smallest distance L is used as the segment number of the photovoltaic assembly currently connected in string, and the photovoltaic assembly number of the photovoltaic assembly with the smallest distance L is used as the photovoltaic assembly number of the photovoltaic assembly currently connected in string.

[0060] As an optional technical solution of the present invention, the photovoltaic components of the current string are connected based on the row number, segment number and sequence number of the photovoltaic components currently connected in the string, and the next string is connected after the current string length is reached, until all strings are connected, including:

[0061] Acquire a photovoltaic component for connection according to the row number, segment number and photovoltaic component serial number of the photovoltaic component currently connected in string, connect the current string, and delete the acquired photovoltaic component from the photovoltaic component data;

[0062] The row number, segment number and serial number of the next photovoltaic module to be connected in string are obtained by transformation, and the next photovoltaic module to be connected is obtained to connect the current string until the current string length is reached;

[0063] The remaining strings in the string length distribution list are connected respectively until all strings are connected.

[0064] As an optional technical solution of the present invention, the transformation to obtain the row number, segment number and photovoltaic module serial number of the next photovoltaic module to be connected in series includes:

[0065] Determine whether there are any remaining photovoltaic modules under the segment of the photovoltaic module currently connected in string; if there are any remaining photovoltaic modules and the current photovoltaic module serial number is greater than 1, then the current photovoltaic module serial number is reduced by 1 and the current photovoltaic module serial number is updated; if there are any remaining photovoltaic modules and the current photovoltaic module serial number is equal to 1, no operation is required; if there are no remaining photovoltaic modules, segment conversion and row conversion are required;

[0066] The segment transformation includes: obtaining the coordinates of the photovoltaic components currently connected in string, calculating the distance between the coordinates of the lower left corner vertices of the first and last photovoltaic components of all segments in the current row and the coordinates of the photovoltaic components currently connected in string, and selecting the photovoltaic component with the smallest distance as the connected photovoltaic component in the next group of strings;

[0067] The row transformation includes: obtaining the photovoltaic components of the next row of the current row, calculating the distance between the lower left corner fixed point coordinates of the first and last photovoltaic components of all segments in the next row and the coordinates of the photovoltaic components currently connected in series, and selecting the photovoltaic component with the smallest distance as the current new connected photovoltaic component.

[0068] In a second aspect, a photovoltaic power station electrical wiring optimization device is provided, including: a row division module, which is used to scan in the long side direction or short side direction of all photovoltaic modules to obtain photovoltaic modules in each row; a segmentation module, which is used to segment the photovoltaic modules in each row by judging whether the photovoltaic modules intersect with obstacles or outer boundaries to obtain a photovoltaic module segmentation list; a string length calculation module, which is used to calculate the length range of the string according to the pre-acquired parameters of the photovoltaic modules and the inverter, and calculate the length of each string based on the length range of the string to obtain a string length distribution list; a photovoltaic module number calculation module, which is used to calculate the row number, segment number and photovoltaic module serial number of the photovoltaic module currently connected in the string based on the photovoltaic module segmentation list and the string length distribution list; an electrical connection module, which is used to connect the photovoltaic modules of the current string based on the row number, segment number and photovoltaic module serial number of the photovoltaic module currently connected in the string, and start connecting the next string after the current string length is reached until all strings are connected.

[0069] In a third aspect, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, the steps of the photovoltaic power station electrical wiring optimization method described in the first aspect are implemented.

[0070] Compared with the prior art, the present invention has the following beneficial effects:

[0071] The present invention provides a photovoltaic power station electrical wiring optimization method which automatically connects photovoltaic components in the form of rows and sections of photovoltaic components. The wiring distance is short, and fully automatic wiring is achieved without the need for a large number of operations, saving time and cost. At the same time, taking into account the existence of obstacles, flying wires on the obstacles are eliminated as much as possible, which is in line with actual application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 is a schematic flow chart of a photovoltaic power station electrical wiring optimization method according to an embodiment of the present invention;

[0073] Figure 2 Schematic diagram of electrical wiring in an embodiment of the present invention. DETAILED DESCRIPTION

[0074] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0075] Example 1

[0076] This embodiment provides a method for optimizing the electrical wiring of a photovoltaic power station. Figure 2 Taking the electrical wiring in as an example, this method is explained in detail.

[0077] like Figure 1 As shown, the method comprises the following steps:

[0078] Step 1: Scan all photovoltaic modules in the long side direction or the short side direction to obtain rows of photovoltaic modules.

[0079] Before scanning, you need to establish a coordinate system. Select a point as the origin of the coordinate system, take the east direction as the positive direction of the x-axis, the north direction as the positive direction of the y-axis, the zenith direction as the positive direction of the z-axis, and select the length unit as meters. This step specifically includes:

[0080] 1.1. Take the long side or short side direction of all photovoltaic modules as the scanning direction and obtain the scanning direction vector , where n represents the scanning direction vector, , and Represent the components of n on the x-axis, y-axis, and z-axis respectively.

[0081] like Figure 2 As shown, in this embodiment, the long side direction of the photovoltaic module is used as the scanning direction.

[0082] 1.2. The distance between two photovoltaic modules in the scanning direction is taken as the scanning distance d. If the scanning direction is the long side direction of the photovoltaic module, then ,in Indicates the length of the long side of the PV module. Indicates the distance between the two PV modules in front and behind in the long side direction of the PV module. If the scanning direction is the short side direction of the PV module, then ,in Indicates the short side length of the PV module. Indicates the distance between the two PV modules in front and behind in the short side direction of the PV module.

[0083] 1.3. Project the coordinates of the lower left corner vertices of all photovoltaic modules onto the scanning direction vector to obtain the projection height h of each photovoltaic module in the scanning direction, expressed as:

[0084] ;

[0085] in, They respectively represent the x value, y value, and z value of the lower left vertex coordinates of the t-th photovoltaic module.

[0086] 1.4. Set the minimum projection height h of all photovoltaic modules min As the scanning starting point h s .

[0087] 1.5、[h s ,h s+d] as the current scanning interval, the current scanning interval [h s ,h s +d] as a row of PV panels.

[0088] 1.6、Change the position h s +d as the next scan starting point h s1 , and the next scanning interval [h s1 ,h s1 +d] as a row of PV panels.

[0089] 1.7. Repeat the iterative scanning starting point. When the scanning starting point is greater than the maximum projection height h of all photovoltaic modules, max Stop scanning when the number of rows of photovoltaic modules is obtained.

[0090] Step 2: Segment each row of photovoltaic components by determining whether each photovoltaic component intersects with an obstacle or an outer boundary, and obtain a photovoltaic component segment list. This step specifically includes:

[0091] 2.1. Calculate the direction vector of the current row , expressed as:

[0092] ;

[0093] Among them, cross represents the cross product calculation of the vector, n f represents the normal vector of the current layout surface, and n represents the scanning direction vector.

[0094] 2.2. Project the coordinates of the lower left corner vertex of each photovoltaic module in the current row onto the direction vector, and refer to the formula in step 1.3 to calculate the projection height of each photovoltaic module in the current row on the direction vector.

[0095] 2.3. Sort all PV panels in the current row in ascending order of projection height.

[0096] 2.4. Create an empty list and create the first segment in it, put the first PV module after sorting into the first segment, and the PV module sequence number of the first PV module is counted as 1. The PV module sequence numbers of the subsequent PV modules are increased by 1 in sequence.

[0097] 2.5. Count the PV module serial number of the next PV module as n t , judge the nth t The nth photovoltaic module and t -1Whether the PV panels intersect with obstacles or outer boundaries. If so, then the nth t The nth photovoltaic module t-1 PV module is not in the same segment, create a new segment in the list and add the nth segment t PV panels are placed in the new segment; if they do not intersect, then the nth t The nth photovoltaic module t -1 PV modules are in the same segment, and the nth t The nth photovoltaic module is placed in t -1 photovoltaic module is located in the segment.

[0098] 2.6. It is determined in sequence whether all photovoltaic modules intersect with obstacles or outer boundaries with the previous photovoltaic module, until all photovoltaic modules are placed in corresponding segments, and the photovoltaic module segment list is obtained.

[0099] The step of determining whether the photovoltaic modules intersect with obstacles or outer boundaries comprises the following steps:

[0100] (1) Connect the lower left corner vertex and the upper right corner vertex of the two photovoltaic modules respectively to form a connecting line segment, which are represented as [ p lb , 1 , p lb , 2 ] and [ p rt , 1 , p rt , 2 ] Where P represents the coordinates of the photovoltaic module, subscripts 1 and 2 represent photovoltaic modules 1 and 2 respectively, and lb and rt represent the lower left corner and upper right corner respectively.

[0101] In this embodiment, to facilitate understanding of the following calculation process, the two connecting line segments at the lower left corner and the upper right corner are both represented as [ p 11 , p 12 ] ,in, and They represent the coordinates of the endpoints of the line segment.

[0102] (2) Obtain edge segments of the obstacle or outer boundary. To facilitate the understanding of the following calculation process, all edge segments are represented as [ p 21 , p 22 ] ,in, and Respectively represent the coordinates of the two end points of the edge segment.

[0103] (3) Determine the current edge segment in sequence [ p 21 , p 22 ] Any connecting line segment between two PV panels [ p 11 , p 12 ] Whether there is an intersection is expressed as:

[0104] d 1 = [( x 12 − x 11 )( y 21 − y 11 ) + ( y 12 − y 11 )( x 21 − x 11 )][( x 12 − x 11 )( y 22 − y 11 ) + ( y 12 − y 11 )( x 22 − x 11 )] ;

[0105] d 2 = [( x 22 − x 21 )( y 11 − y 21 ) + ( y 22 − y 21 )( x 11 − x 21 )][( x 22 − x 21 )( y 12 − y 21 ) + ( y 22 − y 21 )( x 12 − x 21 )] ;

[0106] in, , , and Respectively , , and The horizontal axis of , , and Respectively , , and The vertical coordinate of .

[0107] If d1<0 and d2<0, there is an intersection point between the edge line segment and any connecting line segment between two photovoltaic modules; otherwise, there is no intersection point.

[0108] like Figure 2 As shown, in this embodiment, the obstacle is a trapezoid in the figure. The five rows in the middle of the figure are divided into left and right sections by the trapezoid.

[0109] Step 3: Calculate the length range of the strings according to the pre-acquired parameters of the PV modules and inverters, calculate the length of each string based on the length range of the strings, and obtain a string length distribution list. This step specifically includes:

[0110] 3.1. Calculate the length range of the string according to the parameters of the PV modules and inverters, expressed as:

[0111] N ≤ V dc ,max V oc × [ 1 + ( t − 25 ) × K V ] ;

[0112] V mppt ,min V pm × [ 1 + ( t ' − 25 ) × K V '] ≤ N ≤ V mppt ,max V pm × [ 1 + ( t ' − 25 ) × K V '] ;

[0113] Among them, K v Indicates the open circuit voltage temperature coefficient of the photovoltaic module, K v ' represents the working voltage temperature coefficient of the photovoltaic module, N represents the number of photovoltaic modules in series, t represents the extreme low temperature under the working conditions of the photovoltaic module, t' represents the extreme high temperature under the working conditions of the photovoltaic module, V dc,max Indicates the maximum DC input voltage allowed by the inverter, V mppt,max Indicates the maximum value of the inverter mppt voltage, V mppt,min Indicates the minimum value of the inverter mppt voltage, V oc Indicates the open circuit voltage of the photovoltaic module, V pm Indicates the operating voltage of the PV panel.

[0114] like Figure 2As shown in FIG. 1 , different colored connection lines in the figure represent different inverters for connection. In this embodiment, the length range of the string is calculated according to the inverter model and the photovoltaic module model.

[0115] 3.2. The maximum number of photovoltaic modules connected in series within the length range of the string is taken as the string length N0. This is to reduce the number of inverters to reduce costs.

[0116] 3.3. Calculate the number of inverters required for the current layout, expressed as:

[0117] ;

[0118] Among them, N 0,inv Indicates the number of inverters, N pv It indicates the number of PV panels on the current layout surface, and m indicates the number of strings on a single inverter.

[0119] 3.4. Determine the number of inverters N 0,inv Is it an integer? If so, all strings have a length of N0, and a m×N 0,inv If not, the inverter number N0 is 0,inv Round up to get N 1,inv , recalculate the string length N1, expressed as:

[0120] ;

[0121] Determine whether the current string length N1 is an integer; if so, all string lengths are N1, and create an m×N 1,inv If not, the current string length N1 is rounded up to N2, and the number of strings with a string length of N2 is It is expressed as:

[0122] ;

[0123] Among them, % means finding the remainder.

[0124] The number of strings with a string length of N2-1 It is expressed as:

[0125] .

[0126] 3.5. Create a string length distribution list containing all string lengths according to the string lengths and the number of strings.

[0127] by String N2 group string and Take string N2-1 as an example, the string length distribution list contains N2 and N2-1.

[0128] The string length distribution list obtained in step 3 includes all the strings that need to be connected later, with a total number of num.

[0129] Step 4: Based on the photovoltaic module segment list and the string length distribution list, calculate the row number, segment number and photovoltaic module sequence number of the photovoltaic module currently connected in string. This step specifically includes:

[0130] 4.1. Any string in the string length distribution list is used as the current string.

[0131] Specifically, the kth string photovoltaic component in the string length distribution list is selected as the current string, which is counted as k=1, and the length of the string is N. The sequence number of the photovoltaic components connected in the string is initialized to S=1.

[0132] 4.2. Select a point that is not on the layout surface as the starting point and calculate the projection height h of the starting point on the scanning direction vector start , expressed as:

[0133] ;

[0134] in, Respectively represent the x value, y value, and z value of the starting point coordinates.

[0135] 4.3. Calculate the projection height h of a photovoltaic module in the first row and the last row on the scanning direction vector ’ min and h ’ max , and calculate h ’ min and h ’ max With h start The absolute value of the difference is taken, and the row with the smaller absolute value is taken as the current row, and its row number is taken as the row number of the photovoltaic module currently connected in string.

[0136] 4.4. Obtain the lower left corner fixed point coordinates of the first and last two photovoltaic modules of all segments in the current row, and calculate the distance L from the lower left corner fixed point coordinates to the starting point, expressed as:

[0137] ;

[0138] in, , and They represent the x, y and z values ​​of the fixed point coordinates of the lower left corner of the photovoltaic module, , and Respectively represent the x value, y value, and z value of the starting point coordinates.

[0139] 4.5. The segment number of the photovoltaic assembly with the smallest distance L is used as the segment number of the photovoltaic assembly currently connected in string, and the photovoltaic assembly number of the photovoltaic assembly with the smallest distance L is used as the photovoltaic assembly number of the photovoltaic assembly currently connected in string.

[0140] The row number, segment number and PV module serial number can be used to identify the currently connected PV module.

[0141] Step 5: Connect the photovoltaic components of the current string based on the row number, segment number and photovoltaic component serial number of the photovoltaic components currently being connected, and start connecting the next string after the current string length is reached until all strings are connected. This step specifically includes:

[0142] 5.1. Obtain the photovoltaic component for connection according to the row number, segment number and photovoltaic component serial number of the photovoltaic component currently connected in string, connect the current string, delete the obtained photovoltaic component from the photovoltaic component data, and add the photovoltaic component to the connection result list.

[0143] 5.2. Transform to obtain the row number, segment number and serial number of the next photovoltaic module to be connected in string, and obtain the next photovoltaic module to be connected to connect the current string until the current string length is reached. Specifically including:

[0144] (1) Determine whether there are any remaining PV modules under the segment of the PV module currently being connected in series. If there are any remaining PV modules and the current PV module serial number is greater than 1, then the current PV module serial number is reduced by 1 and the current PV module serial number is updated; if there are any remaining PV modules and the current PV module serial number is equal to 1, since the previous PV module is deleted, the position indicated by the current serial number is the next PV module to be connected, and no operation is required; if there are no remaining PV modules, segment transformation and row transformation are required.

[0145] (2) The segment transformation is to select the starting photovoltaic module for the next segment on the current row. It includes: obtaining the coordinates of the photovoltaic module currently connected in string, calculating the distance between the coordinates of the lower left corner vertices of the first and last photovoltaic modules of all segments in the current row and the coordinates of the photovoltaic module currently connected in string, and selecting the photovoltaic module with the smallest distance as the photovoltaic module connected in the next string.

[0146] (3) The row transformation is to select the connected photovoltaic modules of the current string in the next row. It includes: obtaining the photovoltaic modules in the next row of the current row, calculating the distances between the lower left corner fixed-point coordinates of the head and tail photovoltaic modules of all segments in the next row and the coordinates of the photovoltaic module currently being connected in series, and selecting the photovoltaic module with the minimum distance as the current new connected photovoltaic module.

[0147] As Figure 1 shown, if the serial number of the connected photovoltaic module is S < N, repeat steps 5.1 and 5.2 until S = N, indicating that the connection of the current string is completed.

[0148] 5.3. Connect the remaining strings in the string length distribution list respectively until all strings are connected.

[0149] As Figure 1 shown, after the connection of the current string is completed, select the (k + 1)-th string as the next string to be connected. Repeat step four and step five until all strings are connected.

[0150] Embodiment 2

[0151] This embodiment provides a photovoltaic power station electrical wiring optimization device, including:

[0152] A row division module, configured to scan in the long side direction or the short side direction of all photovoltaic modules to obtain the photovoltaic modules in each row.

[0153] A segmentation module, configured to segment the photovoltaic modules in each row by determining whether there is an intersection between each photovoltaic module and an obstacle or an outer boundary, to obtain a photovoltaic module segmentation list.

[0154] A string length calculation module, configured to calculate the length range of the string according to the parameters of the photovoltaic module and the inverter obtained in advance, and calculate the length of each string based on the length range of the string to obtain a string length distribution list.

[0155] A photovoltaic module number calculation module, configured to calculate the row number, segment number, and photovoltaic module serial number of the photovoltaic module currently being connected in series based on the photovoltaic module segmentation list and the string length distribution list.

[0156] An electrical connection module, configured to connect the photovoltaic modules of the current string based on the row number, segment number, and photovoltaic module serial number of the photovoltaic module currently being connected in series, start connecting the next string after reaching the length of the current string, until all strings are connected.

[0157] Embodiment 3

[0158] This embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the steps of the photovoltaic power station electrical wiring optimization method described in Embodiment 1.

[0159] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0160] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0161] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0162] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0163] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for optimizing electrical wiring of a photovoltaic power station, characterized in that: include: Scanning along the long side direction or the short side direction of all photovoltaic modules to obtain photovoltaic modules in each row; The rows of photovoltaic components are segmented by determining whether the photovoltaic components intersect with obstacles or outer boundaries, so as to obtain a photovoltaic component segmentation list; Calculate the length range of the strings according to the pre-acquired parameters of the photovoltaic modules and the inverter, calculate the length of each string based on the length range of the strings, and obtain a string length distribution list; Based on the photovoltaic module segment list and the string length distribution list, calculating the row number, segment number and photovoltaic module sequence number of the photovoltaic module currently connected in string; The photovoltaic components of the current string are connected based on the row number, segment number and photovoltaic component sequence number of the photovoltaic components currently being connected in string. When the current string length is reached, the next string is connected until all strings are connected.

2. The photovoltaic power station electrical wiring optimization method according to claim 1, characterized in that: The scanning is performed in the long side direction or the short side direction of all photovoltaic modules to obtain each row of photovoltaic modules, including: Take the long side or short side direction of all photovoltaic modules as the scanning direction and obtain the scanning direction vector , where n represents the scanning direction vector, , and Represent the components of n on the x-axis, y-axis, and z-axis respectively; The distance between two photovoltaic modules in the scanning direction is taken as the scanning spacing d; if the scanning direction is the long side direction of the photovoltaic module, then ,in Indicates the length of the long side of the PV module. Indicates the distance between the two PV modules in front and behind in the long side direction of the PV module; if the scanning direction is the short side direction of the PV module, then ,in Indicates the short side length of the PV module. Indicates the distance between the two PV modules in front and behind in the short side direction of the PV module; The coordinates of the lower left corner vertices of all photovoltaic modules are projected onto the scanning direction vector to obtain the projection height h of each photovoltaic module in the scanning direction, which is expressed as: ; in, Respectively represent the x value, y value and z value of the lower left vertex coordinates of the t-th photovoltaic module; The minimum projection height h of all PV panels min As the scanning starting point h s ; [h s ,h s +d] as the current scanning interval, the current scanning interval [h s ,h s +d] as a row of PV modules; Set the position h s +d as the next scan starting point h s1 , and the next scanning interval [h s1 ,h s1 +d] as a row of PV modules; When the scanning starting point is greater than the maximum projection height h of all photovoltaic modules max Stop scanning when the number of rows of photovoltaic modules is obtained.

3. The photovoltaic power station electrical wiring optimization method according to claim 1, characterized in that: The photovoltaic components in each row are segmented by determining whether each photovoltaic component intersects with an obstacle or an outer boundary to obtain a photovoltaic component segmentation list, including: Calculate the direction vector of the current row , expressed as: ; Among them, cross represents the cross product calculation of the vector, n f represents the normal vector of the current layout surface, and n represents the scanning direction vector; Projecting the coordinates of the lower left corner vertex of each photovoltaic module in the current row onto the direction vector to obtain the projection height of each photovoltaic module in the current row on the direction vector; Sort all photovoltaic modules in the current row in ascending order of projection height; Create an empty list and create the first segment in it, put the first PV module after sorting into the first segment, and the PV module sequence number of the first PV module is counted as 1; The PV module number of the next PV module is counted as n t , judge the nth t The nth photovoltaic module and t -1Whether the PV panels intersect with obstacles or outer boundaries; if so, the nth t The nth photovoltaic module t -1 PV module is not in the same segment, create a new segment in the list and add the nth segment t PV panels are placed in the new segment; if they do not intersect, then the nth t The nth photovoltaic module t -1 PV modules are in the same segment, and the nth t The nth photovoltaic module is placed in t - In the segment where 1 photovoltaic module is located; Until all photovoltaic modules are placed in corresponding segments, a photovoltaic module segment list is obtained.

4. The photovoltaic power station electrical wiring optimization method according to claim 3, characterized in that: The step of determining whether the photovoltaic modules intersect with obstacles or outer boundaries includes: Connect the lower left corner vertex and the upper right corner vertex of the two photovoltaic modules respectively, and form a connecting line segment, which is expressed as ,in, and Respectively represent the coordinates of the endpoints of the connecting line segment; Get the edge segment of the obstacle or outer boundary, expressed as ,in, and Respectively represent the coordinates of the endpoints of the edge segment; It is determined in turn whether there is an intersection between the current edge segment and any connecting line segment between two photovoltaic modules, which is expressed as: ; ; in, , , and Respectively , , and The horizontal axis of , , and Respectively , , and The vertical coordinate of If d1<0 and d2<0, there is an intersection point between the edge line segment and any connecting line segment between two photovoltaic modules; otherwise, there is no intersection point.

5. The photovoltaic power station electrical wiring optimization method according to claim 1, characterized in that: The length range of the strings is calculated according to the pre-acquired parameters of the photovoltaic components and the inverter, and the length of each string is calculated based on the length range of the strings to obtain a string length distribution list, including: The length range of the string is calculated based on the parameters of the PV modules and inverters, expressed as: ; ; Among them, K v Indicates the open circuit voltage temperature coefficient of the photovoltaic module, K v ' represents the working voltage temperature coefficient of the photovoltaic module, N represents the number of photovoltaic modules in series, t represents the extreme low temperature under the working conditions of the photovoltaic module, t' represents the extreme high temperature under the working conditions of the photovoltaic module, V dc,max Indicates the maximum DC input voltage allowed by the inverter, V mppt,max Indicates the maximum value of the inverter mppt voltage, V mppt,min Indicates the minimum value of the inverter mppt voltage, V oc Indicates the open circuit voltage of the photovoltaic module, V pm Indicates the operating voltage of the photovoltaic module; The maximum number of photovoltaic modules connected in series within the length range of the string is taken as the string length N0; Calculate the number of inverters required for the current layout, expressed as: ; Among them, N 0,inv Indicates the number of inverters, N pv represents the number of PV panels on the current layout surface, and m represents the number of strings on a single inverter; Determine the number of inverters N 0,inv Is it an integer? If so, all strings have a length of N0, and a m×N 0,inv If not, the inverter number N0 is 0,inv Round up to get N 1,inv , recalculate the string length N1, expressed as: ; Determine whether the current string length N1 is an integer; if so, all string lengths are N1, and create an m×N 1,inv If not, the current string length N1 is rounded up to N2, and the number of strings with a string length of N2 is It is expressed as: ; Among them, % means to find the remainder; The number of strings with a string length of N2-1 It is expressed as: ; A string length distribution list including all string lengths is created according to the string lengths and the number of strings.

6. The photovoltaic power station electrical wiring optimization method according to claim 2, characterized in that: The step of calculating the row number, segment number and sequence number of the photovoltaic components currently connected in strings based on the photovoltaic component segment list and the string length distribution list includes: Taking any string in the string length distribution list as the current string; Select a point that is not on the layout surface as the starting point, and calculate the projection height h of the starting point on the scanning direction vector start , expressed as: ; in, Respectively represent the x value, y value and z value of the starting point coordinates; Calculate the projection height h of a photovoltaic module in the first row and the last row on the scanning direction vector ’ min and h ’ max , and calculate h ’ min and h ’ max With h start The absolute value of the difference is taken, and the row with the smaller absolute value is taken as the current row, and its row number is taken as the row number of the photovoltaic module currently connected in string; Obtain the lower left corner fixed point coordinates of the first and last two photovoltaic modules of all segments in the current row, and calculate the distance L from the lower left corner fixed point coordinates to the starting point, expressed as: ; in, , and They represent the x, y and z values ​​of the fixed point coordinates of the lower left corner of the photovoltaic module, , and Respectively represent the x value, y value and z value of the starting point coordinates; The segment number of the photovoltaic assembly with the smallest distance L is used as the segment number of the photovoltaic assembly currently connected in string, and the photovoltaic assembly number of the photovoltaic assembly with the smallest distance L is used as the photovoltaic assembly number of the photovoltaic assembly currently connected in string.

7. The photovoltaic power station electrical wiring optimization method according to claim 6, characterized in that: The method of connecting the photovoltaic components of the current string based on the row number, segment number and sequence number of the photovoltaic components currently connected in the string, and starting to connect the next string after the current string length is reached, until all strings are connected, includes: Acquire a photovoltaic component for connection according to the row number, segment number and photovoltaic component serial number of the photovoltaic component currently connected in string, connect the current string, and delete the acquired photovoltaic component from the photovoltaic component data; The row number, segment number and serial number of the next photovoltaic module to be connected in string are obtained by transformation, and the next photovoltaic module to be connected is obtained to connect the current string until the current string length is reached; The remaining strings in the string length distribution list are connected respectively until all strings are connected.

8. The photovoltaic power station electrical wiring optimization method according to claim 7, characterized in that: The transformation obtains the row number, segment number and sequence number of the next photovoltaic module to be connected in series, including: Determine whether there are any remaining photovoltaic modules under the segment of the photovoltaic module currently connected in string; if there are any remaining photovoltaic modules and the current photovoltaic module serial number is greater than 1, then the current photovoltaic module serial number is reduced by 1 and the current photovoltaic module serial number is updated; if there are any remaining photovoltaic modules and the current photovoltaic module serial number is equal to 1, no operation is required; if there are no remaining photovoltaic modules, segment conversion and row conversion are required; The segment transformation includes: obtaining the coordinates of the photovoltaic components currently connected in string, calculating the distance between the coordinates of the lower left corner vertices of the first and last photovoltaic components of all segments in the current row and the coordinates of the photovoltaic components currently connected in string, and selecting the photovoltaic component with the smallest distance as the connected photovoltaic component in the next group of strings; The row transformation includes: obtaining the photovoltaic components of the next row of the current row, calculating the distance between the lower left corner fixed point coordinates of the first and last photovoltaic components of all segments in the next row and the coordinates of the photovoltaic components currently connected in series, and selecting the photovoltaic component with the smallest distance as the current new connected photovoltaic component.

9. A photovoltaic power station electrical wiring optimization device, characterized in that: include: A row module is used to scan all photovoltaic modules in the long side direction or the short side direction to obtain photovoltaic modules in each row; A segmentation module, used to segment the rows of photovoltaic components by determining whether the photovoltaic components intersect with obstacles or outer boundaries, and obtain a photovoltaic component segmentation list; A string length calculation module is used to calculate the length range of the strings according to the pre-acquired parameters of the photovoltaic modules and the inverter, calculate the length of each string based on the length range of the strings, and obtain a string length distribution list; A photovoltaic module number calculation module, used to calculate the row number, segment number and photovoltaic module serial number of the photovoltaic module currently connected in string based on the photovoltaic module segment list and the string length distribution list; The electrical connection module is used to connect the photovoltaic components of the current string based on the row number, segment number and photovoltaic component sequence number of the photovoltaic components currently being connected in string, and start connecting the next string after the current string length is reached until all strings are connected.

10. 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 photovoltaic power station electrical wiring optimization method described in any one of claims 1 to 8 are implemented.