Visual generation method, system and equipment for cable path of nuclear power station and medium
By analyzing the path and generating spatial information of nuclear power plant cable data, the cable path can be visualized, solving the problem that cable information is difficult to intuitively associate in a three-dimensional model, and improving the efficiency and accuracy of cable management.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA NUCLEAR POWER ENGINEERING COMPANY LTD
- Filing Date
- 2026-01-14
- Publication Date
- 2026-05-01
AI Technical Summary
Nuclear power plant cable data is scattered and complex, making it difficult to intuitively correlate in a 3D model. This results in low efficiency in cable information management and fails to meet the needs of digitization and visualization.
By acquiring cable data, parsing the path information into multiple nodes, extracting the node spatial information, generating cable path spatial information, performing visualization processing, and generating a 3D display result.
It improves the efficiency and accuracy of cable path analysis, makes cable laying conditions visible, and enhances the visualization capabilities and digital management level of nuclear power plant cable design, verification, and operation and maintenance.
Smart Images

Figure CN121962441A_ABST
Abstract
Description
Methods, systems, equipment, and media for visualizing nuclear power plant cable paths Technical Field
[0001] This invention relates to the field of three-dimensional visualization technology, and in particular to a method, system, device and medium for generating visualizations of nuclear power plant cable paths. Background Technology
[0002] With the rapid development of digital information technology and 3D visualization technology, digital design and 3D display methods have been gradually applied to the design, construction, and operation and maintenance of nuclear power plants. Based on the 3D layout design model of the Plant Design Management System (PDMS) formed during the construction phase of nuclear power plants, engineers can combine lightweight modeling and 3D digitization technology to build a visualized and intelligent nuclear power plant platform. This enables 3D display and online monitoring of the plant structure, equipment layout, and operating status, providing a foundation for panoramic digital management of nuclear power plants.
[0003] However, in actual cable engineering design, the problems of a huge number of cables and scattered and complex data still exist. For example, a nuclear power plant has approximately 9,000 electrical unit cables and approximately 22,000 instrumentation and control unit cables, totaling more than 30,000 cables. Each cable contains about 20 key data items for termination and route design. Although 3D digital technology has been applied to overall plant modeling, cable tray and cable laying design still mainly rely on the traditional list management mode. This makes it difficult to intuitively associate cable information in the 3D model, and the maintenance, use, and sharing of cable data are inefficient, failing to meet the current needs of nuclear power plants for digital, visual, and efficient management of cable data. Therefore, there is a need to provide a method, system, equipment, and medium for visually generating cable routes in nuclear power plants. Summary of the Invention
[0004] This invention provides a method, system, device, and medium for visually generating cable paths in nuclear power plants, in order to improve the technical problem that existing nuclear power plant cable data is difficult to automatically associate with three-dimensional models and visualize, resulting in low efficiency in cable path verification.
[0005] This invention provides a method for visualizing and generating cable paths in nuclear power plants. The method includes: acquiring cable data to characterize cable laying conditions; parsing and processing the path information of the cable data to obtain multiple nodes arranged in path order; wherein the path information is used to describe the cable path; extracting the node spatial information corresponding to each node; wherein the node spatial information is used to characterize the spatial position and attitude attributes of the corresponding node in a three-dimensional scene; arranging the node spatial information sequentially according to the arrangement order of the corresponding nodes to generate cable path spatial information to characterize the cable path; and visualizing the cable path spatial information to generate a visualization result.
[0006] In one embodiment of the present invention, the step of parsing the path information of cable data to obtain multiple nodes arranged in the path order includes: segmenting the path information based on a preset path parsing rule to obtain candidate strings for multiple nodes; and identifying the node type of each candidate string to obtain the node type corresponding to each candidate string.
[0007] In one embodiment of the present invention, the step of extracting the node spatial information corresponding to each node includes: determining the three-dimensional model component corresponding to each node identifier from the three-dimensional design component library according to the node identifier of each node, and determining the spatial attributes of the corresponding node accordingly; performing structured processing on the spatial attributes of each node to generate node spatial information corresponding to the node.
[0008] In one embodiment of the present invention, for each node, the step of determining the three-dimensional model component corresponding to the node identifier from the three-dimensional design component library based on the node identifier, and determining the spatial attributes of the corresponding node accordingly, includes: determining whether there is a three-dimensional component corresponding to the node identifier in the three-dimensional design component library based on the node identifier; if there is a three-dimensional component corresponding to the node identifier, then reading the geometric coordinates, direction vector, and component identifier of the three-dimensional component in the model coordinate system, and converting the geometric coordinates into global spatial coordinates based on a preset coordinate transformation matrix, and using the global spatial coordinates, direction vector, and component identifier as the spatial attributes of the node; if there is no three-dimensional component corresponding to the node identifier, then re-determining its corresponding spatial attributes based on the next node, until all nodes have been processed.
[0009] In one embodiment of the present invention, after all nodes have been processed, the method further includes: for each node that does not have a spatial attribute, performing the following interpolation processing as the current node: interpolating the global spatial coordinates of each node adjacent to the current node to generate the global spatial coordinates of the node; generating the direction vector of the current node based on the direction vectors of each node adjacent to the current node, and using the generated global spatial coordinates and direction vector as the spatial attributes of the current node.
[0010] In one embodiment of the present invention, the node spatial information includes the global spatial coordinates, direction vectors, and component identifiers of the nodes in a preset three-dimensional model. The step of arranging the spatial information of each node in sequence according to the arrangement order of the corresponding nodes to generate cable path spatial information for representing the cable path includes: connecting the global spatial coordinates of adjacent nodes according to the arrangement order of each node to generate a spatial line segment sequence for representing the node order; smoothing the spatial line segment sequence based on the direction vectors of adjacent nodes to generate a continuous spatial path trajectory; and associating the spatial path trajectory with the component identifiers of each node it includes to generate cable path spatial information for representing the cable path.
[0011] In one embodiment of the present invention, the smoothing process is B-spline smoothing.
[0012] In one embodiment of the present invention, the cable data includes multiple cable sub-data, each cable sub-data corresponding to the laying status of a cable. The step of visualizing the cable path spatial information and generating a visual display result includes: based on a preset display strategy, selecting target cables from the cable data that correspond to the display strategy; and generating a visual display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cables.
[0013] In one embodiment of the present invention, when the display strategy is to display a single cable, the step of generating a visualization display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable includes: generating a three-dimensional geometric model corresponding to the target cable based on the cable path spatial information of the target cable; loading the cable tray model and equipment model corresponding to each node from a preset three-dimensional spatial model library based on the node name of each node; and combining and rendering the three-dimensional geometric model with the corresponding cable tray model and equipment model to generate a three-dimensional visualization display result of the target cable.
[0014] In one embodiment of the present invention, when the display strategy is system-wide display, the step of generating a visual display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable includes: for each target cable corresponding to the system: generating a three-dimensional geometric model corresponding to the target cable based on the cable path spatial information of the target cable; loading the corresponding cable tray model and equipment model from a preset three-dimensional spatial model library based on the node names of each node in the cable path spatial information of the target cable; combining and rendering the three-dimensional geometric model of each target cable with the corresponding cable tray model and equipment model, and displaying different target cables in different colors to generate a visual display result of the cable path under the system scope.
[0015] In one embodiment of the present invention, when the display strategy is to display the factory area, the step of generating a visualization display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable includes: for each target cable corresponding to the factory: generating a three-dimensional geometric model corresponding to the target cable based on the cable path spatial information of the target cable; loading the corresponding cable tray model and equipment model from a preset three-dimensional spatial model library based on the node names of each node in the cable path spatial information of the target cable; loading the three-dimensional factory background model corresponding to the factory from the background model library based on the factory's identifier; and globally combining and rendering the three-dimensional geometric model of each target cable with the corresponding cable tray model, equipment model, and three-dimensional factory background model to generate a visualization display result of the cable path within the factory area.
[0016] In one embodiment of the present invention, after generating the visualization result of the cable path within the factory area, the method further includes: responding to the visible area of the current camera, dynamically loading a three-dimensional factory background sub-model corresponding to the current visible area from the three-dimensional factory background model.
[0017] This invention also provides a visualization generation system for nuclear power plant cable paths. The system includes: a cable data acquisition module for acquiring cable data to characterize cable laying conditions; a path parsing module for parsing the path information of the cable data to obtain multiple nodes arranged in path order; wherein the path information describes the cable path; a node parsing module for extracting the node spatial information corresponding to each node; wherein the node spatial information characterizes the spatial position and attitude attributes of the corresponding node in a three-dimensional scene; a path generation module for sequentially arranging the spatial information of each node according to the arrangement order of the corresponding nodes to generate cable path spatial information to characterize the cable path; and a visualization module for visualizing the cable path spatial information to generate a visualization display result.
[0018] The present invention also provides an electronic device, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device enables the visualization generation method for nuclear power plant cable paths described above.
[0019] The present invention also provides a computer-readable storage medium storing a computer program that, when executed by a computer processor, causes the computer to perform any of the above-described methods for visually generating nuclear power plant cable paths.
[0020] The beneficial effects of this invention are as follows: This invention proposes a method, system, device, and medium for visually generating cable paths in nuclear power plants. By acquiring cable data characterizing the cable laying situation and parsing the path information, the original path description is decomposed into multiple nodes arranged according to the actual laying sequence. For each node, its spatial position and orientation attributes in a three-dimensional scene are extracted to construct node spatial information. Based on the arrangement order of the nodes, the spatial information of each node is sequentially arranged to generate the cable path spatial information. Visualizing this spatial information generates a three-dimensional display of the cable, making the cable laying structure readily apparent. This invention not only improves the efficiency and accuracy of cable path parsing but also enables the cable laying situation to be presented intuitively in a visual manner, significantly improving the visualization capabilities and digital management level of nuclear power plant cable design, verification, and operation and maintenance. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0022] In the accompanying drawings: Figure 1 is a flowchart illustrating a method for visually generating nuclear power plant cable paths according to an embodiment of the present invention; Figure 2 is a structural block diagram illustrating a system for visually generating nuclear power plant cable paths according to an embodiment of the present invention; Figure 3 is a structural schematic diagram illustrating an electronic device according to an embodiment of the present invention. Detailed Implementation
[0023] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0024] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. The drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0025] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.
[0026] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0027] The inventors discovered that the traditional list-based management method is still widely used in the design of cable trays and cable laying in nuclear power plants. Cable data for different systems is maintained separately by each discipline, resulting in inconsistent list formats, numerous interfaces, and scattered data sources. This necessitates manual collation and comparison of cable information provided by each discipline during cable tray laying design or cross-disciplinary data aggregation, which is both labor-intensive and inefficient. Due to the lack of digital and visualization support, designers cannot visually view the actual cable laying path within the plant area. Information such as whether the cable's starting and ending points have been modeled and whether its position in 3D space is accurate can only be manually checked point by point in the PDMS, a tedious and error-prone process. Furthermore, cable termination information is frequently updated due to changes in upstream process loads and distributed control systems (DCS). Under the list-based model, the maintenance, sharing, and reuse capabilities of cable data are weak, making it difficult to guarantee data integrity, accuracy, and consistency. Therefore, a large amount of manpower is often required for repeated verification, severely impacting the overall project schedule. Therefore, there is an urgent need for a digital, structured, and visualized cable data management and 3D display technology to improve the efficiency and accuracy of data utilization during the cable design and operation and maintenance phases.
[0028] This invention provides a method for visually generating cable routes in nuclear power plants, enabling the digitization, structuring, and 3D processing of cable routes within the complex cable laying environment of nuclear power plants. By automatically parsing cable inventory data, generating 3D spatial coordinate information corresponding to route nodes and establishing batch automatic associations with 3D entity models, this not only significantly reduces the error rate of manual verification but also achieves rapid generation and visualization of 3D cable route models. This invention can intuitively present the cable laying direction, starting and ending equipment, and 3D model information of the cable trays along the route, enabling maintenance personnel to carry out maintenance work more efficiently and providing designers with a convenient means to verify the integrity and location accuracy of the model. Furthermore, this invention achieves structured management of cable data through the digital storage and visualization of cable termination data, improving the accuracy, completeness, and usability of cable inventory data. Relying on the PDMS 3D design model, this invention can realize the batch generation and display of multi-dimensional, multi-cable 3D routes, significantly improving the efficiency and visualization level of cable management, and constructing a more convenient, intuitive, and intelligent 3D visualization application system for nuclear power plant cables.
[0029] As shown in Figure 1, the visualization generation method for nuclear power plant cable paths includes the following steps: S100, obtaining cable data to characterize the cable laying situation.
[0030] Structured cable data is acquired, including sequentially recorded cable codes, starting and ending equipment codes, and path information representing the actual cable route. The cable code serves as a unique identifier for the cable and can be used to retrieve associated 3D model information from a 3D design component library. This establishes a traceable link between cable data and 3D model objects, providing a data foundation for subsequent 3D spatial positioning and visualization. It can be understood that cable data can correspond to a single cable or a set of cable sub-data. When cable data corresponds to multiple cables, the subsequent cable path visualization generation process can be performed separately for each cable sub-data in the cable set.
[0031] S200. The path information of the cable data is parsed and processed to obtain multiple nodes arranged in the path order; the path information is used to describe the cable path.
[0032] Since path information often includes cable tray names, connector numbers, equipment port identifiers, etc., and follows the actual route of the cable within the factory, path information can be segmented and decomposed based on path parsing rules. This allows for the identification of various nodes, such as equipment nodes, cable tray nodes, and connector nodes, according to their positional order within the path information. Each node corresponds to an actual physical structure of the cable within the factory (such as an equipment port or cable tray segment). Through this parsing process, path descriptions, originally expressed as strings and difficult to use directly for spatial calculations, can be transformed into a sequentially arranged, structured sequence of nodes, facilitating subsequent path visualization generation.
[0033] In an optional embodiment of the present invention, step S200 includes the following process: based on a preset path parsing rule, the path information is segmented to obtain candidate strings for multiple nodes; node type identification is performed on each candidate string to obtain the node type corresponding to each candidate string.
[0034] Since path information includes a structured string sequence consisting of cable tray section names, equipment port labels, and connector changes recorded according to the cable laying sequence, a complete path can be decomposed into multiple candidate strings based on preset delimiters, naming conventions, or path hierarchy rules. Each candidate string corresponds to a node position of the cable in the actual spatial path. This segmentation method breaks down the originally continuous path information into several independent candidate nodes. After obtaining the candidate strings, for each candidate string, based on its corresponding naming convention, field structure, or positional relationship within the path, it is determined whether the candidate string belongs to a device node, cable tray node, connector node, or other node type. For example, if the candidate string begins with a preset device code, it is treated as a device node; if the candidate string carries a preset cable tray prefix, it is treated as a cable tray node.
[0035] S300. Extract the node spatial information corresponding to each node; where the node spatial information is used to characterize the spatial position and pose attributes of the corresponding node in the three-dimensional scene.
[0036] After identifying the type of each node in the cable path, the corresponding 3D component can be retrieved from the PDMS's pre-set 3D design component library based on the node's identifier, and node spatial information for each node can be generated accordingly. The node spatial information characterizes the spatial attributes of the node in the 3D factory scene. It is a set of spatial parameters for the node in the 3D environment, including the node's spatial position and orientation attributes in the global coordinate system. Spatial position describes the node's global spatial coordinates in the overall 3D factory coordinate system, which may include the component center point coordinates, port geometric center coordinates, or component positioning point coordinates. Orientation attributes describe the node's orientation in the 3D scene and the component identifier of the corresponding 3D component, which may include the orientation vector and component identifier of the corresponding 3D component.
[0037] In an optional embodiment of the present invention, step S300 includes the following process: S310, determining the three-dimensional model component corresponding to each node identifier from the three-dimensional design component library according to the node identifier of each node, and determining the spatial attributes of the corresponding node accordingly.
[0038] In an optional embodiment of the present invention, for each node, determining the 3D model component corresponding to the node identifier from the 3D design component library based on the node identifier, and determining the spatial attributes of the corresponding node accordingly includes the following process: Based on the node identifier, determining whether there is a 3D component corresponding to the node identifier in the 3D design component library; if there is a 3D component corresponding to the node identifier, reading the geometric coordinates, direction vector, and component identifier of the 3D component in the model coordinate system, and converting the geometric coordinates into global spatial coordinates based on a preset coordinate transformation matrix, and using the global spatial coordinates, direction vector, and component identifier as the spatial attributes of the node; if there is no 3D component corresponding to the node identifier, re-determining its corresponding spatial attributes based on the next node, until all nodes have been processed.
[0039] Specifically, for each node, the following processing can be performed: The node identifier is read, and a matching query is performed in the 3D design component library to determine if a 3D component corresponding to the node identifier exists in the library. If the query result shows that a corresponding 3D component exists, the geometric coordinates, component orientation vector, and component identifier of the component in the model coordinate system are read. Based on a preset coordinate transformation matrix, the geometric coordinates are converted into global spatial coordinates, thereby obtaining the actual spatial position of the node in the overall coordinate system of the factory. After obtaining the global spatial coordinates, the global spatial coordinates, component orientation vector, and component identifier are uniformly used as the spatial attributes of the node for subsequent construction of node spatial information. Here, the geometric coordinates are used to characterize the specific spatial position parameters of the 3D component in the model coordinate system, the component orientation vector is used to describe the orientation characteristics of the component in 3D space, the component identifier is the unique marker information identifying the component in the 3D design component library, and the global spatial coordinates are the position coordinates in the global coordinate system of the factory obtained by mapping the geometric coordinates through the model-to-factory coordinate transformation matrix. 3D components are the fundamental objects in a 3D design model, corresponding to physical entities such as cable trays, equipment, and supports in a real factory. They possess independent geometric shapes, spatial attributes, and topological relationships within the model. If a 3D component corresponding to the current node identifier does not exist in the 3D design component library, that node is skipped, and the process continues to the next node in the path until the spatial attributes of all nodes in the path have been extracted. By retrieving and extracting spatial attributes one by one based on node identifiers, existing 3D design models can be fully utilized, achieving high-precision acquisition of node spatial information.
[0040] In another optional embodiment of the present invention, if there is no three-dimensional component corresponding to the node identifier, after all nodes have been processed, the method further includes: for each node that does not have spatial attributes, perform the following interpolation processing as the current node: interpolate the global spatial coordinates of each node adjacent to the current node to generate the global spatial coordinates of the node; generate the direction vector of the current node based on the direction vectors of each node adjacent to the current node, and use the generated global spatial coordinates and direction vector as the spatial attributes of the current node.
[0041] Considering that some nodes' corresponding 3D components are not modeled in the 3D design component library, directly ignoring these nodes would lead to breaks or discontinuities in the final generated cable path. To improve this, this invention infers the position and orientation of the current node based on the spatial attributes of adjacent nodes for nodes whose spatial attributes cannot be obtained from the 3D design component library, ensuring the integrity and continuity of the path. Specifically, nodes adjacent to the current node are selected, and their global spatial coordinates are read. Adjacent nodes refer to a predetermined number of nodes immediately before or after the current node in the cable path sequence, such as the previous or next node. The global spatial coordinates of these adjacent nodes are interpolated, and the interpolation result is used as the current node's global spatial coordinates in the 3D factory scene. Furthermore, based on the direction vectors of adjacent nodes, the current node's direction vector is obtained through vector averaging or direction interpolation to ensure that the node's spatial orientation is consistent with its preceding and following adjacent nodes. The interpolated global spatial coordinates and direction vector are used as the current node's spatial attributes, thus forming complete node spatial information. The above method allows the corresponding nodes to still be integrated into the overall cable path 3D trajectory generation process even if the 3D component model is missing.
[0042] S320. The spatial attributes of each node are processed in a structured manner to generate the node spatial information corresponding to the node.
[0043] After obtaining the spatial attributes of each node, these attributes are structured and encapsulated to generate node spatial information corresponding to each node. Node spatial information refers to structured data units that characterize the spatial position, orientation, and mapping relationship between the node and the 3D design model within the 3D factory scene. This includes, but is not limited to, the node's global spatial coordinates, direction vector, corresponding 3D component identifier, and other optional spatial metadata. Through structuring, scattered spatial attributes can be integrated into data with a unified format, clear type, and the ability to be processed by subsequent algorithms. Specifically, the spatial attributes of each path node can be standardized, unifying the expression format of each field. The global spatial coordinates, direction vector, and component identifier are encapsulated according to a preset data format, thereby generating a unique data record entry for each node, which serves as the node's spatial information.
[0044] S400. Arrange the spatial information of each node in sequence according to the corresponding node arrangement order to generate cable path spatial information used to characterize the cable path.
[0045] Specifically, after generating the spatial information of each node, all node information can be sequentially arranged according to their position in the cable laying sequence to form cable path spatial information representing the entire cable laying route. Cable path spatial information refers to an ordered data set formed by multiple node spatial information based on their path sequence, describing the spatial orientation, path shape, and spatial connection relationships between nodes in the 3D factory scene. By sequentially arranging the spatial information of each node according to their order, the actual laying sequence of the entire cable, from the starting equipment, through multiple cable tray sections and joint nodes, to the ending equipment, can be completely preserved, ensuring that subsequent 3D visualization results match the actual laying path.
[0046] In an optional embodiment of the present invention, the node spatial information includes the global spatial coordinates, direction vectors, and component identifiers of the nodes in a preset three-dimensional model. Step S400 includes the following processes: connecting the global spatial coordinates of adjacent nodes according to the arrangement order of each node to generate a spatial line segment sequence for representing the node order; smoothing the spatial line segment sequence based on the direction vectors of adjacent nodes to generate a continuous spatial path trajectory; associating the spatial path trajectory with the component identifiers of each node it includes to generate cable path spatial information for representing the cable path.
[0047] Specifically, since each path node corresponds to a node spatial information, which includes the node's global spatial coordinates, direction vector, and component identifier in a preset 3D model, the global spatial coordinates of each node can be connected one by one according to the order of the nodes in the path to form a spatial line segment sequence that can represent the order of cable laying. Furthermore, the spatial line segment sequence can be smoothed based on the direction vectors of adjacent nodes to make the generated path trajectory more continuous and natural, avoiding abrupt changes in the path. Preferably, in an optional embodiment of the present invention, the smoothing process is B-spline smoothing. By continuously fitting multiple node direction vectors, a smoother spatial path trajectory that conforms to the actual laying characteristics can be obtained. After generating a continuous spatial path trajectory, the trajectory is associated with the component identifiers corresponding to the path nodes, so that each segment of the spatial path can establish a mapping relationship with its corresponding bridge structure component or equipment component, ensuring the consistency between the spatial data and the 3D design model. The smoothed continuous spatial path trajectory and its corresponding component identifier are encapsulated as cable path spatial information, used to comprehensively represent the actual laying path of the cable in a 3D factory scene.
[0048] S500 performs visualization processing on the spatial information of the cable path and generates a visualization display result.
[0049] In an optional embodiment of the present invention, the cable data includes multiple cable sub-data, each cable sub-data corresponding to the laying status of a cable. Step S500 includes the following process: based on a preset display strategy, selecting target cables corresponding to the display strategy from the cable data; and generating a visualization display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable.
[0050] The cable data consists of multiple cable sub-data sets, each corresponding to the laying status of a single cable and including its spatial path information. To achieve 3D visualization effects tailored to different display needs, target cables matching a preset display strategy can be selected from all cable data. Based on the spatial path information of these target cables, the required 3D visualization results are generated according to the display strategy. During generation, based on the cable path spatial information, a complete 3D display scene is constructed by loading the spatial path trajectory of the target cable, its associated bridge components, and equipment components. The cable is then rendered according to the requirements of the display strategy to generate the final visualization result.
[0051] In an optional embodiment of the present invention, when the display strategy is to display a single cable, the step of generating a visualization display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable includes: generating a three-dimensional geometric model corresponding to the target cable based on the cable path spatial information of the target cable; loading the cable tray model and equipment model corresponding to each node from a preset three-dimensional spatial model library based on the node name of each node; and combining and rendering the three-dimensional geometric model with the corresponding cable tray model and equipment model to generate a three-dimensional visualization display result of the target cable.
[0052] When the display strategy is for a single cable, a 3D visualization result is generated based on the spatial information of the cable path corresponding to the target cable. Specifically, based on the spatial information of the target cable's path, a 3D geometric model corresponding to the cable is constructed according to the path trajectory and node position relationships to represent the actual route of the cable in 3D space. Then, based on the node names contained in the path nodes, the corresponding cable tray models are loaded from a pre-set 3D space model library. After loading the cable tray model, the starting and ending equipment corresponding to the target cable are loaded, thus establishing a mapping relationship between each node in the cable path and its actual 3D components. The generated 3D geometric model of the cable is combined and rendered with the loaded cable tray and equipment models in the same 3D scene to form a complete 3D visualization result for a single cable, thus intuitively reflecting the actual laying path of the cable in the factory and its spatial relationship with surrounding components. Understandably, the single-cable display strategy does not limit the number of target cables. When the display strategy is single-cable display and multiple target cables are obtained after filtering, the above-mentioned single-cable visualization generation process can be performed on each target cable in turn according to the order of the target cables, and the corresponding single-cable 3D display results can be generated respectively.
[0053] In another optional embodiment of the present invention, when the display strategy is system-wide display, the step of generating a visualization display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable includes: for each target cable corresponding to the system: generating a three-dimensional geometric model corresponding to the target cable based on the cable path spatial information of the target cable; loading the corresponding cable tray model and equipment model from a preset three-dimensional spatial model library based on the node names of each node in the cable path spatial information of the target cable; combining and rendering the three-dimensional geometric model of each target cable with the corresponding cable tray model and equipment model, and displaying different target cables in different colors to generate a visualization display result of the cable path under the system scope.
[0054] When the display strategy is system-wide, all target cables corresponding to the system will be used as objects, and a 3D visualization display covering the entire system will be generated based on the cable path spatial information. Specifically, each target cable within the system will be traversed, and a corresponding 3D geometric model will be generated based on the cable path spatial information to describe the actual laying trajectory of the cable in the 3D factory scene. For each target cable: based on the node name contained in the node spatial information of the target cable, the cable tray model corresponding to each path node will be loaded from a preset 3D spatial model library. After the cable tray model is loaded, the starting and ending devices of the target cable will be loaded, so that all cable tray sections, joint positions, and starting and ending devices traversed by the target cable within the system scope can be accurately presented in the 3D scene. After the above geometric model and scene components are loaded, the 3D geometric models of all target cables within the system scope, along with their corresponding cable tray models and equipment models, will be combined and rendered in a unified global spatial coordinate system. Furthermore, to facilitate the differentiation of different cables in the system, each target cable will be displayed in different colors, making the spatial relationships and laying coverage of the cables clearly visible. The final system-wide visualization results can fully present the three-dimensional laying path of all cables within the system, providing more intuitive reference information for system-level design verification, fault diagnosis, and operation and maintenance management across cables and regions.
[0055] In another optional embodiment of the present invention, when the display strategy is to display the factory area, the step of generating a visualization display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable includes: for each target cable corresponding to the factory: generating a three-dimensional geometric model corresponding to the target cable based on the cable path spatial information of the target cable; loading the corresponding cable tray model and equipment model from a preset three-dimensional spatial model library based on the node names of each node in the cable path spatial information of the target cable; loading the three-dimensional factory background model corresponding to the factory from the background model library based on the factory's identifier; and globally combining and rendering the three-dimensional geometric model of each target cable with the corresponding cable tray model, equipment model, and three-dimensional factory background model to generate a visualization display result of the cable path within the factory area.
[0056] When the display strategy is to showcase the entire factory area, the visualization generation process includes: for each target cable corresponding to the factory area, generating its corresponding 3D geometric model based on the cable path spatial information. Based on the node names contained in the node spatial information of the target cable, loading the corresponding cable tray model from a pre-set 3D spatial model library. After the cable tray model is loaded, loading the starting and ending devices of the target cable. After all target cables are processed, loading the corresponding 3D factory background model from the background model library based on the current factory area's identifier. After loading, the 3D geometric models of each target cable, its corresponding cable tray and equipment models, and the 3D factory background model are globally combined and rendered in a unified coordinate system. This allows the laying paths of all target cables within the factory area to be centrally displayed in the complete 3D factory scene, thus generating a visualization display result of the cable paths within the factory area.
[0057] In an optional embodiment of the present invention, after generating the visualization result of the cable path within the factory area, the method further includes: responding to the visible area of the current camera, dynamically loading a three-dimensional factory background sub-model corresponding to the current visible area from the three-dimensional factory background model.
[0058] Specifically, in response to the current viewport area, a 3D factory background sub-model corresponding to the current viewport area is extracted from the 3D factory background model, and this sub-model is dynamically loaded into the rendering scene as needed. When the camera angle moves or the viewport changes, the previously loaded background sub-model can be unloaded or replaced according to the updated viewport area, thereby achieving localized and on-demand loading of the 3D factory background model to reduce the rendering load and improve the real-time visualization performance of the factory-level scene.
[0059] As shown in Figure 2, the visualization generation system for the nuclear power plant's cable path includes: a cable data acquisition module 210, a path parsing module 220, a node parsing module 230, a path generation module 240, and a visualization module 250. The cable data acquisition module 210 acquires cable data to characterize the cable laying status. The path parsing module 220 parses the path information of the cable data to obtain multiple nodes arranged in path order; the path information describes the cable path. The node parsing module 230 extracts the node spatial information corresponding to each node; the node spatial information characterizes the spatial position and orientation attributes of the corresponding node in the 3D scene. The path generation module 230 arranges the node spatial information sequentially according to the corresponding node arrangement order to generate cable path spatial information characterizing the cable path. The visualization module 240 performs visualization processing on the cable path spatial information to generate a visualization display result.
[0060] Specific limitations regarding the visualization generation system for nuclear power plant cable routes can be found in the limitations on the visualization generation method for nuclear power plant cable routes described above, and will not be repeated here. Each module in the aforementioned visualization generation system for nuclear power plant cable routes can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware format, or stored in the memory of a computer device in software format, so that the processor can call the corresponding operations of each module.
[0061] It should be noted that, in order to highlight the innovative aspects of this invention, this embodiment does not include modules that are not closely related to solving the technical problems proposed by this invention, but this does not mean that there are no other modules in this embodiment.
[0062] As shown in Figure 3, the electronic device 3 may include a memory 31, a processor 32 and a bus, and may also include a computer program stored in the memory 31 and that can run on the processor 32, such as a visualization generation program for nuclear power plant cable paths.
[0063] The memory 31 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 31 can be an internal storage unit of the electronic device 3, such as a portable hard drive. In other embodiments, the memory 31 can be an external storage device of the electronic device 3, such as a plug-in portable hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device 3. Furthermore, the memory 31 can include both internal and external storage units of the electronic device 3. The memory 31 can be used not only to store application software and various types of data installed on the electronic device 3, such as the code generated for visualizing nuclear power plant cable paths, but also to temporarily store data that has been output or will be output.
[0064] In some embodiments, processor 32 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits packaged with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. Processor 32 is the control unit of electronic device 3, connecting various components of the entire electronic device 3 via various interfaces and lines. It executes programs or modules stored in memory 31 (such as a visualization generation program for nuclear power plant cable paths) and calls data stored in memory 31 to perform various functions and process data in electronic device 3.
[0065] Processor 32 executes the operating system of electronic device 3 and various installed applications. Processor 32 executes applications to implement the steps in the above-described method for visually generating nuclear power plant cable paths.
[0066] For example, a computer program can be divided into one or more modules, one or more of which are stored in memory 31 and executed by processor 32 to complete this application. One or more modules can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in electronic device 3. For example, the computer program can be divided into a cable data acquisition module 210, a path parsing module 220, a node parsing module 230, a path generation module 240, and a visualization module 250.
[0067] The integrated unit implemented as a software functional module described above can be stored in a computer-readable storage medium, which can be non-volatile or volatile. The software functional module stored in the storage medium includes several instructions to cause a computer device (which may be a personal computer, computer equipment, or network device, etc.) or processor to execute some functions of the visualization generation method for nuclear power plant cable paths according to various embodiments of this application.
[0068] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A method for visually generating cable paths in nuclear power plants, characterized in that, The method includes: acquiring cable data to characterize cable laying conditions; parsing the path information of the cable data to obtain multiple nodes arranged in path order; wherein the path information is used to describe the cable path; extracting the node spatial information corresponding to each node; wherein the node spatial information is used to characterize the spatial position and attitude attributes of the corresponding node in the three-dimensional scene; arranging the node spatial information sequentially according to the arrangement order of the corresponding nodes to generate cable path spatial information to characterize the cable path; and visualizing the cable path spatial information to generate a visualization result.
2. The method for visually generating nuclear power plant cable paths according to claim 1, characterized in that, The step of parsing the path information of the cable data to obtain multiple nodes arranged in the path order includes: segmenting the path information based on preset path parsing rules to obtain candidate strings for multiple nodes; and identifying the node type of each candidate string to obtain the node type corresponding to each candidate string.
3. The method for visually generating nuclear power plant cable paths according to claim 1, characterized in that, The steps for extracting the node spatial information corresponding to each node include: determining the three-dimensional model component corresponding to each node identifier from the three-dimensional design component library based on the node identifier of each node, and determining the spatial attributes of the corresponding node accordingly; and performing structured processing on the spatial attributes of each node to generate the node spatial information corresponding to the node.
4. The method for visually generating nuclear power plant cable paths according to claim 3, characterized in that, For each node, the step of determining the corresponding 3D model component from the 3D design component library based on the node's node identifier, and determining the spatial attributes of the corresponding node accordingly, includes: determining whether a 3D component corresponding to the node identifier exists in the 3D design component library based on the node identifier; if a 3D component corresponding to the node identifier exists, reading the geometric coordinates, direction vector, and component identifier of the 3D component in the model coordinate system, and converting the geometric coordinates into global spatial coordinates based on a preset coordinate transformation matrix, and using the global spatial coordinates, direction vector, and component identifier as the spatial attributes of the node; if no 3D component corresponding to the node identifier exists, re-determining its corresponding spatial attributes based on the next node, until all nodes have been processed.
5. The method for visually generating nuclear power plant cable paths according to claim 4, characterized in that, After all nodes have been processed, the method further includes: for each node that does not have a spatial attribute, perform the following interpolation processing as the current node: interpolate the global spatial coordinates of each node adjacent to the current node to generate the global spatial coordinates of the node; generate the direction vector of the current node based on the direction vectors of each node adjacent to the current node, and use the generated global spatial coordinates and direction vector as the spatial attributes of the current node.
6. The method for visually generating nuclear power plant cable paths according to claim 1, characterized in that, The node spatial information includes the global spatial coordinates, direction vectors, and component identifiers of the nodes in a preset 3D model. The step of arranging the spatial information of each node in sequence according to the arrangement order of the corresponding nodes to generate cable path spatial information for representing the cable path includes: connecting the global spatial coordinates of adjacent nodes according to the arrangement order of each node to generate a spatial line segment sequence for representing the node order; smoothing the spatial line segment sequence based on the direction vectors of adjacent nodes to generate a continuous spatial path trajectory; and associating the spatial path trajectory with the component identifiers of each node it includes to generate cable path spatial information for representing the cable path.
7. The method for visually generating nuclear power plant cable paths according to claim 6, characterized in that, The smoothing process is B-spline smoothing.
8. The method for visually generating nuclear power plant cable paths according to claim 1, characterized in that, The cable data includes multiple cable sub-data, each cable sub-data corresponding to the laying status of a cable. The step of visualizing the cable path spatial information and generating a visualization display result includes: based on a preset display strategy, selecting target cables from the cable data that correspond to the display strategy; and generating a visualization display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cables.
9. The method for visually generating nuclear power plant cable paths according to claim 8, characterized in that, When the display strategy is to display a single cable, the step of generating a visualization display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable includes: generating a three-dimensional geometric model corresponding to the target cable based on the cable path spatial information of the target cable; loading the cable tray model and equipment model corresponding to each node from a preset three-dimensional space model library based on the node name of each node; and combining and rendering the three-dimensional geometric model with the corresponding cable tray model and equipment model to generate a three-dimensional visualization display result of the target cable.
10. The method for visually generating nuclear power plant cable paths according to claim 8, characterized in that, When the display strategy is a system-wide display, the step of generating the visualization display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable includes: for each target cable corresponding to the system: generating a three-dimensional geometric model corresponding to the target cable based on the cable path spatial information of the target cable; loading the corresponding cable tray model and equipment model from a preset three-dimensional spatial model library based on the node names of each node in the cable path spatial information of the target cable; combining and rendering the three-dimensional geometric model of each target cable with the corresponding cable tray model and equipment model, and displaying different target cables in different colors to generate the visualization display result of the cable path under the system scope.
11. The method for visually generating nuclear power plant cable paths according to claim 8, characterized in that, When the display strategy is a factory-wide display, the step of generating a visual display result of the cable path corresponding to the display strategy based on the cable path spatial information of the target cable includes: for each target cable corresponding to the factory: generating a three-dimensional geometric model corresponding to the target cable based on the cable path spatial information of the target cable; loading the corresponding cable tray model and equipment model from a preset three-dimensional spatial model library based on the node names of each node in the cable path spatial information of the target cable; loading the three-dimensional factory background model corresponding to the factory from a background model library based on the factory's identifier; and globally combining and rendering the three-dimensional geometric model of each target cable with the corresponding cable tray model, equipment model, and the three-dimensional factory background model to generate a visual display result of the cable path within the factory area.
12. The method for visually generating nuclear power plant cable paths according to claim 11, characterized in that, After generating the visualization results of the cable path within the factory area, the method further includes: responding to the visible area of the current camera, dynamically loading a 3D factory background sub-model corresponding to the current visible area from the 3D factory background model.
13. A visualization generation system for nuclear power plant cable routes, characterized in that, The system includes: a cable data acquisition module for acquiring cable data characterizing cable laying conditions; a path parsing module for parsing the path information of the cable data to obtain multiple nodes arranged in path order; wherein the path information describes the cable path; a node parsing module for extracting the node spatial information corresponding to each node; wherein the node spatial information characterizes the spatial position and orientation attributes of the corresponding node in a three-dimensional scene; a path generation module for sequentially arranging the node spatial information according to the arrangement order of the corresponding nodes to generate cable path spatial information characterizing the cable path; and a visualization module for visualizing the cable path spatial information to generate a visualization display result.
14. An electronic device, characterized in that, The electronic device includes: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the visualization generation method for nuclear power plant cable paths as described in any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by the computer's processor, causes the computer to perform the visualization generation method for the nuclear power plant cable path as described in any one of claims 1 to 12.