Topological structure generation method, device, electronic device and storage medium
By analyzing and matching the module type information and connection relationships of the chemical process simulation file, the chemical process topology structure is updated, and the problem of unreasonable layout of the chemical process topology diagram is solved, and a more reasonable and beautiful topology diagram generation is achieved.
Patent Information
- Application Number
- CN202411471862.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-10-22
AI Technical Summary
When the existing chemical process process simulation software opens the process simulation file, there is a problem of unreasonable layout of the chemical process topology diagram.
By obtaining the initial chemical process simulation file, analyzing its module type information and connection relationships, matching it in the historical chemical process simulation file, obtaining the target chemical process simulation file, and updating the topological structure corresponding to the initial chemical process simulation file to generate a reasonable Layout chemical process topology diagram.
The rationality and aesthetics of the topological structure diagram of the chemical process are improved, and a more reasonable module layout is generated by referring to the topological structure of the historical chemical process simulation file.
Smart Images

Figure CN118981355B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a topology structure generation method, device, electronic equipment and storage medium. Background Art
[0002] With the development of computer technology, process simulation software has been widely used in industries such as industry and chemical industry.
[0003] At present, when a process simulation file is opened through chemical process simulation software, there is a problem of unreasonable layout of the chemical process topology diagram. Summary of the invention
[0004] The present invention provides a topological structure generation method, device, electronic equipment and storage medium to improve the rationality and aesthetics of a chemical process topological structure diagram.
[0005] According to one aspect of the present invention, a method for generating a topology structure is provided, comprising:
[0006] Acquire an initial chemical process simulation file, parse the initial chemical process simulation file, and obtain type information of multiple chemical process simulation modules and connection relationships between the multiple chemical process simulation modules;
[0007] Based on the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules, matching is performed in the historical chemical process simulation files to obtain a target chemical process simulation file;
[0008] Based on the target chemical process simulation file, the chemical process topology structure corresponding to the initial chemical process simulation file is updated to obtain a target chemical process topology structure diagram.
[0009] According to another aspect of the present invention, there is provided a topology structure generating device, comprising:
[0010] An initialization chemical process simulation file parsing module is used to obtain an initialization chemical process simulation file, parse the initialization chemical process simulation file, and obtain type information of multiple chemical process simulation modules and connection relationships between multiple chemical process simulation modules;
[0011] A target chemical process simulation file matching module is used to match historical chemical process simulation files based on type information of the multiple chemical process simulation modules and connection relationships between the multiple chemical process simulation modules to obtain a target chemical process simulation file;
[0012] The chemical process topology structure updating module is used to update the chemical process topology structure corresponding to the initial chemical process simulation file based on the target chemical process simulation file to obtain the target chemical process topology structure diagram.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor;
[0015] and a memory communicatively coupled to the at least one processor;
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the topology structure generating method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the topology structure generation method described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention obtains an initial chemical process simulation file, parses the initial chemical process simulation file, obtains type information of multiple chemical process simulation modules and the connection relationship between multiple chemical process simulation modules; based on the type information of multiple chemical process simulation modules and the connection relationship between multiple chemical process simulation modules, matches in the historical chemical process simulation file to obtain a target chemical process simulation file; based on the target chemical process simulation file, updates the chemical process topology structure corresponding to the initial chemical process simulation file to obtain a target chemical process topology structure diagram. The above technical solution generates a topology structure diagram with a reasonable layout of chemical process simulation modules by referring to the chemical process topology structure of the historical chemical process simulation file, thereby improving the rationality and aesthetics of the chemical process topology structure diagram.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flowchart of a method for generating a topology structure according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flowchart of a method for generating a topology structure according to Embodiment 2 of the present invention;
[0023] Figure 3 is a flowchart of a method for generating a topology structure according to Embodiment 3 of the present invention;
[0024] Figure 4 is a schematic diagram of a chemical process topology structure provided according to an embodiment of the present invention;
[0025] Figure 5 is a schematic diagram of the structure of a topology structure generating device provided according to a fourth embodiment of the present invention;
[0026] Figure 6 It is a schematic diagram of the structure of an electronic device for implementing the topology structure generating method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0029] Embodiment 1
[0030] Figure 1This is a flowchart of a topology structure generation method provided in the first embodiment of the present invention. This embodiment is applicable to the case of automatically adjusting the topology structure layout of a chemical process. The method can be executed by a topology structure generation device. The topology structure generation device can be implemented in the form of hardware and / or software. The topology structure generation device can be configured in a terminal and / or a server. Figure 1 As shown, the method includes:
[0031] S110, obtaining an initialization chemical process simulation file, parsing the initialization chemical process simulation file, and obtaining type information of multiple chemical process simulation modules and connection relationships between the multiple chemical process simulation modules.
[0032] In this embodiment, the initialization process simulation file refers to an engineering file imported into the chemical process simulation software, for example, the initialization process simulation file may be an Apsen Plus file. The chemical process simulation module refers to a module for simulating a chemical process, which may be a separator or material flow module, in other words, the type information of the chemical process simulation module may be a separator or material flow module, etc., which is not specifically limited here.
[0033] Exemplarily, the connection relationship between multiple chemical process simulation modules can be: A->B, C, D; B->E; C->F, G. The meaning of the above connection relationship is that A is connected to B, C and D respectively, B is connected to E, and C is connected to F and G respectively. AG can be any type of chemical process simulation module, which is not specifically limited here.
[0034] In some optional embodiments, obtaining the initialization process simulation file includes: obtaining the initialization process simulation file in response to a user's selection operation on the engineering file.
[0035] For example, the user selects the ApsenPlus file through the interactive interface of the independently developed chemical process simulation software, thereby obtaining an initial chemical process simulation file.
[0036] S120. Based on the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules, matching is performed in the historical chemical process simulation files to obtain a target chemical process simulation file.
[0037] In this embodiment, the historical chemical process simulation file refers to a chemical process simulation file with a reasonable layout, and the number of historical chemical process simulation files can be one or more. Specifically, a chemical process simulation file having the same module type information and module connection relationship as the initial chemical process simulation file can be matched among multiple historical chemical process simulation files, and the chemical process simulation file can be used as the target chemical process simulation file.
[0038] S130. Based on the target chemical process simulation file, the chemical process topology structure corresponding to the initial chemical process simulation file is updated to obtain a target chemical process topology structure diagram.
[0039] Specifically, the positions of each chemical process simulation module in the chemical process topology structure corresponding to the initial chemical process simulation file can be updated according to the coordinates of each chemical process simulation module in the target chemical process simulation file, so as to obtain a target chemical process topology structure diagram with a more reasonable layout.
[0040] The technical solution of the embodiment of the present invention obtains an initial chemical process simulation file, parses the initial chemical process simulation file, obtains type information of multiple chemical process simulation modules and the connection relationship between multiple chemical process simulation modules; based on the type information of multiple chemical process simulation modules and the connection relationship between multiple chemical process simulation modules, matches in the historical chemical process simulation file to obtain a target chemical process simulation file; based on the target chemical process simulation file, updates the chemical process topology structure corresponding to the initial chemical process simulation file to obtain a target chemical process topology structure diagram. The above technical solution generates a topology structure diagram with a reasonable layout of chemical process simulation modules by referring to the chemical process topology structure of the historical chemical process simulation file, thereby improving the rationality and aesthetics of the chemical process topology structure diagram.
[0041] Embodiment 2
[0042] Figure 2 A flowchart of a topology structure generation method provided for Embodiment 2 of the present invention, the method of this embodiment can be combined with the various optional schemes in the topology structure generation method provided in the above embodiments. The topology structure generation method provided in this embodiment is further optimized. Optionally, the type information based on the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules are matched in the historical chemical process simulation file to obtain the target chemical process simulation file, including: the historical chemical process simulation file having the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules is determined as the target chemical process simulation file.
[0043] like Figure 2 As shown, the method includes:
[0044] S210, obtaining an initialization chemical process simulation file, parsing the initialization chemical process simulation file, obtaining type information of multiple chemical process simulation modules and connection relationships between the multiple chemical process simulation modules.
[0045] S220. Determine the historical chemical process simulation file having the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules as the target chemical process simulation file.
[0046] S230. Based on the target chemical process simulation file, the chemical process topology structure corresponding to the initial chemical process simulation file is updated to obtain a target chemical process topology structure diagram.
[0047] Exemplarily, by parsing the initial chemical process simulation file, it can be obtained that the chemical process simulation modules include: A, B, C and D, A represents the separator, B, C and D are all material flows; the connection relationship between the chemical process simulation modules can be: A->B, C, D.
[0048] In this embodiment, a historical chemical process simulation file having A, B, C and D type information and A->B, C, D connection relationship may be determined as a target chemical process simulation file.
[0049] The technical solution of the embodiment of the present invention determines a historical chemical process simulation file having type information of multiple chemical process simulation modules and connection relationships between multiple chemical process simulation modules as a target chemical process simulation file, thereby achieving accurate selection of reference chemical process simulation files and providing a reliable basis for updating the chemical process topology structure diagram.
[0050] Embodiment 3
[0051] Figure 3 A flowchart of a topology structure generation method provided in Embodiment 3 of the present invention, the method of this embodiment can be combined with each optional scheme in the topology structure generation method provided in the above embodiments. The topology structure generation method provided in this embodiment is further optimized. Optionally, based on the target chemical process simulation file, the topology structure corresponding to the initial chemical process simulation file is updated to obtain a target chemical process topology structure diagram, including: determining the coordinate difference of the multiple chemical process simulation modules based on the target chemical process simulation file; determining the coordinate information corresponding to the multiple chemical process simulation modules based on the coordinate difference of the multiple chemical process simulation modules; based on the coordinate information corresponding to the multiple chemical process simulation modules, the chemical process topology structure corresponding to the initial chemical process simulation file is updated to obtain a target chemical process topology structure diagram.
[0052] like Figure 3 As shown, the method includes:
[0053] S310, obtaining an initialization chemical process simulation file, parsing the initialization chemical process simulation file, and obtaining type information of multiple chemical process simulation modules and connection relationships between the multiple chemical process simulation modules.
[0054] S320. Based on the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules, matching is performed in the historical chemical process simulation file to obtain a target chemical process simulation file.
[0055] S330. Determine the coordinate difference of the multiple chemical process simulation modules based on the target chemical process simulation file.
[0056] Specifically, the target chemical process simulation file can be parsed to obtain historical coordinate information of multiple chemical process simulation modules; and then the coordinate differences of the multiple chemical process simulation modules can be determined based on the historical coordinate information of the multiple chemical process simulation modules.
[0057] S340. Determine coordinate information corresponding to multiple chemical process simulation modules based on the coordinate differences of the multiple chemical process simulation modules.
[0058] Specifically, the coordinates of a starting module among multiple chemical process simulation modules can be determined; and the coordinate information corresponding to the multiple chemical process simulation modules can be determined based on the coordinates of the starting module and the coordinate differences of the multiple chemical process simulation modules.
[0059] S350. Based on the coordinate information corresponding to the multiple chemical process simulation modules, the chemical process topology structure corresponding to the initial chemical process simulation file is updated to obtain a target chemical process topology structure diagram.
[0060] Specifically, based on the coordinate information corresponding to the multiple chemical process simulation modules, the positions of the multiple chemical process simulation modules in the chemical process topology structure corresponding to the initial chemical process simulation file are adjusted to obtain a target chemical process topology structure diagram.
[0061] For example, Figure 4 is a schematic diagram of a chemical process topology structure provided according to an embodiment of the present invention. Figure 4In the figure, A represents the separator, and B, C, and D all represent material flows. After obtaining the target chemical process simulation file, the target chemical process simulation file can be parsed to obtain the historical coordinate information of A as (50,50), the historical coordinate information of B, C, and D as (100,25), (100,50), and (100,75), respectively; the coordinate difference between A and B is (50,-25), the coordinate difference between A and C is (50,0), and the coordinate difference between A and D is (50,25). Furthermore, A in the initial chemical process simulation file can be used as the starting module. If the starting module coordinates can be (100,100), the corresponding coordinate information of B, C, and D in the initial chemical process simulation file is (150,75), (150,100), and (150,125), respectively. Furthermore, the icons corresponding to B, C and D can be moved to (150,75), (150,100) and (150,125) respectively to obtain a chemical process topology diagram with a more reasonable and beautiful layout.
[0062] The technical solution of the embodiment of the present invention determines the coordinate difference of multiple chemical process simulation modules based on the target chemical process simulation file, and then determines the coordinate information corresponding to the multiple chemical process simulation modules based on the coordinate difference of the multiple chemical process simulation modules, and then based on the coordinate information corresponding to the multiple chemical process simulation modules, updates the chemical process topology structure corresponding to the initial chemical process simulation file, thereby generating a topology structure diagram with a reasonable layout of the chemical process simulation modules, thereby improving the rationality and aesthetics of the chemical process topology structure diagram.
[0063] Embodiment 4
[0064] Figure 5 This is a schematic diagram of a topology structure generating device provided in Embodiment 4 of the present invention. Figure 5 As shown, the device comprises:
[0065] An initialization chemical process simulation file parsing module 410 is used to obtain an initialization chemical process simulation file, parse the initialization chemical process simulation file, and obtain type information of multiple chemical process simulation modules and connection relationships between multiple chemical process simulation modules;
[0066] A target chemical process simulation file matching module 420 is used to match historical chemical process simulation files based on the type information of the plurality of chemical process simulation modules and the connection relationship between the plurality of chemical process simulation modules to obtain a target chemical process simulation file;
[0067] The chemical process topology structure updating module 430 is used to update the chemical process topology structure corresponding to the initial chemical process simulation file based on the target chemical process simulation file to obtain a target chemical process topology structure diagram.
[0068] The technical solution of the embodiment of the present invention obtains an initial chemical process simulation file, parses the initial chemical process simulation file, obtains type information of multiple chemical process simulation modules and the connection relationship between multiple chemical process simulation modules; based on the type information of multiple chemical process simulation modules and the connection relationship between multiple chemical process simulation modules, matches in the historical chemical process simulation file to obtain a target chemical process simulation file; based on the target chemical process simulation file, updates the chemical process topology structure corresponding to the initial chemical process simulation file to obtain a target chemical process topology structure diagram. The above technical solution generates a topology structure diagram with a reasonable layout of chemical process simulation modules by referring to the chemical process topology structure of the historical chemical process simulation file, thereby improving the rationality and aesthetics of the chemical process topology structure diagram.
[0069] In some optional implementations, the target chemical process simulation file matching module 420 may also be specifically used for:
[0070] The historical chemical process simulation file having the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules is determined as the target chemical process simulation file.
[0071] In some optional implementations, the chemical process topology structure updating module 430 includes:
[0072] A coordinate difference determination unit, used to determine the coordinate differences of the plurality of chemical process simulation modules based on the target chemical process simulation file;
[0073] A coordinate information determining unit, used to determine coordinate information corresponding to a plurality of chemical process simulation modules based on coordinate differences of the plurality of chemical process simulation modules;
[0074] The target chemical process topology structure diagram determining unit is used to update the chemical process topology structure corresponding to the initial chemical process simulation file based on the coordinate information corresponding to the multiple chemical process simulation modules to obtain the target chemical process topology structure diagram.
[0075] In some optional implementations, the coordinate difference determination unit may also be used to:
[0076] Parsing the target chemical process simulation file to obtain historical coordinate information of multiple chemical process simulation modules;
[0077] The coordinate differences of the multiple chemical process simulation modules are determined based on the historical coordinate information of the multiple chemical process simulation modules.
[0078] In some optional implementations, the coordinate information determination unit may also be used to:
[0079] Determine the starting module coordinates in multiple chemical process simulation modules;
[0080] The coordinate information corresponding to the multiple chemical process simulation modules is determined based on the starting module coordinates and the coordinate differences of the multiple chemical process simulation modules.
[0081] In some optional implementations, the target chemical process topology structure diagram determining unit may also be used to:
[0082] Based on the coordinate information corresponding to the multiple chemical process simulation modules, the positions of the multiple chemical process simulation modules in the chemical process topology structure corresponding to the initial chemical process simulation file are adjusted to obtain a target chemical process topology structure diagram.
[0083] In some optional implementations, the initialization process simulation file parsing module 410 may also be used to:
[0084] In response to the user's selection operation on the engineering file, an initialization engineering process simulation file is obtained.
[0085] The topology structure generating device provided in the embodiment of the present invention can execute the topology structure generating method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0086] Embodiment 5
[0087] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) 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 required herein.
[0088] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The I / O interface 15 is also connected to the bus 14.
[0089] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0090] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a topology structure generation method, which includes:
[0091] Acquire an initial chemical process simulation file, parse the initial chemical process simulation file, and obtain type information of multiple chemical process simulation modules and connection relationships between the multiple chemical process simulation modules;
[0092] Based on the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules, matching is performed in the historical chemical process simulation files to obtain a target chemical process simulation file;
[0093] Based on the target chemical process simulation file, the chemical process topology structure corresponding to the initial chemical process simulation file is updated to obtain a target chemical process topology structure diagram.
[0094] In some embodiments, the topology generation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the topology generation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the topology generation method in any other appropriate manner (e.g., by means of firmware).
[0095] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0096] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0097] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0098] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0099] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0100] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0101] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0102] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating a topological structure, characterized in that: include: Acquire an initial chemical process simulation file, parse the initial chemical process simulation file, and obtain type information of multiple chemical process simulation modules and connection relationships between the multiple chemical process simulation modules; Based on the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules, matching is performed in the historical chemical process simulation files to obtain a target chemical process simulation file; Determining coordinate differences of the plurality of chemical process simulation modules based on the target chemical process simulation file; Determining coordinate information corresponding to a plurality of chemical process simulation modules based on coordinate differences of the plurality of chemical process simulation modules; Based on the coordinate information corresponding to the multiple chemical process simulation modules, the chemical process topology structure corresponding to the initial chemical process simulation file is updated to obtain a target chemical process topology structure diagram.
2. The method according to claim 1, characterized in that The method of matching the historical chemical process simulation files based on the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules to obtain the target chemical process simulation file includes: The historical chemical process simulation file having the type information of the multiple chemical process simulation modules and the connection relationship between the multiple chemical process simulation modules is determined as the target chemical process simulation file.
3. The method according to claim 1, characterized in that The step of determining the coordinate differences of the plurality of chemical process simulation modules based on the target chemical process simulation file comprises: Parsing the target chemical process simulation file to obtain historical coordinate information of multiple chemical process simulation modules; The coordinate differences of the multiple chemical process simulation modules are determined based on the historical coordinate information of the multiple chemical process simulation modules.
4. The method according to claim 1, characterized in that: The determining of coordinate information corresponding to the plurality of chemical process simulation modules based on the coordinate differences of the plurality of chemical process simulation modules comprises: Determine the starting module coordinates in multiple chemical process simulation modules; The coordinate information corresponding to the multiple chemical process simulation modules is determined based on the starting module coordinates and the coordinate differences of the multiple chemical process simulation modules.
5. The method according to claim 1, characterized in that The chemical process topology structure corresponding to the initial chemical process simulation file is updated based on the coordinate information corresponding to the multiple chemical process simulation modules to obtain a target chemical process topology structure diagram, including: Based on the coordinate information corresponding to the multiple chemical process simulation modules, the positions of the multiple chemical process simulation modules in the chemical process topology structure corresponding to the initial chemical process simulation file are adjusted to obtain a target chemical process topology structure diagram.
6. The method according to any one of claims 1 to 5, characterized in that: The obtaining of the initial process simulation file includes: In response to the user's selection operation on the engineering file, an initialization engineering process simulation file is obtained.
7. A topology structure generating device, characterized in that: include: An initialization chemical process simulation file parsing module is used to obtain an initialization chemical process simulation file, parse the initialization chemical process simulation file, and obtain type information of multiple chemical process simulation modules and connection relationships between multiple chemical process simulation modules; A target chemical process simulation file matching module is used to match historical chemical process simulation files based on type information of the multiple chemical process simulation modules and connection relationships between the multiple chemical process simulation modules to obtain a target chemical process simulation file; Chemical process topology update module, including: A coordinate difference determination unit, used to determine the coordinate differences of the plurality of chemical process simulation modules based on the target chemical process simulation file; A coordinate information determining unit, used to determine coordinate information corresponding to a plurality of chemical process simulation modules based on coordinate differences of the plurality of chemical process simulation modules; The target chemical process topology structure diagram determining unit is used to update the chemical process topology structure corresponding to the initial chemical process simulation file based on the coordinate information corresponding to the multiple chemical process simulation modules to obtain the target chemical process topology structure diagram.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the topology structure generation method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the topology structure generation method according to any one of claims 1 to 6 when executed.
Citation Information
Patent Citations
Joint road matching method and device based on curve fitting and network topology structure
CN111757271A
Network structure processing method and device, electronic equipment and storage medium
CN114186680A