Generation method, visual display method and device of oil refining model
By constructing single-unit models and logistics connection models in the oil refining field, and combining them with historical production schemes, the problem of the inability of existing technologies to fully display multiple production processes has been solved, and the complex historical scheme modeling and visualization of the oil refining process has been realized.
Patent Information
- Application Number
- CN202411532234.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2026-05-01
Smart Images

Figure CN121963910A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer simulation technology, and in particular to a method for generating an oil refining model, a method for visualizing the model, and an apparatus. Background Technology
[0002] Using information technology to simulate reactions, cutting processes, and other activities in oil refining allows for the prediction of reaction outcomes without conducting actual experiments. The simulation results can then be used to iteratively optimize oil refining processes. Similar oil refining process simulation technologies are already widely used in various refining and chemical enterprises.
[0003] Existing technologies have emerged that use data collection and control, raw material information, processing device settings, 3D model construction, and control display modules to simulate and demonstrate the molecular-level transformation pathways of raw materials.
[0004] However, this type of simulation technology is still designed for specific processes and processing equipment, where the processes are relatively simple and the connections between processing equipment are relatively fixed. In the oil refining industry, numerous secondary processing units and processes are involved, and the connections between these units and the formulation of raw materials may be adjusted according to different production plans. For the same processing unit, different processes may be used at different times to produce different products. In the refining industry, there is a lack of methods to comprehensively demonstrate multiple production processes through models. However, showcasing historical production plans helps to understand the operational potential of the equipment, trace the properties of historical products, or optimize historical processes, which is significant in actual production. Summary of the Invention
[0005] In view of the above problems, the present invention is proposed to provide a method, visualization method and apparatus for generating an oil refining model that overcomes or at least partially solves the above problems.
[0006] In a first aspect, embodiments of the present invention provide a method for generating an oil refining model, characterized in that it includes:
[0007] Based on molecular databases and chemical reaction rule bases in the oil refining field, a single-unit model is created for each secondary processing unit; the single-unit model characterizes the environmental parameters, inputs, outputs, and all chemical reactions that occur during the operation of the secondary processing unit.
[0008] Based on the cutting results output by the single-unit model, a logistics connection model is constructed between each single-unit model and the downstream single-unit model; the logistics connection model is used to simulate the transfer process of different fractions between the secondary processing units.
[0009] For each historical production scheme in different time periods, based on the complete process of the historical production scheme, the logistics connection model connected to each single device model is connected to its downstream single device model to construct the complete process model of the historical production scheme.
[0010] For each historical production plan in different time periods, the historical raw material information of each production plan is input, the full-process model of each historical production plan is simulated and calculated, and the result logs corresponding to each historical production plan are obtained and stored.
[0011] In one embodiment, the molecular database is a structure-guided lumped molecular database (SOL) containing data corresponding to the molecular structures of various organic compounds.
[0012] Based on molecular databases and chemical reaction rule bases in the oil refining field, single-unit models are created for each secondary processing unit, including:
[0013] The multiple chemical reactions involved in the secondary processing device are determined, and a set of reaction rules corresponding to the secondary processing device is generated based on the mapping relationship between the secondary processing device and multiple chemical reaction rules in the chemical reaction rule base.
[0014] Based on the input of the raw materials in the entire process or the input defined by the upstream logistics connection model connected to the secondary processing device, after mixing the input, a set of SOL molecular data with mass fraction corresponding to the mixed input is used as the input of the secondary processing device;
[0015] The set of SOL molecule data with mass fractions corresponding to the output calculated according to the reaction rule set of the secondary processing device is used as the output of the secondary processing device;
[0016] Based on the identifier, environmental parameters, inputs, outputs, and reaction rule set of the secondary processing device, a single device model of the secondary processing device is generated.
[0017] In one embodiment, based on the cutting information output in the single-device model, a logistics connection is constructed between each single-device model and the downstream single-device model, including:
[0018] The cutting conditions for a set of fractions output by the secondary processing device characterized by the logistics connection are determined. The cutting conditions are a set of temperature values. The set of temperature values includes the initial distillation temperature and the final distillation temperature. The cutting conditions indicate that the substance transported on the logistics connection is a mixture between the initial distillation temperature and the final distillation temperature.
[0019] Based on the cutting conditions of the logistics connection, the set of SOL molecular data with mass fraction corresponding to the mixture of the logistics connection, the identifier of the upstream secondary processing device and the identifier of the downstream secondary architecture device, a model of the logistics connection between the single device model and the downstream single device model is constructed.
[0020] In one embodiment, the entire process model of each historical production plan is simulated to obtain the result logs corresponding to each historical production plan, including:
[0021] The full-process model of each historical production scheme is calculated and simulated based on the structure-oriented lumped method.
[0022] In one embodiment, after constructing the full-process model of the historical production scheme, the method further includes:
[0023] Based on the historical raw materials of the historical production plan, the valve opening and closing status between each secondary processing unit, and the historical fraction cutting conditions of each secondary processing unit, the reaction rules and environmental parameters in the full-process model of the historical production plan are re-regressed, and the full-process model of the historical production plan is adjusted.
[0024] Secondly, embodiments of the present invention provide a method for visualizing an oil refining model, comprising:
[0025] In response to the time interval parameter input by the user, the result logs corresponding to the saved historical production plans are filtered according to the time interval parameter to determine the result logs that meet the time interval.
[0026] Based on the result logs of the historical production plans, read all the operation result information of the historical production plans;
[0027] Based on the information of each secondary processing device involved in the full-process model of the historical production plan, draw the graphic of the single device model corresponding to each secondary processing device on the computer interface, and use the result log to add the corresponding operating parameter information to the single device model.
[0028] Based on the logistics connection model involved in the full-process model of the historical production plan, draw each logistics connection on the computer interface, and use the result log to add corresponding running parameter information to the logistics connection model;
[0029] The result logs corresponding to the historical production schemes are obtained through the method for generating refining models as described in any one of claims 1-5.
[0030] In one embodiment, the result log is used to add corresponding operating parameter information to the single-device model, including:
[0031] Add information on the feed flow rate and product flow rate of the single device model;
[0032] Add corresponding operating parameter information to the logistics connection model, including:
[0033] Add information on logistics flow rate and key physical properties to the logistics connection model.
[0034] In one embodiment, the time interval parameter is input in the following manner:
[0035] Input is made through an input box or time input control with time selection function set up on the computer interface.
[0036] In one embodiment, the method for generating the above-mentioned refining model further includes:
[0037] If the user-inputted time interval parameter is not received, then according to the time sequence of all historical production plans, draw the graphics of each secondary processing device involved in the entire process of the historical production plan and the logistics connection on the computer interface, add the corresponding operating parameter information, and display them in rotation.
[0038] Thirdly, embodiments of the present invention provide an apparatus for generating an oil refining model, comprising:
[0039] The single-device module creation module is used to create a single-device model for each secondary processing unit based on a molecular database and chemical reaction rule base in the oil refining field. The single-device model represents the environmental parameters, inputs, outputs, and all chemical reactions that occur during the operation of the secondary processing unit.
[0040] The logistics connection model is used to construct a logistics connection model between each single unit model and the downstream single unit model based on the cutting situation output in the single unit model; the logistics connection model is used to simulate the transfer process of different fractions between secondary processing units.
[0041] The full-process model is used to construct the full-process model of a historical production plan for each historical production plan in different time periods by connecting the logistics connection model of each single device model to its downstream single device model according to the full-process technology included in the historical production plan.
[0042] The result log simulation module is used to simulate and calculate the full-process model of each historical production plan for different time periods by inputting the historical raw material information of each production plan, and to obtain and store the result logs corresponding to each historical production plan.
[0043] Fourthly, embodiments of the present invention provide a visualization display device for an oil refining model, comprising:
[0044] The filtering module is used to respond to the time interval parameter input by the user, and filter the result logs corresponding to the saved historical production plans according to the time interval parameter to determine the result logs that meet the time interval.
[0045] The reading module is used to read all the operation result information of the historical production plan based on the result log of the historical production plan;
[0046] The UI implementation module is used to draw the graphics of the single device model corresponding to each secondary processing device on the computer interface based on the information of each secondary processing device involved in the full-process model of the historical production plan, and to add the corresponding operating parameter information to the single device model using the result log; and to draw each logistics connection line model based on the logistics connection line model involved in the full-process model of the historical production plan, and to add the corresponding operating parameter information to the logistics connection line model using the result log.
[0047] The result logs corresponding to the historical production schemes are obtained through the refining model generation method described above.
[0048] Fifthly, embodiments of the present invention provide a computing device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the aforementioned method for generating an oil refining model, or implements the aforementioned method for visualizing an oil refining model.
[0049] In a sixth aspect, embodiments of the present invention provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the aforementioned method for generating an oil refining model, or implements the aforementioned method for visualizing an oil refining model.
[0050] In a seventh aspect, embodiments of the present invention provide a computer program product, the computer program product including a computer program, which, when executed by a processor, implements the aforementioned method for generating an oil refining model, or implements the aforementioned method for visualizing an oil refining model.
[0051] The beneficial effects of the above-described technical solutions provided in the embodiments of the present invention include at least the following:
[0052] The oil refining model generation method provided in this invention provides equipment modeling capabilities through molecular databases and chemical reaction rule databases in the oil refining field. It creates a single-unit model for each secondary processing unit, and then constructs a material flow connection model between the single-unit model and downstream single-unit models based on the cutting situation output by the single-unit model. Furthermore, based on historical production schemes in different time periods in the oil refining field, and according to the entire process flow of the historical production schemes, it connects the single-unit models and material flow connections, and performs simulation calculations on the historical production schemes to obtain result logs. This invention provides excellent modeling capabilities for complex historical schemes in the oil refining field. By managing the entire process model of historical production schemes generated at different time periods, and saving the model output for each production scheme through result logs, the entire process flow of different historical production schemes within different time ranges can be displayed. This allows users to visually query the processes of different production schemes for refinery equipment at different time periods, facilitating the tracing of historical process data and tracking changes in production schemes and processes.
[0053] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings.
[0054] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0055] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0056] Figure 1 This is a flowchart of the method for generating the oil refining model in an embodiment of the present invention;
[0057] Figure 2 This is a schematic diagram of the interface details of the device in an embodiment of the present invention;
[0058] Figure 3 This is a schematic diagram of the overall architecture of the method for generating and displaying the oil refining model in an embodiment of the present invention;
[0059] Figure 4 This is a flowchart of a method for visualizing an oil refining model in an embodiment of the present invention;
[0060] Figure 5 A schematic diagram of the entire process model with a time lever control;
[0061] Figure 6This is a structural block diagram of the refining model generation device in an embodiment of the present invention;
[0062] Figure 7 This is a structural block diagram of the visualization display device for the oil refining model in an embodiment of the present invention; Detailed Implementation
[0063] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0064] To address the problems existing in the prior art, this invention provides a method for generating an oil refining model, referring to... Figure 1 As shown, it includes the following steps:
[0065] S11. Based on the molecular database and chemical reaction rule base in the oil refining field, create a single-unit model for each secondary processing unit; the single-unit model characterizes the environmental parameters, inputs, outputs, and all chemical reactions that occur during the operation of the secondary processing unit;
[0066] S12. Based on the cutting situation output in the single device model, construct a material flow connection model between each single device model and the downstream single device model; the material flow connection model is used to simulate the transfer process of different fractions between the secondary processing devices.
[0067] S13. For each historical production scheme in different time periods, according to the full process of the historical production scheme, connect the logistics connection model connected to each single device model with its downstream single device model to construct the full process model of the historical production scheme.
[0068] Each individual device model is connected to the downstream individual device models in sequence through the logistics connection model, thus forming a model that reflects the device connection status of the entire process.
[0069] S14. For each historical production plan in different time periods, input the historical raw material information of each production plan, simulate and calculate the full process model of each historical production plan, obtain the result log corresponding to each historical production plan and store it.
[0070] The oil refining model generation method provided in this invention provides equipment modeling capabilities through molecular databases and chemical reaction rule databases in the oil refining field. It creates a single-unit model for each secondary processing unit, and then constructs a material flow connection model between the single-unit model and downstream single-unit models based on the cutting situation output by the single-unit model. Furthermore, based on historical production schemes in different time periods in the oil refining field, and according to the entire process flow of the historical production schemes, it connects the single-unit models and material flow connections, and performs simulation calculations on the historical production schemes to obtain result logs. This invention provides excellent modeling capabilities for complex historical schemes in the oil refining field. By managing the entire process model of historical production schemes generated at different time periods, and saving the model output for each production scheme through result logs, the entire process flow of different historical production schemes within different time ranges can be displayed. This allows users to visually query the processes of different production schemes for refinery equipment at different time periods, facilitating the tracing of historical process data and tracking changes in production schemes and processes.
[0071] The following sections will provide a detailed explanation of each of the above steps.
[0072] In step S11 above, the molecular database can specifically be a structure-oriented lumping (SOL) molecular database, which contains data corresponding to the molecular structures of various organic compounds.
[0073] The SOL molecular database is based on a structure-guided lumped method, classifying common molecular structures into 24 basic structural types. For different types of compounds, the molecule is represented as a 24-dimensional vector based on the number of different basic structures within it. The SOL molecular database is built upon a physical database, and each SOL molecule dataset includes the following fields:
[0074] 1) Name: Used to describe the name of the molecule, which can be recorded in both Chinese and English. This field can be empty.
[0075] 2) 24-dimensional structure: This uses 24 fields to store the number of 24 types of structures in the molecule. The 24 fields include the following:
[0076]
[0077]
[0078] The SOL molecular database manages the molecular structures of various common organic compounds. Specifically, in molecular characterization, the SOL method arranges the number of functional groups in a molecule in order from A6 to V to generate a 24-dimensional vector array. For example, the SOL formula for hydrogen sulfide (H2S) is:
[0079] [0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0]
[0080] In this embodiment of the invention, the reaction rule database is a database used to store reaction rules.
[0081] A reaction rule is an abstract expression of a chemical reaction process. Reaction rules are generally saved in the form of script code. Each reaction rule includes the following:
[0082] 1) Reaction rule name: Used to describe the reaction rule, with the purpose of making it easy for users to identify.
[0083] 2) Applicable Device: Since the reactions in different secondary processing devices vary greatly, the reaction rules are labeled according to the type of device they belong to for condition screening, which is convenient for users.
[0084] 3) Input parameters: Each reaction rule should have a set of input parameters, which is a set of SOL molecules.
[0085] 4) Filtering Conditions: The reactants differ in chemical reactions within different secondary processing units. Filtering conditions are used to determine whether the current substance meets the reaction conditions. Similar to a filter, filtering conditions apply to each 24-dimensional SOL data point within the input parameters based on preset rules. A SOL molecule will participate in the reaction only if the filtering conditions are fully met; otherwise, the SOL molecule will not be processed.
[0086] 5) Output Results: SOL molecules that meet the filtering conditions are simulated according to the reaction rules. The simulation process involves modifying the 24-dimensional data, changing the input SOL molecules to new product SOL molecules, and adding them to the output set. The final output is a set of SOL molecules.
[0087] In one embodiment, step S11 above can be specifically created in the following manner:
[0088] 1) Determine the multiple chemical reactions involved in the secondary processing device, and generate a set of reaction rules corresponding to the secondary processing device based on the mapping relationship between the secondary processing device and multiple chemical reaction rules in the chemical reaction rule base;
[0089] 2) Based on the input of the raw materials in the entire process or the input defined by the upstream logistics connection model connected to the secondary processing device, after mixing the input, the set of SOL molecular data with mass fraction corresponding to the mixed input is used as the input of the secondary processing device;
[0090] 3) A set of SOL molecule data with mass fractions corresponding to the output calculated according to the reaction rule set of the secondary processing device is used as the output of the secondary processing device;
[0091] 4) Generate a single-device model of the secondary processing device based on the device's identifier, environmental parameters, inputs, outputs, and reaction rule set.
[0092] Multiple single-device models can form a single-device model library, which is responsible for managing the single-device models. In this embodiment of the invention, a single secondary processing device is referred to as a single device. A single-device model includes the following elements:
[0093] 1) Device Name: This is an identifier used to describe the secondary device, and its purpose is to help users identify what kind of device it is.
[0094] 2) Environmental parameters: These include reactor temperature, pressure, volume, etc., representing the operating environment of the secondary unit. Environmental parameters affect the reaction simulation rate. These parameters can be optimized using methods such as regression calculations.
[0095] 3) Reaction Rule Set: Each single-device model should include a set of reaction rules, which consists of multiple reaction rules simulating chemical reactions occurring within the single device. The reaction rule set is represented by a one-to-many relationship, realizing the mapping between the single-device model data and rules in multiple reaction rule databases. The reaction rules can be optimized through methods such as regression calculations.
[0096] Optimizing reaction rules allows their parameters to better reflect actual historical reaction conditions. The same apparatus may exhibit different reaction rates under varying temperatures and pressures. Therefore, the simulated reaction rate of a reaction rule changes with environmental variations.
[0097] In one embodiment, its rate can be calculated, for example, using the Arrhenius formula.
[0098] The Arrhenius formula is as follows:
[0099] K = k * exp(-Ea / RT) * P Pk
[0100] In the above formula, K is the reaction rate parameter of a certain reaction; k is a weight value, which can be obtained by regression calculation to obtain the optimal solution; Ea is the apparent activation energy, which is generally based on experimental measurement in actual use, and can be simulated by the carbon number of the SOL structure in simulation calculation; R is the molar gas constant, which can be taken as 8.314; T is the absolute temperature, in K, which comes from process data; P is the pressure, in MPa, which comes from process data; Pk is a parameter, which can be taken as 0.37.
[0101] Adjusting the temperature T and pressure P, as well as the regression adjustment of the weight k, can change the reaction rate, thereby altering the rate at which different reactions occur and affecting the product output of the unit. The regression process typically involves calculating the yield and main physical properties of the simulated product, subtracting them from the actual values, minimizing the difference as the regression target, constructing a mathematical regression with k as the parameter to be regressed, and iteratively calibrating the k value.
[0102] In one embodiment, step S12 above can be specifically implemented by constructing a logistics connection between each individual device model and its downstream individual device in the following manner:
[0103] The cutting conditions for a set of fractions output by the secondary processing device characterized by the logistics connection are determined. The cutting conditions are a set of temperature values. The set of temperature values includes the initial distillation temperature and the final distillation temperature. The cutting conditions indicate that the substance transported on the logistics connection is a mixture between the initial distillation temperature and the final distillation temperature.
[0104] Based on the cutting conditions of the logistics connection, the set of SOL molecular data with mass fraction corresponding to the mixture of the logistics connection, the identifier of the upstream secondary processing device and the identifier of the downstream secondary architecture device, a model of the logistics connection between the single device model and the downstream single device model is constructed.
[0105] In this embodiment of the invention, the flow path is a directed line. It records the fraction cutting process of the secondary processing unit, dividing the reaction product into multiple groups of fractions with different boiling points. It also connects different secondary processing units, simulating the transfer process of different fractions between the units. Two secondary processing units can be connected via flow paths, with a defined upstream and downstream relationship. Each flow path between the secondary processing units represents the flow direction of one fraction.
[0106] The logistics connection model has the following elements:
[0107] 1) Cutting conditions: A material flow line carries a set of fractions. It is necessary to record the cutting conditions of the fractions, which is generally a set of temperatures, including the initial distillation temperature and the final distillation temperature. This indicates that the material in this flow line comes from a mixture of the upstream unit output with boiling points between the initial distillation temperature and the final distillation temperature.
[0108] 2) Material Composition: The material composition of the current connected transmission is recorded using a set of SOLs with mass fractions. This is obtained by filtering the output products of the upstream device based on the cutting conditions.
[0109] 3) Upstream unit: When the material flow direction is from the unit to the connection line, this unit is the upstream unit of the material flow connection line. The material flow connection line is responsible for cutting the upstream unit and transferring a set of fractions.
[0110] 4) Downstream device: When the material flow direction is from the connection line to the device, this device is the downstream device of the material connection line. The material connection line is responsible for transmitting a set of raw materials to the downstream device. The downstream device performs calculations after mixing all the inputs.
[0111] In this embodiment of the invention, historical production plans are stored in a production plan database.
[0112] The production plan database is used to manage different production plans. A set of production plans describes a complete process flow. Only one production plan can be executed by a single set of equipment at any given time. A production plan includes the following elements:
[0113] 1) Start time: The time when the production plan begins, usually recorded in the form of year, month and day.
[0114] 2) End Time: The time when this production plan ends, usually recorded in the form of year, month, and day. A set of start / end times can represent the history of the execution of a production plan.
[0115] 3) Single-unit model: As mentioned above, this is a collection of single-unit models that constitute the entire production process. Each single-unit model includes pre-configured reaction rules and environmental parameters. These rules and parameters are part of the process flow; the reaction rules and parameters for the same unit will differ across different production schemes.
[0116] 4) Logistics Connections: This is the set of logistics connections that constitute the entire production process. Since logistics connections represent the cutting scheme of the products and the connection relationships between devices, the parameters of the logistics connections will differ in different production schemes.
[0117] 5) Raw Material Information: Different production plans use different raw materials. For any production plan, raw material consistency must be ensured. If two different sets of raw materials are entered under a single set of process parameters, this will be considered two different production plans. Therefore, it is necessary to record the raw materials for each production plan. Raw material information is recorded as a set of SOL molecules with mass fractions.
[0118] In one embodiment, in step S14, computational simulation can be performed using the structure-oriented lumped method.
[0119] For each production plan, at least one simulation calculation should be performed, and the results should be saved in a log. Logs can be stored in files, databases, etc., but are not limited to these methods. Result logs are managed at the unit level (single unit or material flow line) and include the following elements:
[0120] 1) Belonging device: Each log should belong to a unique secondary processing device.
[0121] 2) Simulated time: Each log entry should record the time it was generated.
[0122] 3) Unit feeding: For the unit log, the feeding information of the unit needs to be recorded and saved in the form of a SOL set with mass fraction.
[0123] 4) Equipment Products: For equipment logs, it is necessary to record the direct product information of the equipment and save it in the form of a SOL set with mass fraction.
[0124] 5) Composition of materials on the line: For logistics connection logs, it is necessary to record the composition of materials on the line and save it in the form of SOL sets with mass fractions.
[0125] 6) Material properties: The device log records the material properties of the products, and the material flow log records the material properties transmitted online. Common material properties are calculated and stored.
[0126] 7) Other information: Other information that needs to be recorded, including but not limited to running time, reaction scale, number of reaction molecules, number of product molecules, etc. Recording other information can be used to refine the visualization.
[0127] For example, after establishing a full-process model of the production plan, one can view the logistics information and product property information of a single unit under the time and process of the production plan. Figure 2 This is an example of the device details interface. By selecting any device in the full process diagrams at different time periods and entering the details page, you can view the logistics information, product properties, etc. of this device under the current time and process. The diagram shows the logistics information (catalytic cracking coke, diesel, dry natural gas and liquefied petroleum gas, etc.) and some physical property information (such as Engler initial boiling point temperature, Engler 5% distillation temperature, etc.) of each device.
[0128] After constructing the complete process model of the historical production plan, the simulated complete process model of the historical production plan can be optimized based on the actual raw material inputs and outputs of the historical production plan. For example:
[0129] Based on the historical raw materials of the historical production plan, the valve opening and closing status between each secondary processing unit, and the historical fraction cutting conditions of each secondary processing unit, the reaction rules and environmental parameters in the full-process model of the historical production plan are re-regressed, and the full-process model of the historical production plan is adjusted.
[0130] After the results log is generated, it can be displayed through a computer interface.
[0131] The structure for modeling and displaying an oil refining model can be referenced. Figure 3 As shown.
[0132] exist Figure 3The structure, from bottom to top, includes: infrastructure layer, module layer, end-to-end process layer, solution layer, log layer, and presentation layer; among which:
[0133] The infrastructure layer includes a SOL molecular database and a reaction rule database; the module layer contains a single-device model library and a logistics connection database; the end-to-end layer includes an end-to-end model library, which stores end-to-end models of historical production plans for various time periods. The log layer includes a log system for storing generated result logs for querying and visualization. The presentation layer interacts with users through a visual UI, enabling automatic display of model results or display of query results.
[0134] In its implementation, the aforementioned architecture provides simulation capabilities for secondary processing units by establishing a SOL molecule database and a reaction rule database. The secondary processing unit models are combined into a full-process model through logistics connections. A production scheme database manages the feed and process parameters for different production schemes across different timeframes. A performance log system saves the model output for each production scheme. A visual UI provides users with data display functionality.
[0135] This invention provides a method for visualizing an oil refining model, referring to... Figure 4 As shown, the method includes the following steps:
[0136] S41. In response to the time interval parameter input by the user, filter the result logs corresponding to the saved historical production plans according to the time interval parameter, and determine the result logs that meet the time interval.
[0137] S42. Based on the result log of the historical production plan, read all the operation result information of the historical production plan;
[0138] S43. Based on the information of each secondary processing device involved in the full-process model of the historical production plan, draw the graphic of the single device model corresponding to each secondary processing device on the computer interface, and use the result log to add the corresponding operating parameter information to the single device model.
[0139] S44. Based on the logistics connection model involved in the full-process model of the historical production plan, draw each logistics connection on the computer interface, and use the result log to add corresponding running parameter information to the logistics connection model.
[0140] The result logs corresponding to the aforementioned historical production schemes were obtained using the refining model generation method described above.
[0141] In one embodiment, in S43 and S44 above, the result log is used to add information on the raw material flow rate and product flow rate of the single device model; and the result log is used to add information on the material flow rate and main physical properties of the material flow connection model.
[0142] The time interval parameter input by the user mentioned above shall be input in the following manner during implementation:
[0143] Input is made through an input box or time input control with time selection functionality set up on a computer interface. The input control can be a drag-and-drop control, and the input box can be a point-and-click type or a direct text input type. This embodiment of the invention does not limit the specific form of the UI input data interface.
[0144] In one embodiment, if the above-mentioned visualization method for the oil refining model does not receive the user-inputted time interval parameter, it will draw the graphics and logistics connections of each secondary processing unit involved in the entire process of the historical production plan on the computer interface according to the chronological order of the time periods of all historical production plans, add the corresponding operating parameter information, and display them in rotation.
[0145] For example, the visualization UI continuously displays data from different production plans across different time periods for a set of end-to-end models based on existing result logs. After reading all result logs for a model by its end-to-end model ID, the UI can display production plans for the corresponding time period based on the input time parameters. Without inputting specific time parameters, the visualization UI can display all existing production plans in chronological order, showcasing the historical plans of the end-to-end model.
[0146] The following is an example illustrating the modeling and visualization of the oil refining model:
[0147] A model was built for a complete refining and chemical plant system. First, individual unit models of the secondary processing units were established, following the sequence from atmospheric and vacuum distillation to product tanks. Reaction rules and environmental parameters were designed based on the actual reactions within the units during production. Then, downstream material flow lines were designed for each secondary unit based on its actual cutting conditions. Finally, these material flow lines were connected to the downstream units according to the actual process conditions, forming a complete process model.
[0148] At this point, the raw materials for the current process can be input, and the rules and parameters of each secondary processing unit can be optimized using regression calculations and other methods to obtain the most suitable model for the current process. This model is then used for simulation calculations to obtain a set of operational result logs for the current process.
[0149] Subsequently, based on the historical data currently available, full-process models for different production schemes are established using a similar process. Raw material information for each production scheme is input, and multiple sets of operational result logs for different time periods are calculated. Building historical models is relatively easier; it only requires inputting historical raw materials based on the current model, adjusting the cutting conditions of the logistics connection, modifying the opening and closing of valves between simulation units in the logistics connection, and then re-regressing on the reaction rules of the secondary unit and the unit's environmental parameters to quickly establish a model for the historical production scheme.
[0150] In actual demonstrations, a visual UI can be used to render the devices and connections. A time-based control is provided, allowing users to instantly read and display the production plan logs at a specific moment as they drag the timer. Historical process flow displays are also provided, showing the running results of different production plans in rotation, along with the execution time of each production plan, allowing users to understand the entire production process in a very intuitive way.
[0151] Specifically, in this example, the visual UI can be displayed according to the following process:
[0152] 1) Production plan query: Based on the input time, query which production plan the input time belongs to.
[0153] 2) Log data reading: Based on the determined production plan, search the historical logs of the entire process model and read all the running result information of the plan.
[0154] 3) Single device rendering: Based on the secondary processing device information associated with the scheme, draw the graphics of each single device model on the UI, and use the device log in the running result log to add running information to the single device model, such as the device raw material flow rate, product flow rate, etc.
[0155] 4) Logistics connection rendering: Based on the logistics connection information associated with the solution, draw each logistics connection on the UI, and use the logistics connection log in the running result log to add running information to the connection, such as logistics flow rate, main material properties, etc.
[0156] A UI display with a drag-and-drop time control, as shown below. Figure 5 As shown, the gray area represents the graphics corresponding to a single device model, while the blue lines represent the logistics connection model. At the bottom of the interface is a drag-and-drop time control. As the time lever is dragged to enter different time intervals, the logistics connections of each secondary processing device in the entire process model will change according to the model, including the type of material, environmental parameters of the device, and other process-related information.
[0157] Based on the same inventive concept, embodiments of the present invention also provide a device for generating an oil refining model and a device for visualizing an oil refining model. Since the principles by which these devices solve problems are similar to the aforementioned methods for generating and visualizing an oil refining model, the implementation of these devices can refer to the implementation of the aforementioned methods, and repeated details will not be repeated.
[0158] An embodiment of the present invention provides an apparatus for generating an oil refining model, referring to... Figure 6 As shown, it includes:
[0159] The single-device module creation module 61 is used to create a single-device model for each secondary processing unit based on a molecular database and chemical reaction rule base in the oil refining field; the single-device model represents the environmental parameters, inputs, outputs and all chemical reactions that occur during the operation of the secondary processing unit;
[0160] Logistics connection model 62 is used to construct a logistics connection model between each single device model and the downstream single device model based on the cutting situation output in the single device model; the logistics connection model is used to simulate the transfer process of different fractions between secondary processing devices.
[0161] The full-process model 63 is used to connect the logistics connection model connected to each single device model with its downstream single device model for each historical production scheme in different time periods, based on the full-process technology included in the historical production scheme, to construct the full-process model included in the historical production scheme.
[0162] The result log simulation module 64 is used to simulate and calculate the full-process model of each historical production plan for different time periods by inputting the historical raw material information of each production plan, and to obtain and store the result logs corresponding to each historical production plan.
[0163] This invention provides a visualization device for an oil refining model, referring to... Figure 7 As shown, it includes:
[0164] The filtering module 71 is used to respond to the time interval parameter input by the user, and filter the result logs corresponding to the saved historical production plans according to the time interval parameter to determine the result logs that meet the time interval.
[0165] The reading module 72 is used to read all the operation result information of the historical production plan based on the result log of the historical production plan;
[0166] UI implementation module 73 is used to draw the graphics of the single device model corresponding to each secondary processing device on the computer interface based on the information of each secondary processing device involved in the full-process model of the historical production plan, and to add the corresponding operating parameter information to the single device model using the result log; and to draw each logistics connection line on the computer interface based on the logistics connection line model involved in the full-process model of the historical production plan, and to add the corresponding operating parameter information to the logistics connection line model using the result log.
[0167] The result logs corresponding to the historical production schemes are obtained through the refining model generation method described above.
[0168] An embodiment of the present invention provides a computing device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the aforementioned method for generating an oil refining model, or implements the aforementioned method for visualizing an oil refining model.
[0169] This invention provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements either the aforementioned method for generating an oil refining model or the aforementioned method for visualizing an oil refining model.
[0170] The present invention provides a computer program product, characterized in that the computer program product includes a computer program, which, when executed by a processor, implements the aforementioned method for generating an oil refining model, or implements the aforementioned method for visualizing an oil refining model.
[0171] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0172] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0173] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0174] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0175] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A method for generating an oil refining model, characterized in that, include: Based on molecular databases and chemical reaction rule bases in the oil refining field, a single-unit model is created for each secondary processing unit. The single-device model characterizes the environmental parameters, inputs, outputs, and all chemical reactions that occur during the operation of the secondary processing device; Based on the cutting results output by the single-unit model, a logistics connection model is constructed between each single-unit model and the downstream single-unit model; the logistics connection model is used to simulate the transfer process of different fractions between the secondary processing units. For each historical production scheme in different time periods, based on the complete process of the historical production scheme, the logistics connection model connected to each single device model is connected to its downstream single device model to construct the complete process model of the historical production scheme. For each historical production plan in different time periods, the historical raw material information of each production plan is input, the full-process model of each historical production plan is simulated and calculated, and the result logs corresponding to each historical production plan are obtained and stored.
2. The method as described in claim 1, characterized in that, The molecular database is a structure-oriented aggregated SOL molecular database, which contains data corresponding to the molecular structures of various organic compounds. Based on molecular databases and chemical reaction rule bases in the oil refining field, single-unit models are created for each secondary processing unit, including: The multiple chemical reactions involved in the secondary processing device are determined, and a set of reaction rules corresponding to the secondary processing device is generated based on the mapping relationship between the secondary processing device and multiple chemical reaction rules in the chemical reaction rule base. Based on the input of the raw materials in the entire process or the input defined by the upstream logistics connection model connected to the secondary processing device, after mixing the input, a set of SOL molecular data with mass fraction corresponding to the mixed input is used as the input of the secondary processing device; The set of SOL molecule data with mass fractions corresponding to the output calculated according to the reaction rule set of the secondary processing device is used as the output of the secondary processing device; Based on the identifier, environmental parameters, inputs, outputs, and reaction rule set of the secondary processing device, a single device model of the secondary processing device is generated.
3. The method as described in claim 1, characterized in that, Based on the cutting data output from the single-unit model, a logistics connection is constructed between each single-unit model and the downstream single-unit model, including: The cutting conditions for a set of fractions output by the secondary processing device characterized by the logistics connection are determined. The cutting conditions are a set of temperature values. The set of temperature values includes the initial distillation temperature and the final distillation temperature. The cutting conditions indicate that the substance transported on the logistics connection is a mixture between the initial distillation temperature and the final distillation temperature. Based on the cutting conditions of the logistics connection, the set of SOL molecular data with mass fraction corresponding to the mixture of the logistics connection, the identifier of the upstream secondary processing device and the identifier of the downstream secondary architecture device, a model of the logistics connection between the single device model and the downstream single device model is constructed.
4. The method as described in claim 1, characterized in that, Simulation calculations were performed on the full-process model of each historical production plan to obtain the result logs corresponding to each historical production plan, including: The full-process model of each historical production scheme is calculated and simulated based on the structure-oriented lumped method.
5. The method as described in claim 2, characterized in that, After constructing the full-process model of the historical production scheme, the method further includes: Based on the historical raw materials of the historical production plan, the valve opening and closing status between each secondary processing unit, and the historical fraction cutting conditions of each secondary processing unit, the reaction rules and environmental parameters in the full-process model of the historical production plan are re-regressed, and the full-process model of the historical production plan is adjusted.
6. A method for visualizing an oil refining model, characterized in that, include: In response to the time interval parameter input by the user, the result logs corresponding to the saved historical production plans are filtered according to the time interval parameter to determine the result logs that meet the time interval. Based on the result logs of the historical production plans, read all the operation result information of the historical production plans; Based on the information of each secondary processing device involved in the full-process model of the historical production plan, draw the graphic of the single device model corresponding to each secondary processing device on the computer interface, and use the result log to add the corresponding operating parameter information to the single device model. Based on the logistics connection model involved in the full-process model of the historical production plan, draw each logistics connection on the computer interface, and use the result log to add corresponding running parameter information to the logistics connection model; The result logs corresponding to the historical production schemes are obtained through the method for generating refining models as described in any one of claims 1-5.
7. The method as described in claim 6, characterized in that, The result log is used to add corresponding operating parameter information to the single device model, including: Add information on the feed flow rate and product flow rate of the single device model; Add corresponding operating parameter information to the logistics connection model, including: Add information on logistics flow rate and key physical properties to the logistics connection model.
8. The method as described in claim 6, characterized in that, The time interval parameter is input in the following manner: Input is made through an input box or time input control with time selection function set up on the computer interface.
9. The method according to any one of claims 6-8, characterized in that, Also includes: If the user-inputted time interval parameter is not received, then according to the time sequence of all historical production plans, draw the graphics of each secondary processing device involved in the entire process of the historical production plan and the logistics connection on the computer interface, add the corresponding operating parameter information, and display them in rotation.
10. An apparatus for generating an oil refining model, characterized in that, include: The single-unit module creation module is used to create a single-unit model for each secondary processing unit based on molecular databases and chemical reaction rule bases in the oil refining field. The single-device model characterizes the environmental parameters, inputs, outputs, and all chemical reactions that occur during the operation of the secondary processing device; The logistics connection model is used to construct a logistics connection model between each single unit model and the downstream single unit model based on the cutting situation output in the single unit model; the logistics connection model is used to simulate the transfer process of different fractions between secondary processing units. The full-process model is used to construct the full-process model of a historical production plan for each historical production plan in different time periods by connecting the logistics connection model of each single device model to its downstream single device model according to the full-process technology included in the historical production plan. The result log simulation module is used to simulate and calculate the full-process model of each historical production plan for different time periods by inputting the historical raw material information of each production plan, and to obtain and store the result logs corresponding to each historical production plan.
11. A visualization display device for an oil refining model, characterized in that, include: The filtering module is used to respond to the time interval parameter input by the user, and filter the result logs corresponding to the saved historical production plans according to the time interval parameter to determine the result logs that meet the time interval. The reading module is used to read all the operation result information of the historical production plan based on the result log of the historical production plan; The UI implementation module is used to draw the graphics of the single device model corresponding to each secondary processing device on the computer interface based on the information of each secondary processing device involved in the full-process model of the historical production plan, and to add the corresponding operating parameter information to the single device model using the result log; and to draw each logistics connection line model based on the logistics connection line model involved in the full-process model of the historical production plan, and to add the corresponding operating parameter information to the logistics connection line model using the result log. The result logs corresponding to the historical production schemes are obtained through the method for generating refining models as described in any one of claims 1-5.
12. A computing device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for generating an oil refining model as described in any one of claims 1-5, or to implement the method for visualizing an oil refining model as described in any one of claims 6-9.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for generating an oil refining model as described in any one of claims 1-5, or the method for visualizing an oil refining model as described in any one of claims 6-9.
14. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method for generating an oil refining model as described in any one of claims 1-5, or implements the method for visualizing an oil refining model as described in any one of claims 6-9.
