A method and system for generating a three-dimensional path and entity for a device grounding down conductor
Patent Information
- Application Number
- CN202511313881.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-15
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2045-09-15
AI Technical Summary
[0003]传统的电气设备接地设计常依赖人工手动绘制,设计人员需要沿着接地引下线的路径逐一绘制各个部分,耗时耗力效率较低,且容易产生误差,难以满足目前设计的高质量要求
[0016]相比于现有技术,本发明实施例的有益效果在于以下所述中的至少一点:
Smart Images

Figure CN121302637B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electrical design technology, and in particular to a method and system for generating three-dimensional paths and entities for equipment grounding down conductors. Background Technology
[0002] Equipment grounding is a crucial aspect of electrical system design, and its design process is markedly complex and cumbersome. This design task not only requires electrical designers to possess profound professional knowledge but also necessitates meticulous operation within a three-dimensional spatial environment. Equipment grounding design involves capturing and accurately locating various operating points in three-dimensional space, while continuously switching operating surfaces to adapt to changes in the design path. This process places high demands on the designer's spatial imagination and operational skills.
[0003] Traditional grounding design for electrical equipment often relies on manual drawing. Designers need to draw each part one by one along the path of the grounding down conductor, which is time-consuming, labor-intensive, inefficient, and prone to errors, making it difficult to meet the high-quality requirements of current designs.
[0004] Therefore, how to design the grounding down conductor of equipment efficiently and reliably has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] This invention provides a method and system for generating three-dimensional paths and entities for equipment grounding down conductors, in order to solve the problem of how to optimize the grounding down conductor path generation process and ensure the generation efficiency and quality of the three-dimensional entity model.
[0006] To address the aforementioned technical problems, embodiments of the present invention provide a method for generating a three-dimensional path and entity for equipment grounding leads, including: Import the 3D model of the target electrical equipment and identify the grounding connection point of the 3D model; Extend the first down-path along the negative Z-axis direction of the grounding connection point until it hits the first solid surface and generates the first projection point; A multi-directional ray is emitted from the first projection point to determine the terminal intersection point generated by the second downward path and the edge of the first solid surface. Starting from the terminal intersection point, extend along the outer contour of the target electrical equipment surrounding the box surface in a preset direction until the end alignment point is determined when it is level with the height of the underground grounding electrode; Connect the end flush point to the underground grounding grid to generate the grounding down conductor path for the target electrical equipment; Generate an initial three-dimensional graphic entity of the grounding down conductor of the target electrical equipment along the grounding down conductor path of the target electrical equipment; Transitional connection processing is performed at the turning points of the initial 3D graphic entity to determine the target 3D graphic entity.
[0007] Furthermore, the process of importing the three-dimensional model of the target electrical equipment and identifying the grounding connection point of the three-dimensional model also includes: If the grounding connection point does not exist in the 3D model, it should be manually specified.
[0008] Furthermore, the process of determining the second descending path includes: Using the world coordinate system as a reference and the first projection point as the origin, rays are emitted in the positive X-axis direction, the negative X-axis direction, the positive Y-axis direction, and the negative Y-axis direction, respectively. Calculate the length of each candidate line segment formed when each ray intersects with the edge of the first solid surface; Select the shortest candidate line segment as the path leading down to the second segment.
[0009] Furthermore, the step of extending along the outer contour of the target electrical equipment enclosure surface in a predetermined direction from the terminal intersection point until the end point is level with the underground grounding electrode to determine the end alignment point includes: Extract the outer contour information of the three-dimensional model equipment foundation and each entity, and generate an outer contour bounding box; Starting from the terminal intersection point, the path extends along the outer contour bounding box surface in the negative Z-axis direction; When the path is detected to intersect with the outer bounding box of an entity, the path direction is adjusted to avoid the entity. Continue extending the path until it is level with the underground grounding electrode, forming the third down-leading path and the corresponding end-level point.
[0010] Furthermore, connecting the end-alignment point to the underground grounding grid includes: Designate any point on the underground grounding grid as the connection point, and connect the connection point to the end-aligned point; or, Designate one grid edge of the underground grounding grid as the connecting edge, and connect the end point of the grid perpendicularly to the connecting edge.
[0011] Furthermore, the step of connecting the end-aligned point with the underground grounding grid to generate the grounding down conductor path for the target electrical equipment also includes: The end-aligned point is perpendicularly connected to each grid edge of the underground grounding body grid to form a connection path; The length of each connection path is calculated iteratively, and the shortest connection path is determined as the fourth down conductor path. At the same time, the grounding down conductor path of the target electrical equipment is generated.
[0012] Furthermore, generating the initial three-dimensional graphic entity of the grounding down conductor of the target electrical equipment along the grounding down conductor path of the target electrical equipment includes: Determine the specifications and parameters of the down conductor according to the grounding design requirements; Along the shape and direction of the grounding lead path of the target electrical equipment, an initial three-dimensional graphic entity is generated starting from the first segment of the lead path according to the lead path specification parameters; during the generation process, chamfers or fillets are added to the connection points of each segment of the lead path.
[0013] Furthermore, the transition connection processing at the turning points of the initial 3D graphic entity includes: Identify all 90-degree angles, acute angles, or obtuse angles in the initial three-dimensional graphic entity to determine the turning points; Based on the cross-sectional shape of the initial three-dimensional graphic entity, different transition connection processes are applied to the turning points.
[0014] Furthermore, the step of applying different transition connection processes to the turning points based on the cross-sectional shape of the initial three-dimensional graphic entity includes: When the cross-sectional shape of the initial three-dimensional graphic entity is rectangular, it automatically extends and closes the two adjacent three-dimensional graphic entities at the turning point; When the cross-sectional shape of the initial three-dimensional graphic entity is circular, the transition connection at the turning point is made by using a 90-degree annular body filling gap method.
[0015] Another embodiment of the present invention provides a three-dimensional path and entity generation system for equipment grounding leads, comprising: The connection point identification module is used to import the three-dimensional model of the target electrical equipment and identify the grounding connection points of the three-dimensional model; The first path generation module is used to extend the first segment of the downpath along the negative Z-axis direction of the grounding connection point until it hits the first solid surface and generates the first projection point. The second path generation module is used to emit multi-directional rays from the first projection point to determine the terminal intersection point generated by the second downward path and the edge of the first solid surface. The third path generation module is used to start from the terminal intersection point and extend along the outer contour of the target electrical equipment surrounding box surface in a preset direction until the end alignment point is determined when it is level with the height of the underground grounding body. The fourth path generation module is used to connect the end flush point with the underground grounding grid to generate the grounding down conductor path of the target electrical equipment; The entity generation module is used to generate an initial three-dimensional graphic entity of the grounding down conductor of the target electrical equipment along the grounding down conductor path of the target electrical equipment; The entity optimization module is used to perform transition connection processing at the turning points of the initial 3D graphic entity to determine the target 3D graphic entity.
[0016] Compared with the prior art, the beneficial effects of the embodiments of the present invention are at least one of the following: This invention automatically generates a four-segment optimal downlead path by intelligently identifying grounding connection points in the 3D model of the device and coordinating path extension, outer contour bounding box avoidance, and path optimization strategies, thereby improving the efficiency and accuracy of path design and planning. Subsequently, parametric cross-section scanning technology is used to convert the path into a 3D solid, ensuring the precise consistency between the model and design specifications. Different cross-section types are used to adaptively perform smooth and fluid transition connection processing at path turning points, such as extension closure or circular ring filling, reducing electrical design errors, ensuring the safety and reliability of the 3D grounding downlead model, and improving design efficiency. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the three-dimensional path and entity generation method for equipment grounding down conductor in one embodiment of the present invention; Figure 2 This is a schematic diagram of the device grounding connection point location determination process in one embodiment of the present invention; Figure 3 This is a schematic diagram of the first segment of the trailing path generation process in one embodiment of the present invention; Figure 4 This is a schematic diagram of the second segment trailing path generation process in one embodiment of the present invention; Figure 5 This is a schematic diagram of the third segment trailing path generation process in one embodiment of the present invention; Figure 6 This is a schematic diagram of the generation of the fourth segment downlink path based on the first connection method in one embodiment of the present invention; Figure 7 This is a schematic diagram of the generation of the fourth segment downlink path based on the second connection method in one embodiment of the present invention; Figure 8 This is a schematic diagram of the generation of the fourth segment downlink path based on the third connection method in one embodiment of the present invention; Figure 9 This is a schematic diagram of the target device grounding lead-down path based on the third connection method in one embodiment of the present invention; Figure 10 This is a schematic diagram of the transition connection at the bend of a rectangular cross-section in one embodiment of the present invention; Figure 11 This is a schematic diagram of the transition connection at the bend of the circular cross section in one embodiment of the present invention; Figure 12 This is a three-dimensional graphic entity rendering of one embodiment of the present invention; Figure 13 This is a schematic diagram of a three-dimensional path and entity generation system for equipment grounding leads in one embodiment of the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0019] In the description of this application, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first," "second," "third," etc., may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0020] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal communication between two components. The terms "vertical," "horizontal," "left," "right," "upper," "lower," and similar expressions used herein are for illustrative purposes only and do not indicate or imply that the device or component referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as limiting the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0021] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this specification is for the purpose of describing specific embodiments only and is not intended to limit the invention. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0022] One embodiment of the present invention provides a method for generating a three-dimensional path and entity for equipment grounding leads. For details, please refer to [link / reference]. Figure 1 , Figure 1 The diagram illustrates a three-dimensional path and entity generation method for a device grounding lead according to one embodiment of the present invention, including the following steps: S1. Import the 3D model of the target electrical equipment and identify the grounding connection point of the 3D model.
[0023] This invention takes the three-dimensional design of a substation project as an example. A computer system can read the three-dimensional model file of the substation equipment (i.e., the target electrical equipment, hereinafter referred to as "equipment"), analyze and obtain the geometric composition and structural information of the equipment. It should be understood that the geometric composition of the equipment is essentially a representation reflecting the geometric shape and structure of the equipment in three-dimensional space. It is composed of different geometric elements (such as points, lines, surfaces, and volumes) and is used to describe the physical form and spatial location of the equipment. The structural information of the equipment includes detailed information such as the equipment components, connection methods, and relative positions. In this embodiment, this information is expressed in the form of geometric bodies in the three-dimensional model.
[0024] Specifically, this embodiment uses an algorithm to automatically traverse all basic geometries in the 3D model of the device, including electrical equipment that requires grounding, such as transformers, switch cabinets, circuit breakers, disconnect switches, and GIS equipment. A recursive algorithm can be selected for traversal.
[0025] Then, preset grounding connection points inside the 3D model are automatically detected using preset recognition rules. Preferably, attribute rules can be set for recognition, such as detection based on the type, name, or geometric features of the object being identified. These grounding connection points are specific locations or components used for grounding connections, and typically have specific geometric features, identification attributes, and dimensions, such as grounding bolts on a device base, which facilitates rapid positioning by the algorithm. In this embodiment, they form the key foundation for subsequently drawing the 3D graphic entity of the grounding down conductor.
[0026] If the 3D model of the equipment does not have a preset grounding connection point, the designer can manually specify the location of the grounding connection point through the user interface. When manually specifying, the designer can choose a suitable location on the equipment casing in the 3D model, such as a flat area near the bottom of the equipment, to ensure the accuracy of the starting point of the grounding lead. For details on the process of determining the location of the equipment grounding connection point, please refer to [link / reference]. Figure 2 As shown.
[0027] It is worth noting that, to ensure the grounding connection point is located reasonably and without interference, this embodiment further verifies the extracted or designated grounding connection point. For example, short-range rays can be emitted from the candidate grounding connection point towards several main operating directions (such as the Z / X / Y axis directions) to check whether the rays are blocked within a short distance (e.g., 200mm). If the rays are blocked rapidly in all directions, it indicates that the point is located in a deep pit or close to a wall, making wiring operations impossible, and the point should be considered invalid. Conversely, if the rays are not blocked, it indicates that the point has sufficient unobstructed space and is a valid point.
[0028] S2. Extend the first down-path along the negative Z-axis of the grounding connection point until it hits the first solid surface and generates the first projection point.
[0029] After determining the grounding connection point, the grounding lead-down path will be designed. This embodiment of the invention provides a four-segment lead-down path generation operation. The first segment of the lead-down path is designed, starting from the grounding connection point and using the world coordinate system as a reference (the Cartesian coordinate system used in this embodiment), extending along the negative Z-axis from the grounding connection point. For details, please refer to... Figure 3 As shown, the grounding connection point extends vertically downwards until it hits the first solid surface encountered (the first solid surface), forming the first segment of the grounding lead path. At this point, the first segment intersects with the solid surface, creating a projection point, the first projection point, which represents the corresponding position of the grounding connection point on the first solid surface. It should be understood that in 3D modeling, a solid surface refers to the surface of an object with thickness and material. In contrast to virtual surfaces (such as surfaces that only exist in mathematical descriptions), solid surfaces have practical significance in the physical world and can come into contact with and interact with other objects.
[0030] S3. Emit multi-directional rays at the first projection point to determine the terminal intersection point generated by the second downward path and the edge of the first solid surface.
[0031] This step follows the formation of the first descending path and proceeds to design the second descending path. Similarly, using the world coordinate system as the reference and the first projection point as the origin, rays are emitted in the positive X-axis, negative X-axis, positive Y-axis, and negative Y-axis directions, respectively. For details, please refer to... Figure 4 As shown, each ray intersects the edge of the first solid surface, forming four line segments, which in this embodiment serve as candidate line segments for the second descending path. A spatial intersection algorithm, such as the intersection calculation between a ray and a polyhedron, can be used to record the intersection points of each ray with the edge of the first solid surface.
[0032] Then, the length of each candidate segment is calculated, and the shortest candidate segment is selected as the second down-lead path. Choosing the shortest segment helps reduce path bends and length, improving grounding efficiency.
[0033] S4. Starting from the terminal intersection point, extend along the outer contour of the target electrical equipment surrounding the box surface in a preset direction until the end alignment point is determined when it is level with the underground grounding electrode.
[0034] It should be understood that the outer bounding box refers to the smallest rectangular or cubic box (like the hit box concept) surrounding a device or other entity, used to approximate the shape and size of the entity. In 3D modeling, the outer bounding box information, including the coordinates of several vertices of the entity, can be used for collision detection, path planning, or visualization.
[0035] To achieve intelligent obstacle avoidance during path extension, the outer contour information of the equipment foundation and each entity in the 3D model is first extracted to generate an outer contour bounding box. The outer contour bounding box can be represented by an axis-aligned bounding box or a directional bounding box, depending on the shape and complexity of the entity. It should be understood that in this embodiment, the equipment foundation refers to a concrete (or reinforced concrete) structure specifically constructed for transformers, switchgear, circuit breakers, etc., i.e., the base of the equipment.
[0036] Starting from the terminal intersection point, the path extends along the surface of the outer contour bounding box in the negative Z-axis direction. When an intersection of the path with the outer contour bounding box of an entity is detected, the path direction is adjusted to avoid the entity. For example, an avoidance algorithm, such as a detour algorithm or a lifting algorithm, can be used to adjust the path direction. In this embodiment, to ensure the integrity and rationality of the third down-lead path, it can be further verified whether the path avoids all entities and whether it meets the grounding design requirements.
[0037] After adjustments and avoidance, the path continues to extend until it is level with the underground grounding electrode, forming the third downleading path and its corresponding end point. For details, please refer to the process of extending the third downleading path. Figure 5 As shown.
[0038] In some embodiments of the present invention, when it is found that the end of the third down-lead path is not level with the height of the underground grounding electrode, an adjustment algorithm can be used, such as extending or shortening the path, to adjust the path to ensure that the height is level.
[0039] S5. Connect the end flush point with the underground grounding grid to generate the grounding lead path for the target electrical equipment.
[0040] This step will be the process of forming the last section of the grounding path in this embodiment. After completing this fourth section of the grounding path, a complete equipment grounding grounding lead-down path will be formed.
[0041] It should be understood that underground grounding electrodes are typically arranged in a grid pattern. The fourth segment of the equipment grounding down conductor is formed by connecting the end of the third down conductor's path to the grid from that end point. Specifically, in this embodiment, the following three connection methods can be selected: 1. For details on the first connection method, please refer to [link / reference]. Figure 6 As shown, any point on the underground grounding grid is designated as the connection point, and the connection point is connected to the end point.
[0042] 2. For details on the second connection method, please refer to [link / reference]. Figure 7 As shown, one grid edge of the designated underground grounding grid is designated as the connecting edge, and the end point is perpendicularly connected to the connecting edge.
[0043] 3. The third connection method involves iteratively determining the shortest path; see the attached document for details. Figure 8 As shown, the end-aligned point is perpendicularly connected to each grid edge of the underground grounding body grid to form multiple connection paths. The length of each connection path is iteratively calculated, and the shortest connection path is determined as the fourth down conductor path.
[0044] The connection path can be represented by a straight line or a curve, depending on the connection method and the structure of the underground grounding electrode. The choice of these connection methods depends on the structure of the grounding electrode and the design requirements. For example, if the design requires the grounding down conductor to be connected to the "main line" of the grounding grid, then the second connection method is preferred.
[0045] like Figure 9 As shown, it is a schematic diagram of the target electrical equipment grounding down conductor path that is finally formed by using the third connection method to form the fourth down conductor path.
[0046] S6~S7. Along the path of the grounding down conductor of the target electrical equipment, generate the initial three-dimensional graphic entity of the grounding down conductor of the target electrical equipment, perform transition connection processing at the turning points of the initial three-dimensional graphic entity, and determine the target three-dimensional graphic entity.
[0047] Based on the final generated overall equipment grounding down conductor path, the down conductor specifications will be determined according to the grounding design requirements. For example, the specifications include indicators such as cross-sectional shape (rectangular, circular, etc.) and dimensions (width, height, diameter, etc.).
[0048] Following the shape and direction of the grounding down conductor path of the target electrical equipment, and according to the determined down conductor specifications, an initial three-dimensional graphic entity is generated starting from the first down conductor segment. Specifically, the initial three-dimensional graphic entity can be generated through operations such as extrusion, sweeping, or lofting. During the generation process, to ensure a smooth transition, chamfers or fillets can be added to the connections between each down conductor segment, or transition surfaces can be applied.
[0049] Furthermore, in some embodiments of the present invention, in order to ensure the integrity and accuracy of the three-dimensional graphic entity, it is necessary to check whether the three-dimensional graphic entity is closed and whether there is interference.
[0050] It can also optimize and adjust 3D graphic entities, such as performing operations to simplify geometry. The optimized 3D graphic entities can be exported to the required file format (such as STEP, IGES, etc.).
[0051] It should be understood that among the many challenges faced in the equipment grounding design process, the connection treatment at turning points is particularly prominent. Since the grounding path often has turns in multiple directions, these turning points not only require tight structural connections but also need to meet the continuity of electrical performance in order to ensure the overall effectiveness of the grounding system.
[0052] Based on this, to further ensure a smooth and seamless transition at the turning points of the 3D graphic entity, this embodiment of the invention performs transition connection processing at the turning points. Specifically, it is first necessary to identify all 90-degree angles, acute angles, or obtuse angles in the initial 3D graphic entity. In 3D modeling, these angles actually reflect the "turning points".
[0053] Based on these angles that reflect the "turning point", the turning point can be determined, that is, the location where the "turning point" occurs can be located.
[0054] Then, based on the cross-sectional shape of the initial 3D graphic entity, different transition connection processes are applied to the turning points. Specifically, the 3D graphic entity of the equipment grounding down conductor typically has two cross-sectional forms: rectangular cross-section and circular cross-section. The rectangular cross-section entity model is a cuboid, and the circular cross-section entity model is a cylinder.
[0055] At the bend of the equipment grounding down conductor, a transition gap will be generated between the cuboid or cylinder. When the cross-sectional shape of the initial 3D graphic entity is rectangular, it can automatically extend and close the two adjacent 3D graphic entities at the bend. For the specific transition process, please refer to [reference needed]. Figure 10 As shown. For example, an automatic extension closure algorithm can be used to handle transition connections. This algorithm can automatically generate closed transition surfaces or planes based on the geometry and dimensions of the transition point.
[0056] When the initial 3D graphic entity has a circular cross-sectional shape, a 90-degree toroidal filler method is used to transition and connect the transition points. For details of the transition process, please refer to [reference needed]. Figure 11 As shown. The size and position of the annulus can be calculated based on the radius of curvature and angle at the turning points.
[0057] This completes the generation of the 3D graphic entity. The final entity rendering can be referenced. Figure 12As shown. The processed 3D graphical solid model of the transition connection is output in the required file format for use in subsequent project implementation.
[0058] In summary, this embodiment automatically identifies grounding connection points by importing the device's 3D model; based on the grounding connection points, four down conductor paths are generated sequentially, and path avoidance is achieved through the outer contour axis bounding box of the solid; based on the down conductor specifications, an initial 3D graphic entity is constructed along the down conductor path; finally, the transition connection at the turning point is achieved by automatically calling the extension closure algorithm (for rectangular cross-sections) or the 90° toroidal construction algorithm (for circular cross-sections) through the cross-sectional shape, realizing full automation from design to finished product.
[0059] This embodiment will further provide a MATLAB executable program as shown in Example 1, as follows: Example 1: %initialization clc; clear; close all; The device model data has been loaded, including geometric information and preset grounding connection points. % deviceModel = struct('geometries', {...},'groundPoints', {...}); load('deviceModel.mat'); % The model data has been saved as a .mat file % s1: Extract grounding connection point groundPoints = extractGroundPoints(deviceModel); % s2: Generate the first trailing path startPoint = groundPoints(1); % Use the first ground connection point firstSegment = generateFirstSegment(startPoint, deviceModel); %s3: Determine the initial direction initialDirectionSegment = determineInitialDirection(firstSegment.endPoint, deviceModel); % s4: Avoid entities and extend the path thirdSegment = avoidEntitiesAndExtendPath(initialDirectionSegment.endPoint, deviceModel); % s5: Connected to the underground grounding electrode groundConnectionSegment = connectToGroundBody(thirdSegment.endPoint,deviceModel); %s6: Generate 3D graphical solid models pathSegments = {firstSegment, initialDirectionSegment, thirdSegment,groundConnectionSegment}; wireModel = generate3DWireModel(pathSegments,'rectangular', [10, 2]); % Rectangular cross-section, width 10, height 2 % s7: Handle transitions at turning points finalModel = handleTransitions(wireModel); %Visualize the final result visualizeModel(finalModel); % Function definition function groundPoints = extractGroundPoints(model) % Extract preset grounding connection points or manually specified by the user groundPoints = model.groundPoints; % The model already contains groundPoints end function segment = generateFirstSegment(startPoint, model) Extend along the Z direction until it intersects with the first solid face. % Intersect after extending by 10 units endPoint = startPoint + [0, 0, -10]; segment = struct('startPoint', startPoint,'endPoint', endPoint); end function segment = determineInitialDirection(startPoint, model) %Emit rays to X+, X-, Y+, Y-, and select the shortest line segment. %Select X+direction endPoint = startPoint + [10, 0, 0]; segment = struct('startPoint', startPoint,'endPoint', endPoint); end function segment = avoidEntitiesAndExtendPath(startPoint, model) % Extends along the surface of the bounding box, avoiding solid objects %Extend 20 units endPoint = startPoint + [0, 0, -20]; segment = struct('startPoint', startPoint,'endPoint', endPoint); end function segment = connectToGroundBody(startPoint, model) % Connected to underground grounding electrode % Extend 5 units to reach the grounding electrode endPoint = startPoint + [0, 0, -5]; segment = struct('startPoint', startPoint,'endPoint', endPoint); end function model = generate3DWireModel(segments, sectionShape,dimensions) Generate a 3D model based on the path and cross-section. disp('Generating 3D wire model...'); model = struct('segments', segments,'sectionShape', sectionShape,'dimensions', dimensions); end function finalModel = handleTransitions(model) % Handle transitions at turning points disp('Handling transitions...'); finalModel = model; % Handle transitions end function visualizeModel(model) %Visualized 3D Model %Use MATLAB's plotting capabilities to display the path hold on; for i = 1:length(model.segments) plot3([model.segments{i}.startPoint(1), model.segments{i}.endPoint(1)], ... [model.segments{i}.startPoint(2), model.segments{i}.endPoint(2)], ... [model.segments{i}.startPoint(3), model.segments{i}.endPoint(3)],'r-'); end xlabel('X'); ylabel('Y'); zlabel('Z'); grid on; Hold off end In the above procedure: s1: Extracting Grounding Connection Points: The extractGroundPoints function is responsible for extracting preset grounding connection points from the device model (3D model). If there are no preset points in the model, they can be manually specified through the user interface.
[0060] s2: Generate the first leading path: The generateFirstSegment function starts from the starting point and extends the path along the Z direction until it intersects with the first solid face. The intersection point is then calculated as the endpoint.
[0061] s3: Determine the initial direction: The determineInitialDirection function emits rays in four directions from the end of the first descending path, and selects the shortest line segment as the second descending path.
[0062] s4: Avoid Entities and Extend Path: The avoidEntitiesAndExtendPath function extends the path along the bounding box surface and adjusts the direction when the path intersects with entities to ensure avoidance.
[0063] s5: Connect to the underground grounding electrode: The connectToGroundBody function ensures that the path is effectively connected to the underground grounding electrode, and different connection methods can be selected.
[0064] s6: Generate a 3D graphical solid model: The generate3DWireModel function generates a 3D graphical solid model based on the path and cross-sectional shape.
[0065] s7: Handling transitions at turning points: The handleTransitions function handles transitions at path turning points to ensure smooth transitions.
[0066] In this embodiment, the visualization method is as follows: the `visualizeModel` function uses MATLAB's plotting capabilities to display the generated 3D model.
[0067] One embodiment of the present invention provides a three-dimensional path and entity generation system for equipment grounding down conductors. For details, please refer to [link / reference]. Figure 13 , Figure 13 The diagram shown is a schematic representation of a three-dimensional path and entity generation system for a device grounding lead according to one embodiment of the present invention, including: The connection point identification module M1 is used to import the three-dimensional model of the target electrical equipment and identify the grounding connection point of the three-dimensional model; The first path generation module M2 is used to extend the first down-lead path along the negative Z-axis direction of the grounding connection point until it hits the first solid surface and generates the first projection point. The second path generation module M3 is used to emit multi-directional rays from the first projection point to determine the terminal intersection point generated by the second downward path and the edge of the first solid surface. The third path generation module M4 is used to start from the terminal intersection point and extend along the outer contour of the target electrical equipment surrounding box surface in a preset direction until it is level with the height of the underground grounding body to determine the end alignment point. The fourth path generation module M5 is used to connect the end flush point with the underground grounding grid to generate the grounding down conductor path of the target electrical equipment; The entity generation module M6 is used to generate an initial three-dimensional graphic entity of the grounding down conductor of the target electrical equipment along the grounding down conductor path of the target electrical equipment; The entity optimization module M7 is used to perform transition connection processing on the turning points of the initial 3D graphic entity to determine the target 3D graphic entity.
[0068] The technical features and effects of the three-dimensional path and entity generation system for equipment grounding down conductors proposed in this embodiment of the invention are the same as those of the three-dimensional path and entity generation method for equipment grounding down conductors proposed in this embodiment of the invention, and will not be repeated here.
[0069] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A method for generating a three-dimensional path and entity for equipment grounding down conductors, characterized in that, include: Import the 3D model of the target electrical equipment and identify the grounding connection point of the 3D model; Extend the first downward path along the negative Z-axis direction of the grounding connection point until it hits the first solid surface and generates the first projection point; the first solid surface refers to the first solid surface encountered when the grounding connection point is extended vertically downwards until it hits the first solid surface. A multi-directional ray is emitted from the first projection point to determine the terminal intersection point generated by the second downward path and the edge of the first solid surface. Starting from the terminal intersection point, extend along the outer contour of the target electrical equipment surrounding the box surface in a preset direction until the end alignment point is determined when it is level with the height of the underground grounding electrode; Connect the end flush point to the underground grounding grid to generate the grounding down conductor path for the target electrical equipment; Along the path of the grounding down conductor of the target electrical equipment, generate an initial three-dimensional graphic entity of the grounding down conductor of the target electrical equipment; Transitional connection processing is performed at the turning points of the initial 3D graphic entity to determine the target 3D graphic entity.
2. The method for generating a three-dimensional path and entity for equipment grounding leads as described in claim 1, characterized in that, The process of importing the three-dimensional model of the target electrical equipment and identifying the grounding connection point of the three-dimensional model also includes: If the grounding connection point does not exist in the 3D model, it should be manually specified.
3. The method for generating a three-dimensional path and entity for equipment grounding leads as described in claim 1, characterized in that, The process of determining the second descending path includes: Using the world coordinate system as a reference and the first projection point as the origin, rays are emitted in the positive X-axis direction, the negative X-axis direction, the positive Y-axis direction, and the negative Y-axis direction, respectively. Calculate the length of each candidate line segment formed when each ray intersects with the edge of the first solid surface; Select the shortest candidate line segment as the path leading down to the second segment.
4. The method for generating a three-dimensional path and entity for equipment grounding leads as described in claim 1, characterized in that, The step of extending along the outer contour of the target electrical equipment enclosure surface in a predetermined direction from the terminal intersection point until it is level with the underground grounding electrode to determine the end alignment point includes: Extract the outer contour information of the three-dimensional model equipment foundation and each entity, and generate an outer contour bounding box; Starting from the terminal intersection point, the path extends along the outer contour bounding box surface in the negative Z-axis direction; When the path is detected to intersect with the outer bounding box of an entity, the path direction is adjusted to avoid the entity. Continue extending the path until it is level with the underground grounding electrode, forming the third down-leading path and the corresponding end-level point.
5. The method for generating a three-dimensional path and entity for equipment grounding leads as described in claim 1, characterized in that, The step of connecting the end-aligned point to the underground grounding grid includes: Designate any point on the underground grounding grid as the connection point, and connect the connection point to the end-aligned point; or, Designate one grid edge of the underground grounding grid as the connecting edge, and connect the end point of the grid perpendicularly to the connecting edge.
6. The method for generating a three-dimensional path and entity for equipment grounding leads as described in claim 5, characterized in that, The step of connecting the end-aligned point with the underground grounding grid to generate the grounding down conductor path for the target electrical equipment also includes: The end-aligned point is perpendicularly connected to each grid edge of the underground grounding body grid to form a connection path; The length of each connection path is calculated iteratively, and the shortest connection path is determined as the fourth down conductor path. At the same time, the grounding down conductor path of the target electrical equipment is generated.
7. The method for generating a three-dimensional path and entity for equipment grounding leads as described in claim 1, characterized in that, The step of generating an initial three-dimensional graphic entity of the grounding down conductor of the target electrical equipment along the grounding down conductor path of the target electrical equipment includes: Determine the specifications and parameters of the down conductor according to the grounding design requirements; Along the shape and direction of the grounding lead path of the target electrical equipment, an initial three-dimensional graphic entity is generated starting from the first segment of the lead path according to the lead path specification parameters; during the generation process, chamfers or fillets are added to the connection points of each segment of the lead path.
8. The method for generating a three-dimensional path and entity for equipment grounding leads as described in claim 1, characterized in that, The transition connection processing at the turning points of the initial 3D graphic entity includes: Identify all 90-degree angles, acute angles, or obtuse angles in the initial three-dimensional graphic entity to determine the turning points; Based on the cross-sectional shape of the initial three-dimensional graphic entity, different transition connection processes are applied to the turning points.
9. The method for generating a three-dimensional path and entity for equipment grounding leads as described in claim 8, characterized in that, The step of applying different transition connection processes to the turning points based on the cross-sectional shape of the initial three-dimensional graphic entity includes: When the cross-sectional shape of the initial three-dimensional graphic entity is rectangular, it automatically extends and closes the two adjacent three-dimensional graphic entities at the turning point; When the cross-sectional shape of the initial three-dimensional graphic entity is circular, the transition connection at the turning point is made by using a 90-degree annular body filling gap method.
10. A three-dimensional path and entity generation system for equipment grounding down conductors, characterized in that, include: The connection point identification module is used to import the three-dimensional model of the target electrical equipment and identify the grounding connection points of the three-dimensional model; The first path generation module is used to extend the first downward path along the negative Z-axis direction of the grounding connection point until it hits the first solid surface and generates the first projection point; the first solid surface refers to the first solid surface encountered when the grounding connection point is extended vertically downward until it hits the first solid surface. The second path generation module is used to emit multi-directional rays from the first projection point to determine the terminal intersection point generated by the second downward path and the edge of the first solid surface. The third path generation module is used to start from the terminal intersection point and extend along the outer contour of the target electrical equipment surrounding box surface in a preset direction until the end alignment point is determined when it is level with the height of the underground grounding body. The fourth path generation module is used to connect the end flush point with the underground grounding grid to generate the grounding down conductor path of the target electrical equipment; The entity generation module is used to generate an initial three-dimensional graphic entity of the grounding down conductor of the target electrical equipment along the grounding down conductor path of the target electrical equipment; The entity optimization module is used to perform transition connection processing on the turning points of the initial 3D graphic entity to determine the target 3D graphic entity.
Citation Information
Patent Citations
Design of a path connecting a first point to a second point in a three-dimensional scene
CN104346830A
Electrical system surge test modeling simulation method and terminal
CN118734617A