Simulation automatic modeling method based on process flow diagram
Through the automatic modeling method based on the process flow chart, information is directly extracted from the process flow chart, and node division, boundary division and model coding are implemented using program automation, which solves the problems of low simulation modeling efficiency and unstable quality in large-scale projects, and realizes efficient and standardized simulation modeling.
Patent Information
- Application Number
- CN202510418632.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-07-25
AI Technical Summary
The existing graphical modeling methods are inefficient and unstable in large-scale projects, and manual modeling methods are difficult to meet the simulation modeling requirements of complex process systems.
The simulation automatic modeling method based on the process flow chart, by directly extracting modeling information from the process flow chart, using program automation to realize node division, boundary division, pipeline connection and model coding, establish a one-dimensional graphical numerical calculation model, and conduct comprehensive evaluation.
It improves simulation modeling efficiency, ensures consistency and standardization of model quality, reduces production costs, simplifies the modeling process, and facilitates post-maintenance.
Smart Images

Figure CN120372910A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of simulation modeling, and particularly relates to a simulation automatic modeling method based on a process flow chart. Background Art
[0002] Simulation modeling is a commonly used analysis method in the engineering field, which has the advantages of being easy to verify, convey, and understand, and at the same time allows the model to interact with the outside world during operation to achieve the analysis of dynamic processes. In large-scale industrial projects, the systems are complex, such as power plants, chemical plants, aerospace, etc. Various interdisciplinary problems often occur in design, construction, and operation. If experimental methods are used, the cost is too high and the efficiency is low. Simulation modeling provides a valuable cross-industry and cross-disciplinary solution, which can solve practical problems efficiently and economically.
[0003] The development of simulation modeling methods can be divided into several stages: direct programming, simulation language modeling, interactive command modeling, and graphical modeling. According to the implementation form, it can be divided into two categories: program modeling and modular modeling. Program modeling is to directly compile a program simulation model using a program modeling language, which requires not only modeling personnel to have rich professional knowledge and mathematical knowledge, but also technical skills in modeling, simulation, and computer. Modular modeling is a traditional and effective modeling method. According to the general steps of dynamic large-scale system modeling, the large system is decomposed into subsystems composed of several basic units by level and hierarchy, and then the mathematical models of these basic units are established using mathematical-physical methods to form an algorithm library. Each algorithm library corresponds to a type of basic unit, and then the model is constructed using these algorithms according to the physical process of the actual system. Its advantage is that once the models of some typical systems or devices are established, the system can be changed only by modifying the parameters therein.
[0004] Graphical modeling is a typical modular modeling method, which abstracts each simulation sub-unit into an image module, allowing users to model intuitively, vividly, and efficiently. It is a mainstream simulation modeling method in the world. There are many relatively mature graphical modeling software developed at home and abroad, such as GSE, MATLAB, RINSIM, SimuWorks, etc. Graphical modeling has changed the modeling method and reduced the requirements for the capabilities of modeling personnel. However, for large-scale projects, such as the development of a full-scope simulator for a nuclear power plant, it is necessary to simulate and model hundreds of process systems. The efficiency of the manual modeling method is insufficient to cope with such a large-scale project. At the same time, the quality of the model is closely related to the level of the modeling personnel. In the same project, the quality of the process models established by different personnel varies, which is not conducive to the later model debugging and maintenance work.
[0005] The process of manual graphical modeling is as follows: First, understand the process flow chart, know what equipment is in the flow chart, the relationships between the settings, the equipment layout, etc. Then, based on one's own understanding, use a graphical modeling tool to establish a simulation model. Due to limitations in personal understanding or human errors, the efficiency of model establishment is low and the quality cannot be guaranteed. In view of the need for engineering simulation modeling, it is necessary to improve the current graphical modeling method.
[0006] The underlying file in the text format of the process flow chart directly contains the information required for modeling, which can be directly extracted by a program, providing the possibility for realizing process automation modeling. Node division, boundary division, and pipeline connection are determined as a standard based on manual modeling experience, and the standard method is implemented by a program, providing support for realizing automation modeling. The realization of simulation automation modeling based on the process flow chart can not only simplify the modeling process and improve the modeling efficiency, but also unify the simulation modeling standard and ensure the model quality. Summary of the Invention
[0007] The purpose of the present invention is to provide a simulation automatic modeling method based on a process flow chart, which directly extracts modeling information from the process flow chart, overcomes the disadvantages of low efficiency and high error rate of manual modeling, can effectively improve the simulation modeling efficiency of complex process system engineering, and reduce production costs.
[0008] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0009] A simulation automatic modeling method based on a process flow chart includes the following steps:
[0010] Step 1. Calibrate the simulation modeling scope on the process flow chart;
[0011] Step 2. Determine the boundary and boundary type of the simulation modeling scope;
[0012] Step 3. Extract equipment information, pipeline information, and boundary information from the process flow chart;
[0013] Step 4. According to the mapping relationship between the equipment in the process flow chart and the graphical model, the node division standard, the pipeline connection standard, and the boundary division standard, obtain a one-dimensional graphical numerical calculation model through four steps of translation;
[0014] Step 5. Graphical model component coding, automatically code the model components according to the simulation modeling coding standard, and each model component has a unique code;
[0015] Step 6. Adopt a simulation model comprehensive evaluation method to evaluate the quality of the process system graphical model;
[0016] Step 7. Judge whether the simulation calculation target is reached. If it is reached, end; if not, return to Step 4.
[0017] In Step 2, the boundaries include system interfaces, fault breaks, and box interfaces. The boundary types are divided into flow boundaries and pressure boundaries.
[0018] In Step 3, the equipment information includes equipment numbers, equipment locations, and equipment types. The pipeline information includes pipeline intersections, pipeline directions, pipeline inflection points, pipeline connection locations, inter-diagram connection locations. The boundary information includes boundary locations and boundary types.
[0019] In Step 3, the feature information is extracted automatically by the computer from the process flow diagram text document.
[0020] In Step 4, the mapping relationship between the equipment in the process flow diagram and the graphical model is the mapping of equipment types and component types. The equipment mapping relationship is user-defined. The mapping of the equipment location in the process flow diagram and the component location in the graphical model. The location mapping relationship runs automatically according to the canvas size to ensure the relative positions are consistent. The mapping of the equipment connection relationship in the process flow diagram and the equipment connection relationship in the graphical model. The connection relationships on both sides must be consistent.
[0021] In Step 4, the node division standard is to arrange nodes at pipeline intersections. Valves, pumps, orifice plates, heaters, and heat exchangers are directly connected to the pipeline, and for equipment model components through which fluid flows, nodes need to be arranged before and after. All sensors require corresponding nodes, and the node positions need to be arranged above the pipeline positions. The intersection corresponding node and the intersection position are the same. For the nodes at the front and rear positions of the equipment, they are adjusted according to the size of the model component to avoid overlap.
[0022] In Step 4, for the pipeline connection standard, the connections are carried out in sequence from left to right and from top to bottom. If there are nodes arranged on the equipment pipeline position, then taking the nodes as the boundary, the equipment pipeline is divided into corresponding multiple pipeline models, and the connection locations, directions, and inflection points of the pipeline models are consistent with those in the process flow diagram.
[0023] In Step 4, the boundary division standard is to arrange internal boundaries at the inter-diagram connection interfaces of the process flow diagram, and set external boundaries at the interfaces between different systems, fault breaks, and box interfaces. The boundary arrangement location is consistent with the interface location.
[0024] In Step 5, for the model component number coding standard, for the equipment that already has a number in the process flow diagram, the number is directly copied to the corresponding model component. The numbers of other model components are automatically generated according to the rule of 3 - letter code for the equipment type plus 4 - digit numbers, including nodes, boundaries, and pipelines.
[0025] In Step 6, the comprehensive evaluation methods for the graphical model are the minimum path method and the similarity method.
[0026] The beneficial effects achieved by the present invention are:
[0027] (1) Directly translate the process flow chart into a graphical simulation model. During the modeling process, manual intervention is reduced, and the entire modeling process is automatically implemented by the program, improving the modeling efficiency;
[0028] (2) The present invention provides a complete set of process system simulation modeling standards. The established simulation models are unified in standard, reducing the diversity of manual modeling and facilitating the later maintenance of the models;
[0029] (3) Make great use of the original information in the process flow chart, ensuring a high degree of consistency between the structure of the process flow chart and the graphical simulation model, facilitating the comparison of actual operation parameters and calculation parameters in the later stage;
[0030] (4) The simulation modeling process of the present invention is automatically executed according to the standards, which can effectively avoid problems such as omissions and misalignments caused by manual modeling and has higher modeling quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flow chart of a simulation automatic modeling method based on a process flow chart;
[0032] Figure 2 It is a process flow chart for determining the simulation scope;
[0033] Figure 3 It is a graphical model established by the simulation automation method;
[0034] Figure 4 It is a schematic diagram of the model component coding method. DETAILED DESCRIPTION OF THE INVENTION
[0035] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0036] A simulation automatic modeling method based on a process flow chart includes the following steps:
[0037] Step 1. Determine the process system simulation scope. According to the simulation requirements, mark the scope that needs to be simulated and modeled on the process system flow;
[0038] Step 2. Set the simulation scope boundary. According to the process system function and the simulation calculation target, determine the boundary of the simulation scope and the boundary type;
[0039] Step 3. Extract characteristic information. Extract the equipment information, pipeline information, and boundary information in the process flow chart;
[0040] Step 4. According to the mapping relationship between the process flow chart and the graphical model, the node division standard, the pipeline connection standard, and the boundary division standard, translate four steps to obtain a one-dimensional graphical numerical calculation model;
[0041] Step 5. Graphical model component coding: Automatically code the model components according to the simulation modeling coding standard, and each model component has a unique code;
[0042] Step 6. Adopt a comprehensive evaluation method for simulation models to evaluate the quality of the graphical model of the process system;
[0043] Step 7. Determine whether the simulation calculation target is reached. If it is reached, end; if not, return to Step 4.
[0044] In the above Step 2, the boundaries include other system interfaces, fault breaks, box interfaces, and the boundary types are divided into flow boundaries and pressure boundaries.
[0045] In the above Step 3, the equipment information includes equipment numbers, equipment locations, equipment types, the pipeline information includes pipeline intersections, pipeline directions, pipeline inflection points, pipeline connection locations, inter-graph connection locations, and the boundary information includes boundary locations and boundary types.
[0046] In the above Step 3, the feature information is automatically obtained from the process flow diagram text document by the computer;
[0047] In the above Step 4, the mapping relationship between the process flow diagram equipment and the graphical modeling components is the mapping of equipment types and component types, and the equipment mapping relationship is user-defined. The mapping between the equipment locations in the process flow and the component locations in the graphical model is automatically run according to the canvas size to ensure the relative positions are consistent. The mapping between the equipment connection relationships in the process flow and the equipment connection relationships in the graphical model requires that the connection relationships on both sides must be consistent.
[0048] In the above Step 4, the node division standard is to arrange nodes at the pipeline intersections. For equipment model components such as valves, pumps, orifice plates, heaters, heat exchangers, etc. that are directly connected to the pipeline and through which fluid flows, nodes need to be arranged before and after them. All sensors must have corresponding nodes, and the node positions must be arranged above the pipeline positions. The positions of the nodes corresponding to the intersections are the same as the intersection positions. For the nodes at the front and rear positions of the equipment, they are adjusted according to the size of the model components to avoid overlap.
[0049] In the above Step 4, the boundary division standard is to arrange internal boundaries at the inter-graph connection interfaces of the process system, and set external boundaries at the interfaces between different systems, fault breaks, and box interfaces. The boundary arrangement positions are consistent with the interface positions.
[0050] In the above Step 4, the pipeline connection standard is to carry out connections in sequence from left to right and from top to bottom. If there are nodes arranged on the equipment pipeline positions, then taking the nodes as the boundaries, the equipment pipelines are divided into corresponding multiple pipeline models, and the connection positions, directions, and inflection points of the pipeline models are consistent with those in the process flow.
[0051] In step 5, if the model component number coding standard is the equipment with an existing number in the process flow chart, the number is directly copied to the corresponding model component, and the numbers of other model components are automatically generated according to the rule of 3 - letter code for equipment type plus 4 - digit numbers, including nodes, boundaries, and pipelines.
[0052] In step 6, the graphical model comprehensive evaluation methods are the minimum path method and the similarity method.
[0053] The present invention proposes an automatic modeling method for process systems, directly establishing a connection between the process system flow chart and the simulation model, corresponding the equipment in the process system diagram with the model components in the simulation modeling, and greatly utilizing the original information in the process flow chart; proposes the information extraction scope in the process flow chart to ensure that the data information meets the modeling requirements; gives the definition of "four - step translation", clarifies the working principles of each step, ensures the integrity of the information, correct layout, and correct connection relationship in the process flow network, and meets the simulation modeling objectives. Proposes the mapping relationship node division, boundary division, and pipeline connection standard from equipment to components, standardizes the modeling process; proposes the model component coding principle, encodes the graphical model equipment according to the existing coding in the flow chart and component attributes, and each model unit has a unique code. Comprehensively evaluates the simulation model to verify whether the simulation scope, similarity, integrity, etc. of the model meet the standards, otherwise repeat the modeling until the requirements are met.
[0054] Embodiment:
[0055] As Figure 1 shown, a simulation automatic modeling method based on a process flow chart includes the following steps:
[0056] Step 1. Determine the process system simulation scope. According to the simulation requirements, mark the scope that needs to be simulated and modeled on the process system flow. Figure 2 Fig. is an example of the process flow chart for determining the simulation scope.
[0057] Step 2. Set the simulation scope boundary. According to the process system function and the simulation calculation target, determine the boundary of the simulation scope and the boundary type; based on Figure 2 give the inlet and outlet boundary conditions of the process system, and set both the inlet and outlet boundary conditions as pressure boundaries.
[0058] Step 3. Extract characteristic information, extract the equipment information, pipeline information, and boundary information in the process flow chart; Table 1 shows the specific information to be extracted. Figure 2It is a process system instance 100 modeled according to the implementation of a patent application, including an internal inlet boundary 101, a manual valve 102, an electric pump 103, a pressure sensor 104, an electric valve 105, a filter 106, a differential pressure sensor 107, a check valve 108, an orifice plate 109, a pneumatic valve 110, an internal outlet boundary 111, an external outlet boundary 112, and a manual valve 113.
[0059] Table 1 Extracted Feature Information of Main Equipment
[0060]
[0061]
[0062] Step 4. According to the mapping relationship between the process flow chart and the graphical model, the node division standard, the boundary division standard, and the pipeline connection standard, translate four steps to obtain a one-dimensional graphical numerical calculation model; Figure 3 It is a graphical model 200 obtained according to the translation standard, where 201 is the internal inlet boundary model, 202 is the manual valve model, 203 is the electric pump model, which is composed of two parts: an electric model and a pump body model, 204 is the pressure sensor model, 205 is the pneumatic valve model, which is composed of a pneumatic valve head model and a valve body model, 206 is the filter model, 207 is the differential pressure sensor model, 208 is the check valve model, 209 is the orifice plate model, 210 is the electric valve model, which is composed of an electric valve head model and a valve body model, 211 is the internal outlet boundary model, 212 is the external boundary model, and 213 is the manual valve model. It can be seen that the relative positions of the equipment model components in the model diagram are exactly the same as the relevant positions of the corresponding equipment in the flow chart. Due to the existence of nodes, the same pipeline corresponds to multiple pipeline models in the model, and the connection relationship, connection direction, inflection points of the pipeline models are consistent with those of the pipeline in the process.
[0063] Step 5. Encoding of graphical model components. Automatically encode the model components according to the simulation modeling encoding standard, and each model component has a unique code; for the components in the flow chart without corresponding numbers, encode them according to Figure 4 Carry out encoding.
[0064] (1) Component type number: Each type of component has a given three-letter number, e.g., node - nov, boundary - bov, valve - vlv, pipeline - pip.
[0065] (2) Sequential number: For components of the same type, give codes according to the principle from left to right and from top to bottom. Discontinuous but non-repeating numbers are allowed, e.g., 0001, 0002, 0009.
[0066] Step 6. Adopt a comprehensive evaluation method for the simulation model to evaluate the quality of the graphical model of the process system;
[0067] Step 7. Determine whether the simulation calculation target is reached. If it is reached, end the process; if not, return to Step 4.
Claims
1. A simulation automatic modeling method based on a process flow chart, characterized in that: It includes the following steps: Step 1. Mark the simulation modeling scope on the process flow diagram; Step 2. Determine the boundaries of the simulation modeling scope and the boundary types; Step 3. Extract the equipment information, pipeline information, and boundary information from the process flow diagram; Step 4. According to the mapping relationship between the equipment in the process flow diagram and the graphical model, the node division standard, the pipeline connection standard, and the boundary division standard, translate step by step to obtain a one-dimensional graphical numerical calculation model; Step 5. Code the components of the graphical model, automatically code the model components according to the simulation modeling coding standard, and each model component has a unique code; Step 6. Use the comprehensive evaluation method of the simulation model to evaluate the quality of the graphical model of the process system; Step 7. Judge whether the simulation calculation target is achieved. If it is achieved, end; if not, return to Step 4.
2. The simulation automatic modeling method based on the process flow chart according to claim 1, wherein: In Step 2, the boundaries include system interfaces, fault breaks, box interfaces, and the boundary types are divided into flow boundaries and pressure boundaries.
3. The simulation automatic modeling method based on a process flow chart according to claim 1, wherein: In Step 3, the equipment information includes equipment numbers, equipment locations, equipment types, the pipeline information includes pipeline intersections, pipeline directions, pipeline inflection points, pipeline connection locations, inter-diagram connection locations, and the boundary information includes boundary locations and boundary types.
4. The simulation automatic modeling method based on a process flow diagram according to claim 1, characterized in that: In Step 3, the feature information is automatically obtained by the computer from the process flow diagram text document.
5. The simulation automatic modeling method based on a process flow chart according to claim 1, wherein: In Step 4, the mapping relationship between the equipment in the process flow diagram and the graphical model is the mapping between equipment types and component types, the equipment mapping relationship is user-defined, the mapping between the equipment location in the process flow diagram and the component location in the graphical model, and the location mapping relationship runs automatically according to the canvas size to ensure the relative positions are consistent. The mapping between the equipment connection relationship in the process flow diagram and the equipment connection relationship in the graphical model, and the connection relationships on both sides must be consistent.
6. The simulation automatic modeling method based on a process flow diagram according to claim 1, wherein: In Step 4, the node division standard is to arrange nodes at pipeline intersections, valves, pumps, orifice plates, heaters, heat exchangers are directly connected to the pipeline, and for equipment model components through which fluids flow, nodes need to be arranged before and after. Sensors all need to have corresponding nodes, and the node positions need to be arranged above the pipeline positions. The intersection corresponding node and the intersection position are the same. For the nodes at the front and rear positions of the equipment, they are adjusted according to the size of the model component to avoid overlap.
7. The simulation automatic modeling method based on a process flow chart according to claim 1, characterized in that: In Step 4, for the pipeline connection standard, connect in sequence from left to right and from top to bottom. If there are nodes arranged on the equipment pipeline position, then take the nodes as the boundary and divide the equipment pipeline into corresponding multiple pipeline models. The connection locations, directions, and inflection points of the pipeline models are consistent with those in the process flow diagram.
8. The simulation automatic modeling method based on a process flow chart according to claim 1, wherein: In Step 4, the boundary division standard is to arrange internal boundaries at the connection interfaces between process flow diagrams, and set external boundaries at the interfaces between different systems, fault breaks, and box interfaces. The boundary arrangement positions are consistent with the interface positions.
9. The simulation automatic modeling method based on a process flow chart according to claim 1, wherein: In Step 5, the coding standard for the model component numbers is that for the equipment with existing numbers in the process flow diagram, directly copy the numbers to the corresponding model components. The numbers of other model components are automatically generated according to the rule of 3 - letter codes for equipment types plus 4 - digit numbers, including nodes, boundaries, and pipelines.
10. The simulation automatic modeling method based on a process flow chart according to claim 1, wherein: In Step 6, the comprehensive evaluation method for the graphical model is the minimum path method and the similarity method.