Lightning rod protection range generation method, device, equipment, medium and program

By splitting the lightning rod group and generating an area during the engineering drawing drawing process, the problem of complexity and error risk in calculating the lightning rod protection range in the existing technology is solved, and efficient and reliable lightning protection calculation is achieved.

CN118607207AInactive Publication Date: 2024-09-06SHANGHAI INVESTIGATION DESIGN & RES INST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410681884.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the calculation and drawing of the lightning rod protection range require repeated geometric analysis calculations, which leads to a waste of time and resources, and requires manual map checking to obtain values, which increases the risk of errors and reduces the efficiency and reliability of lightning protection calculations.

Method used

By obtaining the position coordinates and heights of multiple lightning rods in the process of drawing engineering drawings, splitting them into lightning rod groups, calculating the protection range of each group, and generating areas, thereby generating joint protection range primitive data and diagrams, Implement automatic calculation and verification.

Benefits of technology

It greatly improves the efficiency and reliability of lightning protection calculations, reduces the complexity of geometric analysis calculations, reduces the risk of errors, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607207A
    Figure CN118607207A
Patent Text Reader

Abstract

The invention relates to the technical field of electric power engineering design, in particular to a lightning rod protection range generation method, device, equipment, medium and program, and the method comprises the steps: obtaining the position coordinates and first heights of a plurality of lightning rods and the second height of a protected object in the process of drawing an engineering drawing; splitting the plurality of lightning rods into at least one lightning rod group, calculating a protection range of part or all of the lightning rods in each lightning rod group, and generating a region of part or all of the lightning rods according to the protection range of part or all of the lightning rods; and generating joint protection range primitive data according to a part of or all the lightning rod areas, and generating a joint protection range graph corresponding to the joint protection range primitive data. Therefore, the problems that in the related technology, due to the fact that geometric analysis calculation needs to be repeatedly carried out, time and resource waste is likely to be caused, manual graph checking and value taking are needed, the error risk is increased, and the efficiency and reliability of lightning protection calculation are reduced are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power engineering design, and in particular to a method, device, equipment, medium and program for generating a lightning rod protection range. Background Art

[0002] In the design of domestic power engineering, power plants, substations, switch stations and other sites use lightning rods for direct lightning protection. Usually, manual calculations are performed according to the "broken line method" in the national standard GB50064, and the lightning protection range of the lightning rod is manually drawn in CAD to complete the calculation and drawing of lightning rods in specific projects. However, the calculation and drawing of the lightning rod protection range is time-consuming and laborious. When there are many lightning rods and the layout plan changes many times, the tediousness of the work is more prominent.

[0003] In the related technology, a three-dimensional model can be used to construct a lightning protection model for the substation and lightning rod, and a dynamic lightning protection verification mode can be selected according to the layout of the distribution device to complete the dynamic lightning protection verification. The multivariate linear regression analysis method can also be used to obtain the minimum width of the protection range between two lightning rods of equal height to realize the calculation and verification of the protection range.

[0004] However, in the related technology, due to the need to repeatedly perform geometric analytical calculations, it is easy to waste time and resources, and the small value of the protection range needs to be manually checked from the map. When calculating the joint protection of multiple lightning rods, the risk of error is increased, which can easily lead to safety hazards and reduce the efficiency and reliability of lightning protection calculations, which urgently needs to be improved. Summary of the invention

[0005] The present application provides a method, device, equipment, medium and program for generating the protection range of a lightning rod to solve the problems in the related art that repeated geometric analytical calculations are required, which easily leads to a waste of time and resources, and requires manual map checking and value taking, which increases the risk of errors and reduces the efficiency and reliability of lightning protection calculations.

[0006] A first aspect embodiment of the present application provides a method for generating a protection range of a lightning rod, comprising the following steps: in the process of drawing an engineering drawing, obtaining the position coordinates of multiple lightning rods and a first height and a second height of a protected object; splitting the multiple lightning rods into at least one lightning rod group, calculating the protection range of some or all lightning rods in each lightning rod group, and generating the surface area of ​​some or all lightning rods according to the protection range of the some or all lightning rods; generating joint protection range graphic metadata according to the surface area of ​​the some or all lightning rods, and generating a joint protection range map corresponding to the joint protection range graphic metadata.

[0007] Optionally, in one embodiment of the present application, the calculation of the protection range of some or all lightning rods in each lightning rod group includes: obtaining multiple sampling points based on a relationship chart of a preset minimum protection range width; substituting the multiple sampling points into a preset N-order linear equation group to obtain N coefficient values, where N is a positive integer; constructing algebraic expressions of corresponding multiple curves based on the N coefficient values; obtaining points on two curves that meet preset conditions based on the algebraic expressions of the multiple curves, and obtaining coordinate values ​​of the points on the two curves that meet the preset conditions to obtain the minimum protection range width of the protection range based on the coordinate values.

[0008] Optionally, in one embodiment of the present application, the preset N-order linear equation group is:

[0009]

[0010] Among them, a0, a1…a n is the fitting coefficient, x is the horizontal coordinate value of the known curve, y is the vertical coordinate value of the known curve, i is the integer number, n is the order, m is the number of samples, and in practical applications, n≤m should be used.

[0011] Optionally, in one embodiment of the present application, the algebraic expressions of the multiple curves are:

[0012] y=a0+a1x+a2x 2 +...+a n x n ,

[0013] Among them, a0, a1…a n is the fitting coefficient, x=D / (h a P) is the horizontal coordinate value of the known curve, D is the distance between the two lightning rods, h a is the effective height of the lightning rod, P is the height influence coefficient, y = b x / (h a P) is the ordinate value of the known curve, b x It is the minimum width on one side of the protection range between two lightning rods.

[0014] Optionally, in one embodiment of the present application, the calculation formula of the minimum protection range width is:

[0015]

[0016] The variable x is the h of different curves. x value, which can also be understood as x = h x ,h x is the height of the protected object, y = b x / (h aP) is the ordinate, f(x) is the function of the variable x, and x0 and x1 are the heights of the protected object corresponding to the curve close to the variable x.

[0017] The second aspect of the present application provides a device for generating a lightning rod protection range, including: an acquisition module, used to obtain the position coordinates and a first height and a second height of a plurality of lightning rods and a protected object in the process of drawing an engineering drawing; a calculation module, used to split the plurality of lightning rods into at least one lightning rod group, calculate the protection range of some or all lightning rods in each lightning rod group, and generate the surface area of ​​some or all lightning rods according to the protection range of the some or all lightning rods; a generation module, used to generate joint protection range graphic metadata according to the surface area of ​​the some or all lightning rods, and generate a joint protection range map corresponding to the joint protection range graphic metadata.

[0018] Optionally, in one embodiment of the present application, the calculation module includes: a first acquisition unit, used to acquire multiple sampling points based on a relationship chart of a preset minimum protection range width; a second acquisition unit, used to substitute the multiple sampling points into a preset N-order linear equation group to obtain N coefficient values, where N is a positive integer; a construction unit, used to construct algebraic expressions of the corresponding multiple curves according to the N coefficient values; a third acquisition unit, used to acquire points on two curves that meet preset conditions according to the algebraic expressions of the multiple curves, and acquire coordinate values ​​of the points on the two curves that meet the preset conditions, so as to obtain the minimum protection range width of the protection range according to the coordinate values.

[0019] Optionally, in one embodiment of the present application, the preset N-order linear equation group is:

[0020]

[0021] Among them, a0, a1…a n is the fitting coefficient, x is the horizontal coordinate value of the known curve, y is the vertical coordinate value of the known curve, i is the integer number, n is the order, m is the number of samples, and in practical applications, n≤m should be used.

[0022] Optionally, in one embodiment of the present application, the algebraic expressions of the multiple curves are:

[0023] y=a0+a1x+a2x 2 +...+a n x n ,

[0024] Among them, a0, a1…a n is the fitting coefficient, x=D / (h aP) is the horizontal coordinate value of the known curve, D is the distance between the two lightning rods, h a is the effective height of the lightning rod, P is the height influence coefficient, y = b x / (h a P) is the ordinate value of the known curve, b x It is the minimum width on one side of the protection range between two lightning rods.

[0025] Optionally, in one embodiment of the present application, the calculation formula of the minimum protection range width is:

[0026]

[0027] The variable x is the h of different curves. x value, which can also be understood as x = h x ,h x is the height of the protected object, y = b x / (h a P) is the ordinate, f(x) is the function of the variable x, and x0 and x1 are the heights of the protected object corresponding to the curve close to the variable x.

[0028] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for generating a lightning rod protection range as described in the above embodiment.

[0029] The fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program. When the program is executed by a processor, it implements the above method for generating a lightning rod protection range.

[0030] A fifth aspect of the present invention provides a computer program product, which, when executed, is used to implement the above method for generating a lightning rod protection range.

[0031] In the process of drawing engineering drawings, the embodiment of the present application can obtain the position coordinates of multiple lightning rods and the first height and the second height of the protected object, split the multiple lightning rods into at least one lightning rod group, calculate the protection range of some or all lightning rods in each lightning rod group, and generate the surface area of ​​some or all lightning rods, so as to generate joint protection range metadata and corresponding joint protection range map, solve the trouble of repeated geometric analysis calculations, realize automatic calculation and verification of CAD lightning rod protection range, and greatly improve the efficiency and reliability of lightning protection calculation. Thus, the problems in the related art that it is easy to waste time and resources due to the need for repeated geometric analysis calculations, and the small value of the protection range needs to be manually checked and obtained, which increases the risk of error and reduces the efficiency and reliability of lightning protection calculation are solved.

[0032] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0034] Figure 1 A flowchart of a method for generating a lightning rod protection range according to an embodiment of the present application;

[0035] Figure 2 A lightning rod CAD block and property diagram according to an embodiment of the present application;

[0036] Figure 3 A schematic diagram of Boolean operation logic of a region according to an embodiment of the present application;

[0037] Figure 4 A schematic diagram of the logic of combining the protection ranges of two lightning rods of unequal heights according to an embodiment of the present application;

[0038] Figure 5 A schematic diagram of the logic of combining the protection ranges of three lightning rods according to an embodiment of the present application;

[0039] Figure 6 A schematic diagram of a logic operation for combining protection ranges of multiple lightning rods according to an embodiment of the present application;

[0040] Figure 7 A flowchart of a CAD calculation and drawing program for the lightning rod protection range according to one embodiment of the present application;

[0041] Figure 8 A schematic diagram of the structure of a device for generating a lightning rod protection range according to an embodiment of the present application;

[0042] Fig. 9 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0043] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0044] The following describes the method, device, equipment, medium and program for generating the protection range of a lightning rod in an embodiment of the present application with reference to the accompanying drawings. In view of the related technologies mentioned in the above background technology center, since it is necessary to perform geometric analytical calculations repeatedly, it is easy to waste time and resources, and the minimum value of the protection range needs to be manually checked and obtained, which increases the risk of error and reduces the efficiency and reliability of lightning protection calculation. The present application provides a method for generating the protection range of a lightning rod. In this method, the position coordinates of multiple lightning rods and the first height and the second height of the protected object can be obtained during the process of drawing an engineering drawing, and the multiple lightning rods are divided into at least one lightning rod group, and the protection range of some or all lightning rods in each lightning rod group is calculated, and the surface domain of some or all lightning rods is generated, so that the joint protection range metadata and the corresponding joint protection range map can be generated, which solves the trouble of repeated geometric analytical calculations, realizes the automatic calculation and verification of the protection range of CAD lightning rods, and greatly improves the efficiency and reliability of lightning protection calculations. This solves the problems in the related technology that require repeated geometric analytical calculations, which easily leads to a waste of time and resources, and the small value of the protection range needs to be manually obtained by looking up the map, which increases the risk of error and reduces the efficiency and reliability of lightning protection calculations.

[0045] Specifically, Figure 1 A schematic flow chart of a method for generating a lightning rod protection range provided in an embodiment of the present application.

[0046] like Figure 1 As shown, the method for generating the lightning rod protection range includes the following steps:

[0047] In step S101, in the process of drawing an engineering drawing, the position coordinates and the first height of a plurality of lightning rods and the second height of a protected object are obtained.

[0048] It can be understood that the position coordinates of the lightning rod refer to the coordinates of the base point where the lightning rod is placed, the first height refers to the height of the top of the lightning rod relative to the ground, and the second height of the protected object refers to the height of the building, equipment or other target that needs to be protected by the lightning rod.

[0049] Specifically, combined Figure 2 As shown, the embodiment of the present application can use a CAD embedded program to create a block in CAD to represent a lightning rod, and use a custom block reference with attributes in CAD to mark the position coordinates, height, and height of the lightning rod, so that the lightning rod block attributes can be selected and read through commands to obtain the lightning rod position coordinates, height, and height of the protected object to be calculated.

[0050] It is worth noting that the custom block reference with attributes is a predefined carrier for marking and storing the location coordinates, height and height information of the lightning rod to be protected. The height of the lightning rod and the height of the protected object can be specified by technical personnel according to the specific project conditions, and the height information can be filled in the attributes of the custom block reference for subsequent reference and extraction.

[0051] In the process of drawing an engineering drawing, the embodiment of the present application can effectively determine the range that a lightning rod needs to cover and the object to be protected by accurately obtaining the position coordinates of multiple lightning rods and the first height and the second height of the protected object, which helps to improve the efficiency of drawing and calculation and ensure the effective operation of the lightning protection system and the safety of the protected object.

[0052] In step S102, multiple lightning rods are divided into at least one lightning rod group, the protection range of some or all lightning rods in each lightning rod group is calculated, and the surface area of ​​some or all lightning rods is generated according to the protection range of some or all lightning rods.

[0053] It is understood that a lightning rod group refers to a collection of lightning rods formed by combining according to certain rules or parameters, including one or more lightning rods. The protection range of a lightning rod refers to the area that a lightning rod can protect, usually a conical area formed with the lightning rod as the center.

[0054] In some embodiments, the embodiments of the present application can classify and combine lightning rod data, split multiple lightning rods into multiple combinations of two lightning rods, and then calculate a single and all combinations of two lightning rods one by one according to the calculation method flow of the broken line method, so that the calculated protection range can be processed to convert it into a surface area.

[0055] The embodiment of the present application can generate the surface area of ​​some or all lightning rods according to the protection range of some or all lightning rods, and can visualize the coverage range of lightning rods, which helps to improve the understanding of the coverage range and can be applied and referenced in subsequent practical projects.

[0056] Optionally, in one embodiment of the present application, the protection range of some or all lightning rods in each lightning rod group is calculated, including: obtaining multiple sampling points based on a relationship chart of a preset minimum protection range width; substituting the multiple sampling points into a preset N-order linear equation group to obtain N coefficient values, where N is a positive integer; constructing algebraic expressions of the corresponding multiple curves according to the N coefficient values; obtaining points on two curves that meet preset conditions according to the algebraic expressions of the multiple curves, and obtaining coordinate values ​​of the points on the two curves that meet the preset conditions, so as to obtain the minimum protection range width of the protection range according to the coordinate values.

[0057] Optionally, in one embodiment of the present application, the preset N-order linear equation group is:

[0058]

[0059] Among them, a0, a1…a n is the fitting coefficient, x is the horizontal coordinate value of the known curve, y is the vertical coordinate value of the known curve, i is the integer number, n is the order, m is the number of samples, and in practical applications, n≤m should be used.

[0060] Optionally, in one embodiment of the present application, the algebraic expressions of the multiple curves are:

[0061] y=a0+a1x+a2x 2 +...+a n x n ,

[0062] Among them, a0, a1…a n is the fitting coefficient, x=D / (h a P) is the horizontal coordinate value of the known curve, D is the distance between the two lightning rods, h a is the effective height of the lightning rod, P is the height influence coefficient, y = b x / (h a P) is the ordinate value of the known curve, b x It is the minimum width on one side of the protection range between two lightning rods.

[0063] Optionally, in one embodiment of the present application, the calculation formula for the minimum protection range width is:

[0064]

[0065] The variable x is the h of different curves. x value, which can also be understood as x = h x ,h x is the height of the protected object, y = b x / (h aP) is the ordinate, f(x) is the function of the variable x, and x0 and x1 are the heights of the protected object corresponding to the curve close to the variable x.

[0066] Specifically, the embodiment of the present application calculates the minimum protection range width b of the combined protection range of the lightning rods: x , that is, the national standard b x The relationship chart is formulated, and the calculation formula is directly used instead of the manual reading of the chart. The formulation process is carried out using the least squares method and Newton interpolation method of n-order polynomials. The specific steps are as follows:

[0067] A. For national standard b x The eight curves in the relationship diagram are sampled separately to obtain a series of sampling points (x, y), where x = D / (h a P), y = b x / (h a P);

[0068] B. Substitute the sampling points obtained in step A into the values ​​of a0, a1, ..., a n The n-order linear equation system (1) is obtained, where the order is optional, so as to solve the linear equation system to obtain specific a0, a1, ..., a n coefficient value;

[0069]

[0070] C. Based on the coefficients calculated in step B, construct the algebraic expressions of the corresponding 8 curves, which are as follows:

[0071] y=a0+a1x+a2x 2 +...+a n x n (2)

[0072] D. For the case between two curves, we can first use the expression in step C to find the points (x0, y0) and (x1, y1) on the two curves, and then use Newton interpolation method to find the specific point coordinates according to formula (3), and finally calculate b x value.

[0073]

[0074] The embodiment of the present application adopts the least square method of the third-order polynomial to fit the 8 curves in the national standard. Each curve takes 13 sampling points to obtain the sampling coordinate data shown in Table 1. After the least square fitting operation of the third-order polynomial, the algebraic expressions of the 8 curves in the national standard as shown in Table 2 can be obtained. Table 1 is b x and D / (h aP) relationship curve sampling point horizontal and vertical coordinate table, Table 2 is b x and D / (h a P) The third-order polynomial fitting expression of the relationship curve.

[0075] Table 1

[0076] <![CDATA[h x / h]]> 0 0.1 0.2 0.3 0.4 0.5 0.7 0.9 X Y Y Y Y Y Y Y Y 0.5 1.545 1.41 1.305 1.195 1.11 1.035 0.97 0.93 1 1.51 1.36 1.26 1.145 1.08 0.99 0.94 0.89 1.5 1.45 1.3 1.2 1.08 1.02 0.945 0.89 0.845 2 1.385 1.235 1.13 1.03 0.97 0.9 0.845 0.8 2.5 1.305 1.16 1.07 0.975 0.92 0.85 0.79 0.75 3 1.23 1.08 1 0.91 0.855 0.79 0.75 0.69 3.5 1.11 1 0.92 0.84 0.78 0.74 0.68 0.63 4 1.02 0.92 0.835 0.76 0.72 0.67 0.62 0.56 4.5 0.9 0.81 0.74 0.68 0.64 0.59 0.54 0.48 5 0.76 0.69 0.645 0.595 0.55 0.52 0.45 0.41 5.5 0.6 0.56 0.52 0.47 0.45 0.42 0.37 0.34 6 0.43 0.39 0.365 0.34 0.32 0.3 0.26 0.24 6.5 0.24 0.21 0.19 0.18 0.17 0.16 0.145 0.13

[0077] Table 2

[0078]

[0079] In step S103, joint protection range metadata is generated according to the surface area of ​​part or all of the lightning rods, and a joint protection range map corresponding to the joint protection range metadata is generated.

[0080] During the actual implementation process, the embodiment of the present application can use surface domain Boolean operations on the joint protection range of multiple groups of two lightning rods, and merge the protection range by using surface domain merging to obtain CAD graphic metadata of the joint protection range of the lightning rods, and then process the data to draw a joint protection range map matching the lightning rod information in CAD.

[0081] Specifically, the embodiment of the present application can process the protection ranges calculated for a single lightning rod or a combination of all two lightning rods, and then convert them into surface domains. The protection ranges can be merged by merging surface domains to obtain the CAD metadata of the combined protection range of the lightning rods. The Boolean operations of the surface domain include intersection, subtraction, and merging, which correspond to the "AND, NOT, OR" in the logical operations. Figure 3 As shown, the embodiment of the present application only uses a merge operation, and adopts the Boolean operation of the face domain to merge all protection ranges, which can save a lot of intermediate calculation processes, help to simplify the calculation process and reduce the amount of calculation within the program.

[0082] Furthermore, combined with Figure 4 As shown, for the protection range of two lightning rods of unequal heights, the embodiment of the present application can combine the protection range of two equivalent lightning rods of equal height (range line 1) and the protection range circle of a single higher lightning rod (range line 2) to reduce the geometric analysis calculation process of the inflection point at the joint. Figure 5 As shown, for the case of three lightning rods, the embodiment of the present application can calculate the combined protection range of two lightning rods in three groups, namely, the range lines 1, 2 and 3 in the figure. The range lines 1, 2 and 3 are combined to obtain 4 and 5, and then the range lines 4 and 5 are combined to obtain range line 6, which is the combined protection range of the three lightning rods. Figure 6As shown, for the case of more than three lightning rods, the embodiments of the present application can divide the lightning rods into multiple groups of single, two or three lightning rods to calculate the joint protection range of each group, and then merge the protection ranges of each group to finally obtain the joint protection range of all lightning rods.

[0083] In addition, combined Figure 7 As shown, the embodiment of the present application can process the CAD metadata of the joint protection range of the lightning rod, and draw a joint protection range map matching the lightning rod information in CAD, wherein the specific steps are as follows:

[0084] Step S701: Select a lightning rod;

[0085] Step S702: Determine whether there is only one lightning rod;

[0086] Among them, when it is determined that there is only one lightning rod, the P value can be calculated based on the height of the rod, and then based on h x High Calculation x Value, to draw a radius of r x circle; otherwise, go to step S703.

[0087] Step S703: Determine whether there are two lightning rods;

[0088] If it is determined that there are two lightning rods, the process proceeds to step S704 for further determination; otherwise, the process proceeds to step S706;

[0089] Step S704: Determine whether the two lightning rods are at the same height;

[0090] Among them, when the two lightning rods are at the same height, we can calculate the protection range circle of each lightning rod and the minimum protection distance b between the two rods. x , and find b x Corresponding point coordinates, make a tangent line through the minimum distance point and mirror it to get 4 tangent lines, draw 2 circles and 4 tangent lines; otherwise, go to step S705.

[0091] Step S705: When it is determined that the two lightning rods are not at the same height, the protection range circle of the higher lightning rod can be calculated, and the coordinates of the equivalent lightning rod at the same height as the edge of the protection range of the higher lightning rod and the lower lightning rod can be calculated. The protection ranges of two equivalent equal-height lightning rods are calculated according to the calculation process of two equal-height lightning rods, and then the protection ranges of the two equivalent equal-height lightning rods are merged with the protection range circle of the higher lightning rod to draw the edge of the merged surface area;

[0092] Step S706: Determine whether there are three lightning rods;

[0093] Among them, when it is determined that there are three lightning rods, the three can be divided into different combinations of two, and the protection range of the different combinations of two can be calculated according to the two lightning rods respectively, and the protection range of the three groups of two needles and the triangle formed by the three needles can be merged to draw the edge of the merged surface area; otherwise, return to step S701.

[0094] Step S707: End.

[0095] According to the method for generating the protection range of lightning rods proposed in the embodiment of the present application, in the process of drawing engineering drawings, the position coordinates of multiple lightning rods and the first height and the second height of the protected object can be obtained, multiple lightning rods can be divided into at least one lightning rod group, the protection range of some or all lightning rods in each lightning rod group can be calculated, and the surface domain of some or all lightning rods can be generated, so that the joint protection range metadata and the corresponding joint protection range map can be generated, which solves the trouble of repeated geometric analysis calculations, realizes automatic calculation and verification of the protection range of CAD lightning rods, and greatly improves the efficiency and reliability of lightning protection calculations. Thus, the problems in the related art that the need for repeated geometric analysis calculations easily leads to waste of time and resources, and the small value of the protection range needs to be manually checked and obtained, which increases the risk of errors and reduces the efficiency and reliability of lightning protection calculations are solved.

[0096] Next, a device for generating a lightning rod protection range according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0097] Figure 8 It is a structural schematic diagram of a device for generating a lightning rod protection range according to an embodiment of the present application.

[0098] like Figure 8 As shown, the lightning rod protection range generation device 10 includes: an acquisition module 100, a calculation module 200 and a generation module 300.

[0099] Specifically, the acquisition module 100 is used to obtain the position coordinates and the first height of the plurality of lightning rods and the second height of the protected object in the process of drawing the engineering drawing;

[0100] A calculation module 200, for dividing the plurality of lightning rods into at least one lightning rod group, calculating the protection range of some or all of the lightning rods in each lightning rod group, and generating the surface area of ​​some or all of the lightning rods according to the protection range of some or all of the lightning rods;

[0101] The generating module 300 is used to generate joint protection range metadata according to the surface area of ​​part or all lightning rods, and to generate a joint protection range map corresponding to the joint protection range metadata.

[0102] Optionally, in one embodiment of the present application, the calculation module 200 includes: a first acquisition unit, a second acquisition unit, a construction unit and a third acquisition unit.

[0103] Wherein, the first acquisition unit is used to acquire multiple sampling points based on a relationship chart of a preset minimum protection range width;

[0104] A second acquisition unit is used to substitute the plurality of sampling points into a preset N-order linear equation group to obtain N coefficient values, where N is a positive integer;

[0105] A construction unit, used for constructing algebraic expressions of corresponding multiple curves according to N coefficient values;

[0106] The third acquisition unit is used to acquire points on two curves that meet preset conditions according to the algebraic expressions of multiple curves, and acquire coordinate values ​​of the points on the two curves that meet the preset conditions, so as to obtain the minimum protection range width of the protection range according to the coordinate values.

[0107] Optionally, in one embodiment of the present application, the preset N-order linear equation group is:

[0108]

[0109] Among them, a0, a1…a n is the fitting coefficient, x is the horizontal coordinate value of the known curve, y is the vertical coordinate value of the known curve, i is the integer number, n is the order, m is the number of samples, and in practical applications, n≤m should be used.

[0110] Optionally, in one embodiment of the present application, the algebraic expressions of the multiple curves are:

[0111] y=a0+a1x+a2x 2 +...+a n x n ,

[0112] Among them, a0, a1…a n is the fitting coefficient, x=D / (h a P) is the horizontal coordinate value of the known curve, D is the distance between the two lightning rods, h a is the effective height of the lightning rod, P is the height influence coefficient, y = b x / (h a P) is the ordinate value of the known curve, b x It is the minimum width on one side of the protection range between two lightning rods.

[0113] Optionally, in one embodiment of the present application, the calculation formula for the minimum protection range width is:

[0114]

[0115] The variable x is the h of different curves. x value, which can also be understood as x = h x ,h x is the height of the protected object, y = b x / (h a P) is the ordinate, f(x) is the function of the variable x, and x0 and x1 are the heights of the protected object corresponding to the curve close to the variable x.

[0116] It should be noted that the above explanation of the embodiment of the method for generating the protection range of a lightning rod is also applicable to the device for generating the protection range of a lightning rod of this embodiment, and will not be repeated here.

[0117] According to the lightning rod protection range generation device proposed in the embodiment of the present application, the position coordinates of multiple lightning rods and the first height and the second height of the protected object can be obtained in the process of drawing the engineering drawing, and the multiple lightning rods can be divided into at least one lightning rod group, and the protection range of some or all lightning rods in each lightning rod group is calculated, and the surface domain of some or all lightning rods is generated, so that the joint protection range metadata and the corresponding joint protection range map can be generated, which solves the trouble of repeated geometric analysis calculations, realizes automatic calculation and verification of the CAD lightning rod protection range, and greatly improves the efficiency and reliability of lightning protection calculations. Therefore, it solves the problems in the related art that due to the need for repeated geometric analysis calculations, it is easy to waste time and resources, and the small value of the protection range needs to be manually checked and obtained, which increases the risk of errors and reduces the efficiency and reliability of lightning protection calculations.

[0118] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0119] A memory 901 , a processor 902 , and a computer program stored in the memory 901 and executable on the processor 902 .

[0120] When the processor 902 executes the program, the method for generating the lightning rod protection range provided in the above embodiment is implemented.

[0121] Furthermore, the electronic device further comprises:

[0122] The communication interface 903 is used for communication between the memory 901 and the processor 902 .

[0123] The memory 901 is used to store computer programs that can be executed on the processor 902 .

[0124] The memory 901 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0125] If the memory 901, the processor 902 and the communication interface 903 are implemented independently, the communication interface 903, the memory 901 and the processor 902 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0126] Optionally, in a specific implementation, if the memory 901, the processor 902 and the communication interface 903 are integrated on a chip, the memory 901, the processor 902 and the communication interface 903 can communicate with each other through an internal interface.

[0127] The processor 902 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0128] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned method for generating a lightning rod protection range.

[0129] The embodiment of the present application also provides a computer program product, which can run computer instructions, and when the computer instructions are executed by a processor, the above-mentioned method for generating the protection range of a lightning rod is implemented.

[0130] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0131] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0132] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0133] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.

[0134] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one or a combination of multiple of the following technologies known in the art: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0135] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0136] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0137] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for generating a lightning rod protection range, characterized in that: The following steps are involved: In the process of drawing the engineering drawing, the position coordinates and the first height of the plurality of lightning rods and the second height of the protected object are obtained; Splitting the plurality of lightning rods into at least one lightning rod group, calculating the protection range of some or all of the lightning rods in each lightning rod group, and generating the surface areas of some or all of the lightning rods according to the protection ranges of the some or all of the lightning rods; Generate joint protection range metadata according to the surface area of ​​some or all lightning rods, and generate a joint protection range map corresponding to the joint protection range metadata.

2. The method according to claim 1, characterized in that The calculation of the protection range of some or all lightning rods in each lightning rod group includes: Based on a relationship chart of a preset minimum protection range width, a plurality of sampling points are obtained; Substituting the plurality of sampling points into a preset N-order linear equation group to obtain N coefficient values, where N is a positive integer; Constructing algebraic expressions of corresponding multiple curves according to the N coefficient values; Points on two curves that meet preset conditions are obtained according to algebraic expressions of the multiple curves, and coordinate values ​​of the points on the two curves that meet the preset conditions are obtained to obtain a minimum protection range width of the protection range according to the coordinate values.

3. The method according to claim 2, characterized in that The preset N-order linear equation group is: Among them, a0, a1…a n is the fitting coefficient, x is the horizontal coordinate value of the known curve, y is the vertical coordinate value of the known curve, i is the integer number, n is the order, m is the number of samples, and in practical applications, n≤m should be used.

4. The method according to claim 2, characterized in that: The algebraic expressions of the multiple curves are: y=a0+a1x+a2x 2 +...+a n x n , Among them, a0, a1…a n is the fitting coefficient, x=D / (h a P) is the horizontal coordinate value of the known curve, D is the distance between the two lightning rods, h a is the effective height of the lightning rod, P is the height influence coefficient, y = b x / (h a P) is the ordinate value of the known curve, b x It is the minimum width on one side of the protection range between two lightning rods.

5. The method according to claim 2, characterized in that: The calculation formula for the minimum protection range width is: The variable x is the h of different curves. x value, which can also be understood as x = h x ,h x is the height of the protected object, y = b x / (h a P) is the ordinate, f(x) is the function of the variable x, and x0 and x1 are the heights of the protected object corresponding to the curve close to the variable x.

6. A device for generating a lightning rod protection range, characterized in that: include: An acquisition module, used to acquire the position coordinates and the first height of a plurality of lightning rods and the second height of a protected object during the process of drawing an engineering drawing; A calculation module, used for dividing the plurality of lightning rods into at least one lightning rod group, calculating the protection range of some or all of the lightning rods in each lightning rod group, and generating the surface area of ​​some or all of the lightning rods according to the protection range of some or all of the lightning rods; A generation module is used to generate joint protection range metadata according to the surface area of ​​some or all lightning rods, and to generate a joint protection range map corresponding to the joint protection range metadata.

7. The device according to claim 6, characterized in that The calculation module comprises: A first acquisition unit, configured to acquire a plurality of sampling points based on a relationship chart of a preset minimum protection range width; A second acquisition unit, used for substituting the plurality of sampling points into a preset N-order linear equation group to obtain N coefficient values, wherein N is a positive integer; A construction unit, used for constructing algebraic expressions of corresponding multiple curves according to the N coefficient values; The third acquisition unit is used to obtain points on two curves that meet preset conditions according to the algebraic expressions of the multiple curves, and obtain the coordinate values ​​of the points on the two curves that meet the preset conditions, so as to obtain the minimum protection range width of the protection range according to the coordinate values.

8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for generating a lightning rod protection range as described in any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method for generating a lightning rod protection range as described in any one of claims 1 to 5.

10. A computer program product, characterized in that When the computer program is executed, it is used to implement the method for generating the lightning rod protection range as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Grasping method based on lightning rod protection scope spline

    CN104750988A

  • Method for acquiring minimum width of a protection range between two contoured lightning rods

    CN108334680A