Roof photovoltaic module arrangement method based on Grasshopper
The photovoltaic module layout model is generated and modified through the Grasshopper program, which solves the problems of low efficiency and inaccuracy of traditional methods on special-shaped metal roofs, and achieves efficient and accurate photovoltaic module layout and design modification, which is suitable for complex roofs.
Patent Information
- Application Number
- CN202411582862.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-01-10
AI Technical Summary
Traditional photovoltaic module arrangement methods are inefficient and inaccurate when dealing with complex shapes of special-shaped metal roofs, and are inconvenient to design modification, making it difficult to meet the requirements of efficient and accurate photovoltaic module arrangement.
The photovoltaic module arrangement method based on Grasshopper is adopted to obtain the three-dimensional model of the building roof surface and the metal roof panel arrangement and wiring model, and the photovoltaic module arrangement model is generated using the Grasshopper program, and it supports rapid modification to improve design efficiency and accuracy.
It realizes efficient and precise photovoltaic module arrangement on special-shaped metal roofs, simplifies the design modification process, improves design efficiency and accuracy, and is suitable for complex geometric roofs.
Smart Images

Figure CN119293929A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photovoltaic assembly arrangement design, and more particularly to a roof photovoltaic assembly arrangement method based on Grasshopper. Background Art
[0002] As the world's awareness of sustainable energy and environmental protection increases, solar power generation as a clean and renewable energy source has received more and more attention. BIPV (Building Integrated Photovoltaics) technology has emerged as the times require. It integrates photovoltaic modules into the roof or wall of a building to achieve energy self-sufficiency and reduce dependence on traditional energy. However, in actual application, especially for special-shaped metal roofs with complex shapes, how to efficiently and reasonably arrange photovoltaic modules has become a challenge.
[0003] Traditional photovoltaic module arrangement methods often rely on manual measurement and positioning, which may be feasible when dealing with standard planes, but when facing non-standard curved surfaces or folded-line shaped roofs, this method is not only time-consuming and labor-intensive, but also difficult to ensure accuracy, thus affecting the efficiency of photovoltaic power generation and the aesthetics of the building. In addition, once the design needs to be modified, the flexibility and efficiency of traditional methods are greatly reduced.
[0004] Therefore, how to solve the problems of low efficiency and inaccuracy of traditional manual arrangement of photovoltaic modules when facing special-shaped metal roofs, as well as the inconvenience of design modification in the prior art, is the current main task of those skilled in the art. Summary of the invention
[0005] In view of this, the present invention provides a roof photovoltaic module arrangement method based on Grasshopper, aiming to provide a more efficient, accurate and easy-to-adjust photovoltaic module arrangement solution to promote the development and application of BIPV technology.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] A method for arranging roof photovoltaic modules based on Grasshopper, comprising:
[0008] Obtain the 3D model of the building roof surface and the 2D CAD drawings of the metal roof panel wiring template, and import them into the modeling software;
[0009] Obtain the parameters of photovoltaic modules and generate the photovoltaic module arrangement model based on the Grasshopper program of the modeling software;
[0010] When the specifications and arrangement of photovoltaic modules change, the photovoltaic module arrangement model is quickly modified based on the program Grasshopper.
[0011] Preferably, the modeling software is Rhino.
[0012] Preferably, the metal roof panel arrangement wire mold avoids the functional area in the three-dimensional model of the building roof surface in advance.
[0013] Preferably, the functional areas include: gutters, roof openings and skylights.
[0014] Preferably, the photovoltaic module arrangement model is generated based on the Grasshopper program, and the steps include:
[0015] Align the 3D model of the building roof surface and the 2D CAD drawing of the metal roof panel wiring template at the project origin;
[0016] Project the 2D CAD drawing of the metal roof panel wiring template onto the 3D model of the building roof surface;
[0017] The photovoltaic module parameters are obtained, and a photovoltaic module arrangement model is generated on the three-dimensional model of the building roof surface according to the photovoltaic module parameters.
[0018] Preferably, the photovoltaic module parameters include:
[0019] The length and width of the photovoltaic module model panel, and the normal offset of the photovoltaic module from the roof surface model are input.
[0020] It can be seen from the above technical solution that, compared with the prior art, the present invention discloses a roof photovoltaic module arrangement method based on Grasshopper. Grasshopper adopts a visual programming language to allow users to quickly generate photovoltaic module arrangement plans by defining parameters and logical relationships, which is particularly suitable for complex geometric roofs.
[0021] Applying Grasshopper to the BIPV field can greatly improve the design efficiency and accuracy of the layout of photovoltaic modules on special-shaped metal roofs. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0023] Figure 1A flow chart of the roof photovoltaic assembly arrangement method based on Grasshopper provided by the present invention;
[0024] Figure 2 This is a schematic projection diagram of the photovoltaic module wiring module provided by the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] Building integrated photovoltaics (BIPV) requires that photovoltaic modules fit the roof of the building. During the modeling process, the complex and diverse shapes of the building roofs make the photovoltaic module arrangement model time-consuming and labor-intensive. Therefore, the embodiment of the present invention discloses a roof photovoltaic module arrangement method based on Grasshopper, such as Figure 1 ,include:
[0027] Obtain the 3D model of the building roof surface and the 2D CAD drawings of the metal roof panel wiring template, and import them into the modeling software;
[0028] Obtain the parameters of photovoltaic modules and generate the photovoltaic module arrangement model based on the Grasshopper program of the modeling software;
[0029] When the specifications and arrangement of photovoltaic modules change, the photovoltaic module arrangement model is quickly modified based on the program Grasshopper.
[0030] In an exemplary embodiment,
[0031] Import the three-dimensional model of the building's roof skin and the two-dimensional CAD drawings of the metal roof panel layout into the modeling software Rhino; wherein the metal roof panel layout wiring pattern avoids the functional areas in the three-dimensional model of the building's roof skin in advance, and the functional areas include: gutters, roof openings and skylights;
[0032] Based on the program Grasshopper, according to the three-dimensional model of the building roof surface and the two-dimensional CAD drawings of the metal roof panel layout, a photovoltaic module model is generated on the surface of the building to complete the modeling of the roof photovoltaic module layout.
[0033] Further, the photovoltaic assembly arrangement model generated on the surface of the building is checked, and the photovoltaic assembly arrangement model is modified as needed.
[0034] When the specifications and layout of photovoltaic modules change, the relevant battery parameters can be modified based on the Grasshopper program to quickly modify and adjust the photovoltaic module layout model.
[0035] In a preferred embodiment, the photovoltaic module arrangement model is generated based on the Grasshopper program, and the steps include:
[0036] Align the 3D model of the building roof surface and the 2D CAD drawing of the metal roof panel wiring template at the project origin;
[0037] Project the two-dimensional CAD drawing of the metal roof panel layout template onto the three-dimensional model of the building roof surface; Figure 2 As shown;
[0038] Get the parameters of photovoltaic modules, including:
[0039] The length and width of the photovoltaic module model panel, input the normal offset of the photovoltaic module from the roof surface model;
[0040] A photovoltaic module arrangement model is generated on the three-dimensional model of the building roof surface according to the photovoltaic module parameters. The generation steps include:
[0041] 1) Select a base surface: First, select a base surface in the Rhino 3D environment. This surface will serve as the carrier for the arrangement of photovoltaic modules.
[0042] 2) Select the lines on the reference surface, which will determine the direction of the PV panel arrangement;
[0043] 3) Enter the split length X to determine the split length of the PV module on the selected line, that is, the distance of the long side of the PV module model board;
[0044] 4) Traverse each line and perform the following operations on each line selected by the user:
[0045] a. Calculate the midpoint and normal: For each line, calculate its midpoint and the normal vector of that point on the reference surface;
[0046] b. Calculate the length of the line segment and the number of divisions, that is, calculate the length of the line segment and determine how many photovoltaic modules can be placed on this line based on the division length X input by the user;
[0047] 5) Generate photovoltaic modules: For each segmentation on the line segment, including:
[0048] a. Extract sub-segments, and extract sub-segments on the original segment according to the segmentation parameters;
[0049] b. Input parameters A and B. The user needs to input two parameters. Parameter A will determine the offset of the PV module from the normal of the roof surface model, and parameter B is the distance from the wide side of the PV module model board;
[0050] c. Calculate the rectangular corner points, and calculate the rectangular corner points of the photovoltaic module arrangement according to the intercepted sub-segments and the parameters input by the user;
[0051] d. Create a rectangle, connect the corner points into polylines, and generate a rectangular model of the photovoltaic panel layout in the Rhino 3D environment.
[0052] In one embodiment, the specific program code is as follows:
[0053] import rhinoscriptsyntax as rs
[0054] def create_rectangles_on_surface():
[0055] # Pick the base surface
[0056] surface = rs.GetObject("Please select the reference surface", rs.filter.surface)
[0057] if not surface:
[0058] return
[0059] # Pick lines on the surface
[0060] lines = rs.GetObjects("Please select the lines on the surface", rs.filter.curve)
[0061] if not lines:
[0062] return
[0063] length_x = rs.GetReal("Please enter the segmentation length X", 1.0)
[0064] if length_x <= 0:
[0065] return
[0066] for line in lines:
[0067] midpoint = rs.CurveMidPoint(line)
[0068] normal = rs.SurfaceNormal(surface, rs.SurfaceClosestPoint(surface, midpoint))
[0069] line_length = rs.CurveLength(line)
[0070] num_segments = int(line_length / / length_x)
[0071] for i in range(num_segments):
[0072] start_param = i * (line_length / num_segments)
[0073] end_param = (i + 1) * (line_length / num_segments)
[0074] segment = rs.TrimCurve(line, [rs.CurveParameter(line,start_param), rs.CurveParameter(line, end_param)])
[0075] param_a = rs.GetReal("Please enter parameter A", 1.0)
[0076] param_b = rs.GetReal("Please enter parameter B", 1.0)
[0077] rectangle_corners =
[0078] rs.PointAdd(segment[0], normal * param_a),
[0079] rs.PointAdd(segment[0], normal * param_a+rs.VectorUnitize(rs.VectorCreate(segment[1], segment[0])) * param_b),
[0080] rs.PointAdd(segment[1], normal * param_a+rs.VectorUnitize(rs.VectorCreate(segment[1],segment[0]))*param_b),
[0081] rs.PointAdd(segment[1], normal * param_a) ]
[0083] rs.AddPolyline(rectangle_corners+[rectangle_corners[0]])
[0084] The present invention is based on a pre-written Grasshopper program, selects a photovoltaic module layout pattern projected onto a building roof surface model, selects an imported building roof surface three-dimensional model as a control surface, inputs the photovoltaic module model board length and board width, inputs the photovoltaic module normal offset from the roof surface model, and generates a photovoltaic module layout model on the building roof.
[0085] To further optimize the above technical solution, check the directionality of the photovoltaic module arrangement model and adjust the arrangement direction; that is,
[0086] According to the 2D CAD PV module layout drawing, check the PV module layout model completed on the 3D model of the building roof surface; if the requirements are met, output the PV module layout model; if not, that is, when the specifications and layout of the PV modules change, based on the pre-written Grasshopper program, modify the parameters (the PV module model board length and board width, and input the normal offset of the PV module from the roof surface model) to complete the rapid modification of the building roof PV module layout model.
[0087] The present invention is based on a written Grasshopper program. According to the three-dimensional model of the building roof surface and the two-dimensional CAD photovoltaic component layout drawing, the photovoltaic component layout model can be quickly completed. At the same time, when the photovoltaic components change and the layout form changes, the relevant parameters can be modified through the written Grasshopper program to complete the photovoltaic layout model modification, thereby improving the modeling efficiency.
[0088] The advantage of using Grasshopper for PV panel layout is its high degree of automation and parameterization. Designers can preset a series of parameters and rules based on the specific shape and size of the roof, and Grasshopper can automatically calculate the optimal PV panel layout based on these parameters. This not only reduces the workload of manual measurement and positioning, but also improves the accuracy and adjustability of the layout plan. When modifying the design later, you only need to adjust the relevant parameters to quickly update the model without starting from scratch.
[0089] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0090] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for arranging roof photovoltaic modules based on Grasshopper, characterized in that: include: Obtain the 3D model of the building roof surface and the 2D CAD drawings of the metal roof panel wiring template, and import them into the modeling software; Obtain the parameters of photovoltaic modules and generate the photovoltaic module arrangement model based on the Grasshopper program of the modeling software; When the specifications and arrangement of photovoltaic modules change, the photovoltaic module arrangement model is quickly modified based on the program Grasshopper.
2. The method for arranging rooftop photovoltaic modules based on Grasshopper according to claim 1, characterized in that: The modeling software is Rhino.
3. The method for arranging rooftop photovoltaic modules based on Grasshopper according to claim 1, characterized in that: The metal roof panel arrangement wire formwork avoids the functional areas in the three-dimensional model of the building roof surface in advance.
4. The method for arranging roof photovoltaic modules based on Grasshopper according to claim 3, characterized in that: Functional areas include: gutters, roof openings and skylights.
5. The method for arranging roof photovoltaic modules based on Grasshopper according to claim 1, characterized in that: Generate a photovoltaic module arrangement model based on the Grasshopper program, the steps include: Align the 3D model of the building roof surface and the 2D CAD drawing of the metal roof panel wiring template at the project origin; Project the 2D CAD drawing of the metal roof panel wiring template onto the 3D model of the building roof surface; The photovoltaic module parameters are obtained, and a photovoltaic module arrangement model is generated on the three-dimensional model of the building roof surface according to the photovoltaic module parameters.
6. The method for arranging roof photovoltaic modules based on Grasshopper according to claim 5, characterized in that: PV module parameters include: The length and width of the photovoltaic module model panel, and the normal offset of the photovoltaic module from the roof surface model are input.