Method for automatically generating water tank based on sunlight shed photovoltaic panel
By using gridded modeling of photovoltaic modules and optimizing the water channel path according to the golden ratio, combined with the potential field function algorithm, the problem of unscientific drainage path planning in the photovoltaic system of the solar greenhouse was solved, achieving efficient material utilization and structural adaptability, and adapting to complex engineering scenarios.
Patent Information
- Application Number
- CN202510729149.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-03
- Publication Date
- 2025-10-28
AI Technical Summary
Existing technologies in solar photovoltaic systems suffer from problems such as unscientific drainage path planning, low material utilization, and poor adaptability to complex structures. In particular, in engineering scenarios with multiple rows of photovoltaic modules staggered and dense inclined beam support structures, traditional methods struggle to generate globally optimal paths.
A topological relationship matrix is generated by meshing photovoltaic modules. The water channel path is optimized by combining the golden ratio and potential field function algorithm. The longitudinal and transverse water channels are dynamically planned, the downpipe parameters are configured, and the profile cutting and bolt quantity are calculated through the 3D model to form a closed-loop design framework.
It achieves a high degree of coupling between the water channel path and the spatial layout of the photovoltaic array, improves drainage efficiency, avoids construction conflicts, optimizes the use of profiles and bolts, reduces material waste and information transmission errors, and adapts to different roof tilt angles and component layouts.
Smart Images

Figure CN120850397A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of photovoltaic power generation technology, and in particular to a method for calculating and setting up a water tank based on photovoltaic panels in a solar greenhouse. Background Technology
[0002] With the popularization of distributed photovoltaic systems, solar greenhouse photovoltaic panels are widely used due to their building integration characteristics. However, due to the diversity of roof shapes and the complexity of component layout, traditional drainage design methods cannot simultaneously meet the requirements of drainage efficiency, structural safety, and construction economy. Especially in engineering scenarios with multiple rows of photovoltaic modules staggered and dense inclined beam support structures, the contradiction between drainage path planning and component installation form is becoming increasingly prominent, urgently requiring a systematic solution that integrates spatial topology analysis and dynamic parameter optimization.
[0003] Currently, existing technologies generally employ a combination of manual surveying and two-dimensional projection to determine the direction of the water channels, using a fixed-interval bypass strategy to avoid the supporting structure. The length of the ridge water channel is typically determined based on a proportional extension of the component projection, while the path of the transverse water channels is generated according to the principle of aligning the component edges. Material cutting often adopts a segmented linear splicing mode, and bolt configuration relies on empirical formulas to estimate the spacing and quantity. For complex roof shapes, structural adaptation is usually achieved by locally adjusting the bending angle of the water channels or adding auxiliary supports.
[0004] However, existing technologies still have some shortcomings. First, the staggered arrangement of photovoltaic modules on the roof creates complex drainage collection areas, and manual experience or simple projection methods cannot accurately capture the geometric relationships between the modules. The failure of fixed detour strategies for avoiding inclined beams stems from their neglect of the spatial heterogeneity of the supporting structure. The dynamic changes in the distribution density, size, and safety distance requirements of inclined beams make it difficult for avoidance rules based on fixed spacing to generate globally optimal paths. The independent calculation of profile cutting and bolt configuration means that local optima cannot guarantee global resource optimization. Summary of the Invention
[0005] The purpose of this invention is to provide a method for calculating and setting up water tanks based on photovoltaic panels in a solar greenhouse, which solves the problems of unscientific drainage path planning, low material utilization, and poor adaptability to complex structures in existing solar greenhouse photovoltaic systems.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a method for calculating and setting up a water tank based on photovoltaic panels in a solar greenhouse, comprising the following steps: The photovoltaic modules are modeled in a grid to generate a topological relationship matrix that includes the relationships between adjacent modules; Based on the aforementioned topological relationship matrix, vertical and horizontal water tanks are generated using the component row and column indexes, and M-shaped water tanks are generated synchronously for horizontally arranged components. A ridge gutter is generated based on the overlapping area of the component's projection on the ridge line, and the length of the ridge gutter is determined by the golden ratio of the overlapping projection area. Based on the distribution of the transverse water tanks, the path of the longitudinal main water tank is planned, and the inclined beam structure is avoided by using a potential field function in the path planning. Based on the path of the longitudinal main water channel, a transverse main water channel is generated along the eaves of the component slope, and the downpipe parameters are configured; the geometric parameters of all water channels are integrated to generate a three-dimensional model, and the profile cutting scheme and bolt quantity distribution in the bill of materials are calculated.
[0007] In summary, the present invention includes at least one of the following beneficial technical effects: 1. By using gridded modeling and topology analysis of photovoltaic modules, a drainage path highly coupled with the spatial layout of the photovoltaic array is automatically generated, solving the water accumulation problem caused by the mismatch between the drainage path and the module installation form in traditional methods. Based on the golden ratio, the length of the roof ridge drainage channel is optimized to ensure precise correspondence between the drainage coverage area and the overlapping area of the module projection.
[0008] 2. A potential field function algorithm is introduced to dynamically plan the longitudinal main water channel path. While ensuring drainage efficiency, it actively avoids supporting structures such as inclined beams, avoiding rework caused by path conflicts during the construction phase. Path curvature constraints and smoothing further reduce the difficulty of profile processing.
[0009] 3. By optimizing the standard profile cutting model and dynamically calculating the number of bolts, the bill of materials for the water tank system is accurately generated. A topology-driven segmentation strategy reduces profile waste, and a wind load correction factor ensures that the bolt distribution density matches the structural safety requirements.
[0010] 4. A 3D model of the water tank is constructed based on parametric equations, integrating geometric data and mechanical parameters, allowing construction teams to directly locate and install the tank according to the model. BIM-compatible format output enables seamless data integration across design, manufacturing, and construction stages, reducing information transmission errors.
[0011] 5. The closed-loop design framework, consisting of golden section projection optimization, potential field obstacle avoidance algorithm and fluid dynamics parameter calculation, can adapt to different roof tilt angles, component layouts and climate conditions, and solve the limitations of traditional fixed template methods in complex engineering scenarios. Attached Figure Description
[0012] Figure 1 This is a schematic diagram of the method flow of the present invention; Figure 2 This is a schematic diagram of the arrangement of the water tank of the present invention. Detailed Implementation
[0013] The following is in conjunction with the appendix Figure 1 and 2The present invention will be further described in detail below.
[0014] This invention provides a method for calculating and setting up water channels based on photovoltaic panels in a solar greenhouse. It constructs a topological relationship matrix by modeling the photovoltaic modules in a grid, optimizes the layout of the roof ridge water channels based on the golden ratio projection, generates longitudinal and transverse main water channel paths by combining a potential field path planning algorithm, constructs a three-dimensional model through parametric equations and generates a bill of materials, and finally optimizes the profile cutting and bolt configuration based on an integer programming model to form a closed-loop design framework.
[0015] like Figure 1 and 2 As shown, the method for calculating and setting up a water tank based on photovoltaic panels in a solar greenhouse may include the following steps: S1, performing mesh modeling of the photovoltaic modules to generate a topological relationship matrix containing the relationships between adjacent modules; The implementation method for photovoltaic module mesh modeling and topology generation is as follows: First, input the spatial location parameters of the photovoltaic modules, including their coordinates (x, y, z) in three-dimensional space, installation tilt angle θ, module width W, and length L. Based on the ridgeline distribution characteristics of the photovoltaic array, the origin of the three-dimensional coordinate system is preferentially set as the midpoint of the ridgeline. The coordinate system direction follows engineering conventions, i.e., the x-axis extends east-west along the ridgeline, the y-axis is perpendicular to the ridgeline pointing towards the north and south slopes, and the z-axis is perpendicular to the ground and upwards.
[0016] By constructing a three-dimensional virtual mesh coordinate system, the actual spatial position of photovoltaic modules is mapped to standardized mesh cells. The mesh cell size is related to the module size; the horizontal mesh spacing corresponds to the module width w and length L, respectively, while the vertical (zz-axis) mesh layer height is dynamically adjusted by the module installation height. The normalized coordinates of the module in the mesh are calculated using the following formula: Where x, y, z are the spatial coordinates of the photovoltaic module in the original three-dimensional coordinate system; θ is the installation tilt angle of the photovoltaic module; W is the width of the photovoltaic module; L is the length of the photovoltaic module; and u, v, w are the normalized grid coordinates.
[0017] Normalization ensures that components of different sizes have a uniform relative position in the grid coordinate system, which facilitates subsequent topological relationship analysis.
[0018] Based on normalized grid coordinates, a topological relation matrix describing the adjacency relationships of components is generated. The matrix is an N×N square matrix (N is the total number of photovoltaic modules), and the matrix elements T i,j The assignment rule is as follows: when component i and component j have spatial overlap in adjacent grid cells in the horizontal direction (x-axis or y-axis), mark T. i,j =1, otherwise 0. Specifically, the condition for horizontal adjacency is |x i ′ -x j′ |=1 and y i ′ =y j ′ The condition for determining vertical adjacency is |y i ′ -y j ′ |=1 and x i ′ =x j ′ This matrix fully characterizes the spatial layout features of the photovoltaic array, providing a data foundation for the generation of longitudinal and transverse water tanks.
[0019] Preferably, during the mesh modeling process, the cosine term of the component installation tilt angle θ is used to correct the vertical coordinates, ensuring that tilted components maintain a continuous adjacent relationship in the mesh projection. For example, when the component installation tilt angle causes its projection to shift in the vertical direction, the actual installation height is converted into an equivalent vertical mesh layer through the z·cosθ term, avoiding misjudgment of topological relationships caused by the tilt angle.
[0020] Furthermore, generating the topology relation matrix requires traversing all component pairs and verifying adjacency using a spatial collision detection algorithm. For boundary components, the matrix element corresponding to their missing adjacent grid cells is set to 0 by default. The sparsity of this matrix optimizes storage and computation efficiency while supporting fast querying of spatial relationships between any two components.
[0021] S2. Based on the topology matrix, vertical and horizontal water tanks are generated through the row and column indices of the components, and M-shaped water tanks are generated synchronously for the horizontal components. The generation of the vertical and horizontal water channels is based on the row and column indices of the photovoltaic modules and the intersection of projections. The specific technical solution is as follows: First, based on the topology matrix generated in step S1, the row and column indices of the photovoltaic array are traversed to identify the spatial relationships between adjacent modules. For each column containing a photovoltaic module, the horizontal offset is calculated based on the module's installation tilt angle and the difference in height between adjacent modules, thus generating the path for the vertical water channels. The formula for calculating the horizontal offset is: Where W is the component width; L is the component length; θ is the component mounting angle; Δh is the height difference between adjacent components; x offset θ represents the lateral offset; tanθ is the tangent of the tilt angle.
[0022] By introducing a height difference correction term Δh, the water channel path can adaptively compensate for the deviation in drainage direction caused by uneven component installation, ensuring that the water flow naturally converges along the slope.
[0023] To generate the horizontal water channel, the intersection area of the projected regions of adjacent rows of components needs to be calculated. This intersection area is determined through geometric Boolean operations, specifically the intersection of the projected regions of the north and south slope components on the horizontal plane. Based on the geometric center point of the projected overlapping region, a flume path is generated by extending along the slope normal vector direction. The extension distance is dynamically adjusted by the design drainage volume and flow velocity constraints. The calculation formula is as follows: Among them, Q design For design drainage capacity; v max For the maximum permissible flow rate; A cross The cross-sectional area of the water tank; This is the slope normal vector; This is the extended water tank path.
[0024] This formula combines drainage requirements with slope geometry to ensure that the trough path meets flow requirements while also conforming to the actual installation form of the components.
[0025] For the generation of the M-shaped water trough at the connection of the horizontally arranged modules, the spacing between the fixing points and the bending angle need to be dynamically calculated. The spacing between the fixing points is determined by the relationship between the total length of the photovoltaic array and the design value of the wind load, using the following formula: Where, N fix The number of fixing points required for the photovoltaic support system; L total σ is the total length of the photovoltaic array; allow Z represents the allowable stress of the support material. section F is the section modulus of the support; wind This is the design value for wind load.
[0026] The fixed point density is determined by this formula, so that the M-shaped water tank has sufficient bending stiffness when subjected to wind load.
[0027] Furthermore, the bending angle of the M-shaped water tank is dynamically adjusted according to the combined effect of wind load and static load, and the calculation formula is as follows: Among them, F wind The standard value of wind load; F dead This represents the standard value for static load; k safe α represents the safety factor; α is the adjustment amount of the support tilt angle.
[0028] By introducing a safety factor k, it is ensured that the bending angle still meets the structural stability requirements under extreme loads. Preferably, a piecewise linear interpolation algorithm is used during the bending angle adjustment process to ensure a smooth transition in the geometry of the M-shaped water tank and avoid local stress concentration.
[0029] S3. Generate a ridge gutter based on the overlapping area of the component's projection on the ridge line, and the length of the ridge gutter is determined by the golden ratio of the overlapping projection area. The roof ridge water channel is generated based on geometric analysis and golden ratio optimization of the overlapping area of photovoltaic modules projected onto the roof ridge line. The specific technical solution is as follows: First, the projection boundary point set of the photovoltaic modules on the north and south slopes along the roof ridge line is extracted. The maximum continuous overlap length is determined by calculating the geometric intersection of the projection areas. The boundary point set of the projection overlap area is obtained through a three-dimensional coordinate projection transformation, specifically by projecting the coordinates of the four corner vertices of the modules onto the horizontal plane along the roof ridge line normal vector, forming a polygonal outline. For the projection outlines of the north and south slope modules, the maximum continuous overlap interval in the horizontal direction is calculated using a scan-line algorithm, and its length is denoted as L. overlap .
[0030] The effective length of the roof ridge gutter is determined based on the golden ratio and calculated using the following formula: Among them, L overlap L is the overlap length of the north and south slope components projected onto the ridge line; φ is the golden ratio coefficient; L gutter This refers to the effective length of the roof ridge gutter.
[0031] The application of the golden ratio ensures that the length of the water tank fully covers the projected overlapping area while avoiding material waste and structural redundancy caused by excessive extension. Preferably, the boundary point set of the projected overlapping area needs to be filtered to remove discrete noise points caused by component installation gaps or local deformation, ensuring L... overlap It represents the actual effective drainage coverage area.
[0032] Furthermore, the coordinates of the water tank endpoints are determined based on the centroid position of the projected overlapping region and the golden ratio. The centroid coordinates are calculated using the following formula: Among them, (x k ,y k ) represents the coordinates of the boundary points of the overlapping region; n1 represents the total number of boundary points; x c y c These are the centroid coordinates of the projected overlapping region.
[0033] The centroid coordinates represent the geometric center of the projected area and serve as the reference point for the water tank path. Based on the golden ratio, the x-coordinates of the starting and ending points of the water tank are generated according to the following rules: Where Δx represents the overlapping area of the projection along the ridge line; φ is the golden ratio coefficient; x start x end Here are the x-coordinates of the starting and ending points of the water tank; x c denoted as the x-component of the centroid coordinates.
[0034] This formula ensures that the water tank endpoints are symmetrically distributed on both sides of the centroid, and that the coverage area matches the geometric distribution characteristics of the projected overlapping area, thus ensuring the spatial coupling between the drainage path and the roof structure.
[0035] Preferably, for asymmetric projection overlap areas (such as skewed distributions caused by local roof undulations or component misalignment), a weighted centroid algorithm is used to correct the endpoint coordinates. Specifically, the weight of the boundary point is inversely proportional to its vertical distance from the ridge line, making the gutter path more biased towards the dense projection area and preventing the endpoints from falling into the geometrically sparse area, which would reduce drainage efficiency.
[0036] S4. Based on the distribution of the transverse water tanks, plan the path of the longitudinal main water tank, and avoid the inclined beam structure by using the potential field function in the path planning. The implementation methods for longitudinal main water channel path planning and inclined beam avoidance are as follows: First, candidate path baselines are initialized based on the distribution of the transverse water channels. A longitudinal main water channel candidate path is generated every three columns of transverse water channels. The candidate path baselines are formed by connecting the midpoints of the transverse water channels to create initial polyline segments, ensuring that the paths cover the main drainage convergence area of the photovoltaic array. Spatial location parameters of the inclined beam structure are extracted, including the inclined beam plane coordinates (x...). beam,i ,y beam,i and the radius of influence r beam A repulsive potential field is constructed to dynamically adjust the path.
[0037] For each candidate path, calculate the minimum Euclidean distance from the path point to each inclined beam, using the following formula: Where, d i x is the Euclidean distance from the path point to the i-th inclined beam; path ,y path Planar coordinates of the design points for the water tank path; x beam,i ,y beam,i Let be the planar coordinates of the i-th inclined beam; i is the index number of the inclined beam. This distance is used to quantify the degree of spatial conflict between the path point and the inclined beam, providing input parameters for the potential field function.
[0038] Based on Euclidean distance, a repulsive potential field function is constructed to guide the path to avoid the inclined beam structure. The specific expression is as follows: Where, d i r is the Euclidean distance from the path point to the i-th inclined beam; beam,i Let be the radius of influence of the i-th inclined beam; F is the unit normal vector pointing from the inclined beam to the path point; rep n1 represents the resultant repulsive force in path planning; n2 represents the total number of inclined beams.
[0039] This function enhances the near-field repulsion effect through the inverse square distance relationship, causing the path to deviate rapidly when approaching the inclined beam, while avoiding far-field interference.
[0040] To generate a smooth final path that satisfies curvature constraints, a path optimization equation is established and solved: Among them, κ max λ is the maximum curvature of the path; λ is the smoothing factor; r beam,i n1 represents the safe radius of the i-th inclined beam; n2 represents the total number of inclined beams.
[0041] The objective function is optimized by minimizing the weighted distance between the path and the inclined beam, as well as the curvature penalty term, to ensure that the path meets the construction bending radius limit while avoiding obstacles.
[0042] Preferably, the gradient descent algorithm is used to iteratively solve the optimization equation. The coordinates of the control points of the initial path baseline are used as optimization variables. By calculating the partial derivatives of the objective function with respect to each control point, the path shape is gradually adjusted along the gradient direction until the convergence condition is met. During the iteration process, the path curvature is dynamically constrained by the following formula: Among them, R min This is the minimum allowable bending radius of the sink profile, determined by the material's mechanical properties. This constraint prevents excessive curvature from causing plastic deformation of the profile or installation difficulties.
[0043] Furthermore, after path optimization, discrete path points are smoothed by fitting cubic B-spline curves. The node vectors of the B-spline basis functions are adaptively generated based on the path control points, ensuring that the fitted curve passes through key path points and that the second derivative is continuous, thereby eliminating local bends and abrupt changes and improving drainage smoothness.
[0044] S5. Based on the path of the longitudinal main water channel, generate the transverse main water channel along the eaves of the component slope and configure the downpipe parameters. The generation of the horizontal main water channel and the configuration of the downpipe parameters are achieved based on the geometric features of the photovoltaic module's sloping roof eaves and fluid dynamics calculations. The specific technical solution is as follows: First, the set of contour points of the lower edge of the photovoltaic module at the eaves is extracted, and the horizontal projection coordinates are obtained through 3D coordinate projection transformation. The lower edge contour points are generated by projecting the coordinates of the bottom vertex of the module onto the horizontal plane along the slope normal vector, forming a continuous polyline segment. Based on this polyline segment, the center line of the horizontal main water tank is generated by offsetting it outward by a preset distance. The offset direction is determined by the synthesis of the slope normal vector and the direction of gravity, ensuring that the water tank is installed outside the eaves and maintains a reasonable distance from the edge of the module.
[0045] The slope of the flume is calculated using Manning's formula to meet the design drainage flow requirements. The expression for Manning's formula is: Where n3 is the roughness coefficient of the inner wall of the water tank; Q is the design drainage flow rate; A is the cross-sectional area of the water tank; R is the hydraulic radius; and S is the hydraulic gradient.
[0046] By iteratively adjusting the slope S of the water tank, the water flow velocity is ensured to remain below the maximum allowable value under the maximum rainfall intensity, thus avoiding water splashing or structural erosion caused by excessive flow velocity.
[0047] When determining the number and location of downpipes, based on the principle of balancing peak rainfall intensity and drainage capacity, the calculation formula is as follows: Among them, Q peak Peak rainfall intensity; r is the inner diameter of the downpipe; g is the acceleration due to gravity; H is the height difference between the roof eaves and the ground; π is pi; N drain This represents the minimum number of downpipes.
[0048] This formula ensures that the total drainage capacity of the downpipes covers extreme rainfall conditions, while avoiding material waste caused by over-configuration.
[0049] S6. Integrate the geometric parameters of all water tanks to generate a 3D model, and calculate the profile cutting scheme and bolt quantity distribution in the bill of materials; The implementation method for 3D modeling and bill of materials calculation is as follows: First, the geometric parameters of the water tank generated in steps S1 to S5 are integrated, including the centerline path, cross-sectional dimensions, and coordinates of connecting nodes. A 3D model of the water tank is then constructed using parametric equations. The parametric modeling of the water tank centerline is based on integral operations; the specific formula is as follows: Where C(s) is the cumulative torsional energy; s is the centerline arc length parameter; The first derivative of the path with respect to the parameter t; Let be the second derivative of the path with respect to the parameter t.
[0050] The cumulative torsional energy of the path is quantified by integral calculation and used to generate a smooth and continuous three-dimensional centerline, avoiding stress concentration in the profile caused by abrupt changes in local curvature. Preferably, the parametric equations are fitted to discrete path points using B-spline curves to ensure the continuity of the second derivative of the centerline, meeting the processing requirements.
[0051] For profile cutting optimization, a model for maximizing the utilization rate of standard profiles is established, with the objective function and constraints as follows: Among them, L std,iLet l be the length of the standard profile segment i; ij is the length of the j-th cut piece on the i-th profile segment; m is the number of raw material types or the total number of standard component categories; n4 is the total number of required segments or part types.
[0052] This model achieves global optimization of the surplus material ratio by minimizing the sum of squares of the remaining lengths of standard profiles. Preferably, a dynamic programming algorithm is used to solve the integer cutting scheme, generating a profile segmentation table and a surplus material distribution map to guide construction material cutting.
[0053] The number of bolts is calculated based on the combined distribution of the water tank segment length and wind load. The calculation formula is as follows: in, L seg N represents the length of a single water tank section. bolt 500 represents the total number of bolts required for the structural connection; 500 represents the maximum allowable bolt spacing; 10000 represents the baseline wind load value; ∑ represents the summation over all structural segments; F w This is the design value for wind load.
[0054] Preferably, the bolt installation coordinates are calculated by differentiating the parametric equation of the centerline of the water tank to determine the tangent vector direction, ensuring that the bolt axis is perpendicular to the surface of the water tank and avoiding pull-out force loss caused by installation angle deviation.
[0055] Furthermore, the 3D model is output in a BIM-compatible format, including the water tank geometry, profile cutting scheme, and bolt distribution coordinates. The bill of materials automatically generates a table of profile numbers, lengths, quantities, and surplus material rates, which is linked to the 3D model, allowing the construction team to locate and install according to the numbers. Preferably, the model integrates a finite element analysis interface, verifying the water tank structural strength by applying wind loads and static loads, and triggering local parameter re-optimization for sections that do not meet the safety factor.
[0056] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.
Claims
1. A method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse, characterized in that, Includes the following steps: The photovoltaic modules are modeled in a grid to generate a topological relationship matrix that includes the relationships between adjacent modules; Based on the aforementioned topological relationship matrix, vertical and horizontal water tanks are generated using the component row and column indexes, and M-shaped water tanks are generated synchronously for horizontally arranged components. A ridge gutter is generated based on the overlapping area of the component's projection on the ridge line, and the length of the ridge gutter is determined by the golden ratio of the overlapping projection area. Based on the distribution of the transverse water tanks, the path of the longitudinal main water tank is planned, and the inclined beam structure is avoided by using a potential field function in the path planning. Based on the path of the longitudinal main water channel, a transverse main water channel is generated along the eaves of the component slope, and the downpipe parameters are configured. Integrate the geometric parameters of all water tanks to generate a 3D model, and calculate the profile cutting scheme and bolt quantity distribution in the bill of materials.
2. The method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse according to claim 1, characterized in that, The steps of the mesh modeling include: Input the spatial coordinates (x, y, z) of the photovoltaic module, the installation tilt angle θ, the width W, and the length L; Construct a 3D virtual mesh coordinate system and calculate the normalized coordinates of each component in the mesh: Where x, y, z are the spatial coordinates of the photovoltaic module in the original three-dimensional coordinate system; θ is the installation tilt angle of the photovoltaic module; W is the width of the photovoltaic module; L is the length of the photovoltaic module; u, v, w are the normalized grid coordinates; Generate the topological relation matrix M topo ∈{0,1} n×n When component i and component j are adjacent in the horizontal or vertical grid cells, M topo (i,j) = 1, otherwise 0, where n is the total number of photovoltaic modules; M topo (i,j) represents the adjacency relationship markers of the components.
3. The method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse according to claim 1, characterized in that, The steps of generating the vertical and horizontal water tanks using component row and column indexing include: Steps for creating a vertical small water tank: When the current column index C is detected index When a component exists at ±1, calculate the lateral offset: Where W is the component width; L is the component length; θ is the component mounting angle; Δh is the height difference between adjacent components; x offset tanθ is the lateral offset; tanθ is the tangent of the tilt angle. Steps for creating a horizontal water tank: Calculate the intersection region of the projected components of adjacent rows. in, The projection area for the uphill component; represents the projection area of the downhill component; ∩ represents the geometric intersection operator; The overlapping area of the projection; and along the slope normal vector Extension: Among them, Q design For design drainage capacity; v max For the maximum permissible flow rate; A cross The cross-sectional area of the water tank; This is the slope normal vector; This is the extended water tank path.
4. The method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse according to claim 3, characterized in that, The steps for synchronously generating an M-shaped water tank for the horizontally arranged components include: Calculate the spacing between fixed points: Where, N fix The number of fixing points required for the photovoltaic support system; L total σ is the total length of the photovoltaic array; allow Z represents the allowable stress of the support material. section F is the section modulus of the support; wind This is the design value for wind load; Dynamically adjust bending angle: Among them, F wind The standard value of wind load; F dead This represents the standard value for static load; k safe α represents the safety factor; α is the adjustment amount of the support tilt angle.
5. The method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse according to claim 1, characterized in that, The steps for generating the ridge gutter include: Extract the projection boundaries of the north and south slope components of the ridge line and calculate the maximum continuous length L of the projection overlap area. overlap ; The effective length of the water tank is determined using the golden ratio: Among them, L overlap L is the overlap length of the north and south slope components projected onto the ridge line; φ is the golden ratio coefficient; L gutter This refers to the effective length of the roof ridge gutter.
6. The method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse according to claim 5, characterized in that, The step of determining the endpoints of the water tank includes: Calculate the centroid coordinates (x) of the projected overlapping region. c ,y c ): Among them, (x k ,y k ) represents the coordinates of the boundary points of the overlapping region; n1 represents the total number of boundary points; x c ,y c The coordinates of the centroid of the projected overlapping region; The water tank ends are generated according to the golden ratio: Where Δx represents the overlapping area of the projection along the ridge line; φ is the golden ratio coefficient; x start x end Here are the x-coordinates of the starting and ending points of the water tank; x c denoted as the x-component of the centroid coordinates.
7. The method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse according to claim 1, characterized in that, The steps for planning the path of the longitudinal main water tank based on the distribution location of the transverse water tanks include: Initialize candidate path baselines: Generate a longitudinal main channel candidate baseline every three columns of horizontal channels; Extracting the spatial position parameters of the inclined beam (x) beam ,y beam ,r beam ), where r beam The radius of influence of the inclined beam; x beam ,y beam Let be the plane coordinates of the inclined beam; Calculate the minimum Euclidean distance from the candidate paths to each inclined beam: Where, d i x is the Euclidean distance from the path point to the i-th inclined beam; path ,y path Planar coordinates of the design points for the water tank path; x beam,i ,y beam,i Let be the plane coordinates of the i-th inclined beam; i is the index number of the inclined beam.
8. The method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse according to claim 7, characterized in that, The steps of avoiding the inclined beam structure using a potential field function include: Construct the repulsive potential field function: Where, d i r is the Euclidean distance from the path point to the i-th inclined beam; beam,i Let be the radius of influence of the i-th inclined beam; F is the unit normal vector pointing from the inclined beam to the path point; rep n2 represents the resultant force of repulsion in path planning; n2 represents the total number of inclined beams. Solve the path optimization equation: Among them, κ max λ is the maximum curvature of the path; λ is the smoothing factor; r beam,i n1 represents the safe radius of the i-th inclined beam; n2 represents the total number of inclined beams.
9. The method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse according to claim 1, characterized in that, The steps of generating the horizontal main water tank and configuring the downpipe parameters include: Extract the lower edge outline of the photovoltaic module at the eaves to generate the center line of the horizontal main water channel; Calculate the slope of the water tank according to Manning's formula: Where n3 is the roughness coefficient of the inner wall of the water tank; Q is the design drainage flow rate; A is the cross-sectional area of the water tank; R is the hydraulic radius; and S is the hydraulic gradient. Determine the number and location of downpipes: Among them, Q peak Peak rainfall intensity; r is the inner diameter of the downpipe; g is the acceleration due to gravity; H is the height difference between the roof eaves and the ground; π is pi; N drain This represents the minimum number of downpipes.
10. A method for automatically generating a water tank based on photovoltaic panels in a solar greenhouse according to claim 1, characterized in that, The steps of generating the 3D model and calculating the bill of materials include: Water tank 3D modeling steps: The equations for the centerline parameters of the water tank are generated through integral calculations. Where C(s) is the cumulative torsional energy; s is the centerline arc length parameter; The first derivative of the path with respect to the parameter t; The second derivative of the path with respect to the parameter t; Profile cutting optimization steps: Establish a model to maximize the utilization rate of standard profiles: Among them, L std,i Let l be the length of the standard profile segment i; ij is the length of the j-th cut piece on the i-th profile segment; m is the number of raw material types or the total number of standard component categories; n4 is the total number of required segments or part types; Steps for calculating the number of bolts: The number of bolts is determined based on the length of the water tank section and the distribution of wind load. in, L seg N represents the length of a single water tank section. bolt 500 represents the total number of bolts required for the structural connection; 500 represents the maximum allowable bolt spacing; 10000 represents the baseline wind load value; ∑ represents the summation over all structural segments; F w This is the design value for wind load.