Data analysis method for rainwater runoff on multiple curved surfaces

By analyzing rainwater flow paths on multiple surfaces on the Grasshopper platform, the problem that the existing technology cannot analyze the rainwater flow paths on multiple surfaces is solved, and an effective analysis of the continuous rainwater flow paths on building roofs is achieved, providing a strong reference for drainage design.

CN119989962APending Publication Date: 2025-05-13CHINA CONSTR EIGHT ENG DIV CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411818044.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The existing Grasshopper native calculations can only calculate the normal vector of points on a single surface, and cannot analyze multiple surfaces, making it difficult to judge the natural flow path of water droplets on multiple high and low surfaces.

Method used

By establishing multiple surfaces on the Grasshopper platform, raindrops are randomly generated, and unit circles are generated around the raindrops for projection, the projection curve is judged and the edge distance is calculated, the flow direction of the raindrops is calculated, and the continuous flow path of rainwater is formed.

Benefits of technology

The continuous analysis of rainwater flow between multiple high and low curved surfaces is achieved, and a reference basis for building roof drainage design is provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119989962A_ABST
    Figure CN119989962A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of curved surface runoff analysis, in particular to a data analysis method for rainwater runoff on multiple curved surfaces. Comprising the following steps: S1, establishing a plurality of curved surfaces on Grasshopper according to a to-be-analyzed building roof; s2, randomly generating raindrops above the plurality of curved surfaces, and enabling the raindrops to vertically fall down; s3, when the raindrop is in contact with the curved surface, generating a unit circle around the raindrop, and projecting the unit circle to the curved surface to form a projection curve; s4, judging whether the projection curve is closed or not; s5, when the projection curve is not closed, whether the raindrop reaches the edge of the curved surface or not is judged; s6, the steps from S3 to S5 are repeated, and a continuous flowing path of the rainwater is generated. The method has the beneficial effects that the approximate direction of the normal vector of the raindrops on the multiple curved surfaces is subjected to fuzzy calculation through a regional sampling method, the natural flowing direction of rainwater is judged, the calculation is continuously circulated to form the flowing path of the rainwater, and the continuous flowing path of the rainwater on the building roof is simulated and analyzed; and a reference basis is provided for drainage design of the building roof.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of curved surface runoff analysis, and in particular to a data analysis method for rainwater runoff on multiple curved surfaces. Background Art

[0002] In the analysis of rainwater runoff, Grasshopper (GH for short), a visual programming language based on the Rhino platform, is usually used. It is one of the mainstream software in the direction of data-based design.

[0003] However, Grasshopper's native calculation can only calculate the normal vector of a point on a single surface, and cannot analyze multiple surfaces. It is difficult to determine the rainwater flow path on multiple surfaces of different heights. As a result, it is difficult to analyze the continuous flow path of rainwater on multiple building roofs of different heights, which causes trouble for the drainage design of the building roof.

[0004] Therefore, the present invention proposes a data analysis method for rainwater runoff on multiple curved surfaces. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the prior art and provide a data analysis method for rainwater runoff on multiple surfaces, so as to solve the problem that the native calculation of the existing Grasshopper can only calculate the normal vector of points on a single surface, but cannot analyze multiple surfaces, making it difficult to determine the natural flow path of water droplets on multiple high and low surfaces.

[0006] The technical solution to achieve the above purpose is:

[0007] The present invention provides a data analysis method for rainwater runoff on multiple curved surfaces, and its technical solution is as follows: specifically comprising the following steps: S1: according to the building roof to be analyzed, a plurality of corresponding curved surfaces are established on Grasshopper; S2: raindrops are randomly generated above the plurality of curved surfaces in the Grasshopper, and the raindrops are made to fall vertically downward; S3: when the raindrop contacts the curved surface, a unit circle is generated around the raindrop, and the unit circle is projected onto the curved surface to form a projection curve; S4: whether the projection curve is closed is determined, and when the projection curve is closed, the flow direction of the raindrop is calculated, so that the raindrop flows according to the current slope of the curved surface; S5: when the projection curve is not closed, whether the raindrop reaches the edge of the curved surface is further determined, and when the raindrop reaches the edge of the curved surface, the raindrop falls downward onto another curved surface; S6: steps S3 to S5 are repeated to generate a continuous flow path of the rainwater.

[0008] Furthermore, the specific steps for calculating the flow direction of the raindrops are: three points are set equidistantly on the projection curve, and a plane circle is generated based on the three points to obtain the normal vector of the plane circle; the above steps are repeated to obtain normal vectors in multiple directions, and the multiple normal vectors are fitted to obtain the normal vector of the projection curve; the fitted normal vector is rotated 90° to obtain the flow direction of the raindrops.

[0009] Furthermore, when the raindrop flows according to the current slope of the surface, the distance of each flow is equal to the radius of the unit circle; after the raindrop flows, it is further determined whether the projection curve is closed; after several cycles, until the projection curve is not closed, enter the next step.

[0010] Furthermore, when the raindrop has not reached the edge of the surface, step S4 is repeated to determine the flow direction of the rainwater, so that the rainwater flows toward the edge of the surface according to the current slope of the surface, and then it is determined again whether the raindrop has reached the edge of the surface. After several cycles, until the raindrop reaches the edge of the surface, the raindrop falls down onto another surface.

[0011] Furthermore, a method for judging whether the raindrop has reached the edge of the curved surface is as follows: determining a set distance A; measuring an approximate distance from the center point of the projection curve of the raindrop to the edge of the curved surface; comparing the approximate distance with the set distance A; when the approximate distance is greater than the set distance A, it is judged that the raindrop is not at the edge of the curved surface; and when the approximate distance is less than the set distance A, it is judged that the raindrop is at the edge of the curved surface.

[0012] Furthermore, the value range of the set distance A is between 0 and the radius of the unit circle.

[0013] Furthermore, a Polyline is provided to record the displacement endpoint of each raindrop, and a spatial polyline is fitted with the Polyline and a direction arrow is added at the end to indicate the flow trend of each raindrop on the curved surface.

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

[0015] Through the method of regional sampling, the approximate direction of the normal vector of a small area around the raindrop on the multi-surface is calculated to determine the natural flow direction of rainwater under the action of gravity, and the above calculation is continuously repeated to form the flow path of rainwater. Through this method, the continuous flow path of rainwater on the building roof can be analyzed, thus providing a reference for the drainage design of the building roof.

[0016] The projection curve is obtained by projecting a small circular area around the raindrops onto the curved surface. The closure of the projection curve and the distance to the edge are used to determine whether the raindrops will jump to the next curved surface (i.e. fall) or continue to flow on the curved surface, thereby achieving the continuity of rainwater flow between multiple high and low curved surfaces. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of rainwater runoff is a result of the analysis of the data analysis method for rainwater runoff on multiple curved surfaces according to the present invention.

[0018] Figure 2 It is a schematic diagram of a method for analyzing rainwater flow direction in a data analysis method for rainwater runoff on multiple curved surfaces of the present invention.

[0019] Figure 3 It is a schematic diagram of a method for analyzing rainwater at the edge of a curved surface in a data analysis method for rainwater runoff on multiple curved surfaces of the present invention.

[0020] Figure 4 It is an overall programming logic diagram of the data analysis method for rainwater runoff on multiple curved surfaces of the present invention. DETAILED DESCRIPTION

[0021] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0022] See also Figure 1 The present invention provides a data analysis method for rainwater runoff on multiple surfaces, which solves the problem that the existing Grasshopper native calculation can only calculate the normal vector of points on a single surface, and cannot analyze multiple surfaces, making it difficult to determine the natural flow path of water droplets on multiple high and low surfaces. The problem that it is difficult to analyze the continuous flow path of rainwater on multiple building roofs of different heights is solved, and a strong reference basis is provided for the drainage design of building roofs. Through the method of regional sampling, the approximate direction of the normal vector of the small-range surface around the raindrops on the multiple surfaces is fuzzy calculated to determine the natural flow direction of rainwater under the action of gravity, and the above calculation is continuously repeated to form the flow path of rainwater. The projection curve is obtained by projecting a small-range circular surface around the raindrops. According to the closure of the projection curve and the distance of the edge, it is judged whether the raindrops jump to the next surface (and fall) or continue to flow on the surface, thereby realizing the continuity of rainwater flow between multiple high and low surfaces.

[0023] A data analysis method for rainwater runoff on multiple curved surfaces of the present invention is described below with reference to the accompanying drawings.

[0024] See also Figure 1 , showing the analysis results of the data analysis method for rainwater runoff on multiple curved surfaces of the present invention. Figure 4 , showing the overall programming logic diagram of the data analysis method for rainwater runoff on multiple surfaces of the present invention. Figure 1 and Figure 4 , a data analysis method for rainwater runoff on multiple curved surfaces of the present invention is described.

[0025] like Figure 1 and Figure 4 As shown, a data analysis method for rainwater runoff on a multi-curved surface of the present invention specifically includes the following steps:

[0026] S1: According to the multiple building roofs to be analyzed, multiple corresponding surfaces are established on Grasshopper;

[0027] S2: randomly generate raindrops above the multiple surfaces in the Grasshopper, and make the raindrops fall vertically downward;

[0028] S3: when the raindrop contacts the curved surface, a unit circle is generated around the raindrop, and the unit circle is projected onto the curved surface to form a projection curve;

[0029] S4: determining whether the projection curve is closed. If the projection curve is closed, it is determined that the raindrop is completely located on the surface, and the flow direction of the raindrop is calculated so that the raindrop flows according to the current slope of the surface.

[0030] S5: When the projection curve is not closed, it is determined that the raindrop is not completely located on the curved surface, and it is further determined whether the raindrop reaches the edge of the curved surface. When the raindrop reaches the edge of the curved surface, the raindrop falls downward onto another curved surface;

[0031] S6: Repeat steps S3 to S5 to generate a continuous flow path for the rainwater.

[0032] In a specific implementation, the unit circle coincides with the position of the raindrop, and the diameter of the unit circle is smaller than the range of the raindrop and is very small.

[0033] In a preferred embodiment, multiple curved surfaces can be established based on multiple building roofs in reality as references, so that the rainwater flow path on the building roof can be obtained according to the analysis method, providing a reference basis for the drainage design of the building roof.

[0034] In a specific implementation, the multiple curved surfaces are created with different heights.

[0035] like Figure 2 As shown, in a specific implementation, the specific steps of calculating the flow direction of the raindrops are:

[0036] Three points are set at equal distances on the projection curve, and a plane circle is generated according to the three points to obtain a normal vector of the plane circle;

[0037] Repeat the above steps to obtain multiple normal vectors in different directions, and fit the multiple normal vectors to obtain the normal vector of the projection curve;

[0038] The fitted normal vector is rotated 90° to obtain the flow direction of the raindrops.

[0039] In a specific implementation, when the raindrop flows according to the current slope of the curved surface, the distance of each flow is equal to the radius of the unit circle;

[0040] After the raindrop flows, it is further determined whether the projection curve is closed;

[0041] After several cycles, until the projection curve is not closed, proceed to the next step.

[0042] like Figure 3 As shown, in a specific embodiment, when the raindrop has not reached the edge of the curved surface, step S4 is repeated to determine the flow direction of the rainwater, so that the rainwater flows toward the edge of the curved surface according to the current slope of the curved surface, and then it is determined again whether the raindrop has reached the edge of the curved surface. After several cycles, until the raindrop reaches the edge of the curved surface, the raindrop falls down onto another curved surface.

[0043] In a specific implementation, the method for determining whether the raindrop reaches the edge of the curved surface is:

[0044] Determine a set distance A;

[0045] Measure the approximate distance from the center point of the projection curve of the raindrop to the edge of the curved surface;

[0046] The approximate distance is compared with the set distance A. When the approximate distance is greater than the set distance A, it is determined that the raindrop is not at the edge of the curved surface. When the approximate distance is less than the set distance A, it is determined that the raindrop is at the edge of the curved surface.

[0047] In a specific implementation, the value range of the set distance A is between 0 and the radius of the unit circle. The value of the set distance A can be adjusted according to actual conditions.

[0048] like Figure 1 As shown, in a specific implementation, a Polyline is provided to record the displacement endpoint of each raindrop, and the Polyline is used to fit a spatial polyline and a direction arrow is added at the end to indicate the flow trend of each raindrop on the curved surface.

[0049] The analysis process of a data analysis method for rainwater runoff on multiple curved surfaces of the present invention is described in detail below.

[0050] Create multiple surfaces on Grasshopper and distribute them up and down. Then randomly generate raindrops above the multiple surfaces and make them fall vertically downward. When raindrops fall on the surfaces, unit circles are generated around the raindrops and projected onto the surfaces to form projection curves.

[0051] Then determine whether the projection curve is closed. If the projection curve is closed, it is determined that the raindrops are completely on the surface. Then set three points equidistantly on the projection curve, generate a plane circle based on the three points, and obtain the normal vector of the plane circle. Then continue to set three plane circles equidistantly on the projection curve and obtain the normal vector of the plane circle. After repeating this process many times, multiple different normal vectors are obtained. The multiple normal vectors are fitted to obtain the normal vector of the projection curve. The fitted normal vector is then rotated 90° to obtain the flow direction of the raindrops. After the raindrops flow a certain distance in the flow direction, the flow direction is recalculated and the flow continues until the projection curve is not closed.

[0052] When the projection curve is not closed, it is determined that the raindrop is not completely located on the surface, and then it is determined whether the raindrop is located at the edge of the surface. First, a set distance A is determined, and then the approximate distance from the center point of the projection curve of the raindrop to the edge of the surface is measured. When the approximate distance is greater than the set distance A, it is determined that the raindrop is not at the edge of the surface, and the flow direction of the raindrop is continued to be determined, and the raindrop flows in the flow direction until the approximate distance is less than the set distance A.

[0053] When the approximate distance is less than the set distance A, it is determined that the raindrop is located at the edge of the curved surface, and the raindrop falls downward onto another curved surface.

[0054] Then repeat the above steps and record the displacement end point of the raindrops. Use Polyline to fit a spatial polyline and add a direction arrow at the end to indicate the flow trend of each raindrop on the surface.

[0055] The present invention is described in detail above in conjunction with the embodiments of the accompanying drawings. A person skilled in the art can make various variations of the present invention according to the above description. Therefore, certain details in the embodiments should not constitute a limitation of the present invention, and the scope of protection of the present invention shall be defined by the scope of the attached claims.

Claims

1. A data analysis method for rainwater runoff on multiple curved surfaces, characterized in that: The specific steps include: S1: According to the multiple building roofs to be analyzed, multiple corresponding surfaces are established on Grasshopper; S2: randomly generating raindrops above the plurality of surfaces in the Grasshopper, and making the raindrops fall vertically downward; S3: when the raindrop contacts the curved surface, generating a unit circle around the raindrop, and projecting the unit circle onto the curved surface to form a projection curve; S4: determining whether the projection curve is closed, and when the projection curve is closed, calculating the flow direction of the raindrops so that the raindrops flow according to the current slope of the curved surface; S5: when the projection curve is not closed, further determining whether the raindrop reaches the edge of the curved surface; when the raindrop reaches the edge of the curved surface, the raindrop falls downward onto another curved surface; S6: Repeat steps S3 to S5 to generate a continuous flow path for the raindrops.

2. A data analysis method for rainwater runoff on a multi-curved surface according to claim 1, characterized in that: The specific steps of calculating the flow direction of the raindrops are: Setting three points on the projection curve at equal distances, generating a plane circle according to the three points, and obtaining a normal vector of the plane circle; Repeat the above steps to obtain multiple normal vectors in different directions, and fit the multiple normal vectors to obtain the normal vector of the projection curve; The normal vector obtained by fitting is rotated 90° to obtain the flow direction of the raindrops.

3. A data analysis method for rainwater runoff on a multi-curved surface according to claim 1, characterized in that: When the raindrops flow according to the current slope of the curved surface, the distance of each flow is equal to the radius of the unit circle; After the raindrops flow, further determining whether the projection curve is closed; After several cycles, until the projection curve is not closed, the next step is entered.

4. The data analysis method for rainwater runoff on a multi-curved surface according to claim 1, characterized in that: When the raindrops have not reached the edge of the curved surface, repeat step S4 to determine the flow direction of the rainwater, so that the rainwater flows toward the edge of the curved surface according to the current slope of the curved surface, and then re-determine whether the raindrops have reached the edge of the curved surface. After several cycles, until the raindrops reach the edge of the curved surface, the raindrops fall down onto another curved surface.

5. A data analysis method for rainwater runoff on a multi-curved surface according to claim 4, characterized in that: The method for judging whether the raindrop reaches the edge of the curved surface is as follows: Determine a set distance A; Measuring the approximate distance from the center point of the projection curve of the raindrop to the edge of the curved surface; The approximate distance is compared with the set distance A. When the approximate distance is greater than the set distance A, it is determined that the raindrop is not at the edge of the curved surface. When the approximate distance is less than the set distance A, it is determined that the raindrop is at the edge of the curved surface.

6. A data analysis method for rainwater runoff on a multi-curved surface according to claim 5, characterized in that: The value range of the set distance A is between 0 and the radius of the unit circle.

7. The data analysis method for rainwater runoff on a multi-curved surface according to claim 1, characterized in that: A Polyline is provided to record the displacement endpoint of each raindrop, and a spatial polyline is fitted with the Polyline and a direction arrow is added at the end to indicate the flow trend of each raindrop on the surface.