Method and device for formulating process flow diagram

By using a preset legend database to update the initial flow chart in the formulation of the process flow chart and split it into sub-graphs, the problem of the difference between the process flow chart and the actual process flow is solved, and the accuracy and clarity of the process flow chart are improved.

CN120068176APending Publication Date: 2025-05-30SUPCON TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411922412.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The process flow chart generated by conventional process simulation software may have defects such as inconsistent labeling legends and incomplete key information, resulting in differences between the generated process flow chart and the actual process flow.

Method used

Through a preset legend database, the initial flow chart is updated based on the process information of the process flow obtained to ensure that the content of the process flow chart is consistent with the real process flow. At the same time, the process flow chart is split into process flow sub-graphs, and an export file is generated based on the sub-graphs.

Benefits of technology

Improve the accuracy of the process flow chart, bringing the content of each process flow sub-graph closer to the actual process flow, ensuring that the process flow chart documents focus more clearly on the sub-process details and quickly and accurately obtain key information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120068176A_ABST
    Figure CN120068176A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for formulating a process flow diagram, and relates to the technical field of production processes, the method for formulating the process flow diagram comprises the following steps: based on a preset legend database, according to acquired process information of the process flow, updating an initial flow diagram of the process flow to obtain the process flow diagram; and splitting the process flow diagram to obtain process flow sub-diagrams, and generating an export file of the process flow according to all the process flow sub-diagrams. According to the method, the optimized and updated process flow diagram is split to obtain the export file of the process flow, so that the accuracy of the formulated process flow diagram can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of production processes, and more particularly, to a method and apparatus for formulating a process flow chart. Background Art

[0002] Process flow charts play an indispensable role in modern manufacturing and management. As an effective communication tool and management means, they not only improve the efficiency of information transmission, but also provide a good foundation for process optimization and problem solving, and are widely used in fields such as chemical engineering, pharmaceuticals, and petroleum refining.

[0003] However, the process flow charts generated by conventional process simulation software may have defects such as inconsistent annotation legends and incomplete key information, resulting in differences between the generated process flow charts and the actual process flows. Summary of the Invention

[0004] The problem solved by the present invention is how to improve the accuracy of process flow charts.

[0005] To solve the above problems, the present invention provides a method and apparatus for formulating a process flow chart.

[0006] In a first aspect, the present invention provides a method for formulating a process flow chart, including:

[0007] Updating an initial flow chart of the process flow based on a preset legend database according to process information of the obtained process flow to obtain a process flow chart;

[0008] Splitting the process flow chart into process flow subcharts, and generating an export file of the process flow according to all the process flow subcharts.

[0009] Optionally, the updating the initial flow chart of the process flow based on the obtained process information to obtain a process flow chart includes:

[0010] Matching a process flow chart legend corresponding to an initial legend in the initial flow chart based on the legend database according to the process information;

[0011] Updating the initial flow chart through the process flow chart legend to obtain the process flow chart.

[0012] Optionally, the process information includes process stream information; the updating the initial flow chart through the process flow chart legend to obtain the process flow chart includes:

[0013] Replacing a corresponding legend in the initial flow chart according to the process flow chart legend to obtain a replaced initial flow chart;

[0014] Label the replacement initial flowchart according to the process stream information to obtain the process flowchart.

[0015] Optionally, the process stream information includes hidden stream information, operating condition information, and control logic information; the legend database includes a pipeline legend database, an equipment logistics legend database, and a control logic legend database; the labeling the replacement initial flowchart according to the process control information to obtain the process flowchart includes:

[0016] Label the hidden streams in the replacement initial flowchart according to the matching result between the hidden stream information and the pipeline legend database, and / or label the operating conditions in the replacement initial flowchart according to the matching result between the operating condition information and the pipeline legend database, and / or label the control logic in the replacement initial flowchart according to the matching result between the control logic information and the control logic legend database;

[0017] Determine the labeled replacement initial flowchart as the process flowchart.

[0018] Optionally, the splitting the process flowchart into process flow subcharts includes:

[0019] Obtain the number of modules of the preset sub-process modules in each of the process flow subcharts;

[0020] Split the process flowchart according to the number of modules to obtain the process flow subcharts, and generate codes corresponding to the process flow subcharts according to the connection relationships and morphological data of the sub-process modules in the process flow subcharts, where each process flow subchart includes at least one sub-process module.

[0021] Optionally, the splitting the process flowchart according to the number of modules to obtain the process flow subcharts includes:

[0022] Split the process flowchart according to the number of modules to obtain initial subcharts;

[0023] Optimize the layout of the initial subcharts according to preset constraint conditions, and optimize the appearance of the initial subcharts according to preset appearance conditions;

[0024] Determine the optimized initial subcharts as process flow subcharts.

[0025] Optionally, the splitting the process flowchart into initial subcharts according to the number of modules includes:

[0026] Recursively expand all sub - process modules in the process flow chart to obtain a flattened process flow chart;

[0027] According to the number of modules, split the flattened process flow chart into the initial sub - graphs.

[0028] Optionally, the method for constructing the legend database includes:

[0029] Obtain standard legends and preset custom legends;

[0030] Classify the standard legends and the custom legends according to functions and roles into logistics number and operating condition legends, pipeline legends, and operation logic legends

[0031] Construct an operating condition legend database according to the logistics number and operating condition legends;

[0032] Construct a pipeline legend database according to the pipeline legends;

[0033] Construct an operation logic legend database according to the operation logic legends;

[0034] Generate the legend database according to the operating condition legend database, pipeline inference database, and the operation logic database.

[0035] Optionally, the custom legends include:

[0036] Obtain a custom import file;

[0037] Parse the import file to obtain initial legends;

[0038] Verify the initial legends, and determine the initial legends that pass the verification as the custom legends.

[0039] In a second aspect, the present invention provides an apparatus for formulating a process flow chart, including:

[0040] An update module, configured to update the initial flow chart of the process flow based on a preset legend database according to the process information of the obtained process flow to obtain a process flow chart;

[0041] A split module, configured to split the process flow chart to obtain sub - process flow charts of the process flow, and generate an export file of the process flow according to all the sub - process flow charts of the process flow.

[0042] In a third aspect, the present invention provides an electronic device, including a memory and a processor;

[0043] The memory is used to store a computer program;

[0044] The processor is configured to implement the method for formulating the process flow diagram as described in the first aspect when executing the computer program.

[0045] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for formulating the process flow diagram as described in the first aspect is implemented.

[0046] The beneficial effects of the method and device for formulating the process flow diagram of the present invention are as follows: By using a preset legend database and combining the obtained specific process information to update the initial flow diagram, it is ensured that the content of the process flow diagram is consistent with the actual process flow, enabling the entire process flow diagram to accurately display the specific conditions of each step and link of the process flow, avoiding problems where the process does not match the actual content, and improving the accuracy of the process flow diagram. Splitting the process flow diagram into sub-process flow diagrams can break down the complex overall process into relatively independent and interrelated local flow diagrams. The obtained sub-process flow diagrams of the process flow can carefully show the local characteristics of the process flow, making the content of the sub-process flow diagrams of the process flow closer to the actual process flow and improving the accuracy of each sub-process flow diagram of the process flow. Organizing the obtained sub-process flow diagrams of the process flow to generate an export file can ensure that the process flow diagram file can more clearly focus on the details of the sub-processes, quickly and accurately obtain key information, avoid visual interference and misunderstanding caused by the interweaving of information in the overall diagram, and improve the accuracy of the obtained flow diagram information. Description of the Drawings

[0047] Figure 1 It is a schematic flow chart of a method for formulating a process flow diagram according to an embodiment of the present invention;

[0048] Figure 2 It is a schematic structural diagram of the expansion of a sub-process module according to an embodiment of the present invention;

[0049] Figure 3 It is a schematic structural diagram of a device for formulating a process flow diagram according to an embodiment of the present invention;

[0050] Figure 4 It is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Detailed Embodiments

[0051] To make the above objects, features, and advantages of the present invention more apparent and understandable, the following provides a detailed description of specific embodiments of the present invention with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments described herein. Instead, these embodiments are provided to more thoroughly and completely understand the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not used to limit the protection scope of the present invention.

[0052] It should be understood that the various steps recorded in the method embodiments of the present invention can be executed in different orders and / or executed in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this regard.

[0053] As used herein, the term "including" and its variations are open-ended, that is, "including but not limited to"; the term "based on" means "at least partially based on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts such as "first" and "second" mentioned in the present invention are only used to distinguish different devices, modules, or units, and are not used to limit the order of functions executed by these devices, modules, or units or their interdependent relationships.

[0054] It should be noted that the modifications of "one" and "multiple" mentioned in the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly specified in the context, it should be understood as "one or more".

[0055] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0056] In engineering design, the process flow diagram is the core content of engineering design. However, the acquisition and filling of data in the process flow diagram need to be transferred between industrial process simulation software and CAD drawing software, which makes it difficult to ensure the accuracy, integrity, and consistency of the data. Moreover, the design progress is often dragged on for a long time, and a large amount of manpower and resources are required for verification, resulting in a lot of time spent on data transfer, data verification, and personnel communication, etc.

[0057] In view of the problems existing in the above related technologies, this embodiment provides a method and device for formulating a process flow diagram.

[0058] AsFigure 1 As shown in Figure 1 , a method for formulating a process flow chart provided by an embodiment of the present invention includes:

[0059] S100. Based on a preset legend database, update an initial flow chart of the process flow according to the process information of the obtained process flow to obtain a process flow chart.

[0060] Specifically, the process information of the process flow may include equipment information and process stream information of the process flow. Key information such as the type or attributes of equipment in the process flow is extracted according to the equipment information, and key information such as materials or energy in the process flow is extracted according to the process stream information. The key information extracted is searched in the legend database to match the encoding and display style of the legend corresponding to the process flow, and the matched legend is applied to the initial flow chart of the process flow to replace the corresponding equipment and stream chart in the initial flow chart. If the matching fails, the legend can also be manually selected for replacement, so as to obtain the process flow chart corresponding to the process flow.

[0061] It should be noted that in many industries involving continuous production processes such as chemical engineering, energy, and pharmaceuticals, materials and energy flow between different equipment and links according to specific paths and conditions. These "paths" of flow and various characteristics of the corresponding flow entities are collectively referred to as process stream information, that is, a comprehensive description of the characteristics of the "objects" (materials, energy, etc.) flowing in the process flow. Equipment information refers to the equipment involved in the process flow, such as reaction kettles (tanks), centrifuges, pipelines, valves, and other equipment. The process flow chart is a tool for visualizing the process flow through specific graphic symbols, lines, and text descriptions, etc., and can intuitively present information such as the production process, the relationship between each link, and the flow direction of materials and energy. Its constituent elements include equipment symbols, pipelines and flow arrows, operation step descriptions, etc., and can be used to guide production operations, optimize the process flow, and facilitate communication. Common types can be divided into various types such as chemical engineering process flow charts according to the industry, and it is a very important tool in the field of industrial production, etc. A standard legend is a graphic symbol that can be used in a process flow chart and conforms to specific industry standards, such as graphic symbols of pipelines, valves, equipment, and instruments, etc. established according to relevant chemical industry standards, and each standard legend has corresponding fields. Among them, each field includes relevant information such as the legend encoding, legend name, legend shape, and legend information corresponding to the standard legend. The legend encoding is a coding system used to uniquely identify the legend, which is convenient for searching and matching in the database.

[0062] S200. Split the process flow chart to obtain sub-process flow charts of the process flow, and generate an export file of the process flow according to all the sub-process flow charts of the process flow.

[0063] Specifically, according to the splitting requirements of the staff for the process flow, corresponding splitting rules are preset in advance, including the maximum number of devices that can be included in each sub-diagram of the process flow after splitting, and the order of all sub-diagrams of the process flow obtained after splitting. This order can be formulated according to the process flow order or the device number order. At the same time, the size, position, connection relationship of the devices and the continuity of the process flow need to be considered to ensure that each sub-diagram of the process flow after splitting contains complete process flow information and the connection relationship between the sub-diagrams of the process flow is clear.

[0064] In this embodiment, the initial flow chart is updated by combining the obtained specific process information with the preset legend database, so as to ensure that the content of the process flow chart is consistent with the actual process flow, enabling the entire process flow chart to accurately display the specific conditions of each step and link of the process flow, avoiding problems where the process does not match the actual content, and improving the accuracy of the process flow chart. Splitting the process flow chart into sub-diagrams of the process flow can break down the complex overall process into relatively independent and interrelated local flow charts. The obtained sub-diagrams of the process flow can vividly display the local characteristics of the process flow, making the content of the sub-diagrams of the process flow closer to the actual process flow and improving the accuracy of each sub-diagram of the process flow. Organizing the obtained sub-diagrams of the process flow to generate an export file can ensure that the process flow chart file can more clearly focus on the details of the sub-processes, quickly and accurately obtain key information, avoid visual interference and misunderstanding caused by the interweaving of information in the overall diagram, and improve the accuracy of the obtained flow chart information.

[0065] Optionally, updating the initial flow chart of the process flow according to the process information obtained for the process flow to obtain a process flow chart includes:

[0066] Based on the legend database, matching the process flow chart legends corresponding to the initial legends in the initial flow chart according to the process information;

[0067] Updating the initial flow chart through the process flow chart legends to obtain the process flow chart.

[0068] Specifically, according to the process information of the process flow, accurate data information of the entire process flow can be obtained, which may include the equipment designed for the process flow and the stream information of the process flow. Based on this equipment information and the process flow stream information, a search is conducted in the legend database to match the legends applied in the process flow in the legend database, so as to replace and update the corresponding legends in the initial flow chart with the matched process flow chart legends, making the legends in the updated initial flow chart unified with the legend information actually corresponding to the process flow, and taking the updated initial flow chart as the process flow chart of this process flow. Among them, the initial flow chart is drawn by process simulation software, but there are certain differences in the consistency and integrity between the initial flow chart and the actual process flow. Therefore, updating the initial flow chart through the process information of the process flow can ensure that the updated flow chart is complete and consistent with the actual process flow.

[0069] In this alternative embodiment, the legend database contains various standardized legends. Matching the process flow chart legends corresponding to the initial legends in the initial flow chart according to the process information can ensure that the legends in the entire flow chart are consistent with the legends actually corresponding to the process flow. Moreover, the process information is a detailed description of the actual production or operation process. Matching and updating the initial legends to process flow chart legends based on it can make the flow chart closely conform to the actual situation of the process flow, improving the accuracy of the process flow chart.

[0070] Optionally, the process information includes process stream information; the process of updating the initial flow chart with the process flow chart legends to obtain the process flow chart includes:

[0071] Replacing the corresponding legends in the initial flow chart with the process flow chart legends to obtain a replaced initial flow chart;

[0072] Annotating the replaced initial flow chart according to the process stream information to obtain the process flow chart.

[0073] Specifically, replace the corresponding legend in the initial flow chart with the matched standard process flow chart legend. Through legend replacement, it can be ensured that the replaced initial flow chart is consistent with the process flow, improving the accuracy and standardization of the flow chart. The process stream information covers key details such as the flow direction, flow rate, properties, and energy transfer of materials. Marking the replaced initial flow chart based on this information can make the flow chart more accurately reflect the actual process flow. For example, in the petroleum refining process flow, marking the specific flow direction of crude oil between various processing units, the flow rates of products at different stages, and property parameters such as temperature and pressure can clearly understand the changes in materials and energy in each step, enabling the entire process flow from material input to finished product output to be clearly and accurately depicted on the flow chart, further improving the accuracy and practicality of the process flow chart.

[0074] In this optional embodiment, through legend replacement and update, it can be ensured that the updated replaced initial flow chart is consistent with the actual process flow, avoiding deviations and improving the accuracy of the process flow chart. And by marking the replaced initial flow with process stream information, the flow chart can more accurately reflect the actual process conditions and enhance the accuracy of the process flow chart.

[0075] Optionally, the process stream information includes hidden stream information, operating condition information, and control logic information; the legend database includes a pipeline legend database, an equipment logistics legend database, and a control logic legend database; the process flow chart is obtained by marking the replaced initial flow chart according to the process control information, including:

[0076] Mark the hidden streams in the replaced initial flow chart according to the matching result between the hidden stream information and the pipeline legend database, and / or mark the operating conditions in the replaced initial flow chart according to the matching result between the operating condition information and the pipeline legend database, and / or mark the control logic in the replaced initial flow chart according to the matching result between the control logic information and the control logic legend database;

[0077] Determine the marked replaced initial flow chart as the process flow chart.

[0078] Specifically, first, extract the relevant utility engineering information in the process flow, which involves hidden streams, such as the types, flow rates, pressures, etc. of utility engineering materials like steam and cooling water. Then, search and match the extracted utility engineering information with the built-in pipeline legend database, which contains legend-related information such as main process flow lines, utility flow lines, media flow directions in and out of the device boundary, drawing connectors within the device, pipeline intersections, broken lines, etc. According to the matching results, label the hidden streams in the initial flow chart to be replaced, and for key utility materials such as steam, detail their specifications, such as pressure grades, temperatures, etc., so that users can accurately understand and apply the content in the flow chart during the design and operation processes.

[0079] Furthermore, during the information acquisition process, a "Generate Operating Conditions" button can also be set through the software. After clicking the button, the software automatically searches from the process flow information in the process simulation and extracts the information related to operating conditions in the utility engineering information, such as key parameters like temperature, pressure, and flow rate. These operating condition information are also searched and matched through the pipeline legend database to ensure that each operating condition can be correctly identified and labeled. Moreover, the software will, as needed, display the operating conditions on the drawing in intuitive ways such as color coding and symbol marking.

[0080] Control logic annotation: A "Generate Control Logic" button can also be set. When this button is clicked, the software first extracts the legend information of equipment and logistics, covering content such as equipment types and logistics directions, and then searches and matches this legend information with the information in the unit operation control logic legend database, which contains control logic legend information for processes such as fluid transportation, filtration, sedimentation, heat exchange, evaporation, absorption, distillation, extraction, drying, etc. After determining the control logic corresponding to each equipment and logistics, the software annotates the control logic on the drawing in intuitive ways such as arrows, symbols, and text.

[0081] In this optional embodiment, after annotating the hidden streams, operating conditions, and control logic of the initial flow chart to be replaced, the replaced initial flow chart is then determined as the final Process Flow Diagram (PFD). This process flow chart completely contains various key information and meets the format and depth requirements of relevant standards and specifications for PFD, and can be directly used for related work such as engineering design, reducing the workload of designers and improving the formulation efficiency and design efficiency of the process flow chart.

[0082] Optionally, the splitting of the process flow chart into process flow subcharts includes:

[0083] Obtain the number of modules of the preset sub-process modules in each of the process flow subcharts;

[0084] The process flow chart is split according to the number of the modules to obtain the sub - process flow charts, and codes corresponding to the sub - process flow charts are generated according to the connection relationships and morphological data of the sub - process modules in the sub - process flow charts, wherein each sub - process flow chart includes at least one sub - process module.

[0085] Specifically, according to the design requirements of the user, the number of preset sub - process modules in each sub - process flow chart is set. In order to avoid blank or sub - process flow charts of substantial equipment, it is necessary to set that each sub - process flow chart includes at least one sub - process module. In the process simulation software, the user can encapsulate a complex process flow into sub - process modules. For example, Figure 2 as shown, it is a sub - process module in the process flow chart. The T 1 , T 2 , T 3 , T 4 , T 5 respectively represent different devices. These devices may be towers, containers or other process equipment. For example, T 1 , T 2 , T 3 , T 4 , T 5 may be towers, reactors or centrifuges and other devices for separation, purification or reaction and other process operations. TM 1 , TM 2 , TM 3 are connectors between different device pipelines. IN is the inlet of the raw material input end, and OUT 1 and OUT 2 are the outlet ports of the output ends of different reaction products respectively. And there may be more nested sub - process modules inside the sub - process module. The system needs to identify and count the number of these sub - process modules, which provides an important basis for subsequent splitting of the process flow chart. According to the obtained number of modules to be included during splitting, the process flow chart is split to obtain multiple sub - process flow charts. During the splitting process, factors such as the size, position, connection relationship of the devices and the continuity of the process flow are considered. For example, the user can set the maximum number of modules in each split sub - process flow chart. If it is set to 4, then according to this setting and the logical relationship and spatial layout of the process flow, the process flow chart is split to ensure that each sub - process module in each split sub - process flow chart contains complete process flow information and the connection relationship between the drawings is clear.

[0086] Further, after the splitting is completed, codes corresponding to the process flow sub-diagrams are generated based on the connection relationships and morphological data of the sub-process modules in the process flow sub-diagrams, and the information such as equipment connections and stream phases in the process flow is described through the codes. When generating the codes, information such as module names, stream phases, and page numbers of the process flow sub-diagrams is considered. For example, the connection equipment names of the process flow sub-diagrams corresponding to the module names correspond one-to-one with the module names in the PFD diagram to ensure the accuracy of the information; in terms of the corresponding stream phases, according to the phase of the stream (such as liquid phase, gas phase, gas-liquid mixed phase, solid phase, etc.), corresponding medium codes are given in the generated codes. For example, "only liquid phase" corresponds to PL, "only gas phase" corresponds to PG, "gas-liquid" corresponds to PG / PL, and "only solid phase" corresponds to PS; at the same time, the connected PFD diagram numbers in the codes correspond to the drawing numbers after splitting, which is convenient for users to consult and combine. Moreover, the generated codes will be optimized to ensure that they meet industry standards and user habits. For example, for complex process flows, the codes may be represented in a hierarchical or segmented manner to improve their readability and usability.

[0087] In this optional embodiment, by reasonably splitting the process flow diagram into multiple process flow sub-diagrams, the information chaos and congestion caused by the presentation of complex processes on a single drawing are avoided, enabling each process flow sub-diagram to focus on the display of specific parts of the process flow. The layout of elements such as equipment and streams on the drawing is closer to the actual process flow, improving the accuracy of the finally obtained process flow diagram file and the formulation efficiency of the process flow diagram file.

[0088] Optionally, the splitting of the process flow diagram according to the number of modules to obtain the process flow sub-diagrams includes:

[0089] Splitting the process flow diagram into initial sub-diagrams according to the number of modules;

[0090] Optimizing the layout of the initial sub-diagrams according to preset constraint conditions and optimizing the appearance of the initial sub-diagrams according to preset appearance conditions;

[0091] Determining the optimized initial sub-diagrams as the process flow sub-diagrams.

[0092] Specifically, according to the number of modules in each sub - diagram of the process flow chart preset in advance, the process flow chart is split to obtain initial sub - diagrams. When splitting, factors such as the connection relationship between devices, the continuity of the process flow, and the spatial layout are fully considered to ensure that each initial sub - diagram can reasonably display a part of the process flow. The preset constraint conditions are mainly used to standardize the layout of the initial sub - diagrams to make it more reasonable and stable. For example, users can set the constraint relationships between devices and pipelines, including fixed distances, relative positions, etc. During the optimization process, the system will ensure that the layout of devices and pipelines meets these constraint conditions. For some devices that need to maintain a specific spacing, their positions are adjusted to avoid being too close or too far from each other, which may affect the understanding of the process flow and the readability of the drawing. At the same time, for devices and pipelines with upstream - downstream relationships, the system will reasonably arrange their relative positions according to the logical sequence of the process flow to make the flow directions of materials and energy clearer and more intuitive. The preset appearance conditions are mainly to improve the aesthetics and readability of the initial sub - diagrams. For example, through alignment, devices and pipelines can be arranged neatly in the horizontal or vertical direction, enhancing the overall coordination of the drawing; through flipping and rotating, it is convenient for users to adjust the directions of devices and pipelines according to needs to make the drawing layout more reasonable; the attributes of the lines, colors, fills, etc. of devices and pipelines can also be finely adjusted. For example, the lines of important devices can be thickened or highlighted with specific colors to improve the recognition of key information. In addition, multiple layout templates can be set, and users can select and apply them according to project requirements to quickly beautify and standardize the drawing, making the initial sub - diagrams meet the high - standard requirements of industrial drawing.

[0093] In this optional embodiment, after the layout and appearance are optimized, the initial sub - diagrams become process flow sub - diagrams that meet the requirements of process flow design. The process flow sub - diagrams not only accurately display all parts of the process flow in terms of content, but also are more beautiful and reasonable in layout and appearance, facilitating engineering designers to view, analyze and use, clearly presenting the relationships between elements such as devices and streams, highlighting key information, helping to improve the efficiency and quality of engineering design, and at the same time facilitating the management and communication of drawings.

[0094] Optionally, splitting the process flow chart into initial sub - diagrams according to the number of modules includes:

[0095] Recursively expand all sub - process modules in the process flow chart to obtain a flattened process flow chart;

[0096] According to the number of modules, split the flattened process flow chart into the initial sub - diagrams.

[0097] Specifically, since the process flow diagram may contain multiple levels of sub - process modules, and some of these sub - process modules may nest more sub - process modules, with a relatively complex structure, in order to facilitate subsequent splitting processing, it is necessary to recursively expand all of them. For example, there may be a sub - process diagram as shown in Figure 2 Therefore, it is necessary to identify and traverse all sub - process modules in the main process flow diagram. Starting from the top - most level, gradually delve into the bottom - most sub - processes, and fully expand all sub - process modules so that all equipment and streams are presented in a tiled and non - overlapping manner, obtaining a tiled process flow diagram. During the expansion process, it is necessary to ensure that there is no overlap between modules and streams. By adjusting the position and size, the clarity and logic of the flow diagram can be guaranteed. After obtaining the tiled process flow diagram, split the process flow diagram according to the maximum number of modules in each initial sub - diagram set by the user. For example, set the maximum number of splits in the initial sub - diagram to 4, and set the drawing order (such as in the order of the process flow, equipment number order, etc.). According to the above settings, perform the splitting. When splitting, fully consider factors such as the size, position, connection relationship of the equipment, and the continuity of the process flow to ensure that each initial sub - diagram after splitting contains complete process flow information, and the connection relationship between the drawings is clear. For streams that span multiple initial sub - diagrams, the system will use special markings or arrows to indicate their flow direction and connection points to ensure that users can clearly understand the entire process flow. At the same time, all information in the original process flow diagram, including equipment names, stream attributes, connection relationships, etc., will be retained during the splitting process, and drawing numbers will be added to the borders of each initial sub - diagram for users to identify and combine. If the selected module exceeds the display area of a single initial sub - diagram, the system will automatically remind the user and give the names of the equipment that need to be moved as suggestions to optimize the drawing layout and readability.

[0098] Optionally, the method for constructing the legend database includes:

[0099] Obtain standard legends and preset custom legends;

[0100] Classify the standard legends and the custom legends according to their functions and roles into logistics number and operating condition legends, pipeline legends, and operation logic legends

[0101] Construct an operating condition legend database based on the logistics number and operating condition legends;

[0102] Construct a pipeline legend database based on the pipeline legends;

[0103] Construct an operation logic legend database based on the operation logic legends;

[0104] Generate the legend database based on the operating condition legend database, pipeline reasoning database, and the operation logic database.

[0105] Specifically, first, it is necessary to obtain standard legends and preset custom legends. Standard legends are usually provided by design institutes, and these standard legends follow specific industry standards, such as "Legends for Process Flow Diagrams of Petrochemical Industry" (SH / T3101 - 2017), which cover standard graphic symbols used in PFD diagrams, such as pipelines, valves, equipment, instruments, etc. At the same time, the system provides a preset custom legend function to meet the diverse needs of users. Users can import custom legends according to their specific application scenarios and business requirements. For example, certain special equipment or specific process links may require the use of unified legend symbols within the enterprise, and users can import them into the system. Classify the obtained standard legends and custom legends according to their functions and roles into logistics number and operating condition legends, pipeline legends, and operating logic legends. Among them, logistics number and operating condition legends mainly involve the logistics numbers used to identify different streams in the process, as well as operating condition legends related to the streams, such as temperature, pressure (gauge pressure, absolute pressure), heat load, unit markings, etc. These legends are crucial for accurately describing the logistics state and parameters in the process flow. Pipeline legends focus on graphic symbols related to pipelines, such as main process logistics lines, utility logistics lines, medium flow directions in and out of the device boundary, drawing connectors within the device, pipeline intersections, broken lines, etc. They are used to clearly show the pipeline's orientation, connection relationships, and logistics transmission. Operating logic legends mainly target legends related to the control logic and schemes of each unit operation (such as fluid transportation, filtration, heat exchange, etc.) in the process flow. Through these legends, the control logic relationships in the process flow can be visually presented. Build an operating condition legend database based on the classified logistics number and operating condition legends. This database will store all legend information related to logistics numbers and operating conditions, including legend codes (as unique identifiers), legend names, legend shapes, and legend information, etc., so that these legends can be quickly and accurately matched and applied when generating PFD diagrams later, ensuring the correct marking of logistics number and operating condition information on the drawings. Build a pipeline legend database based on the pipeline legends. This database focuses on storing detailed information about pipeline-related legends, also including keyword fields such as legend codes, providing data support for accurately drawing and marking pipeline-related content in PFD diagrams, making the representation of pipelines meet industry standards and actual process requirements. Build an operating logic legend database according to the operating logic legends. This database stores legend data related to the control logic of unit operations, providing a basis for clearly marking the control logic in the process flow, and helping designers and operators accurately understand and grasp the control relationships in the process flow. Finally, generate a legend database based on the built operating condition legend database, pipeline legend database, and operating logic legend database.This legend database integrates the information of the above various types of legend databases to form a complete legend information repository. During the process of generating the PFD diagram, the system can search for and match the required legends from this legend database. Whether it is legends related to equipment, pipelines, operating conditions, or control logic, they can be accurately obtained and applied to the process flow diagram, thereby ensuring the standardization, accuracy, and integrity of the PFD diagram and achieving an efficient conversion from industrial process simulation software to standard PFD drawings.

[0106] Optionally, the custom legend includes:

[0107] Obtain a custom import file;

[0108] Parse the import file to obtain an initial legend;

[0109] Verify the initial legend, and determine the initial legend that passes the verification as the custom legend.

[0110] Specifically, to meet the diverse needs of users, the system provides a function to import custom legends. Users prepare files containing custom legends according to their specific application scenarios and business requirements. These files can be specific legend specification files within the user's enterprise or legend files specially designed for a particular project. In the file import process, multiple CAD file formats are supported to ensure compatibility with mainstream CAD software, facilitating the import of custom legends by users. The file format recognition module, after the user imports a custom file, first accurately identifies and differentiates the format type of the imported file (whether it is in DWG or DXF format). Then, based on various development interfaces provided by the CAD software, the imported file is deeply parsed. During the parsing process, the system extracts and obtains detailed legend information, including but not limited to key data such as the outer boundary dimensions, shape, line type, color, and strings of the image. By extracting and organizing this data, the system initially obtains the initial legends, which contain various graphic symbols defined by the user and their related attribute information. After obtaining the initial legends, the system conducts a comprehensive verification. During the verification process, the system checks details such as the number of legends, the drawing frame, and the legend boundary dimensions. For example, it checks whether the number of legends is consistent with expectations, whether the drawing frame is complete and standardized, and whether the legend boundary dimensions meet the system requirements or the standards set by the user. When the legend boundary dimensions are too large or too small, the system will automatically notify the user to ensure that the user can promptly discover and handle potential problems. The user can also view and modify the legend dimensions to meet specific application requirements, ensuring the applicability and accuracy of the legends in subsequent use. After a strict verification process, only those initial legends that meet the requirements are determined as the final custom legends. These custom legends, together with the standard legends, participate in the subsequent generation process of the Process Flow Diagram (PFD), providing users with legend resources that are more in line with actual needs.

[0111] In this optional embodiment, by obtaining a custom import file, the user can introduce the legend specifications in their specific business scenarios into the system. Whether it is a unique legend representation method formed within the enterprise over a long period or a legend specifically designed for a special project, it can be integrated into the process of creating a process flow diagram. This enables the finally generated process flow diagram to better meet the personalized needs of the enterprise or project, improves the practicality and comprehensibility of the drawing in a specific environment, and enhances the adaptability of the system to different user requirements. After parsing the import file to obtain the initial legend, the system performs strict verification. The verification process covers multiple aspects such as the number of legends, the drawing frame, and the boundary dimensions of the legends. This helps to promptly detect possible problems in the legend file, such as missing legends, damaged drawing frames, or abnormal dimensions, ensuring that the legends have high quality and accuracy, and avoiding errors or non-standardization in the subsequent generation of PFD diagrams due to legend problems, thus guaranteeing the reliability of the graphic information in the entire design process.

[0112] As Figure 3 shown, a model inference device 300 provided by an embodiment of the present invention includes:

[0113] An update module 310, configured to update an initial flow chart of the process flow based on a preset legend database according to the process information of the obtained process flow to obtain a process flow diagram;

[0114] A splitting module 320, configured to split the process flow diagram into process flow sub-diagrams and generate an export file of the process flow based on all the process flow sub-diagrams.

[0115] The model inference device of this embodiment is used to implement the method for formulating a process flow diagram as described above. Its advantages compared with the prior art are the same as those of the method for formulating a process flow diagram compared with the prior art, and will not be elaborated here.

[0116] Optionally, the update module 310 is further configured to: based on the legend database, match the process flow legends corresponding to the initial legends in the initial flow chart according to the process information;

[0117] Update the initial flow chart through the process flow legends to obtain the process flow diagram.

[0118] Optionally, the update module 310 is further configured to: replace the corresponding legends in the initial flow chart according to the process flow legends to obtain a replaced initial flow chart;

[0119] Annotate the replaced initial flow chart according to the process stream information to obtain the process flow diagram.

[0120] Optionally, the process stream information includes hidden stream information, operating condition information, and control logic information; the legend database includes a pipeline legend database, an equipment logistics legend database, and a control logic legend database; the update module 310 is further configured to: label the hidden streams in the replacement initial flow chart according to the matching result between the hidden stream information and the pipeline legend database, and / or label the operating conditions in the replacement initial flow chart according to the matching result between the operating condition information and the pipeline legend database, and / or label the control logic in the replacement initial flow chart according to the matching result between the control logic information and the control logic legend database;

[0121] Determine the replacement initial flow chart after labeling as the process flow chart.

[0122] Optionally, the splitting module 310 is further configured to: obtain the number of modules of a preset sub-process module in each of the process flow sub-charts;

[0123] Split the process flow chart according to the number of modules to obtain the process flow sub-charts, and generate codes corresponding to the process flow sub-charts according to the connection relationships and morphological data of the sub-process modules in the process flow sub-charts, where each process flow sub-chart includes at least one sub-process module.

[0124] Optionally, the splitting module 310 is further configured to: split the process flow chart according to the number of modules to obtain initial sub-charts;

[0125] Optimize the layout of the initial sub-charts according to preset constraint conditions, and optimize the appearance of the initial sub-charts according to preset appearance conditions;

[0126] Determine the optimized initial sub-charts as the process flow sub-charts.

[0127] Optionally, the splitting module 310 is further configured to: recursively expand all the sub-process modules in the process flow chart to obtain a flattened process flow chart;

[0128] Split the flattened process flow chart into the initial sub-charts according to the number of modules.

[0129] Optionally, the splitting module 310 is further configured to: obtain standard legends and preset custom legends;

[0130] Classify the standard legends and the custom legends into logistics numbers and operating condition legends, pipeline legends, and operating logic legends according to their functions and roles

[0131] Construct an operating condition legend database according to the logistics numbers and operating condition legends;

[0132] Construct a pipeline legend database according to the described pipeline legend;

[0133] Construct an operation logic legend database according to the described operation logic legend;

[0134] Generate the legend database according to the described operation condition legend database, pipeline inference database, and the operation logic database.

[0135] Optionally, the splitting module 310 is further configured to: obtain a custom import file;

[0136] Parse the import file to obtain an initial legend;

[0137] Verify the initial legend, and determine the initial legend that passes the verification as the custom legend.

[0138] As Figure 4 shown, an electronic device 400 provided by an embodiment of the present invention includes a memory 410 and a processor 420; the memory 410 is used to store a computer program; the processor 420 is used to implement the method for formulating the process flow chart as described above when executing the computer program.

[0139] Or, an electronic device 400 includes a memory 410 and a processor 420 coupled to the memory 410; the memory 410 is configured to store a computer program; the processor 420 is configured to perform the following operations when executing the computer program:

[0140] Based on a preset legend database, update the initial flow chart of the process flow according to the process information of the obtained process flow to obtain a process flow chart;

[0141] Split the process flow chart to obtain sub-process flow charts of the process flow, and generate an export file of the process flow according to all the sub-process flow charts of the process flow.

[0142] A computer-readable storage medium provided by an embodiment of the present invention has a computer program stored thereon, and when the computer program is executed by a processor, the method for formulating the process flow chart as described above is implemented.

[0143] Or, a non-volatile computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the processor is caused to perform the following operations:

[0144] Based on a preset legend database, update the initial flow chart of the process flow according to the process information of the obtained process flow to obtain a process flow chart;

[0145] Split the process flow chart to obtain sub - process flow charts, and generate an export file of the process flow based on all the sub - process flow charts.

[0146] Now, an electronic device 400 that can be a server or a client of the present invention will be described. It is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device 400 is intended to represent various forms of digital - electronic computer devices, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 400 can also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0147] The electronic device 400 includes a computing unit that can perform various appropriate actions and processes according to a computer program stored in a read - only memory (ROM) or a computer program loaded from a storage unit into a random - access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The computing unit, the ROM, and the RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0148] Those of ordinary skill in the art can understand that all or part of the processes in the above - described embodiment methods can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer - readable storage medium. When the program is executed, it can include the processes of the above - described method embodiments. Among them, the storage medium can be a magnetic disk, an optical disk, a read - only memory (ROM), or a random - access memory (RAM), etc. In this application, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention. In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above - integrated units can be implemented in the form of hardware or in the form of software functional units.

[0149] Although the present invention is disclosed as above, the scope of protection of the present invention is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will all fall within the scope of protection of the present invention.

Claims

1. A method for formulating a process flow chart, characterized in that: include: Based on a preset legend database, the initial flow chart of the process flow is updated according to the acquired process information of the process flow to obtain a process flow chart; The process flow chart is split into process flow sub-charts, and an export file of the process flow is generated based on all the process flow sub-charts.

2. The method for formulating a process flow chart according to claim 1, characterized in that: The initial flow chart of the process flow is updated according to the acquired process information of the process flow to obtain the process flow chart, including: Based on the legend database, matching the process flow legend corresponding to the initial legend in the initial flow chart according to the process information; The initial flow chart is updated through the process flow chart legend to obtain the process flow chart.

3. The method for formulating a process flow chart according to claim 2, characterized in that: The process information includes process stream information; The updating of the initial flow chart by using the process flow chart legend to obtain the process flow chart includes: According to the process flow diagram legend, the corresponding legend in the initial flow diagram is replaced to obtain a replaced initial flow diagram; The replaced initial flow chart is annotated according to the process flow information to obtain the process flow chart.

4. The method for formulating a process flow chart according to claim 3, characterized in that: The process stream information includes hidden stream information, operating condition information and control logic information; the legend database includes a pipeline legend database, an equipment logistics legend database and a control logic legend database; The step of labeling the replaced initial flow chart according to the process control information to obtain the process flow chart includes: According to the matching result of the hidden stream information and the pipeline legend database, the hidden streams in the replaced initial flow chart are marked, and / or, according to the matching result of the operating condition information and the pipeline legend database, the operating conditions in the replaced initial flow chart are marked, and / or, according to the matching result of the control logic information and the control logic legend database, the control logic in the replaced initial flow chart is marked; The marked replacement initial flow chart is determined as the process flow chart.

5. The method for formulating a process flow chart according to claim 1, characterized in that: The process flow chart is split into process flow sub-charts, including: Obtaining the number of modules of the sub-process modules preset in each of the process flow sub-graphs; The process flow chart is split according to the number of modules to obtain the process flow sub-chart, and the code corresponding to the process flow sub-chart is generated according to the connection relationship and morphological data of the sub-process modules in the process flow sub-chart, wherein each process flow sub-chart includes at least one sub-process module.

6. The method for formulating a process flow chart according to claim 5, characterized in that: The step of splitting the process flow chart according to the number of modules to obtain the process flow sub-chart includes: Splitting the process flow chart according to the number of modules to obtain initial sub-charts; Optimizing the layout of the initial sub-graph according to preset constraint conditions, and optimizing the appearance of the initial sub-graph according to preset appearance conditions; The optimized initial subgraph is determined as the process flow subgraph.

7. The method for formulating a process flow chart according to claim 6, characterized in that: The step of splitting the process flow chart into initial sub-charts according to the number of modules includes: Recursively expand all sub-process modules in the process flow chart to obtain a flattened process flow chart; According to the number of modules, the tiled process flow chart is split into the initial sub-charts.

8. The method for formulating a process flow chart according to claim 1, characterized in that: The method for constructing the legend database comprises: Get standard legends and preset custom legends; The standard legend and the custom legend are divided into logistics number and operation condition legend, pipeline legend and operation logic legend according to their functions and effects; Constructing an operating condition legend database according to the logistics number and the operating condition legend; Constructing a pipeline legend database according to the pipeline legend; Constructing an operation logic legend database according to the operation logic legend; The legend database is generated according to the operation condition legend database, the pipeline reasoning database and the operation logic database.

9. The method for formulating a process flow chart according to claim 8, characterized in that: The custom legend includes: Get a custom import file; Parsing the imported file to obtain an initial legend; The initial legend is verified, and the initial legend that passes the verification is determined as the custom legend.

10. A device for formulating a process flow chart, characterized in that: include: An updating module, for updating the initial flow chart of the process flow according to the acquired process information of the process flow based on a preset legend database to obtain a process flow chart; The splitting module is used to split the process flow chart into process flow sub-charts, and generate an export file of the process flow according to all the process flow sub-charts.

Citation Information

Cited By

  • Method and system for converting heat exchange network flow chart into multistage superstructure

    CN121980718A