A method for modeling lightning protection range based on the PML visual programming language
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-12
- Publication Date
- 2026-08-11
AI Technical Summary
而PDMS本身很难满足防雷空间精确建模的要求,机械化的重复建模将极大增加设计成本,并且给模型的调整和修改带来极大的不便,这些都制约着BIM技术在火力发电防雷设计数字化的的发展,所以如何快速精确的建立防雷范围模型至关重要
[0014] Modeling can be done quickly and accurately based on the coordinates of the lightning rod, reducing a lot of repetitive mechanical modeling work and improving modeling efficiency;
Smart Images

Figure CN115357981B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lightning protection range spatial modeling technology, and in particular to a lightning protection range modeling method based on the PML visual programming language. Background Technology
[0002] With the rapid promotion of Building Information Modeling (BIM) technology in the engineering field, its application in power plant design is also gradually deepening. Through BIM technology, basic information of lightning protection design, including the cross-section, structure, and range of the lightning protection area, can be included in the BIM model, realizing the visualization and parameterization of the lightning protection model. In the application of lightning protection BIM, a major problem is the establishment of the BIM model.
[0003] BIM technology was first proposed by Autodesk in 2002, and its corresponding software is Revit. However, with the development of software and hardware technology, the concept of BIM has gradually extended to industrial construction engineering. In the field of thermal power generation engineering design, AVEVA's PDMS software occupies the vast majority of the BIM application market. This software is mainly aimed at the design of pipelines, buildings and structures in industrial plants. The lightning protection space is different from the above objects. Its main characteristics are: (1) The cross-sectional form of the lightning protection range is diverse and mostly curved, such as arcs, solids of revolution, etc.; (2) The lightning protection range is mainly determined according to the relative positional relationship of the lightning rod or line. The lightning protection range in space is a spatial curved surface. PDMS itself cannot realize the modeling of spatial curved surfaces. A better way to model lightning protection space is to use flat surfaces to represent curves and divide the curved surface into multiple small planes. PDMS itself is difficult to meet the requirements of accurate modeling of lightning protection space. Mechanized and repetitive modeling will greatly increase design costs and bring great inconvenience to model adjustment and modification. All of these factors restrict the development of BIM technology in the digital design of lightning protection for thermal power plants. Therefore, it is crucial to quickly and accurately establish a lightning protection range model. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of the prior art by providing a PML-based three-dimensional modeling method for lightning protection range. This method can quickly and accurately model the lightning rod based on its coordinates, reducing a large amount of repetitive mechanical modeling work and improving modeling efficiency.
[0005] To achieve the above-mentioned objectives, this invention provides a lightning protection range modeling method based on the PML visual programming language, characterized in that the modeling method includes the following steps:
[0006] S1: Obtain the X, Y, and Z coordinates of the lightning rod's apex and the ground elevation;
[0007] S2: Use PML for programming, read the coordinates of each lightning rod vertex, and combine them with the ground height to calculate the protection range of a single rod at half the elevation and at the ground.
[0008] S3: Joint protection range between two lightning rods: The symmetrical curve of the joint protection range between two lightning rods is the top arc formed by the highest point of the joint protection and the apex of the two rods; the edge line is the narrowest point of the joint protection range at the ground between the two closest lightning rods. The narrowest point is drawn to the bottom tangents on both sides of the single-rod protection range circle at the same elevation. The edge line segment can be obtained from each pair of lightning rods.
[0009] S4: Establishment of the dividing line: First, calculate the minimum width of the joint protection at 0 meters based on the distance between the two needles. Draw bottom tangents from the minimum width to both sides of the circle of the protection range at the same elevation of the single needle protection range. Similarly, calculate the minimum width of the joint protection of the double needles at half the elevation of the double needle protection range. Draw middle tangents to both sides of the circle of the protection range of the single needle at the same elevation.
[0010] S5: Establishment of the dual-needle joint protection range model: The top arc, the middle tangent, and the bottom tangent are divided into equal parts. Any three adjacent points of the top arc and the middle tangent form a planar triangle. Any three adjacent points of the middle tangent and the bottom tangent form a planar triangle. The set of all the above planar triangles together form the spatial model of dual-needle joint protection.
[0011] S6: Establishment of the lightning protection range model outside the two lightning rods: The model of the protection range outside the lightning rods is composed of a cone model formed by the outer side of the middle tangent and a frustum formed by the outer side of the bottom tangent at the ground, with the two lightning rods as the vertices.
[0012] The method for determining the single-needle protection range in S2 is as follows: First, calculate the protection radius of the lightning rod at half the height above the ground. Using the projection of the lightning rod at half the height above the ground as the center and the protection radius as the radius, obtain the central planar circle. Second, using the apex of the lightning rod as the apex and the central planar circle as the base, a conical model can be obtained, which is the upper half of the single-needle protection range. Third, calculate the protection radius of the lightning rod at the ground. Using the projection of the lightning rod at the ground as the center and the protection radius at the ground as the radius, obtain the bottom planar circle. Finally, the central planar circle and the bottom planar circle are used as the upper and lower bases of a frustum, respectively, to form a frustum model, which is the lower half of the single-needle protection range. The model composed of the conical model and the frustum model is the protection range model for single-needle lightning protection.
[0013] The advantages of this invention are:
[0014] Modeling can be done quickly and accurately based on the coordinates of the lightning rod, reducing a lot of repetitive mechanical modeling work and improving modeling efficiency;
[0015] The parameterized model structure and modular PML code allow for quick and accurate adjustment and modification of the lightning protection model.
[0016] With a wide range of applications, this modeling technology can be applied to lightning protection design using the polyline method, supporting lightning protection designs for different working conditions such as single-needle, two-needle equal height, two-needle unequal height, multi-needle combination, single lightning protection wire, and multiple lightning protection wires. Attached Figure Description
[0017] Figure 1 This is a schematic diagram illustrating the modeling workflow of the lightning protection range model in this invention;
[0018] Figure 2 This is a schematic diagram of the double-needle lightning protection model in this invention;
[0019] Figure 3 This is a schematic diagram of the single-needle lightning protection model in this invention;
[0020] Figure 4 This is a cross-sectional view of the double-needle lightning protection model in this invention;
[0021] Figure 5 This is a cross-sectional view of the single-needle lightning protection model in this invention. Detailed Implementation
[0022] The features and other related features of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments, so as to facilitate understanding by those skilled in the art:
[0023] Example: Figures 1 to 5 As shown, this embodiment specifically designs a lightning protection range modeling method based on PML, specifically based on the PML for PDMS visual programming tool, including the following steps:
[0024] S1: Obtain the X, Y, and Z coordinates of the lightning rod's apex and the ground elevation.
[0025] The lightning protection range is determined based on the height of the lightning rods on the ground and the distance between two lightning rods: In PDMS software, through PML programming, the spatial coordinates of the lightning rods are first obtained, then the ground elevation is obtained, and the elevation of each lightning rod is calculated.
[0026] In this embodiment, the elevation of both lightning rods in the proposed lightning protection space is 25.5m, the distance between the two lightning rods is 24m, and the height of the protected object is 6.5m. Figure 2 As shown.
[0027] S2: Single-needle lightning protection range division
[0028] Using PML programming, the coordinates of each lightning rod vertex 1 are read, and combined with the ground height, lightning protection ranges are established in two parts: the upper part at half the elevation and the lower part at the ground. In this embodiment, the lightning rod protection range at half the elevation is a circle with a radius of 12.75m centered on the projection of the lightning rod at half the elevation; the lightning protection range at the ground (0m) is a circle with a radius of 38.25m centered on the projection of the lightning rod at 0m.
[0029] S3: Combined protection range between two needles
[0030] The symmetrical curve of the joint protection range between the two lightning rods is the top arc 3 formed by the highest point of the joint protection and the apex 1 of the two rods; the edge line is the narrowest point of the joint protection range at the ground between the two closest lightning rods, from which bottom tangents are drawn to both sides of the single-rod protection range circle at the same elevation. Each pair of lightning rods can thus obtain an edge segment. The joint protection range between the two lightning rods is the top arc formed by the highest point of the joint protection and the apex 1 of the two rods. In this embodiment, the height of the double-rod joint protection is 22.071m, the width of the joint protection range at half the elevation is 11.035m, the width of the joint protection range at 0m on the ground is 33.107m, and the width of the joint protection range at the height of the protected object is 20.107m.
[0031] S4: Establishing the bisectors
[0032] In modeling, the lightning protection model to be built is based on bisectors, establishing triangles that form the curved surface. First, the minimum width of the combined protection at 0 meters is calculated based on the distance between the two lightning rods. From the minimum width, bottom tangents 4 are drawn to both sides of the circle representing the protection range at the same elevation of the single-rod protection range. Similarly, the minimum width of the combined protection of the two lightning rods is calculated at half the elevation of the double-rod protection range, and middle tangents 2 are drawn to both sides of the circle representing the protection range at the same elevation of the single-rod protection range, resulting in eight tangent segments. In this example, the bisectors are circles with a radius of 38.25m centered on the projection of the lightning rod at 0 meters, forming four tangents with the point at the minimum width of the combined protection of the two lightning rods at 0 meters (33.107m). The other four bisectors are circles with a radius of 12.75m centered on the projection of the lightning rod at 12.25 meters, forming lines with the point at the minimum width of the combined protection of the two lightning rods at 12.25 meters (11.035m). A total of eight line segments were obtained.
[0033] S5: Establishment of the Two-Needle Combined Protection Range Model
[0034] The top arc 3, the middle tangent 2, and the bottom tangent 4 are each equally divided. Any three adjacent division points of the top arc 3 and the middle tangent 2 form a planar triangle, and any three adjacent division points of the middle tangent 2 and the bottom tangent 4 also form a planar triangle. These planar triangles together constitute the spatial model of the joint protection between the two needles. In this example, the arc determined by the vertices of the two needles and the lowest point of the joint protection range is divided into twenty segments. The eight line segments obtained in S4 are each divided into ten segments. Twenty triangles are formed between every two adjacent line segments. The arc and the tangents at elevation 12.25m on both sides form four sets of surfaces. The tangents at elevation 12.25m on both sides and the tangent at elevation 0m each form four sets of surfaces, for a total of eight sets of surfaces. Each set of surfaces consists of twenty triangles, forming a total of one hundred and sixty surfaces, which constitute the model of the joint protection range of the two needles. The model's precision depends on the number of triangles forming the surfaces.
[0035] S6: Establishment of the Two-Needle Outer Lightning Protection Range Model
[0036] The protection range model outside the lightning rods is composed of a conical model formed by the outer side of the tangent of the circle at half the elevation of the two lightning rods as vertices, and a frustum formed by the outer side of the tangent of the circle at half the elevation of the lightning rods and the circle at the bottom of the lightning rods as the outer side of the protection range. In this embodiment, the cone height is 12.25m and the ground radius of the cone is 12.75m; the radius of the upper circle of the frustum is 12.75m, and the radius of the lower circle is 38.25m.
[0037] The method for determining the protection range of a single needle in S2 is as follows:
[0038] First, establish a lightning protection range model for the cross section of the protection range at half the elevation: In this embodiment, at an elevation of 75m, the lightning protection range is a central planar circle with a radius of 37.658m.
[0039] Next, establish the upper half model of the lightning protection range: In this example, with the lightning rod as the vertex, the central plane circle with a radius of 37.658m as the base, and 75m as the height, establish a cone model, which is the upper half model of the single-rod protection range.
[0040] A lightning protection range model for the cross section of the protection range at elevation 0m is re-established. In this embodiment, the lightning protection range at elevation 0m, i.e., at ground level, is a bottom plane circle with a radius of 112.973m.
[0041] Finally, the lower half model of the lightning protection range is established: In this embodiment, the central plane circle is used as the upper base, 75m is the height, and the bottom plane circle is used as the lower base to establish a concentric frustum model, which is the lower half model of the lightning protection range.
[0042] The model composed of the cone model and the frustum model is the protection range model of the single-needle lightning protection.
[0043] After completing the entire lightning protection range model, the model establishment rules are adjusted by selecting different calculation methods, the specific parameters of the lightning protection range are adjusted by modifying the position and elevation of the lightning rods in PDMS, and the model details of the joint protection range are adjusted by modifying the relative positions of the lightning rods.
[0044] The effectiveness of this embodiment is as follows: Based on the PML visual programming tool and combined with the characteristics of lightning protection design, a technology for quickly and accurately establishing a lightning protection spatial model on the PDMS platform has been realized. This simplifies the modeling steps of the lightning protection spatial model, improves modeling efficiency, and is conducive to promoting the further development of BIM technology in the electrical design of thermal power generation projects, thereby improving the efficiency and quality of lightning protection design.
Claims
1. A lightning protection range modeling method based on PML visual programming language, characterized in that, The modeling method includes the following steps: S1: Obtain the X, Y, and Z coordinates of the lightning rod vertex (1) and obtain the ground elevation; S2: Use PML for programming, read the coordinates of each lightning rod vertex (1), and calculate the protection range of a single rod at half the elevation and at the ground level in combination with the ground height. S3: Joint protection range between two lightning rods: The symmetrical curve of the joint protection range between two lightning rods is the top arc (3) formed by the highest point of the joint protection and the top of the two rods (1); the edge line is the narrowest point of the joint protection range at the ground between the two closest lightning rods. The narrowest point is drawn to the bottom tangents on both sides of the single-rod protection range circle at the same elevation. Each pair of lightning rods can obtain the edge line segment from this. S4: Establishment of the dividing line: First, calculate the minimum width of the joint protection at 0 meters based on the distance between the two needles. Draw bottom tangents (4) from the minimum width to both sides of the circle of the protection range at the same elevation of the single needle protection range. Similarly, calculate the minimum width of the joint protection of the double needles at half the elevation of the double needle protection range. Draw middle tangents (2) from both sides of the circle of the protection range of the single needle at the same elevation. S5: Establishment of the two-needle joint protection range model: The top arc (3), the middle tangent (2), and the bottom tangent (4) are divided into equal parts. Any three adjacent points of the top arc (3) and the middle tangent (2) form a plane triangle. Any three adjacent points of the middle tangent (2) and the bottom tangent (4) form a plane triangle. The set of all the above plane triangles together form the space model of the two-needle joint protection. S6: Establishment of the lightning protection range model outside the two lightning rods: The model of the protection range outside the lightning rods is composed of a cone model formed by the outer side of the middle tangent and a frustum formed by the outer side of the bottom tangent at the ground, with the two lightning rods as the vertices.
2. The lightning protection area modeling method based on PML visualization programming language according to claim 1, characterized in that, The method for determining the protection range of a single needle in S2 is as follows: First, calculate the protection radius of the lightning rod at half the height above the ground; then, using the projection of the lightning rod at half the height above the ground as the center and the protection radius as the radius, obtain the central planar circle. Secondly, taking the lightning rod vertex (1) as the vertex and the central planar circle as the base, a conical model can be obtained, which is the upper half of the protection range of a single rod; Calculate the protection radius of the lightning rod on the ground again; take the projection of the lightning rod on the ground as the center and the protection radius on the ground as the radius to obtain the bottom plane circle; Finally, the middle planar circle and the bottom planar circle serve as the upper and lower bases of the frustum, respectively, forming a frustum model, which is the lower half of the single-needle protection range; The model composed of the cone model and the frustum model is the protection range model of the single-needle lightning protection.