Method and system for converting three-dimensional piping models for nuclear power plant process systems

Through the automatic conversion method based on PCF files, the low efficiency of traditional modeling of 3D piping models of nuclear power plant process systems is solved. The efficient and accurate conversion of 3D piping models to FS simulation models is achieved. It supports multiple 3D design software and improves modeling quality and efficiency.

CN117216920BActive Publication Date: 2025-10-24SHANGHAI NUCLEAR ENGINEERING RESEARCH & DESIGN INSTITUTE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311269906.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2025-10-24
Estimated Expiration
2043-09-27

AI Technical Summary

Technical Problem

The traditional modeling method for 3D piping models of nuclear power plant process systems requires manual creation of FS components, which is time-consuming, labor-intensive, and error-prone. In addition, the development interfaces of different 3D piping layout design software are inconsistent, resulting in low modeling efficiency.

Method used

This paper provides an automatic conversion method based on PCF files. It uses component and parameter mapping tables to quickly convert 3D piping layout models into FS simulation models. It supports multiple 3D design software, obtains component information by parsing PCF files, establishes connection relationships, and uses connectivity graph algorithms to detect and repair breakpoints and reconstruct connection directions.

Benefits of technology

The modeling efficiency and quality of the 3D piping model of the nuclear power plant process system are improved, and the automatic conversion of the 3D model to the FS simulation model is realized. It supports multiple 3D design software and meets the requirements of the FS software for the model connection direction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117216920B_ABST
    Figure CN117216920B_ABST
Patent Text Reader

Abstract

The application provides a conversion method and system for a three-dimensional pipeline model of a nuclear power plant process system, including: obtaining a PCF file of a three-dimensional pipeline model to be converted, and obtaining element information by parsing; setting model conversion information; converting elements in the PCF file to be converted into a data structure corresponding to a target type based on the set model conversion information and a preset element and parameter mapping table; wherein the element and parameter mapping table stores an element parameter mapping relationship between element parameters in the PCF file and element parameters of the target type; traversing the read elements, and constructing a connection relationship between elements based on the connection point coordinates of each element; converting the obtained element data structure and the connection relationship into a script corresponding to a target type model; correcting the coordinates of elements in the script, and reconstructing the direction of the element connection relationship, to obtain a converted three-dimensional pipeline model.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of model conversion, and particularly relates to a conversion method and system for a three-dimensional pipeline model of a process system of a nuclear power plant. BACKGROUND

[0002] The statements in this section merely provide background information related to the present application and do not necessarily constitute the prior art.

[0003] FlowSystem (hereinafter referred to as FS) is a system-level pipe network simulation analysis software, which is used for quantitative analysis of a fluid pipe network system to optimize design. Through the FS software, accurate pressure, flow, flow rate and temperature analysis of an official system can be performed, and rapid optimization design can be achieved, thereby helping enterprises to reduce production cost, improve product performance, shorten product development time and test times, and improve system design quality.

[0004] The process system of a nuclear power plant is often large in scale, has many components and large data volume. A traditional modeling method mainly refers to a three-dimensional model or an ISO drawing, and manually creates components of the FS and fills in data. This requires special technical personnel and a large amount of time. The ISO drawing not only contains a pipe, but also contains a large number of pipe components such as a flange, a through-wall component, a valve and a tee, and standard information thereof. However, specific physical parameters required for modeling of these pipe components need to be manually obtained from a specification, and a large amount of manual work is required, and errors are prone to occur. Meanwhile, different three-dimensional pipeline arrangement design software has inconsistent development interfaces, and separate customization development is time-consuming and laborious. SUMMARY

[0005] In order to solve the above problems, the present application provides a conversion method and system for a three-dimensional pipeline model of a process system of a nuclear power plant. The scheme is based on automatic conversion of a model in the FS software from a PCF file commonly used by mainstream modeling software, can quickly convert a three-dimensional pipeline arrangement model into an FS simulation model, greatly improves modeling efficiency and quality, supports multiple three-dimensional design software such as PDS, Smart3D and PDMS, and has strong universality.

[0006] According to a first aspect of an embodiment of the present application, a conversion method for a three-dimensional pipeline model of a process system of a nuclear power plant is provided, which comprises the following steps.

[0007] A PCF file of a three-dimensional pipeline model to be converted is obtained, and component information is obtained by analysis;

[0008] Model conversion information is set;

[0009] Based on the set model conversion information and the preset component and parameter mapping table, the components in the PCF file to be converted are converted into a data structure corresponding to the target type; wherein the component and parameter mapping table stores the mapping relationship between the component parameters in the PCF file and the component parameters of the target type;

[0010] Traverse the read components and build the connection relationship between components based on the connection point coordinates of each component;

[0011] Convert the obtained component data structure and connection relationship into a script corresponding to the target type model;

[0012] The coordinates of the components in the script are corrected, and the directions of the component connection relationships are reconstructed to obtain a converted three-dimensional pipeline model.

[0013] Furthermore, the method also includes model breakpoint detection, specifically: representing the model to be converted as a graph data structure composed of vertices and edges, wherein components and nodes are used as vertices, and the connection relationship between components or nodes is used as an edge; based on the obtained graph data structure, according to the calculated connected components and vertex degrees, whether there are breakpoints in the model is detected, and when a breakpoint exists, corresponding repair processing is performed.

[0014] Furthermore, the coordinates of the components in the script are corrected, and the direction of the component connection relationship is reconstructed, specifically: the coordinates of the first point of the model are used as the origin, and based on the change value of the coordinates of this point, the other coordinates of the model are adjusted accordingly; after the breakpoint detection of the graph data structure is completed, an arbitrary node is selected, and a traversal path of the graph is created through the depth-first traversal algorithm of the connected graph, and the order relationship of the components in the path is used as the connection direction of the components.

[0015] Furthermore, the connection relationship between components is constructed based on the connection point coordinates of each component, specifically: when it is determined that the connection points of two components coincide, a connection relationship is created, wherein the connection relationship is created in advance inside the PCF file, and then the connection relationship between the PCF components is created, and finally plugs are created for all closed endpoints.

[0016] Furthermore, to determine whether component connection points coincide, the following constraints must be met:

[0017] |p1.X–p2.X| <tolerance;

[0018] |p1.Y–p2.Y| <tolerance;

[0019] |p1.Z–p2.Z| <tolerance。

[0020] Wherein, p1.X, p1.Y, p1.Z are three-dimensional coordinates of the first element, p2.X, p2.Y, p2.Z are three-dimensional coordinates of the second element, and tolerance is the tolerance.

[0021] Further, the obtained element data structure and connection relationship are converted into a script corresponding to the target type model, and the two-dimensional coordinates of the element need to be converted from three-dimensional coordinates to two-dimensional coordinates, and are specifically represented as follows:

[0022]

[0023]

[0024] Wherein, X and Y are two-dimensional coordinates of the element; X3, Y e , and Z e are projection reference point coordinates; X c , Y c , and Z c are actual three-dimensional coordinates of the element.

[0025] Further, in the element and parameter mapping table, the element mapping table includes the element name in the PCF file and the corresponding element name in the FS software; and the parameter mapping table includes the element name in the PCF file, the element parameter description format in the PCF file, the element parameter name in the FS software, and the parameter default value.

[0026] According to a second aspect of the embodiment of the present application, a conversion system for a three-dimensional pipeline model of a process system of a nuclear power plant is provided, comprising:

[0027] A file reading module is configured to obtain a PCF file of a three-dimensional pipeline model to be converted, and obtain element information by parsing;

[0028] A model information setting module is configured to set model conversion information;

[0029] An element reading module is configured to convert elements in the PCF file to be converted into a data structure corresponding to a target type based on the set model conversion information and a preset element and parameter mapping table; wherein the element and parameter mapping table stores a mapping relationship between element parameters in the PCF file and element parameters of the target type;

[0030] A connection relationship creating module is configured to traverse the read elements, and construct a connection relationship between the elements based on the connection point coordinates of the elements;

[0031] An FS script creating module is configured to convert the obtained element data structure and connection relationship into a script corresponding to the target type model;

[0032] A reconstruction module is used to correct the coordinates of the elements in the script and reconstruct the direction of the element connection relationship, so as to obtain the converted three-dimensional pipeline model.

[0033] According to a third aspect of the embodiments of the present application, an electronic device is provided, which comprises a memory, a processor and a computer program stored in the memory and run on the memory, and the processor implements the method for converting a three-dimensional pipeline model of a process system of a nuclear power plant when the program is executed.

[0034] According to a fourth aspect of the embodiments of the present application, a non-transitory computer readable storage medium is provided, which stores a computer program, and the program is executed by a processor to implement the method for converting a three-dimensional pipeline model of a process system of a nuclear power plant.

[0035] Compared with the prior art, the present application has the following beneficial effects:

[0036] (1) The present application provides a method and system for converting a three-dimensional pipeline model of a process system of a nuclear power plant, which is based on the automatic conversion of PCF files commonly used in mainstream modeling software to models in FS software, can quickly convert a three-dimensional pipeline layout model into an FS simulation model, greatly improves the modeling efficiency and quality, and supports multiple three-dimensional design software such as PDS, Smart3D and PDMS, and has strong versatility.

[0037] (2) The present application is based on the proposed three-dimensional model to two-dimensional model projection algorithm, which effectively solves the problem of element arrangement in the model conversion process.

[0038] (3) The present application converts the pipe network model into a data structure of a connected graph, uses a connected component algorithm of the connected graph to realize the function of model connectivity checking, and uses a depth-first search algorithm to realize the conversion of an undirected model into a directed model. It meets the requirements of FS software for model connection direction. BRIEF DESCRIPTION OF DRAWINGS

[0039] The drawings accompanying the specification of the present application form a part thereof, serve to provide further understanding of the present application, and together with the description of the exemplary embodiments of the present application and their description serve to explain the present application, and do not constitute improper limitations on the present application.

[0040] Figure 1 A structure schematic diagram of a conversion system for a three-dimensional pipeline model of a process system of a nuclear power plant is provided in the embodiments of the present application.

[0041] Figure 2 A schematic diagram of element information in PCF is provided in the embodiments of the present application.

[0042] Figure 3 A schematic diagram of a PCF data model structure is provided in the embodiments of the present application.

[0043] Figure 4 FS script information schematic diagram described in the embodiment of the application;

[0044] Figure 5 Model conversion execution flow schematic diagram described in the embodiment of the application;

[0045] Figure 6 The conversion system interface schematic diagram described in the embodiment of the application;

[0046] Figure 7 Graph data structure schematic diagram described in the embodiment of the application;

[0047] Figure 8 Depth-first search principle schematic diagram described in the embodiment of the application. DETAILED DESCRIPTION

[0048] The application will be further described below in conjunction with the accompanying drawings and embodiments.

[0049] It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the application. Unless otherwise indicated, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the application pertains.

[0050] It should be noted that the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit exemplary embodiments according to the present application. As used herein, the singular form is intended to include the plural form unless the context clearly indicates otherwise, and it should also be understood that when the terms "comprise" and / or "include" are used in the specification, there is a presence of a feature, step, operation, device, component and / or combinations thereof.

[0051] The embodiments in the application and the features in the embodiments can be combined with each other without conflict.

[0052] Embodiment one:

[0053] The purpose of this embodiment is to provide a conversion method for a three-dimensional pipe model of a nuclear power plant process system.

[0054] A conversion method for a three-dimensional pipe model of a nuclear power plant process system, comprising:

[0055] Obtain the PCF file of the three-dimensional pipe model to be converted, and obtain element information by parsing;

[0056] Set the model conversion information;

[0057] Convert the element in the PCF file to be converted into a data structure corresponding to the target type based on the set model conversion information and the preset element and parameter mapping table; wherein the element and parameter mapping table stores the mapping relationship between the element parameters in the PCF file and the element parameters of the target type;

[0058] Traverse the read elements and construct the connection relationship between the elements based on the connection point coordinates of each element;

[0059] Convert the obtained element data structure and connection relationship into a script corresponding to the target type model;

[0060] Correct the coordinates of the elements in the script and reconstruct the direction of the element connection relationship to obtain the converted three-dimensional pipeline model.

[0061] In specific implementation, the method further includes model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein the elements and nodes are used as vertices, and the connection relationship between the elements or nodes is used as edges; based on the obtained graph data structure, detecting whether the model has a breakpoint according to the calculated connected components and the degree of the vertices, and performing corresponding repair processing when the breakpoint exists.

[0062] In specific implementation, the correction of the coordinates of the elements in the script and the reconstruction of the direction of the element connection relationship are specifically: taking the coordinates of the first point of the model as the origin, and adjusting the other coordinates of the model based on the change value of the point coordinates; after the graph data structure breakpoint detection is completed, an arbitrary node is selected, and a traversal path of the graph is created through the depth-first traversal algorithm of the connected graph, and the order of the elements in the path is used as the connection direction of the elements.

[0063] In specific implementation, the construction of the connection relationship between the elements based on the connection point coordinates of each element is specifically: judging whether the connection points of two elements coincide, wherein the connection relationship is created in advance in the PCF file, the connection relationship between the elements in the PCF is created again, and finally the plugs are created for all closed end points.

[0064] In specific implementation, whether the connection points of the elements coincide needs to meet the following constraints:

[0065] |p1.X - p2.X| < tolerance;

[0066] |p1.Y - p2.Y| < tolerance;

[0067] |p1.Z - p2.Z| < tolerance.

[0068] Wherein, p1.X, p1.Y, p1.Z are three-dimensional coordinates of the first element, p2.X, p2.Y, p2.Z are three-dimensional coordinates of the second element, and tolerance is the tolerance.

[0069] In a specific implementation, the obtained element data structure and connection relationship are converted into a script corresponding to a target type model, and two-dimensional coordinates of the element need to be converted from three-dimensional coordinates to two-dimensional coordinates, and the specific representation is as follows:

[0070]

[0071]

[0072] Wherein, X and Y are two-dimensional coordinates of the element; X3, Y e , and Z e are projection reference point coordinates; X c , Y c , and Z c are actual three-dimensional coordinates of the element.

[0073] In a specific implementation, the element mapping table in the element and parameter mapping table includes an element name in a PCF file and an element name corresponding to FS software; and the parameter mapping table includes an element name in the PCF file, an element parameter description format in the PCF file, an element parameter name in the FS software, and a parameter default value.

[0074] In order to facilitate understanding, the scheme described in the embodiment is described in detail as follows with reference to the accompanying drawings:

[0075] Through research, the inventors found that mainstream three-dimensional piping arrangement design software usually supports PCF file output. The PCF file, i.e., a piping component file, is a standard format for piping design data exchange and is widely used for data exchange for generating piping ISO drawings. The PCF is a file format defined by the drawing software ISOGEN, and the file data is intuitive and easy to read and contains the data required for generating piping ISO drawings. Based on this, the scheme described in the embodiment provides a conversion system for a three-dimensional piping model of a process system of a nuclear power plant, which supports conversion of a three-dimensional piping arrangement model of mainstream software such as PDS, Smart3D, and PDMS into an FS simulation model, and can effectively expand the applicability of the FS simulation software. The scheme mainly adopts the following technical concept: by analyzing a PCF file in a universal format derived from a three-dimensional piping model, automatic generation from a three-dimensional arrangement model to an FS script file is realized, and a simulation model is automatically created based on the FS script. In this way, automatic conversion of the three-dimensional piping arrangement to the FS model is realized, the step of secondary modeling by the designer is saved, the data utilization rate of the three-dimensional piping model is improved, and the workload of the designer is reduced. The entire process is fully automatic, easy to operate, and high in production efficiency.

[0076] Specifically, as shown in Figure 1 , the system described in the embodiment specifically includes the following processing modules:

[0077] (1) PCF file reading module:

[0078] used to realize the functions of PCF file import and reading. The module is realized in the system interactive interface, the user selects the PCF file through the interface button, the system parses all the piping elements of the PCF file, and reads the type information, coordinate information, and geometric parameters (length, inner diameter, etc.). The module is realized through a pre-set interactive interface, and the imported PCT file is displayed through the TreeView control in the interface.

[0079] (2) Model information setting module:

[0080] used to set the information of the created simulation model, including the model name, connection tolerance, and projection reference point information. The module is realized in the system interactive interface, and the user inputs the information, which is used for subsequent model creation. As shown in Figure 6 , the module is realized through a pre-set interactive interface, and the data table is displayed through the DataGridView control in the interface.

[0081] (3) Element reading module:

[0082] The module identifies element type, element parameter and other information based on the keywords and mapping table of elements in the PCF, and converts them into corresponding data structures. The element information in the PCF file is referred to Figure 2 Specifically, the module reads the information of elements in the PCF file, reads the element type from the mapping table, and reads the associated parameters of the current type of element from the mapping table. It should be noted that some types of elements need to be specially processed, including:

[0083] Valve: The valve element in the PCF file is represented by VALVE. When simulating and modeling, the type of valve needs to be distinguished, such as gate valve, check valve, butterfly valve, etc. The information of these subdivided types of valves is stored in the description keyword, so it is necessary to read and create simulation elements according to the subdivided types;

[0084] Size head, check valve: These two types of elements have directionality, i.e. there is a difference between positive connection and direction connection. The direction attribute in the PCF needs to be read and the element needs to be set;

[0085] Nozzle seat: This type of element is a branch element of the pipe, i.e. a branch pipe is drawn out from the main pipe. The pipe element in the FS software cannot directly draw out a branch pipe, so the original pipe needs to be broken and a tee element needs to be added for equivalent replacement.

[0086] (4) Connection relationship creation module:

[0087] This module iterates through the read elements, creates connection relationships between elements through the coordinates of the connection points of the elements, and obtains the model structure and element connection relationship as shown in Figure 3 where Item represents an element and Pin represents a connection point. Whether to create a connection relationship is determined by the X, Y and Z coordinates of the connection point. After the model is built, the connectivity of each PCF is checked, and if the elements in a single PCF are not connected, a prompt will be given.

[0088] Specifically, when the connection points of two elements coincide, a connection relationship is created. The connection relationship is first created within the PCF file, then the connection relationship between elements in different PCFs is created, and finally a plug is created for all closed end points.

[0089] Where the coincidence of element connection points should satisfy the following conditions at the same time, where the value of tolerance is set in the interface:

[0090] a) Math.Abs(p1.X-p2.X)<tolerance;

[0091] b) Math.Abs(p1.Y-p2.Y)<tolerance;

[0092] c) Math.Abs(p1.Z - p2.Z) < tolerance.

[0093] where Math.Abs() is the absolute value function.

[0094] In the specific implementation, since the three-dimensional model can have modeling quality problems, it is also necessary to check the breakpoints of the model. To solve the above problems, the pipe network model is abstracted into a graph data structure. A graph is composed of a set of vertices and a set of edges between vertices, denoted as G(V, E), where G represents a graph, V is a set of vertices in the graph G, and E is a set of edges in the graph G. For FS model elements, nodes are vertices V and connections are edges E, as shown in Figure 7 .

[0095] The advantage of abstracting the model into a graph data structure is that it can be processed using general algorithms. Here, two concepts of "connected component" and "degree of vertex" are introduced. Two vertices are connected if there is at least one path between them, and the connected component represents how many non-connected areas the graph has. This value can be obtained by the depth-first search algorithm of the graph. When the connected component of the model is greater than 1, the model has breakpoints.

[0096] (5) FS script creation module:

[0097] This module converts the model structure and element connection relationship read into FS software scripts. The structure of the FS script includes element creation, element parameter setting, connection relationship creation, as Figure 4 indicated in the reference. The X and Y coordinate parameters of element creation use an algorithm that projects the three-dimensional model onto a two-dimensional plane.

[0098] Specifically, through the element information in the PCF file, the information of the element of this type is found in the configuration file, including the element name, parameter table, etc. in the FS software. These information will be used for script creation of FS software. The format of the FS software script is as follows:

[0099] Element creation: sys.new{ItemType}(x, y)

[0100] Parameter setting: {ItemName}.set{AttributeName}({AttributeValue})

[0101] Where:

[0102] ItemType represents the element type

[0103] ItemName represents the element name

[0104] AttributeName represents the parameter name

[0105] AttributeValue represents parameter value

[0106] For X, Y coordinates of elements, conversion from three-dimensional coordinates to two-dimensional is required. The principle of conversion is to project the three-dimensional pipe arrangement model from a fixed viewpoint to a specified two-dimensional plane. The projection algorithm is as follows:

[0107]

[0108]

[0109] wherein subscript e represents the viewpoint coordinate, and subscript c represents the real coordinate of the pipe fitting.

[0110] (6) Model origin and direction reconstruction module:

[0111] The script based on three-dimensional model conversion cannot directly adapt to the characteristics of FS, and the element coordinates need to be corrected. Meanwhile, the three-dimensional model connection is directionless, and this module converts the connection relationship in the FS script into a direction.

[0112] Specifically, the origin correction: taking the coordinate of the first point as a reference, the coordinate (X, Y) of the point is adjusted to (0, 0), and the coordinate correction coefficient of the model is (ΔX, ΔY). The coordinates of all other elements are (X-ΔX, Y-ΔY).

[0113] Pipe network connection direction correction: the three-dimensional model connection is directionless, and this module converts the connection relationship in the FS script into a direction. The conversion method is based on the graph data structure mentioned above: after the graph data structure is constructed and checked for connectivity, an arbitrary boundary node is selected (if there is no boundary node, any node can be selected), and the depth-first search algorithm of the connected graph is used to create a traversal path of the graph. The order of elements in the path is the connection direction of the elements. The following describes the depth-first search algorithm (refer to Figure 8 ) with a simple example. Depth-first search is performed on the undirected graph starting from A: the access order is A->B->G->E->C->D->H->F.

[0114] (7) Element and parameter mapping table configuration:

[0115] The mapping relationship between elements in the PCF file and elements in the FS software is stored, and the mapping relationship between element parameters in the PCF file and element parameters in the FS software is stored. During the model conversion process, these information will be read.

[0116] Specifically, the mapping table of the module is stored by an Excel file. The element mapping table includes: element name in the PCF file, element name in the FS software, a total of two columns; the parameter mapping table includes: element name in the PCF file, element parameter description format in the PCF file, element parameter name in the FS software, and parameter default value, a total of four columns.

[0117] As shown in Figure 5 The conversion process of the model is as follows:

[0118] First, the user selects the PCF file used for modeling through the interactive interface, sets the model information (model name, connection tolerance, and projection reference point information) on the interface, clicks the button to execute the model conversion function, the system reads the element information from the PCF file, judges the element type according to the mapping table, judges based on the coordinates of the element connection points, and creates the connection relationship between elements. After the model is built, the connectivity of each PCF is checked, and if the elements in a single PCF are not connected, a prompt is given, and the user can judge whether to pass according to the prompt. If it does not pass, return to modify the PCF file, if you choose to pass, execute the subsequent steps. Finally, according to the mapping relationship of the elements and the parameters, the FS modeling script is output, and the origin and direction are corrected according to the modeling requirements of the FS software.

[0119] The scheme described in this embodiment is developed using C# language. It can be understood that in one or more embodiments, the scheme can also be implemented using other programming languages (such as C, Java, Python, etc.).

[0120] The scheme described in this embodiment uses Excel to record configuration information. It can be understood that in one or more embodiments, other files or databases can be used for storage, such as json, XML files, SQLite, SQLServer databases, etc.

[0121] This embodiment converts the model by reading the PCF file. It can be understood that in one or more embodiments, the same type of file (such as IDF file) can be used for modeling.

[0122] Embodiment two:

[0123] The purpose of this embodiment is to provide a conversion system for a three-dimensional pipe model of a process system of a nuclear power plant.

[0124] A conversion system for a three-dimensional pipe model of a process system of a nuclear power plant, comprising:

[0125] A file reading module for obtaining a PCF file of a three-dimensional pipe model to be converted and obtaining element information by parsing;

[0126] a model information setting module, configured to set model conversion information;

[0127] an element reading module, configured to convert elements in the PCF file to be converted into data structures corresponding to target types based on the set model conversion information and a preset element and parameter mapping table, wherein the element and parameter mapping table stores a mapping relationship between element parameters in the PCF file and element parameters of the target types;

[0128] a connection relationship creating module, configured to traverse the read elements and construct connection relationships between the elements based on connection point coordinates of the elements;

[0129] an FS script creating module, configured to convert the obtained element data structures and the connection relationships into scripts corresponding to the target type models;

[0130] a reconstruction module, configured to correct coordinates of the elements in the scripts and reconstruct directions of the element connection relationships, to obtain a converted three-dimensional pipeline model.

[0131] The system described in this embodiment corresponds to the method described in Embodiment One, and the technical details have been described in detail in Embodiment One, and thus will not be described here again.

[0132] In more embodiments, there are also provided:

[0133] An electronic device, comprising a memory and a processor, and computer instructions stored in the memory and running on the processor, when the computer instructions are run by the processor, the method described in Embodiment Two is completed. For brevity, this will not be described here again.

[0134] It should be understood that in this embodiment, the processor can be a central processing unit CPU, and the processor can also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, ready-to-program gate arrays FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0135] The memory can include read-only memory and random access memory, and provide instructions and data to the processor, and a part of the memory can also include non-volatile random access memory. For example, the memory can also store device type information.

[0136] A computer readable storage medium for storing computer instructions, when the computer instructions are executed by a processor, the method described in Embodiment Two is completed.

[0137] The method in the embodiment two can be directly embodied as being completed by a hardware processor or being completed by a combination of hardware and software modules in the processor. The software modules can be located in a storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, or the like. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware to complete the steps of the above method. To avoid repetition, no further detailed description is given here.

[0138] Those skilled in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software mode depends on the specific application and design constraints of the technical solutions. A person skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0139] The conversion method and system for the three-dimensional pipeline model of the process system of the nuclear power plant provided by the above embodiments can be realized and have a broad application prospect.

[0140] The above only describes the preferred embodiments of the present application and is not used to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims

1. A conversion method for a three-dimensional piping model of a process system of a nuclear power plant, characterized in that, The method comprises the following steps: obtaining a PCF file of a three-dimensional pipeline model to be converted and obtaining element information by parsing; setting model conversion information; converting elements in the PCF file to be converted into data structures corresponding to target types based on the set model conversion information and a preset element and parameter mapping table, wherein the element and parameter mapping table stores an element parameter mapping relationship between element parameters in the PCF file and element parameters of the target types; iteratively reading the elements and constructing a connection relationship between the elements based on connection point coordinates of the elements; converting the obtained element data structures and the connection relationship into a script corresponding to a target type model; correcting coordinates of elements in the script and reconstructing directions of element connection relationships to obtain a converted three-dimensional pipeline model; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; 2. The conversion method of claim 1 for a three-dimensional piping model of a process system of a nuclear power plant, characterized in that, The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; 3. The method for converting a three-dimensional piping model for a nuclear power plant process system according to claim 2, wherein: The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; 4. The method for converting a three-dimensional piping model of a process system of a nuclear power plant of claim 1, wherein, The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; Wherein, X, Y are two-dimensional coordinates of the element; X3, Y e , Z e are the coordinates of the projection reference point; X c , Y c , Z c are actual three-dimensional coordinates of the element.

5. The method for converting a three-dimensional piping model of a process system of a nuclear power plant of claim 1, wherein, The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; 6. A conversion system for a three-dimensional piping model of a process system of a nuclear power plant, characterized by, The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed of vertices and edges, wherein elements and nodes are used as vertices, and a connection relationship between the elements or the nodes is used as an edge; based on the obtained graph data structure, whether the model has a breakpoint is detected according to a calculated connected component and a degree of a vertex, and when the breakpoint exists, corresponding repair processing is performed; The method further comprises model breakpoint detection, specifically: representing the model to be converted into a graph data structure composed a model information setting module configured to set model conversion information; an element reading module configured to convert elements in a PCF file to be converted into data structures corresponding to target types based on the set model conversion information and a preset element and parameter mapping table, wherein the element and parameter mapping table stores a mapping relationship between element parameters in the PCF file and element parameters of the target types; a connection relationship creating module configured to traverse the read elements and construct connection relationships between the elements based on connection point coordinates of the elements; an FS script creating module configured to convert the obtained element data structures and connection relationships into scripts corresponding to the target type models; a reconstructing module configured to correct coordinates of elements in the scripts and reconstruct directions of element connection relationships to obtain a converted three-dimensional pipeline model; the model breakpoint detection, specifically, representing the model to be converted as a graph data structure composed of vertices and edges, wherein elements and nodes are used as the vertices and connection relationships between the elements or nodes are used as the edges; based on the obtained graph data structure, detecting whether the model has a breakpoint according to calculated connected components and degrees of the vertices, and performing corresponding repair processing when the breakpoint exists; the correction of the coordinates of the elements in the scripts and the reconstruction of the directions of the element connection relationships, specifically, taking a coordinate of a first point of the model as an origin and adjusting other coordinates of the model based on a change value of the coordinate of the point; after the graph data structure breakpoint detection is completed, selecting an arbitrary node and creating a traversal path of the graph through a depth-first traversal algorithm of a connected graph, and using a sequence relationship of elements in the path as a connection direction of the elements.

7. An electronic device, comprising: The program is executed by the processor to implement the conversion method of the three-dimensional pipeline model of the nuclear power plant process system according to any one of claims 1-5.

8. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the conversion method of the three-dimensional pipeline model of the nuclear power plant process system according to any one of claims 1-5.

Citation Information

Patent Citations

  • Method for data conversion between stress analysis and three-dimensional models in pipeline design

    CN106383955A

  • Thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal

    CN111950105A