A method of arranging photovoltaic modules and related apparatus

By searching each grid in the mountainous region and constraining the slope and aspect, the arrangement of photovoltaic modules was optimized, solving the problem of wasted mountain land and improving the utilization rate and power generation efficiency of the mountainous area.

CN122242087APending Publication Date: 2026-06-19BEIJING GOLDWIND SCI & CREATION WINDPOWER EQUIP CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING GOLDWIND SCI & CREATION WINDPOWER EQUIP CO LTD
Filing Date
2024-12-17
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

When arranging photovoltaic modules in mountainous areas, existing technologies tend to waste the mountainous terrain and make it difficult to effectively utilize complex terrain areas.

Method used

By searching each grid on the grid map, the grid to be arranged for photovoltaic modules in mountainous areas is determined. Combined with the preset slope and aspect range and quantity range, the arrangement of photovoltaic modules is optimized to ensure that the slope and aspect values ​​of each photovoltaic module meet the requirements.

Benefits of technology

It improves the utilization rate of mountainous areas, reduces the wasted mountainous area during the arrangement of photovoltaic modules, and increases the power generation of photovoltaic modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122242087A_ABST
    Figure CN122242087A_ABST
Patent Text Reader

Abstract

This application discloses a method and related apparatus for arranging photovoltaic (PV) modules. The method includes: acquiring a target mountainous area, a preset slope and aspect range, a preset number range of PV modules, and a grid map describing the target mountainous area. Based on the size of the PV modules and the grid representation space, the required grid area for each PV module is determined. Starting from the preset grid, the grid to be arranged is searched one by one until no further PV modules can be arranged, thus obtaining a pending arrangement method and the corresponding number of modules. If the number of modules is within the preset range and the slope and aspect of each PV module are within the preset slope and aspect range, then the pending method is determined as the final arrangement method. This reduces the wasted mountainous area during the arrangement of PV modules. By constraining the slope and aspect values ​​of each PV module through the preset slope and aspect range, the utilization rate of the mountainous area in the target mountainous region can be improved while maintaining high power generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of new energy technology, and in particular to a method for arranging photovoltaic modules and related devices. Background Technology

[0002] With the rapid development of new energy technologies, photovoltaic power generation technology has made significant progress. The process of photovoltaic power generation involves using photovoltaic modules to convert the radiant energy of sunlight into electrical energy, thereby supplying electricity or storing it. To maximize the power generation of photovoltaic modules, the proper arrangement of these modules in areas with abundant sunshine is crucial.

[0003] In related technologies, photovoltaic modules are usually arranged row by row. However, this method can easily lead to waste of mountainous land when arranging photovoltaic modules in mountainous areas. Summary of the Invention

[0004] To address the aforementioned issues, this application provides a method and related apparatus for arranging photovoltaic modules, which improves the utilization rate of mountainous areas when arranging photovoltaic modules.

[0005] Based on this, the following technical solution is disclosed in this application:

[0006] In a first aspect, embodiments of this application provide a method for arranging photovoltaic modules, the method comprising:

[0007] Obtain the target mountainous area for arranging multiple photovoltaic modules, the preset slope and aspect range that each photovoltaic module must meet, and the preset number range of the multiple photovoltaic modules;

[0008] Obtain a grid map to describe the target mountain region, wherein the grid map includes multiple grids representing different sub-mountain regions of the target mountain region;

[0009] Based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram, the required grid area of ​​the photovoltaic module in the grid diagram is determined, and the required grid area includes multiple grids;

[0010] Starting from the preset grid in the grid diagram, multiple grids to be arranged are searched one by one until it is determined that the grids to be arranged in the grid diagram cannot accommodate the next photovoltaic module according to the required grid area. Then, a pending arrangement method for describing multiple photovoltaic modules in the target mountain area is obtained, as well as the number of multiple photovoltaic modules arranged under the pending arrangement method. The grids to be arranged are grids in the grid diagram that are not located in the approved grid area of ​​other photovoltaic modules.

[0011] If the number of photovoltaic modules is within the preset number range, and the slope and aspect values ​​corresponding to each photovoltaic module in the undetermined arrangement are all within the preset slope and aspect range, then the undetermined arrangement is determined as the final arrangement of the multiple photovoltaic modules.

[0012] Optionally, if the sizes of the first photovoltaic module and the second photovoltaic module among the plurality of photovoltaic modules are different, then starting from a preset grid in the grid diagram, multiple grids to be arranged are searched one by one until it is determined, based on the required grid area, that the grid to be arranged in the grid diagram cannot accommodate the next photovoltaic module. This yields a pending arrangement method for describing the plurality of photovoltaic modules in the target mountainous area, and the number of photovoltaic modules arranged under the pending arrangement method, including:

[0013] Determine the i-th photovoltaic module;

[0014] Based on the size of the i-th photovoltaic module and the size of the space represented by each grid in the grid diagram, the required grid area of ​​the i-th photovoltaic module in the grid diagram is determined, where i is a positive integer;

[0015] Based on the approved grid area of ​​the (i-1)th photovoltaic module, a traversal starting grid is determined for the i-th photovoltaic module. The traversal starting grid is the grid to be arranged around the approved grid area of ​​the (i-1)th photovoltaic module in the grid diagram.

[0016] Starting from the traversal starting grid, multiple grids to be arranged are searched one by one until a grid to be arranged that satisfies the required grid area of ​​the i-th photovoltaic module is obtained. The approved grid area of ​​the i-th photovoltaic module is obtained based on the grid to be arranged that satisfies the required grid area of ​​the i-th photovoltaic module.

[0017] If the next approved grid area for the photovoltaic module cannot be obtained based on the grid to be arranged in the grid diagram, then a pending arrangement method is obtained, and the number of photovoltaic modules arranged under the pending arrangement method is determined.

[0018] Optionally, the method further includes:

[0019] The preset slope and aspect range is determined as the current slope and aspect range. The steps of determining the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram, and the steps of searching multiple grids to be arranged one by one from the preset grid in the grid diagram until it is determined that the grid to be arranged in the grid diagram cannot accommodate the next photovoltaic module based on the required grid area, are then obtained to describe the undetermined arrangement of multiple photovoltaic modules in the target mountain area, and the number of multiple photovoltaic modules arranged under the undetermined arrangement.

[0020] If the number of arrangements does not meet the preset number range, the current slope and aspect range is adjusted according to the relationship between the number of arrangements and the preset number range to obtain an updated slope and aspect range;

[0021] If the updated slope and aspect range is greater than the upper limit of the preset slope and aspect range, then the undetermined layout method is determined as the final layout method.

[0022] If the updated slope and aspect range is less than the lower limit of the preset slope and aspect range, then the updated slope and aspect range is updated to the current slope and aspect range, and the steps of determining the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram, as well as subsequent steps, are executed until the final arrangement is obtained.

[0023] Optionally, adjusting the current slope and aspect range based on the relationship between the arrangement quantity and the preset quantity range to obtain an updated slope and aspect range includes:

[0024] If the number of arrangements is greater than the preset number range, then the current slope and aspect range is reduced to obtain the updated slope and aspect range;

[0025] If the number of arrangements is less than the preset number range, then the current slope and aspect range is increased to obtain the updated slope and aspect range.

[0026] Optionally, the method further includes:

[0027] A grid map to be constructed based on the target mountainous region;

[0028] Determine the natural disaster risk value corresponding to each grid in the grid diagram to be determined;

[0029] If the natural disaster risk value of the target grid is greater than the risk threshold, the target grid is determined as a non-distribution grid, which is no longer used as a grid for distributing the photovoltaic modules; if the natural disaster risk value of the target grid is less than or equal to the risk threshold, the target grid is determined as the grid to be distributed.

[0030] Each of the grids in the undetermined grid diagram is taken as the target grid to obtain the grid diagram, which includes the unarranged grids and the grids to be arranged.

[0031] Optionally, determining the natural disaster risk value corresponding to each grid in the grid map to be determined includes:

[0032] If the slope of the space represented by the grid in the undetermined grid map is greater, the land stability is lower, or the precipitation is greater, then the natural disaster risk value corresponding to the grid in the undetermined grid is greater.

[0033] Optionally, the spatial representation of grids in the same row of the grid diagram is east-west oriented, and the spatial representation of grids in the same column of the grid diagram is north-south oriented. The method further includes:

[0034] For a target photovoltaic module among the multiple photovoltaic modules indicated by the undetermined arrangement, obtain the approved grid area of ​​the target photovoltaic module;

[0035] Based on the approved grid area of ​​the target photovoltaic module, determine the elevation difference of each row of the grid characterization space, and the sum of the first elevation differences of multiple rows of the grid characterization space;

[0036] Based on the approved grid area of ​​the target photovoltaic module, the sum of the first edge distances in the east-west direction of the target photovoltaic module is determined. The sum of the first edge distances is the sum of the first edge grid distances of each row of the target photovoltaic module. The first edge grid distance is the distance between the easternmost grid and the westernmost grid.

[0037] Based on the sum of the first elevation difference and the sum of the first edge distance, the first slope of the approved grid area of ​​the target photovoltaic module in the east-west direction is obtained;

[0038] Based on the approved grid area of ​​the target photovoltaic module, determine the elevation difference of each column of the grid characterization space, and the sum of the second elevation differences of multiple columns of the grid characterization space;

[0039] Based on the approved grid area of ​​the target photovoltaic module, the sum of the second edge distances of the target photovoltaic module in the north-south direction is determined. The sum of the second edge distances is the sum of the second edge grid distances of each column of the target photovoltaic module. The second edge grid distance is the distance between the southernmost grid and the northernmost grid.

[0040] The second slope of the approved grid area of ​​the target photovoltaic module in the north-south direction is obtained based on the sum of the second elevation difference and the sum of the second edge distance;

[0041] Based on the first slope and the second slope, the slope and aspect value corresponding to the target photovoltaic module is determined, wherein the slope and aspect value includes the slope value and the aspect value.

[0042] Secondly, embodiments of this application provide a photovoltaic module arrangement device, the device comprising: an acquisition unit, a determination unit, and a search unit;

[0043] The acquisition unit is used to acquire the target mountainous area for arranging multiple photovoltaic modules, the preset slope and aspect range that each photovoltaic module needs to meet, and the preset number range of the multiple photovoltaic modules.

[0044] The acquisition unit is further configured to acquire a grid map describing the target mountain region, wherein the grid map includes multiple grids representing different sub-mountain regions of the target mountain region.

[0045] The determining unit is used to determine the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram. The required grid area includes multiple grids.

[0046] The search unit is used to search for multiple grids to be arranged one by one, starting from a preset grid in the grid diagram, until it is determined that the grid to be arranged in the grid diagram cannot accommodate the next photovoltaic module according to the required grid area. Then, it obtains a pending arrangement method for describing multiple photovoltaic modules in the target mountain area, and the number of multiple photovoltaic modules arranged under the pending arrangement method. The grid to be arranged is a grid in the grid diagram that is not located in the approved grid area of ​​other photovoltaic modules.

[0047] The determining unit is further configured to determine the undetermined arrangement as the final arrangement of the plurality of photovoltaic modules if the number of arrangements is within the preset number range and the slope and aspect values ​​corresponding to each photovoltaic module in the undetermined arrangement are all within the preset slope and aspect range.

[0048] Thirdly, embodiments of this application provide a computer device, the computer device including a processor and a memory:

[0049] The memory is used to store computer programs and to transfer the computer programs to the processor;

[0050] The processor is configured to perform the method described in the first aspect of the claims according to the computer program.

[0051] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program for performing the method described in the first aspect above.

[0052] Fifthly, embodiments of this application provide a computer program product including a computer program, which, when run on a computer device, causes the computer device to perform the method described in the first aspect above.

[0053] As can be seen from the above technical solutions, this application has at least the following beneficial effects:

[0054] The process involves obtaining the target mountainous region for arranging multiple photovoltaic (PV) modules, the preset slope and aspect range required for each PV module, and the preset number range of PV modules. A grid map describing the target mountainous region is then obtained. Based on the size of the PV modules and the size of the space represented by each grid in the grid map, the required grid area for each PV module to be arranged in the grid map is determined. This allows for the identification of the corresponding grid for each PV module in the grid map based on its required grid area. Starting from the preset grid in the grid map, multiple grids are searched one by one until the grid area determines that no further PV module can be placed in the grid. This yields a potential arrangement method for multiple PV modules in the target mountainous region, and the number of PV modules to be arranged under this method. Compared to the method of arranging multiple PV modules row by row, which requires a regular arrangement, the method of searching for each grid is more detailed, reducing the wasted mountainous area due to the inability to arrange PV modules and improving the utilization rate of the mountainous region during the arrangement process. If the number of photovoltaic modules is within a preset range, and the slope and aspect range corresponding to each photovoltaic module in the proposed arrangement is also within the preset slope and aspect range, it indicates that the proposed arrangement meets the preset requirement for the number of photovoltaic modules and the slope and aspect value corresponding to each photovoltaic module meets the preset slope and aspect requirement. Therefore, the proposed arrangement is determined as the final arrangement for multiple photovoltaic modules. Thus, by searching each grid in the grid diagram to obtain the grid to be arranged for each photovoltaic module, the space represented by each grid is fully utilized for arrangement, reducing the wasted mountain area during the arrangement of each photovoltaic module. Simultaneously, by constraining the slope and aspect values ​​of each photovoltaic module by the preset slope and aspect range, the utilization rate of the target mountain area can be improved while ensuring a higher power generation of the photovoltaic modules corresponding to the final arrangement. Attached Figure Description

[0055] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 A schematic flowchart illustrating a photovoltaic module arrangement method provided in this application embodiment;

[0057] Figure 2 A schematic diagram illustrating a process for searching and determining the arrangement of photovoltaic modules, provided as an embodiment of this application;

[0058] Figure 3A schematic diagram illustrating an iterative adjustment of the slope and aspect range provided in an embodiment of this application;

[0059] Figure 4 A schematic diagram of a photovoltaic module arrangement device provided in an embodiment of this application;

[0060] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0061] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.

[0062] The arrangement methods used in related technologies for photovoltaic (PV) modules in mountainous areas can easily lead to land waste. For example, row-by-row arrangement places PV modules in a systematic, sequential manner. However, this method is only suitable for flat terrain. In mountainous areas with complex terrain, the uneven surface makes it difficult to find large areas for placing PV modules, hindering systematic arrangement and resulting in land waste. Another example is the 3x3 grid method, where one grid represents the same size as one PV module. Arranging nine PV modules in a 3x3 grid, i.e., a tight arrangement, is also difficult to find in complex mountainous areas, leading to significant land waste. In short, both row-by-row and 3x3 grid methods result in low land utilization in mountainous regions.

[0063] Based on this, the present application provides a method and related apparatus for arranging photovoltaic modules. By searching each grid of the grid diagram one by one, the grid to be arranged for each photovoltaic module is obtained. The space represented by each grid is fully utilized for arrangement, reducing the wasted mountain area in the process of arranging each photovoltaic module. At the same time, by setting the slope and aspect range to constrain the slope and aspect values ​​of each photovoltaic module, the utilization rate of the mountain area in the target mountain region can be improved when the power generation of the photovoltaic modules corresponding to the final arrangement is high.

[0064] The photovoltaic module arrangement method provided in this application can be applied to computer equipment capable of arranging photovoltaic modules, such as terminal devices and servers. Specifically, terminal devices can be desktop computers, laptops, mobile phones, and tablets; servers can be independent physical servers, server clusters composed of multiple physical servers, or distributed systems. Terminal devices and servers can be directly or indirectly connected via wired or wireless communication, and this application does not impose any restrictions on this connection.

[0065] See Figure 1 This figure is a schematic flowchart of the photovoltaic module arrangement method provided in an embodiment of this application. For ease of description, the following embodiment uses a server as the executing entity of the photovoltaic module arrangement method. Figure 1 As shown, the arrangement method of the photovoltaic module includes S101-S105.

[0066] S101: Obtain the target mountainous area for arranging multiple photovoltaic modules, the preset slope and aspect range that each photovoltaic module must meet, and the preset quantity range of multiple photovoltaic modules.

[0067] Photovoltaic modules are important components in photovoltaic power generation systems, used to convert solar energy into electrical energy. For example, monocrystalline silicon solar panels and polycrystalline silicon solar panels are two types of photovoltaic modules.

[0068] The target mountain area, preset slope and aspect range, and preset quantity range are usually preset by the user according to their needs. If the user does not set them, the target mountain area will be set as the default mountain area, the preset slope and aspect range will be set as the default slope and aspect range, and the preset quantity range will be set as the default quantity range. "Default" is used to represent the general settings in the absence of user settings.

[0069] The target mountainous region refers to the mountainous area used for arranging multiple photovoltaic (PV) modules. Geographically, mountainous regions are characterized by significant undulations, steep slopes, and a generally ridge-like distribution. The target mountainous region comprises multiple sub-mountainous regions, which are the basic units constituting the target mountainous region. A mountainous region is defined as an area where the number of PV modules arranged is less than a threshold value, where the number of modules arranged is the number of PV modules included in the arrangement method for the target mountainous region. This threshold value is determined by arranging PV modules on flat terrain. For example, arranging PV modules on flat terrain yields an arrangement with 100 modules, and 100 is set as the threshold value. In mountainous regions, due to the rugged and undulating terrain, some areas are unsuitable for PV module installation; therefore, the number of modules arranged in mountainous regions is less than 100.

[0070] The preset slope and aspect ranges are the conditions that each photovoltaic (PV) module must meet during the arrangement process, as preset by the user. This includes preset slope and aspect ranges. The slope and aspect values ​​corresponding to each PV module include both the slope value and the aspect value. The slope value corresponding to each PV module indicates the degree of inclination of the hillside area where the PV modules are installed. This can be determined by dividing the change in vertical height of the hillside area by the change in horizontal distance. For example, the preset slope range could be 0-30 degrees. When the slope value of the hillside area where the PV modules are installed is between 0 and 30 degrees, it indicates that installing PV modules in that area is relatively easy.

[0071] The slope aspect value corresponding to the photovoltaic module is the angle of the hillside area where the photovoltaic module is installed. It can be represented by the azimuth angle, which is usually the horizontal angle between a straight line measured from due north and clockwise. The value range is from 0 degrees to 360 degrees.

[0072] Generally, photovoltaic (PV) modules have the highest power generation efficiency when the slope aspect (azimuth angle) faces due south (i.e., 180 degrees). As the slope aspect deviates from due south, the power generation of the PV module decreases accordingly. For example, for the same PV module, when the slope aspect (azimuth angle) deviates from due south by 30 degrees, the power generation decreases by approximately 10%-15%, and when it deviates from due south by 60 degrees, the power generation decreases by approximately 20%-30%. A preset slope aspect range (azimuth angle range) of 160-200 degrees (180 degrees for due south) is recommended, and the PV module will have higher power generation efficiency when the slope aspect of the hilly area where it is installed is between 160-200 degrees.

[0073] The preset quantity range is a preset range of the number of photovoltaic modules used for arrangement, for example, the preset quantity range can be 80-100.

[0074] S102: Obtain a grid map to describe the target mountainous region.

[0075] A grid map is an image used to describe a target mountainous region, comprising multiple grids. Each grid in a grid map represents a sub-region of the target mountainous region; that is, each grid represents a space, for example, a 0.1m × 0.1m space within the target mountainous region. The spaces represented by the multiple grids in the grid map correspond to different sub-regions of the target mountainous region. Specifically, a grid map accurately describes the entire target mountainous region by subdividing the target mountainous region into several smaller, relatively independent spatial units and establishing representational relationships between these spatial units using multiple grids.

[0076] While keeping the space represented by the grid unchanged, the size of the grid can be proportionally reduced or increased according to actual needs to adapt to different accuracy requirements. For example, when more detailed layout planning is required, a smaller grid size, such as 1 cm × 1 cm or even 1 mm × 1 mm, can be selected to provide higher resolution information on the target mountainous area. Conversely, in preliminary planning or large-scale assessment, a larger grid size, such as 10 cm × 10 cm, can be selected.

[0077] As one implementation method, a grid map can be obtained by grid interpolation of a contour map of the target mountainous region. Each grid cell in the grid map has a corresponding elevation value, which represents the spatial height of each grid cell in a three-dimensional coordinate system. Specifically, the contour map provides contour information at different altitudes within the target mountainous region. Each contour line connects points at the same elevation. Based on the elevations indicated by each contour line, and by selecting an appropriate interpolation algorithm, the elevation values ​​corresponding to the multiple grid cells in the grid map are determined, thereby constructing a Digital Elevation Model (DEM) for the target mountainous region, i.e., a grid map of the target mountainous region. Each grid cell in the grid map has a corresponding elevation value, which represents the spatial height of each grid cell in a three-dimensional coordinate system.

[0078] S103: Determine the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram.

[0079] The required grid area is the area in the grid diagram corresponding to the area needed to install the photovoltaic module. The required grid area includes multiple grids. For example, if a photovoltaic module is 2m × 1m in size, and each grid represents a space of 0.1m × 0.1m, the required grid area size for this photovoltaic module in the grid diagram can be determined to be 20 × 10.

[0080] The i-th photovoltaic module is the i-th photovoltaic module among multiple photovoltaic modules used for arrangement, where i is a positive integer. The sum of the sizes of the multiple grid representation spaces included in the required grid area of ​​the i-th photovoltaic module is greater than or equal to the size of the i-th photovoltaic module, and the difference between the sum of the sizes of the multiple grid representation spaces indicated by the required grid area of ​​the i-th photovoltaic module and the size of the i-th photovoltaic module is less than a difference threshold. The difference threshold is the maximum allowable difference between the total area of ​​all grid representation spaces in the required grid area and the actual footprint of the i-th photovoltaic module. The purpose of introducing the difference threshold is to make the required grid areas of different photovoltaic modules as compact as possible on the grid map, avoid unnecessary waste of mountainous land, and thus improve the utilization rate of the target mountainous area.

[0081] S104: Starting from the preset grid in the grid diagram, search for multiple grids to be arranged one by one until it is determined that the grid to be arranged in the grid diagram cannot be used to arrange the next photovoltaic module according to the required grid area. Then, the undetermined arrangement method of multiple photovoltaic modules in the target mountain area is obtained, as well as the number of photovoltaic modules arranged under the undetermined arrangement method.

[0082] The preset grid is a grid pre-defined in the grid diagram, serving as the starting point for the search. When the preset grid is one of the four vertex grids in the grid diagram, the resulting layout wastes the least amount of mountainous area. Specifically, when the preset grid is an inner grid, the edge areas may be searched last, and since the approved grid areas for most photovoltaic modules have already been determined, it becomes difficult to adjust the edge areas, easily leading to insufficient utilization of the edge areas of the target mountainous region and the formation of large gaps. However, when the preset grid is a vertex grid, the search process prioritizes the edge areas and then gradually moves towards the center. This allows for adjustments to the layout in advance for the edge areas, maximizing the utilization of the edge areas and contributing to a more compact and efficient layout scheme.

[0083] The grid to be arranged refers to the grids in the grid diagram that are not located within the approved grid areas of other photovoltaic modules. The approved grid area of ​​a photovoltaic module is the area where the photovoltaic module has already been arranged in the grid diagram. It includes multiple grids. For example, the approved grid area of ​​the i-th photovoltaic module is determined from the multiple grids to be arranged included in the grid diagram, which are multiple grids that meet the required grid area of ​​the i-th photovoltaic module. For example, see Table 1. Table 1 is a table used to represent the grid diagram. As shown in Table 1, the upper left corner is the preset grid. The grid is searched grid by grid to determine the approved grid areas of the 1st, 2nd, and 3rd photovoltaic modules. The approved grid areas of the photovoltaic modules are represented by numbers in Table 1. For example, the grid marked as 1 is the approved grid area of ​​the 1st photovoltaic module. The grids in Table 1 that are not marked with numbers are the grids to be arranged.

[0084] Table 1

[0085] 1 1 1 2 2 2 3 3 3 1 1 1 2 2 2 3 3 3

[0086] Among multiple grids to be arranged, starting from the preset grid, and using the preset grid as a reference, each grid is traversed to check if there are multiple grids to be arranged that satisfy the required grid area corresponding to the i-th photovoltaic module. If so, the multiple grids to be arranged that satisfy the required grid area corresponding to the i-th photovoltaic module are determined as the approved grid area of ​​the i-th photovoltaic module, and the grid to be arranged is updated. If not, the above search process is continued with the next grid as the reference until the grid to be arranged that satisfies the required grid area corresponding to the i-th photovoltaic module is obtained. The next grid is determined by the search direction.

[0087] As shown in Table 1, the preset grid is the top-left grid, and the search direction is along the row direction. After the first photovoltaic module is arranged, the process of searching for the grid area to be arranged to meet the requirements of the second photovoltaic module can start from the grid adjacent to the right of the first photovoltaic module. Compared with row-by-row or 3×3 grid methods, the grid-by-grid search method provides a finer spatial resolution, wastes less mountain area during the arrangement of each photovoltaic module, and improves the utilization rate of the target mountain area. As one implementation method, the search direction can be along the row direction or along the column direction.

[0088] The search process ends when it is determined, based on the required grid area, that the remaining grid cells in the grid diagram cannot accommodate the next photovoltaic (PV) module. In other words, the remaining grid cells in the grid diagram cannot meet the required grid area for the next PV module. In this case, the PV module arrangement is completed, resulting in a pending arrangement method and the number of PV modules to be arranged under that method. The pending arrangement method is a PV module arrangement method obtained during the iterative search process, used to describe the arrangement of multiple PV modules in the target mountainous area. The number of modules to be arranged is the total number of PV modules required to be arranged in the target mountainous area under the pending arrangement method.

[0089] S105: If the number of photovoltaic modules is within the preset number range, and the slope and aspect range corresponding to each photovoltaic module in the undetermined arrangement method is within the preset slope and aspect range, then the undetermined arrangement method is determined as the final arrangement method of multiple photovoltaic modules.

[0090] In S104, one iterative search process yields one undetermined layout, and multiple iterative search processes yield multiple undetermined layouts. The final layout is selected from these undetermined layouts to meet preset requirements (preset slope and aspect range and preset quantity range). If the number of layouts is within the preset quantity range, it means that the undetermined layout meets the user's requirement for the number of photovoltaic modules. If the slope and aspect values ​​of the approved grid area corresponding to each photovoltaic module in the undetermined layout are all within the preset slope and aspect range, it means that the approved grid area corresponding to each photovoltaic module in the undetermined layout is easy to install and each photovoltaic module has high power generation efficiency when installed in the corresponding approved grid area. Under these two preset requirements, the undetermined layout is determined as the final layout.

[0091] The quantity of layouts within a preset range indicates that the quantity of layouts is greater than or equal to the lower limit of the preset range, and less than or equal to the upper limit of the preset range. The same logic applies to the slope and aspect values ​​within a preset slope and aspect range, and will not be elaborated further here.

[0092] As can be seen from the above technical solution, the following steps are taken: First, the target mountainous area for arranging multiple photovoltaic (PV) modules is obtained, along with the preset slope and aspect range required for arranging each PV module, and the preset number range of PV modules. Second, a grid map describing the target mountainous area is obtained. Based on the size of the PV modules and the size of the space represented by each grid in the grid map, the required grid area for each PV module to be arranged in the grid map is determined. This allows for the determination of the grid to be arranged for each PV module based on its corresponding required grid area. Starting from the preset grid in the grid map, multiple grids to be arranged are searched one by one until the grid area determines that no further PV module can be arranged in the grid. This yields a pending arrangement method describing the multiple PV modules in the target mountainous area, and the number of PV modules to be arranged under the pending arrangement method. Compared to the method of arranging multiple PV modules row by row, which requires a regular arrangement, the arrangement method of searching for each grid to be arranged is more detailed, reducing the wasted mountainous area due to the inability to arrange PV modules during the arrangement process, and improving the utilization rate of the mountainous area in the target mountainous region during the arrangement process. If the number of photovoltaic modules is within a preset range, and the slope and aspect range corresponding to each photovoltaic module in the proposed arrangement is also within the preset slope and aspect range, it indicates that the proposed arrangement meets the preset requirement for the number of photovoltaic modules and the slope and aspect value corresponding to each photovoltaic module meets the preset slope and aspect requirement. Therefore, the proposed arrangement is determined as the final arrangement for multiple photovoltaic modules. Thus, by searching each grid in the grid diagram to obtain the grid to be arranged for each photovoltaic module, the space represented by each grid is fully utilized for arrangement, reducing the wasted mountain area during the arrangement of each photovoltaic module. Simultaneously, by constraining the slope and aspect values ​​of each photovoltaic module by the preset slope and aspect range, the utilization rate of the target mountain area can be improved while ensuring a higher power generation of the photovoltaic modules corresponding to the final arrangement.

[0093] In the process of arranging multiple photovoltaic modules, the sizes of each photovoltaic module may be different. For example, the first photovoltaic module and the second photovoltaic module are two photovoltaic modules among multiple photovoltaic modules. If the size of the first photovoltaic module is different from the size of the second photovoltaic module, this application embodiment provides a specific implementation of S104 for this situation. Taking the i-th photovoltaic module among multiple photovoltaic modules obtained in one iteration search as an example, see A1-A5:

[0094] A1: Determine the i-th photovoltaic module.

[0095] The i-th photovoltaic module can be determined in several ways. For example, it can be determined based on user needs or the size of the space represented by multiple grids to be arranged. When the space represented by multiple grids is insufficient, a smaller photovoltaic module can be selected as the i-th photovoltaic module to improve the utilization rate of the mountainous area. When the space represented by the grids is sufficient, a suitable photovoltaic module can be selected as the i-th photovoltaic module according to actual needs.

[0096] A2: Based on the size of the i-th photovoltaic module and the size of the space represented by each grid in the grid diagram, determine the required grid area of ​​the i-th photovoltaic module in the grid diagram.

[0097] The required grid area for the i-th photovoltaic module in the grid diagram is the grid area in the grid diagram corresponding to the area needed to install the i-th photovoltaic module. Based on the size of the i-th photovoltaic module and the size of the space represented by each grid, the required grid area for the i-th photovoltaic module is determined in the grid diagram. The specific process is described in S103 above and will not be repeated here.

[0098] A3: Based on the approved grid region of the (i-1)th photovoltaic module, determine the starting grid for traversal of the i-th photovoltaic module.

[0099] The (i-1)th photovoltaic module is the (i-1)th photovoltaic module to be arranged among multiple photovoltaic modules used for arrangement, and the approved grid area of ​​the (i-1)th photovoltaic module is the area where the (i-1)th photovoltaic module has been determined to be arranged in the grid diagram.

[0100] The edge grid of the (i-1)th photovoltaic module refers to the grid located at the edge of the approved grid area of ​​the (i-1)th photovoltaic module. The traversal starting grid of the ith photovoltaic module is the grid used as the search starting point when arranging the ith photovoltaic module. To ensure efficient arrangement, the traversal starting grid of the ith photovoltaic module is selected from the grids to be arranged around the approved grid area of ​​the (i-1)th photovoltaic module. Specifically, the distance between the traversal starting grid of the ith photovoltaic module and the edge grid of the (i-1)th photovoltaic module should be less than a distance threshold. The distance threshold is the maximum allowed distance between the traversal starting grid of the ith photovoltaic module and the edge grid of the (i-1)th photovoltaic module. The purpose of introducing the distance threshold is to minimize the gaps between different photovoltaic modules during the arrangement process, avoiding unnecessary waste of space. This allows for a more compact arrangement of photovoltaic modules, with smaller gaps between them, reducing wasted space.

[0101] As one implementation method, when the starting grid of the traversal of the i-th photovoltaic module is adjacent to the edge grid of the (i-1)-th photovoltaic module, the waste of mountainous terrain caused by the gaps between the photovoltaic modules is minimized. A4: Starting from the starting grid of the traversal, search multiple grids to be arranged one by one until a grid to be arranged that satisfies the required grid area of ​​the i-th photovoltaic module is obtained. Based on the grid to be arranged that satisfies the required grid area of ​​the i-th photovoltaic module, the approved grid area of ​​the i-th photovoltaic module is obtained.

[0102] In a plurality of grids to be arranged, starting from the starting grid of the i-th photovoltaic module, each grid is traversed and checked to see if there is a grid to be arranged that satisfies the required grid of the i-th photovoltaic module. If so, the plurality of grids to be arranged corresponding to the required grid area of ​​the i-th photovoltaic module are determined as the approved grid area of ​​the i-th photovoltaic module, and the grid to be arranged is updated. If not, the above search process is continued with the next grid as the reference until a grid to be arranged that satisfies the required grid area corresponding to the i-th photovoltaic module is obtained. The next grid is determined by the search direction.

[0103] A5: If the approved grid area for the next photovoltaic module cannot be obtained based on the grid to be arranged in the grid diagram, then the undetermined arrangement method and the number of photovoltaic modules to be arranged under the undetermined arrangement method are obtained.

[0104] See S104 above, which will not be repeated here.

[0105] Therefore, the required grid area is determined according to the size of each photovoltaic module, so that each photovoltaic module can find a suitable installation location, avoiding unnecessary waste of mountain land. This maximizes the utilization of the target mountain area while meeting the installation requirements of photovoltaic modules of different sizes, and improves the flexibility of photovoltaic module layout.

[0106] See Figure 2 , Figure 2This is a schematic diagram illustrating a process for searching and determining the arrangement of photovoltaic modules according to an embodiment of this application. First, the required grid area for the photovoltaic modules in a digital elevation map (grid map) is calculated. Then, the upper left corner grid of the digital elevation map is determined as the search starting point (i.e., the preset grid). Based on the number of rows and columns of the required grid area for the photovoltaic modules, multiple grids are searched one by one. If the elevation value of the grid area determined based on the required grid area and the currently searched grid includes null values, or the slope and aspect values ​​exceed the slope and aspect range, the starting grid for traversal is determined to be the lower right corner grid of the digital elevation map. If so, the arrangement is completed. If the elevation value of the grid is not empty and the slope and aspect do not exceed the slope and aspect range, the approved grid area of ​​the photovoltaic module is determined based on the traversal starting grid. The photovoltaic module is added to the list, and the elevation value of the grid corresponding to the approved grid area is set to empty. This determines that multiple grids included in the approved grid area corresponding to the photovoltaic module are not arranged grids. Then, the next grid of the current traversal starting grid is taken as the new traversal starting grid, and the search process for the next photovoltaic module continues until the traversal starting grid is the grid at the lower right corner of the digital elevation map and the arrangement is completed.

[0107] To reduce the difference between the number of arrangements corresponding to the undetermined arrangement method and the preset range, this application provides an arrangement method that iteratively adjusts the range of slope and aspect, see B1-B4:

[0108] B1: Set the preset slope and aspect range as the current slope and aspect range, and execute S103-S104.

[0109] The current slope and aspect range is the slope and aspect range used in this iteration adjustment.

[0110] B2: If the number of layouts does not meet the preset range, the current slope and aspect range is adjusted according to the relationship between the number of layouts and the preset range to obtain the updated slope and aspect range. The updated slope and aspect range is the slope and aspect range obtained by adjusting the current slope and aspect range.

[0111] If the number of photovoltaic modules does not meet the preset quantity range, that is, the number of modules is less than the lower limit of the preset quantity range or the number of modules is greater than the upper limit of the preset quantity range, it means that the pending arrangement method cannot meet the user's requirements for the number of photovoltaic modules. By adjusting the current slope and aspect range, an updated slope and aspect range is obtained, so that the difference between the number of modules corresponding to the updated slope range and the preset quantity range becomes smaller and smaller.

[0112] In one possible implementation, if the number of arrangements exceeds a preset range, the current slope and aspect range is reduced to obtain an updated slope and aspect range. If the number of arrangements is less than the preset range, the current slope and aspect range is increased to obtain an updated slope and aspect range.

[0113] For example, if the number of photovoltaic modules exceeds a preset range, the current slope and aspect range can be reduced by narrowing the azimuth range that the approved grid area corresponding to the photovoltaic modules should meet. Alternatively, the current slope and aspect range can be reduced by narrowing the slope range that the approved grid area corresponding to the photovoltaic modules should meet.

[0114] When the number of photovoltaic (PV) modules exceeds a preset range (i.e., the number exceeds the upper limit of the preset range), it indicates that too many PV modules satisfy the current slope and aspect range. By narrowing the current slope and aspect range, an updated slope and aspect range can be obtained, reducing the number of PV modules falling within the updated slope and aspect range, thereby narrowing the difference between the number of modules and the upper limit of the preset range. In this case, although narrowing the current slope and aspect range leads to a smaller number of modules, the slope aspect range corresponding to the updated slope and aspect range deviates less from true south. PV modules satisfying the updated slope and aspect range have higher power generation efficiency, resulting in less wasted power generation for the same number of PV modules.

[0115] When the number of photovoltaic modules deployed is less than a preset range (i.e., the number of modules deployed is less than the lower limit of the preset range), it indicates that too few photovoltaic modules meet the current slope and aspect requirements. By increasing the current slope and aspect range, an updated slope and aspect range is obtained, which increases the number of photovoltaic modules falling within the current slope and aspect range, thereby narrowing the difference between the number of modules deployed and the lower limit of the preset range. By increasing the number of modules deployed according to the proposed deployment method, the total power generation corresponding to the proposed deployment method is increased.

[0116] Based on this, according to the relationship between the number of arrangements and the preset number range, the total power generation corresponding to the undetermined arrangement method is increased by increasing the current slope and aspect range, and the wasted power generation is reduced by decreasing the current slope and aspect range.

[0117] B3: If the updated slope and aspect range is greater than the upper limit of the preset slope and aspect range, then the pending layout method will be determined as the final layout method.

[0118] If the updated slope and aspect range is greater than the upper limit of the preset slope and aspect range, it means that after multiple iterations of adjustment, further iterations of the slope and aspect range may still not meet the preset quantity range. Continuing to increase the slope and aspect range will lead to a decrease in the average power generation efficiency of photovoltaic modules, requiring more photovoltaic modules to meet the same power generation, resulting in excessively high costs. Based on cost-saving considerations while trying to meet user needs as much as possible, the pending layout method obtained from the previous iteration adjustment is determined as the final layout method.

[0119] B4: If the updated slope and aspect range is less than the lower limit of the preset slope and aspect range, then update the updated slope and aspect range to the current slope and aspect range, and execute S103-S105 until the final arrangement is obtained. If the updated slope and aspect range is less than the lower limit of the preset slope and aspect range, it means that if the power generation efficiency of each photovoltaic module in the arrangement obtained according to the updated slope and aspect range is high, in order to increase the number of photovoltaic modules to obtain more power generation, the updated slope and aspect range can be increased to update the updated slope and aspect range to the current slope and aspect range. In order to meet the user's requirements for the number of photovoltaic modules (preset number range), the updated slope and aspect range is updated to the current slope and aspect range. Continue to iterate and adjust the slope and aspect range at least once and arrange according to the adjusted slope and aspect range. When the number of modules is within the preset number range, and the slope and aspect range corresponding to each photovoltaic module in the pending arrangement is within the preset slope and aspect range, the final arrangement is obtained.

[0120] As one implementation method, the magnitude of the adjustment to the current slope and aspect range in the nth iteration can be dynamically adjusted according to the size of n. The larger n is, the smaller the magnitude of the adjustment to the current slope and aspect range in the nth iteration. n is a positive integer. The more iterations there are, the smaller the difference between the number of arrangements and the preset range becomes. At this point, by shortening the adjustment magnitude, the accuracy of the iterative adjustment can be improved. The iterative adjustment is carried out in the direction of reducing the difference between the number of arrangements and the preset range, thereby improving the efficiency of searching and determining the final arrangement.

[0121] Therefore, by continuously iterating and adjusting the slope and aspect range, the difference between the number of layouts and the preset number range is narrowed, so as to obtain a final layout method with better yield or more power generation that meets user needs.

[0122] See Figure 3 , Figure 3 This is a flowchart illustrating an iterative adjustment process for slope and aspect range provided in this application embodiment. First, the contour map of the target mountainous area is converted into a digital elevation map, resulting in a grid map to be determined. Then, the natural disaster risk value corresponding to each grid is determined. Next, a preset slope and aspect range is defined as the current slope and aspect range. Photovoltaic modules are arranged based on this current slope and aspect range to obtain the arrangement quantity. If the arrangement quantity is not within the preset range, the arrangement is completed; otherwise, the current slope and aspect range is adjusted. If the current slope and aspect range exceeds the preset range, the current slope and aspect range is decreased; otherwise, it is increased, resulting in an updated slope and aspect range. If the arrangement quantity is not within the preset range, the arrangement is completed; otherwise, the arrangement of photovoltaic modules based on the current slope and aspect range continues, along with subsequent steps, until the arrangement is completed.

[0123] The target mountainous area includes some sub-mountainous areas with a high risk of natural disasters. Installing photovoltaic modules in these areas is prone to damage due to natural disasters. Based on this, this application provides a specific implementation method for constructing a grid map according to the degree of natural disaster risk, see C1-C4:

[0124] C1: Construct a grid map to be determined based on the target mountainous area.

[0125] The undetermined grid map is a grid map that does not yet take into account natural disaster factors. If the natural disaster risk level in a sub-mountain area is high, there will be risks after installing photovoltaic modules in that area. If a natural disaster occurs, the installed photovoltaic modules may be damaged, leading to higher costs.

[0126] As one implementation method, the undetermined grid map can be obtained by grid interpolation of the contour map of the target mountainous area. For details, please refer to S102, which will not be repeated here.

[0127] C2: Determine the natural disaster risk value corresponding to each grid in the undetermined grid diagram.

[0128] Natural disaster risk values ​​are used to characterize the degree of natural disaster risk corresponding to the grid characterization space. For example, the higher the natural disaster risk value, the greater the degree of natural disaster risk.

[0129] In one possible implementation, the greater the slope, the lower the land stability, or the greater the precipitation in the space represented by the grid in the undetermined grid map, the greater the natural disaster risk value corresponding to the grid. Specifically, the greater the slope of the space represented by the grid, the greater the likelihood of natural disasters such as debris flows and landslides; the lower the land stability of the space represented by the grid, the greater the likelihood of natural disasters such as soil subsidence and collapse; and the greater the precipitation in the space represented by the grid, the greater the likelihood of natural disasters such as debris flows and floods. For example, see Table 2, which is a natural disaster risk value scoring table.

[0130] Table 2

[0131]

[0132] In Table 2, the lower the stability of a land type, the higher the corresponding score. For example, if a grid represents grassland with a slope of 8 degrees and the annual precipitation is 500 mm, then the natural disaster risk value corresponding to this grid is 2+3+3=8.

[0133] Therefore, by clearly identifying the various factors that influence the degree of natural disaster risk, it is possible to more quickly and accurately determine the natural disaster risk value corresponding to each grid in the undetermined grid diagram, thereby improving the safety of photovoltaic module layout.

[0134] C3: If the natural disaster risk value of the target grid is greater than the risk threshold, the target grid is determined as a non-distributed grid. If the natural disaster risk value of the target grid is less than or equal to the risk threshold, the target grid is determined as a grid to be distributed.

[0135] The target grid is the grid among multiple grids included in the grid map to be determined, and its grid type needs to be judged. The risk threshold is a value used to judge whether the natural disaster risk value of the grid is too high. As shown in the scoring method in Table 2, 11 can be used as the risk threshold. Grids not used for photovoltaic module installation are those that will no longer be used for installation. If the natural disaster risk value of the target grid is greater than the risk threshold, it means that the natural disaster risk level of the target grid is high and it cannot be used to install photovoltaic modules. The target grid is then determined as a grid not used for installation. If the natural disaster risk value of the target grid is less than or equal to the risk threshold, it means that the natural disaster risk level of the target grid is low and it can be used to install photovoltaic modules. The target grid is then determined as a grid to be installed.

[0136] As one approach, the target grid can be determined as a non-distributed grid by setting the elevation value corresponding to the target grid to null. During the process of distributing photovoltaic modules, grids with null elevation values ​​will be skipped during the grid-by-grid search, thereby avoiding the acquisition of an undetermined distribution method for installing photovoltaic modules in areas with a high risk of natural disasters.

[0137] C4: Take each grid in the undetermined grid diagram as the target grid to obtain the grid diagram.

[0138] The grid diagram includes unarranged grids and grids to be arranged.

[0139] See Table 3, which is a table for representing a grid diagram including non-arranged grids.

[0140] Table 3

[0141] treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat treat No (15) No (15) treat treat treat treat treat treat treat treat No (15) No (15) treat treat treat treat treat treat treat treat No (15) No (15) treat treat treat treat treat treat treat treat No (15) No (15) No (13) No (13) treat treat treat treat treat treat treat treat No (13) No (13) treat treat treat treat treat treat treat treat

[0142] The risk threshold is 11. "To be" indicates that the grid needs to be arranged, "Not" indicates that the grid will not be arranged, and the number after "Not" is the natural disaster risk value corresponding to the grid that will not be arranged. When the natural disaster risk value of the target grid is greater than 11, the target grid is determined to be a grid that will not be arranged.

[0143] Therefore, it is possible to avoid areas with a high risk of natural disasters when installing photovoltaic modules in the final layout, reduce economic losses caused by natural disasters, and improve the safety and economy of the layout.

[0144] If the spatial orientation of grids in the same row in the grid diagram is east-west, and the spatial orientation of grids in the same column in the grid diagram is north-south, this application embodiment also provides a specific implementation method for determining the slope and aspect values ​​of the approved grid area of ​​the photovoltaic module, see D1-D8:

[0145] D1: For the target photovoltaic module among multiple photovoltaic modules indicated by the undetermined arrangement method, obtain the approved grid area of ​​the target photovoltaic module.

[0146] The target photovoltaic module is one of the multiple photovoltaic modules whose slope and aspect values ​​need to be calculated, indicated by the pending arrangement method. The approved grid area of ​​the target photovoltaic module is the area where the target photovoltaic module has already been arranged in the grid map.

[0147] D2: Based on the approved grid area of ​​the target photovoltaic module, determine the elevation difference of each row of grid characterization space, and the sum of the first elevation differences of multiple rows of grid characterization spaces.

[0148] The sum of the first elevation differences is the sum of the elevation differences of each row, and the elevation difference of each row is the difference in elevation values ​​of the east and west edge grids of that row in the approved grid area of ​​the target photovoltaic module.

[0149] See Table 4, which is a schematic table of an approved grid area.

[0150] Table 4

[0151] e1 e2 e3 e4 e5 e6 e7 e8 e9 e10 e11 e12 e13 e14 e15 e16 e17 e18 e19 e20 e21 e22 e23 e24 e25 e26 e27 e28 e29 e30 e31 e32 e33 e34 e35 e36 e37 e38 e39 e40

[0152] In Table 4, e j This represents the elevation value of the j-th grid, where j is a positive integer. For example, e1 represents the elevation value of the 1st grid. As shown in Table 4, the elevation difference in the first row is e1-e10.

[0153] D3: Based on the approved grid area of ​​the target photovoltaic module, determine the sum of the first edge distances of the target photovoltaic module in the east-west direction.

[0154] The sum of the first edge distances is the sum of the first edge grid distances of each row. The first edge grid distance of each row is the distance between the easternmost and westernmost grids in that row. As shown in Table 4, the first edge grid distance of the first row is the distance between the grid representation space where e1 is located and the grid representation space where e10 is located.

[0155] D4: Based on the sum of the first elevation difference and the sum of the first edge distance, obtain the first slope of the approved grid area of ​​the target photovoltaic module in the east-west direction.

[0156] The first slope is the average slope of the approved grid area of ​​the target photovoltaic module in an east-west direction.

[0157] Specifically, the method for determining the first slope is shown in the following formula:

[0158]

[0159] Among them, e j Slope represents the elevation value of the j-th grid among multiple grids included in the approved grid area of ​​the target photovoltaic module. we Let r be the first slope of the approved grid region of the target photovoltaic module in the east-west direction, r be the number of rows of the approved grid region of the target photovoltaic module, c be the number of columns of the approved grid region of the target photovoltaic module, res be the width of a grid representation space, and i be a positive integer.

[0160] D5: Based on the approved grid area of ​​the target photovoltaic module, determine the elevation difference of each grid characterization space and the sum of the second elevation differences of multiple grid characterization spaces.

[0161] The second elevation difference is the sum of the elevation differences in each column. The elevation difference in each column is the difference in elevation values ​​of the north and south edge grids of that row in the approved grid area of ​​the target photovoltaic module. As shown in Table 4, the elevation difference in the first column is e4-e1.

[0162] D6: Based on the approved grid area of ​​the target photovoltaic module, determine the sum of the north-south oriented second edge distances of the target photovoltaic module.

[0163] The sum of the second edge distances is the sum of the second edge grid distances of each column. The second edge grid distance of each column is the distance between the southernmost and northernmost grids in that row. As shown in Table 4, the second edge grid distance in the first column is the distance between the grid representation space where e1 is located and the grid representation space where e4 is located.

[0164] D7: Based on the sum of the second elevation difference and the sum of the second edge distance, the second slope of the approved grid area of ​​the target photovoltaic module in the north-south direction is obtained.

[0165] The second slope is the average slope of the approved grid area of ​​the target photovoltaic module in a north-south direction.

[0166] Specifically, the method for determining the second slope is shown in the following formula:

[0167]

[0168] Among them, e j Slope represents the elevation value of the j-th grid among multiple grids included in the approved grid area of ​​the target photovoltaic module. snLet r be the second slope of the approved grid area of ​​the target photovoltaic module in the north-south direction, c be the number of rows of the approved grid area of ​​the target photovoltaic module, and res be the width of a grid representation space.

[0169] D8: Determine the slope and aspect value corresponding to the target photovoltaic module based on the first slope and the second slope.

[0170] The slope and aspect values ​​corresponding to the target photovoltaic module are the slope and aspect values ​​of the approved grid area of ​​the target photovoltaic module, including the slope value of the approved grid area of ​​the target photovoltaic module and the aspect value of the target photovoltaic module.

[0171] Specifically, the slope value is determined using the following formula:

[0172]

[0173] Where Slope is the slope value of the approved grid area of ​​the target photovoltaic module. we Slope is the first slope in the east-west direction for the approved grid area of ​​the target photovoltaic module. sn The approved grid area for the target photovoltaic module is on the second slope in a north-south direction.

[0174] Specifically, the method for determining the aspect value is shown in the following formula:

[0175] Aspect = arctan(Slope) sn / Slope we )

[0176] Where Aspect is the slope aspect value of the approved grid area of ​​the target photovoltaic module, and Slope is... we Slope is the first slope in the east-west direction for the approved grid area of ​​the target photovoltaic module. sn The second slope in the north-south direction for the approved grid area of ​​the target photovoltaic module.

[0177] This allows us to determine the slope and aspect value corresponding to the target photovoltaic module based on the elevation value included in the approved grid area of ​​the target photovoltaic module. Thus, based on the relationship between the slope and aspect value and the preset slope and aspect range, we can determine the layout of the target photovoltaic module and improve the accuracy of the layout.

[0178] See Figure 4 , Figure 4 A photovoltaic module arrangement device provided in this application embodiment includes an acquisition unit 401, a determination unit 402, and a search unit 403.

[0179] The acquisition unit 401 is used to acquire the target mountainous area for arranging multiple photovoltaic modules, the preset slope and aspect range that each photovoltaic module needs to meet, and the preset number range of the multiple photovoltaic modules.

[0180] The acquisition unit 401 is further configured to acquire a grid map describing the target mountain region, wherein the grid map includes multiple grids representing different sub-mountain regions of the target mountain region.

[0181] The determining unit 402 is used to determine the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram. The required grid area includes multiple grids.

[0182] The search unit 403 is used to search for multiple grids to be arranged one by one, starting from a preset grid in the grid diagram, until it is determined that the grid to be arranged in the grid diagram cannot accommodate the next photovoltaic module according to the required grid area. Then, it obtains a pending arrangement method for describing multiple photovoltaic modules in the target mountain area, and the number of multiple photovoltaic modules arranged under the pending arrangement method. The grid to be arranged is a grid in the grid diagram that is not located in the approved grid area of ​​other photovoltaic modules.

[0183] The determining unit 402 is further configured to determine the undetermined arrangement as the final arrangement of the plurality of photovoltaic modules if the number of arrangements is within the preset number range and the slope and aspect values ​​corresponding to each photovoltaic module in the undetermined arrangement are all within the preset slope and aspect range.

[0184] As can be seen from the above technical solution, the device includes an acquisition unit, a determination unit, and a search unit. The acquisition unit acquires the target mountainous area for arranging multiple photovoltaic modules, the preset slope and aspect range that each photovoltaic module must meet, and the preset number range of multiple photovoltaic modules. The acquisition unit acquires a grid map describing the target mountainous area. The determination unit, based on the size of the photovoltaic modules and the size of the space represented by each grid in the grid map, determines the required grid area for each photovoltaic module to include multiple grids in the grid map. Thus, based on the required grid area corresponding to each photovoltaic module, the grid to be arranged for each photovoltaic module can be determined in the grid map. The search unit starts from a preset grid in the grid diagram and searches multiple grids to be arranged one by one until it is determined that no photovoltaic module can be placed in any of the grids in the grid diagram according to the required grid area. This yields a pending arrangement method for multiple photovoltaic modules in the target mountainous area, as well as the number of photovoltaic modules to be arranged under the pending arrangement method. Compared with the row-by-row arrangement method, which requires regular arrangement of multiple photovoltaic modules, the arrangement method of searching grids one by one is more detailed, reducing the wasted mountainous area due to the inability to place photovoltaic modules during the arrangement process, and improving the utilization rate of the mountainous area in the target mountainous region. If the number of modules to be arranged is within a preset range, and the slope and aspect range corresponding to each photovoltaic module in the pending arrangement method is also within the preset slope and aspect range, it means that the pending arrangement method meets the preset number of photovoltaic modules and the slope and aspect value corresponding to each photovoltaic module meets the preset slope and aspect requirements. In this case, the pending arrangement method is determined as the final arrangement method for multiple photovoltaic modules. Therefore, by searching each grid of the grid map one by one to obtain the grid to be arranged for each photovoltaic module, the space represented by each grid is fully utilized for arrangement, reducing the wasted mountain area in the process of arranging each photovoltaic module. At the same time, by setting the slope and aspect range to constrain the slope and aspect values ​​of each photovoltaic module, the utilization rate of the mountain area in the target mountain region can be improved when the power generation of the photovoltaic modules corresponding to the final arrangement method is high.

[0185] As one possible implementation, the search unit is specifically used for:

[0186] Determine the i-th photovoltaic module;

[0187] Based on the size of the i-th photovoltaic module and the size of the space represented by each grid in the grid diagram, the required grid area of ​​the i-th photovoltaic module in the grid diagram is determined, where i is a positive integer;

[0188] Based on the approved grid area of ​​the (i-1)th photovoltaic module, a traversal starting grid is determined for the i-th photovoltaic module. The traversal starting grid is the grid to be arranged around the approved grid area of ​​the (i-1)th photovoltaic module in the grid diagram.

[0189] Starting from the traversal starting grid, multiple grids to be arranged are searched one by one until a grid to be arranged that satisfies the required grid area of ​​the i-th photovoltaic module is obtained. The approved grid area of ​​the i-th photovoltaic module is obtained based on the grid to be arranged that satisfies the required grid area of ​​the i-th photovoltaic module.

[0190] If the next approved grid area for the photovoltaic module cannot be obtained based on the grid to be arranged in the grid diagram, then a pending arrangement method is obtained, and the number of photovoltaic modules arranged under the pending arrangement method is determined.

[0191] As one possible implementation, the device further includes an adjustment unit for:

[0192] The preset slope and aspect range is determined as the current slope and aspect range. The steps of determining the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram, and the steps of searching multiple grids to be arranged one by one from the preset grid in the grid diagram until it is determined that the grid to be arranged in the grid diagram cannot accommodate the next photovoltaic module based on the required grid area, are then obtained to describe the undetermined arrangement of multiple photovoltaic modules in the target mountain area, and the number of multiple photovoltaic modules arranged under the undetermined arrangement.

[0193] If the number of arrangements does not meet the preset number range, the current slope and aspect range is adjusted according to the relationship between the number of arrangements and the preset number range to obtain an updated slope and aspect range;

[0194] If the updated slope and aspect range is greater than the upper limit of the preset slope and aspect range, then the undetermined layout method is determined as the final layout method.

[0195] If the updated slope and aspect range is less than the lower limit of the preset slope and aspect range, then the updated slope and aspect range is updated to the current slope and aspect range, and the steps of determining the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram, as well as subsequent steps, are executed until the final arrangement is obtained.

[0196] As one possible implementation, the adjustment unit is specifically used for:

[0197] If the number of arrangements is greater than the preset number range, then the current slope and aspect range is reduced to obtain the updated slope and aspect range;

[0198] If the number of arrangements is less than the preset number range, then the current slope and aspect range is increased to obtain the updated slope and aspect range.

[0199] As one possible implementation, the device further includes a construction unit for:

[0200] A grid map to be constructed based on the target mountainous region;

[0201] Determine the natural disaster risk value corresponding to each grid in the grid diagram to be determined;

[0202] If the natural disaster risk value of the target grid is greater than the risk threshold, the target grid is determined as a non-distribution grid, which is no longer used as a grid for distributing the photovoltaic modules; if the natural disaster risk value of the target grid is less than or equal to the risk threshold, the target grid is determined as the grid to be distributed.

[0203] Each of the grids in the undetermined grid diagram is taken as the target grid to obtain the grid diagram, which includes the unarranged grids and the grids to be arranged.

[0204] As one possible implementation, the building unit is specifically used for:

[0205] If the slope of the space represented by the grid in the undetermined grid map is greater, the land stability is lower, or the precipitation is greater, then the natural disaster risk value corresponding to the grid in the undetermined grid is greater.

[0206] As one possible implementation, the device further includes a computing unit for:

[0207] For a target photovoltaic module among the multiple photovoltaic modules indicated by the undetermined arrangement, obtain the approved grid area of ​​the target photovoltaic module;

[0208] Based on the approved grid area of ​​the target photovoltaic module, determine the elevation difference of each row of the grid characterization space, and the sum of the first elevation differences of multiple rows of the grid characterization space;

[0209] Based on the approved grid area of ​​the target photovoltaic module, the sum of the first edge distances in the east-west direction of the target photovoltaic module is determined. The sum of the first edge distances is the sum of the first edge grid distances of each row of the target photovoltaic module. The first edge grid distance is the distance between the easternmost grid and the westernmost grid.

[0210] Based on the sum of the first elevation difference and the sum of the first edge distance, the first slope of the approved grid area of ​​the target photovoltaic module in the east-west direction is obtained;

[0211] Based on the approved grid area of ​​the target photovoltaic module, determine the elevation difference of each column of the grid characterization space, and the sum of the second elevation differences of multiple columns of the grid characterization space;

[0212] Based on the approved grid area of ​​the target photovoltaic module, the sum of the second edge distances of the target photovoltaic module in the north-south direction is determined. The sum of the second edge distances is the sum of the second edge grid distances of each column of the target photovoltaic module. The second edge grid distance is the distance between the southernmost grid and the northernmost grid.

[0213] The second slope of the approved grid area of ​​the target photovoltaic module in the north-south direction is obtained based on the sum of the second elevation difference and the sum of the second edge distance;

[0214] Based on the first slope and the second slope, the slope and aspect value corresponding to the target photovoltaic module is determined, wherein the slope and aspect value includes the slope value and the aspect value.

[0215] See Figure 5 This application also provides a computer device, which includes a memory 501 and a processor 502.

[0216] The memory is used to store computer programs and to transfer the computer programs to the processor;

[0217] The processor is used to execute the method of the above method embodiment according to the computer program.

[0218] This application also provides a computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program, the computer program being used to execute the method of the above-described method embodiments.

[0219] This application also provides a computer program product including a computer program, which, when run on a computer device, causes the computer device to perform the method described in the above method embodiments.

[0220] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.

[0221] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0222] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0223] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0224] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0225] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method of arranging photovoltaic modules, characterized in that, The method includes: Obtain the target mountainous area for arranging multiple photovoltaic modules, the preset slope and aspect range that each photovoltaic module must meet, and the preset number range of the multiple photovoltaic modules; Obtain a grid map to describe the target mountain region, wherein the grid map includes multiple grids representing different sub-mountain regions of the target mountain region; Based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram, the required grid area of ​​the photovoltaic module in the grid diagram is determined, and the required grid area includes multiple grids; Starting from the preset grid in the grid diagram, multiple grids to be arranged are searched one by one until it is determined that the grids to be arranged in the grid diagram cannot accommodate the next photovoltaic module according to the required grid area. Then, a pending arrangement method for describing multiple photovoltaic modules in the target mountain area is obtained, as well as the number of multiple photovoltaic modules arranged under the pending arrangement method. The grids to be arranged are grids in the grid diagram that are not located in the approved grid area of ​​other photovoltaic modules. If the number of photovoltaic modules is within the preset number range, and the slope and aspect values ​​corresponding to each photovoltaic module in the undetermined arrangement are all within the preset slope and aspect range, then the undetermined arrangement is determined as the final arrangement of the multiple photovoltaic modules.

2. The method according to claim 1, characterized in that, If the size of the first photovoltaic module and the size of the second photovoltaic module are different among the plurality of photovoltaic modules, then starting from the preset grid in the grid diagram, multiple grids to be arranged are searched one by one until it is determined that the grid to be arranged in the grid diagram cannot accommodate the next photovoltaic module according to the required grid area. This yields a pending arrangement method for describing the plurality of photovoltaic modules in the target mountainous area, and the number of photovoltaic modules arranged under the pending arrangement method, including: Determine the i-th photovoltaic module; Based on the size of the i-th photovoltaic module and the size of the space represented by each grid in the grid diagram, the required grid area of ​​the i-th photovoltaic module in the grid diagram is determined, where i is a positive integer; Based on the approved grid area of ​​the (i-1)th photovoltaic module, a traversal starting grid is determined for the i-th photovoltaic module. The traversal starting grid is the grid to be arranged around the approved grid area of ​​the (i-1)th photovoltaic module in the grid diagram. Starting from the traversal starting grid, multiple grids to be arranged are searched one by one until a grid to be arranged that satisfies the required grid area of ​​the i-th photovoltaic module is obtained. The approved grid area of ​​the i-th photovoltaic module is obtained based on the grid to be arranged that satisfies the required grid area of ​​the i-th photovoltaic module. If the next approved grid area for the photovoltaic module cannot be obtained based on the grid to be arranged in the grid diagram, then a pending arrangement method is obtained, and the number of photovoltaic modules arranged under the pending arrangement method is determined.

3. The method according to claim 1, characterized in that, The method further includes: The preset slope and aspect range is determined as the current slope and aspect range. The steps of determining the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram, and the steps of searching multiple grids to be arranged one by one from the preset grid in the grid diagram until it is determined that the grid to be arranged in the grid diagram cannot accommodate the next photovoltaic module based on the required grid area, are then obtained to describe the undetermined arrangement of multiple photovoltaic modules in the target mountain area, and the number of multiple photovoltaic modules arranged under the undetermined arrangement. If the number of arrangements does not meet the preset number range, the current slope and aspect range is adjusted according to the relationship between the number of arrangements and the preset number range to obtain an updated slope and aspect range; If the updated slope and aspect range is greater than the upper limit of the preset slope and aspect range, then the undetermined layout method is determined as the final layout method. If the updated slope and aspect range is less than the lower limit of the preset slope and aspect range, then the updated slope and aspect range is updated to the current slope and aspect range, and the steps of determining the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram, as well as subsequent steps, are executed until the final arrangement is obtained.

4. The method according to claim 3, characterized in that, The step of adjusting the current slope and aspect range based on the relationship between the arrangement quantity and the preset quantity range to obtain the updated slope and aspect range includes: If the number of arrangements is greater than the preset number range, then the current slope and aspect range is reduced to obtain the updated slope and aspect range; If the number of arrangements is less than the preset number range, then the current slope and aspect range is increased to obtain the updated slope and aspect range.

5. The method according to claim 1, characterized in that, The method further includes: A grid map to be constructed based on the target mountainous region; Determine the natural disaster risk value corresponding to each grid in the grid diagram to be determined; If the natural disaster risk value of the target grid is greater than the risk threshold, the target grid is determined as a non-distribution grid, which is no longer used as a grid for distributing the photovoltaic modules; if the natural disaster risk value of the target grid is less than or equal to the risk threshold, the target grid is determined as the grid to be distributed. Each of the grids in the undetermined grid diagram is taken as the target grid to obtain the grid diagram, which includes the unarranged grids and the grids to be arranged.

6. The method according to claim 5, characterized in that, Determining the natural disaster risk value corresponding to each grid in the grid map to be determined includes: If the slope of the space represented by the grid in the undetermined grid map is greater, the land stability is lower, or the precipitation is greater, then the natural disaster risk value corresponding to the grid in the undetermined grid is greater.

7. The method according to claim 1, characterized in that, The grids in the same row of the grid diagram represent an east-west spatial orientation, and the grids in the same column of the grid diagram represent a north-south spatial orientation. The method further includes: For a target photovoltaic module among the multiple photovoltaic modules indicated by the undetermined arrangement, obtain the approved grid area of ​​the target photovoltaic module; Based on the approved grid area of ​​the target photovoltaic module, determine the elevation difference of each row of the grid characterization space, and the sum of the first elevation differences of multiple rows of the grid characterization space; Based on the approved grid area of ​​the target photovoltaic module, the sum of the first edge distances in the east-west direction of the target photovoltaic module is determined. The sum of the first edge distances is the sum of the first edge grid distances of each row of the target photovoltaic module. The first edge grid distance is the distance between the easternmost grid and the westernmost grid. Based on the sum of the first elevation difference and the sum of the first edge distance, the first slope of the approved grid area of ​​the target photovoltaic module in the east-west direction is obtained; Based on the approved grid area of ​​the target photovoltaic module, determine the elevation difference of each column of the grid characterization space, and the sum of the second elevation differences of multiple columns of the grid characterization space; Based on the approved grid area of ​​the target photovoltaic module, the sum of the second edge distances of the target photovoltaic module in the north-south direction is determined. The sum of the second edge distances is the sum of the second edge grid distances of each column of the target photovoltaic module. The second edge grid distance is the distance between the southernmost grid and the northernmost grid. The second slope of the approved grid area of ​​the target photovoltaic module in the north-south direction is obtained based on the sum of the second elevation difference and the sum of the second edge distance; Based on the first slope and the second slope, the slope and aspect value corresponding to the target photovoltaic module is determined, wherein the slope and aspect value includes the slope value and the aspect value.

8. A photovoltaic module arrangement device, characterized in that, The device includes: an acquisition unit, a determination unit, and a search unit; The acquisition unit is used to acquire the target mountainous area for arranging multiple photovoltaic modules, the preset slope and aspect range that each photovoltaic module needs to meet, and the preset number range of the multiple photovoltaic modules. The acquisition unit is further configured to acquire a grid map describing the target mountain region, wherein the grid map includes multiple grids representing different sub-mountain regions of the target mountain region. The determining unit is used to determine the required grid area of ​​the photovoltaic module in the grid diagram based on the size of the photovoltaic module and the size of the space represented by each grid in the grid diagram. The required grid area includes multiple grids. The search unit is used to search for multiple grids to be arranged one by one, starting from a preset grid in the grid diagram, until it is determined that the grid to be arranged in the grid diagram cannot accommodate the next photovoltaic module according to the required grid area. Then, it obtains a pending arrangement method for describing multiple photovoltaic modules in the target mountain area, and the number of multiple photovoltaic modules arranged under the pending arrangement method. The grid to be arranged is a grid in the grid diagram that is not located in the approved grid area of ​​other photovoltaic modules. The determining unit is further configured to determine the undetermined arrangement as the final arrangement of the plurality of photovoltaic modules if the number of arrangements is within the preset number range and the slope and aspect values ​​corresponding to each photovoltaic module in the undetermined arrangement are all within the preset slope and aspect range.

9. A computer device, characterized in that, The device includes a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the method according to any one of claims 1-7 according to the instructions in the program code.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program for performing the method according to any one of claims 1-7.