Oil refining unit simulation method, device, system and storage medium based on B / S architecture
The B/S architecture refining unit simulation method solves the limitations of the stand-alone version and C/S architecture in the existing technology, realizes the refining unit simulation without client installation, and improves the interactive experience and maintenance efficiency.
Patent Information
- Application Number
- CN202010533874.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-12
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-06-12
AI Technical Summary
In existing petroleum processing technology, most device simulation software is a stand-alone version, which limits the use of computing resources, and the network version is based on C/S architecture. Users need to install client programs, which is cumbersome to operate, has high development costs, slow updates, and requires maintenance. inconvenient.
The refinery unit simulation method based on B/S architecture is adopted to receive user operation instructions through the web client, send them to the web server for analysis and model calculation, return the execution results, realize browser interface display, avoid client installation, and improve the interactive experience and Data processing speed.
There is no need to install a client program, users can operate directly in the browser, which improves the interactive experience and efficiency of oil refining unit simulation, simplifies system maintenance, and reduces development costs.
Smart Images

Figure CN111899794B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of petroleum processing, and in particular to a method, device, system and storage medium for simulating an oil refining device based on a B / S architecture. Background Art
[0002] In the field of oil processing technology, most simulation software for devices is a stand-alone version, which can only use limited local computing resources. However, network simulation software can use more computing resources. Network simulation software is basically based on the interaction mode of C / S (client / server) architecture. Users need to connect to the remote server by installing the program on the client. After the connection is successful, messages are sent to the server to operate the data terminal.
[0003] The existing technical solutions have the following disadvantages: users need to install the client program on their local computers, which is cumbersome. Furthermore, due to the high cost of client program development, the program update speed is slow and occupies storage space, making it inconvenient for developers to maintain the system. Summary of the invention
[0004] The main purpose of the present invention is to provide a method, device, system and storage medium for simulating an oil refinery unit based on a B / S architecture to solve the defects of the prior art.
[0005] In view of the above technical problems, the present invention solves them through the following technical solutions:
[0006] The present invention provides a method for simulating an oil refining device based on a B / S architecture, comprising:
[0007] Receiving operation instructions corresponding to the oil refining device input by the user through the browser interface of the web client;
[0008] Sending the operation instruction to a web server through network communication, so that the web server parses the operation instruction, inputs the parsed operation instruction into a pre-trained model, obtains an execution result output by the model corresponding to the parsed operation instruction, and sends the execution result to the web client;
[0009] The execution result received by the web client is displayed on the browser interface.
[0010] Wherein, the method preferably further comprises:
[0011] Receive a user name and password input by the user through the browser interface;
[0012] The user name and password are sent to the web server through network communication so that the web server performs user identity authentication. If the user identity authentication is successful, the step of receiving the operation instructions corresponding to the oil refining device input by the user through the browser interface of the web client is executed.
[0013] Wherein, displaying the execution result received by the web client on the browser interface preferably includes:
[0014] In the output window of the browser interface, the execution results are displayed in a table, or in a graphical manner, or in a manner of generating a reaction network.
[0015] Wherein, displaying the execution result in a manner of generating a reaction network preferably includes:
[0016] The execution result is displayed in a manner of generating a two-dimensional reaction network.
[0017] Wherein, displaying the execution result in a manner of generating a reaction network preferably includes:
[0018] The execution result is displayed in a manner of generating a three-dimensional reaction network.
[0019] Wherein, displaying the execution result in a manner of generating a reaction network preferably includes:
[0020] Display one or more of the molecular composition, the structure of various single molecules in the molecular composition, the content of various single molecules, the physical properties of various single molecules, or the content of various single molecules.
[0021] Wherein, the method preferably further comprises:
[0022] In the operation instruction input window of the browser interface, optional operation instructions and corresponding controls are displayed for the user to select and use.
[0023] Wherein, the operation instruction preferably includes an instruction type and instruction content.
[0024] Among them, the instruction types preferably include but are not limited to button clicking, screen clicking, screen sliding, auxiliary screen turning, rotation and zooming, and text input.
[0025] Wherein, the model preferably includes a product prediction model, and the step of obtaining the execution result output by the model corresponding to the parsed operation instruction includes:
[0026] Query a molecular composition database, and use the molecular composition data corresponding to the parsed operation instruction in the molecular composition database as the execution result output by the product prediction model; wherein the molecular composition database includes: the molecular composition of the crude oil of the oil refinery obtained; the molecular composition of different fractions obtained by distilling the crude oil obtained according to the physical properties of each single molecule in the molecular composition of the crude oil; according to a preset raw material ratio, input each corresponding fraction as a refining raw material into the product prediction model of the corresponding oil refinery respectively, and obtain the molecular composition of the corresponding predicted product and the content of each single molecule in the predicted product; use each of the predicted products as a product blending raw material to blend according to a preset rule set, and obtain the molecular composition of multiple groups of mixtures and the content of each single molecule in the mixture.
[0027] Wherein, the step of training the product prediction model preferably includes:
[0028] Establishing a product prediction model; wherein the product prediction model includes: a reaction rule set of multiple reaction rules and a reaction rate algorithm;
[0029] Obtaining sample material information of the sample material;
[0030] Using the sample raw material information, training the reaction rule set, and fixing the trained reaction rule set;
[0031] The reaction rate algorithm is trained using the sample raw material information, and the trained reaction rate algorithm is fixed to obtain the trained product prediction model.
[0032] The sample raw material information of the sample raw material preferably includes: the molecular composition of the sample raw material, the molecular content of each molecule in the sample raw material, the molecular composition of the actual product corresponding to the sample raw material and the actual content of each molecule in the actual product.
[0033] Wherein, using the sample raw material information to train the reaction rule set preferably includes:
[0034] Processing the molecular composition of the sample raw material according to a preset reaction rule set to obtain a reaction path corresponding to each molecule in the molecular composition of the sample raw material;
[0035] According to the reaction path corresponding to each molecule in the molecular composition of the sample raw material, a first molecular composition of the device product is obtained; the device product includes: the sample raw material, the intermediate product and the predicted product;
[0036] Calculating a first relative deviation based on a first molecular composition of a product of the device and a second molecular composition of an actual product;
[0037] If the first relative deviation meets a preset condition, fixing the reaction rule set;
[0038] If the first relative deviation does not meet the preset condition, the reaction rule in the reaction rule set is adjusted, and the first relative deviation is recalculated according to the adjusted reaction rule set until the first relative deviation meets the preset condition.
[0039] Wherein, calculating the first relative deviation according to the first molecular composition of the device product and the second molecular composition of the actual product preferably includes:
[0040] Obtaining types of single molecules in the first molecular composition to form a first set;
[0041] Obtaining types of single molecules in the second molecular composition to form a second set;
[0042] Determining whether the second set is a subset of the first set;
[0043] If the second set is not a subset of the first set, obtaining a pre-stored relative deviation value that does not meet a preset condition as the first relative deviation value;
[0044] If the second set is a subset of the first set, the first relative deviation is calculated as follows:
[0045] Determine a first relative deviation according to the proportion of the number of the part of the predicted products that is not in the second set to the total number of the predicted products;
[0046] For example, the first relative deviation is calculated by the following calculation formula:
[0047]
[0048] Among them, x1 is the first relative deviation, M is the first set, M1 is the set of types of single molecules in the molecular composition of the sample raw material, M2 is the set of types of single molecules in the molecular composition of the intermediate product, M3 is the second set, and card represents the number of elements in the set.
[0049] Wherein, using the sample raw material information to train the reaction rate algorithm preferably includes:
[0050] According to the reaction rate algorithm, respectively calculating the reaction rate of the reaction path corresponding to each molecule in the molecular composition of the sample raw material;
[0051] Obtaining the predicted content of each molecule in the predicted product corresponding to the sample raw material according to the molecular content of each molecule in the sample raw material and the reaction rate corresponding to the reaction path of the molecule;
[0052] Calculating a second relative deviation based on the predicted content of each molecule in the predicted product and the actual content of each molecule in the actual product;
[0053] If the second relative deviation meets a preset condition, fixing the reaction rate algorithm;
[0054] If the second relative deviation does not meet the preset conditions, the parameters in the reaction rate algorithm are adjusted, and the second relative deviation is recalculated according to the adjusted reaction rate algorithm until the second relative deviation meets the preset conditions.
[0055] Wherein, according to the reaction rate algorithm, respectively calculating the reaction rate of the reaction path corresponding to each molecule in the molecular composition of the sample raw material, preferably includes:
[0056] The reaction rate of each reaction path is calculated according to the reaction rate constant in the reaction rate algorithm; wherein,
[0057] The reaction rate constant is determined based on the transition state theory calculation method;
[0058] For example, the reaction rate constant is determined according to the following calculation formula:
[0059]
[0060] Where k is the reaction rate constant, k B is the Boltzmann constant, h is the Planck constant, R is the ideal gas constant, E is the temperature of the environment where the reaction path is located, exp is an exponential function with the natural constant as the base, ΔS is the entropy change before and after the reaction corresponding to the reaction rule corresponding to the reaction path, ΔE is the reaction energy barrier corresponding to the reaction rule corresponding to the reaction path, Catalyst activity factor, P is the pressure value of the environment in which the reaction path is located, and α is the pressure influence factor corresponding to the reaction rule corresponding to the reaction path.
[0061] The model preferably includes a physical property calculation model, and the step of obtaining the execution result output by the model corresponding to the parsed operation instruction includes:
[0062] The physical property parameter database is queried, and the physical property data corresponding to the parsed operation instruction in the physical property parameter database is used as the execution result output by the physical property calculation model; wherein the physical property parameter database includes: the physical properties of various single molecules in the molecular composition of the crude oil of the refinery; and the physical properties of the mixture.
[0063] Wherein, the method for calculating the physical properties of the mixture preferably includes:
[0064] For each single molecule in the mixture, calculating the physical property of the single molecule according to the number of each group constituting the single molecule and the contribution value of each group to the physical property;
[0065] The physical properties of the mixture are calculated based on the physical properties of various single molecules in the mixture and the content of each single molecule in the mixture.
[0066] Before calculating the physical properties of the single molecule, the method preferably further comprises:
[0067] Compare the number of each group constituting the single molecule with the molecular information of the template single molecule with known physical properties pre-stored in the second database; wherein the molecular information includes: the number of each group constituting the template single molecule;
[0068] Determining whether there is a template single molecule identical to the single molecule;
[0069] If there is a template single molecule identical to the single molecule, outputting the physical properties of the template single molecule as the physical properties of the single molecule;
[0070] If there is no template single molecule identical to the single molecule, the physical properties of the single molecule are calculated.
[0071] Wherein, the method for calculating the physical properties of a single molecule preferably includes:
[0072] For each single molecule in the mixture, obtain the number of each group constituting the single molecule, and obtain the contribution value of each group to the physical property;
[0073] The number of groups of each group constituting the single molecule and the contribution value of each group to the physical property are input into a pre-trained physical property calculation model to obtain the physical property of the single molecule output by the physical property calculation model; wherein,
[0074] The physical property calculation model is used to calculate the physical property of the single molecule according to the number of each group contained in the single molecule and the contribution value of each group to the physical property.
[0075] Wherein, the step of training the physical property calculation model preferably includes:
[0076] Construct computational models of physical properties of single molecules;
[0077] Obtaining the number of each group constituting a sample single molecule; the physical properties of the sample single molecule are known;
[0078] Inputting the number of each group contained in the sample single molecule into the physical property calculation model;
[0079] Obtaining the predicted physical properties of the sample single molecule output by the physical property calculation model;
[0080] If the deviation between the predicted physical property and the known physical property is less than a preset deviation threshold, the physical property calculation model is determined to be converged, and the contribution value corresponding to each group is obtained in the converged physical property calculation model, and stored as the contribution value of the group to the physical property;
[0081] If the deviation value between the predicted physical property and the known physical property is greater than or equal to the deviation threshold, the contribution value corresponding to each group in the physical property calculation model is adjusted until the physical property calculation model converges.
[0082] Wherein, preferably, primary groups and multi-level groups are determined among all the groups of the single molecule; wherein,
[0083] All the groups constituting a single molecule are regarded as primary groups;
[0084] Multiple groups that exist simultaneously and contribute to the same physical property are regarded as multi-level groups, and the number of the multiple groups is regarded as the level of the multi-level group;
[0085] Among them, multi-level groups refer to groups with two or more levels;
[0086] Multiple groups refer to two or more groups.
[0087] The physical property calculation model determines the physical properties of a single molecule in the following manner:
[0088] Obtaining the product of the number of groups of each group and the contribution value of each group to the physical property;
[0089] The physical properties of the single molecule are obtained from the sum of the corresponding products of each group.
[0090] For example, the physical property calculation model is as follows:
[0091]
[0092] Wherein, f is the physical property of the single molecule, n i is the number of groups in the ith group, Δf i is the contribution value of the ith group to the physical property, and a is the association constant.
[0093] Preferably, the obtaining of the number of groups of each group constituting a single molecule of the sample includes: determining primary groups and multi-level groups in all groups of the single molecule; wherein,
[0094] All the groups constituting a single molecule are regarded as primary groups;
[0095] Multiple groups that exist simultaneously and contribute to the same physical property are regarded as multi-level groups, and the number of the multiple groups is regarded as the level of the multi-level group;
[0096] Among them, multi-level groups refer to groups with two or more levels;
[0097] Multiple groups refer to two or more groups.
[0098] The physical property calculation model determines the physical properties of a single molecule in the following manner:
[0099] In each level of groups, the product of the number of groups contained therein and the contribution value of each group to the physical property is obtained respectively, and then the sum of the corresponding products of each group is obtained and recorded as the contribution value of the level of groups to the physical property;
[0100] The physical properties of the single molecule are obtained according to the sum of the contribution values of each level of groups to the physical properties.
[0101] For example, the physical property calculation model is as follows:
[0102]
[0103] Wherein, f is the physical property of the single molecule, m 1i is the number of groups of the ith group in the primary group, Δf 1i is the contribution value of the ith group in the primary group to the physical property, m 2j is the number of the jth group in the secondary group, Δf 2j is the contribution value of the jth group in the secondary group to the physical property; m Nl is the number of the lth group in the Nth group, Δf Nl is the contribution value of the first group in the N-level group to the physical property; a is the association constant; N is a positive integer greater than or equal to 2.
[0104] Wherein, the physical properties of the single molecule include: the boiling point of the single molecule;
[0105] The calculating the physical properties of the single molecule comprises:
[0106] The boiling point of the single molecule is calculated according to the following physical property calculation model:
[0107]
[0108] Wherein, T is the boiling point of the single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting the single molecule, GROUP 11is the first contribution value vector obtained by converting the contribution values of each primary group of the single molecule to the boiling point, GROUP 12 is the second contribution value vector obtained by converting the contribution values of each secondary group of the single molecule to the boiling point, GROUP 1N is the Nth contribution value vector obtained by converting the contribution values of each N-level group of the single molecule to the boiling point; Numh is the number of atoms other than hydrogen atoms in the single molecule; b is the first preset constant, c is the second preset constant, and d is the third preset constant; N is a positive integer greater than or equal to 2.
[0109] Wherein, the physical properties of the single molecule preferably include: the density of the single molecule;
[0110] The physical property calculation model determines the density of the single molecule in the following manner:
[0111] A single molecule vector obtained by converting the number of groups of each group constituting the single molecule;
[0112] A contribution value vector of each level group obtained by converting the contribution value of the level group to the density;
[0113] Obtain the product of the single molecule vector and the contribution value vector of each level of groups respectively, and then obtain the sum of the products of the single molecule vector and the corresponding products of each level of groups;
[0114] The density of the single molecule is obtained according to the proportion of the product of the single molecule vector and the contribution value vector of the primary group in the sum of the products of the single molecule vector and the corresponding products of the various levels of groups.
[0115] For example, the physical property calculation model is as follows:
[0116]
[0117] Where D is the density of the single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting the single molecule, GROUP 21 is the N+1th contribution value vector obtained by converting the contribution value of the primary group to the density, GROUP 22 is the N+2th contribution value vector obtained by converting the contribution value of the secondary group to the density, GROUP 2N is the 2Nth contribution value vector converted according to the contribution value of the N-level group to the density, e is the fourth preset constant; and N is a positive integer greater than or equal to 2.
[0118] Wherein, the physical properties of the single molecule preferably include: the octane number of the single molecule;
[0119] The calculating the physical properties of the single molecule comprises:
[0120] The physical property calculation model determines the octane number of a single molecule in the following manner:
[0121] A single molecule vector obtained by converting the number of groups of each group constituting the single molecule;
[0122] A contribution value vector of each level group obtained by converting the contribution value of each level group to the octane number;
[0123] Obtain the product of the single molecule vector and the contribution value vector of each level of groups;
[0124] The octane number of the single molecule is obtained according to the sum of the products of the single molecule vector and the corresponding groups at each level.
[0125] For example, the physical property calculation model is as follows:
[0126] X=SOL×GROUP 31 +SOL×GROUP 32 +......+SOL×GROUP 3N +h;
[0127] Where X is the octane number of the single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting the single molecule, GROUP 31 is the 2N+1th contribution value vector obtained by converting the contribution values of each primary group of the single molecule to the octane number, GROUP 32 is the 2N+2 contribution value vector obtained by converting the contribution values of each secondary group of the single molecule to the octane number, GROUP 3N is the 3Nth contribution value vector obtained by converting the contribution values of each N-level group of the single molecule to the octane number; N is a positive integer greater than or equal to 2; and h is the fifth preset constant.
[0128] Wherein, the physical properties of the mixture preferably include: density, cloud point, pour point, aniline point and octane number.
[0129] Wherein, when the physical property of the mixture is density, calculating the physical property of the mixture preferably includes:
[0130] The density of the mixture was calculated as follows:
[0131] Obtaining the product of the density of each type of single molecule and the content of the single molecule;
[0132] The density of the mixture is obtained from the sum of the corresponding products of the various single molecules.
[0133] For example, the density of the mixture is calculated by the following calculation formula:
[0134] density=∑(D i × i_volume );
[0135] Wherein, density is the density of the mixture, D i is the density of the ith single molecule, x i_volume is the volume content of the i-th single molecule.
[0136] Wherein, when the physical property of the mixture is the cloud point, calculating the physical property of the mixture preferably includes:
[0137] Calculating the cloud point contribution value of each single molecule according to the density and boiling point of the single molecule;
[0138] The cloud point of the mixture is calculated according to the cloud point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
[0139] Wherein, when the physical property of the mixture is the pour point, calculating the physical property of the mixture preferably includes:
[0140] Calculating the pour point contribution value of each single molecule according to the density and molecular weight of the single molecule;
[0141] The pour point of the mixture is calculated according to the pour point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
[0142] Wherein, when the physical property of the mixture is aniline point, calculating the physical property of the mixture preferably includes:
[0143] Calculating the aniline point contribution value of each single molecule according to the density and boiling point of the single molecule;
[0144] The aniline point of the mixture is calculated according to the aniline point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
[0145] Wherein, when the physical property of the mixture is the octane number, calculating the physical property of the mixture preferably includes:
[0146] The octane number of the mixture is calculated by the following calculation formula:
[0147]
[0148]
[0149]
[0150]
[0151]
[0152]
[0153]
[0154] Wherein, ON is the octane number of the mixture, HISQFG is a molecular set, H is a molecular set of normal alkanes, I is a molecular set of isoalkanes, S is a molecular set of cycloalkanes, Q is a molecular set of olefins, F is a molecular set of aromatic hydrocarbons, G is a molecular set of oxygen-containing compounds, and υ i is the content of each molecule in the mixture; H ,υ I ,υ S ,υ Q ,υ F ,υ G are the total content of normal alkanes, the total content of isoalkanes, the total content of cycloalkanes, the total content of olefins, the total content of aromatic hydrocarbons and the total content of oxygen-containing compounds in the mixture; β i is the regression parameter for each molecule in the mixture; i is the octane number of each molecule in the mixture; C H represents the interaction coefficient between normal alkanes and other molecules; C I represents the interaction coefficient between isoalkanes and other molecules; C S represents the interaction coefficient between cycloalkanes and other molecules; C Q represents the interaction coefficient between olefins and other molecules; C F represents the interaction coefficient between aromatic hydrocarbons and other molecules; C G It represents the interaction coefficient between oxygen-containing compounds and other molecules; represents the first constant coefficient between normal alkanes and isoalkanes, represents the first constant coefficient between normal alkanes and cycloalkanes, represents the first constant coefficient between normal alkanes and alkenes, represents the first constant coefficient between normal alkanes and aromatic hydrocarbons, represents the first constant coefficient between normal alkanes and oxygen-containing compounds, represents the first constant coefficient between isoalkanes and cycloalkanes, represents the first constant coefficient between isoparaffins and alkenes, represents the first constant coefficient between isoalkanes and aromatics, represents the first constant coefficient between isoalkanes and oxygen-containing compounds, represents the first constant coefficient between cycloalkanes and alkenes, represents the first constant coefficient between cycloalkanes and aromatic hydrocarbons, represents the first constant coefficient between cycloalkanes and oxygen-containing compounds, represents the first constant coefficient between olefins and aromatics, represents the first constant coefficient between olefins and oxygen-containing compounds, Represents the first constant coefficient between aromatic hydrocarbons and oxygen-containing compounds, represents the second constant coefficient between normal alkanes and isoalkanes, represents the second constant coefficient between normal alkanes and cycloalkanes, represents the second constant coefficient between normal alkanes and alkenes, represents the second constant coefficient between normal alkanes and aromatic hydrocarbons, represents the second constant coefficient between normal alkanes and oxygen-containing compounds, represents the second constant coefficient between isoalkanes and cycloalkanes, represents the second constant coefficient between isoalkanes and alkenes, The second constant coefficient between isoalkanes and aromatics, represents the second constant coefficient between isoalkanes and oxygen-containing compounds, represents the second constant coefficient between cycloalkanes and alkenes, The second constant coefficient between cycloalkanes and aromatic hydrocarbons, The second constant coefficient between cycloalkanes and oxygen-containing compounds, The second constant coefficient between olefins and aromatics, represents the second constant coefficient between olefins and oxygen-containing compounds, Represents the second constant coefficient between aromatic hydrocarbons and oxygen-containing compounds; wherein the octane number includes: research octane number and motor octane number.
[0155] The types of browsers of the web client include:
[0156] One or more of IE, Chrome, Firefox, Safari, or Opera.
[0157] Among them, the types of web servers include:
[0158] One or more of Apache, Nginx, Tomcat, or IIS.
[0159] Wherein, the oil refining device comprises:
[0160] A single oil processing unit, multiple oil processing units, or corresponding oil processing units in the entire oil refining process, the types of oil processing units include:
[0161] Catalytic cracking unit, delayed coking unit, residue oil hydrogenation unit, hydrocracking unit, diesel hydro-modification unit, diesel hydro-refining unit, gasoline hydro-refining unit, catalytic reforming unit and alkylation unit; wherein each petroleum processing unit corresponds to a set of reaction rules.
[0162] In a second aspect, an embodiment of the present invention provides a refinery simulation device based on a B / S architecture, the device comprising:
[0163] A receiving unit, used for receiving an operation instruction corresponding to the oil refining device input by a user through a browser interface of a web client;
[0164] A first processing unit is used to send the operation instruction to the web server through network communication, so that the web server parses the operation instruction, inputs the parsed operation instruction into a pre-trained model, obtains an execution result output by the model corresponding to the parsed operation instruction, and sends the execution result to the web client;
[0165] The second processing unit is used to display the execution result received by the web client on the browser interface.
[0166] Wherein, the device further comprises: a third processing unit;
[0167] The receiving unit is further used to receive a user name and password input by a user through the browser interface;
[0168] The third processing unit is used to send the user name and password to the web server through network communication so that the web server can perform user identity authentication. If the user identity authentication is passed, the receiving unit executes the step of receiving the operation instructions corresponding to the oil refining device input by the user through the browser interface of the web client.
[0169] The second processing unit is specifically used to display the execution result in a table, or in a graphical form, or in a form of generating a reaction network, in the output window of the browser interface.
[0170] Wherein, the model includes a product prediction model;
[0171] The first processing unit is specifically used to query a molecular composition database, and use the molecular composition data corresponding to the parsed operation instruction in the molecular composition database as the execution result output by the product prediction model; wherein the molecular composition database includes: the molecular composition of the crude oil of the oil refinery obtained; the molecular composition of different fractions obtained by distilling the crude oil obtained according to the physical properties of each single molecule in the molecular composition of the crude oil; according to a preset raw material ratio, the corresponding fractions are input into the product prediction model of the corresponding oil refinery as refining raw materials, and the molecular composition of the corresponding predicted product and the content of each single molecule in the predicted product are obtained; each of the predicted products is used as a product blending raw material and blended according to a preset rule set to obtain the molecular composition of multiple groups of mixtures and the content of each single molecule in the mixture.
[0172] Wherein, the model includes a physical property calculation model;
[0173] The first processing unit is specifically used to query the physical property parameter database, and use the physical property data corresponding to the parsed operation instructions in the physical property parameter database as the execution result output by the physical property calculation model; wherein the physical property parameter database includes: the physical properties of various single molecules in the molecular composition of the crude oil of the refinery; and the physical properties of the mixture.
[0174] The present invention also provides an oil refinery simulation system based on a B / S architecture, the oil refinery simulation system comprising a processor and a memory; the processor is used to execute an oil refinery simulation program based on a B / S architecture stored in the memory to implement the oil refinery simulation method based on a B / S architecture as described above.
[0175] The present invention also provides a storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the above-mentioned refinery simulation method based on B / S architecture.
[0176] The beneficial effects of the present invention are as follows:
[0177] The present invention receives operation instructions corresponding to an oil refining device input by a user through a browser interface of a web client; sends the operation instructions to a web server through network communication, so that the web server parses the operation instructions, and inputs the parsed operation instructions into a pre-trained model, obtains the execution result corresponding to the parsed operation instruction output by the model, and sends the execution result to the web client; and displays the execution result received by the web client on the browser interface. The present invention realizes the calculation of the execution result corresponding to the operation instruction of the oil refining device using a pre-trained model through data interaction between the browser interface of the web client and the server. The user does not need to install a client program and can directly log in to the account on the browser interface. In addition, the data processing speed of the web server is fast, which is convenient for developers to maintain and manage the system. This method improves the interactive experience effect between the user and the client. BRIEF DESCRIPTION OF THE DRAWINGS
[0178] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0179] Figure 1 is a flow chart of a method for simulating an oil refining device based on a B / S architecture according to an embodiment of the present invention;
[0180] Figure 2 is a structural diagram of an oil refinery simulation device based on a B / S architecture according to an embodiment of the present invention;
[0181] Figure 3 is an architecture diagram of an oil refining device simulation system based on a B / S architecture according to an embodiment of the present invention;
[0182] Figure 4 It is a structural diagram of an oil refinery simulation system based on B / S architecture according to an embodiment of the present invention. DETAILED DESCRIPTION
[0183] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0184] According to an embodiment of the present invention, a method for simulating an oil refining device based on a B / S architecture is provided. Figure 1 FIG. 1 is a flow chart of a method for simulating an oil refining device based on a B / S architecture according to an embodiment of the present invention.
[0185] Step S110: receiving an operation instruction corresponding to the oil refining device input by a user through the browser interface of the web client.
[0186] In this embodiment, the oil refining unit includes: a single oil processing unit, multiple oil processing units, or corresponding oil processing units in the entire oil refining process. The types of oil processing units include but are not limited to: catalytic cracking units, delayed coking units, residual oil hydrogenation units, hydrocracking units, diesel hydro-modification units, diesel hydro-refining units, gasoline hydro-refining units, catalytic reforming units and alkylation units; wherein each oil processing unit corresponds to a reaction rule set.
[0187] In this embodiment, the optional operation instructions and corresponding controls are displayed in the operation instruction input window of the browser interface to facilitate the user to select the operation instruction. The operation instruction includes the instruction type and instruction content, and the instruction type includes but is not limited to button click, screen click, screen sliding, auxiliary screen flipping, rotation and zooming, and text input.
[0188] In this embodiment, the type of the browser of the web client includes: one or more of IE, Chrome, Firefox, Safari or Opera.
[0189] Step S120, sending the operation instruction to the web server through network communication, so that the web server parses the operation instruction, and inputs the parsed operation instruction into a pre-trained model, obtains the execution result corresponding to the parsed operation instruction output by the model, and sends the execution result to the web client.
[0190] In this embodiment, the types of the web server include: one or more of Apache, Nginx, Tomcat or IIS.
[0191] Step S130: display the execution result received by the web client on the browser interface.
[0192] The present invention realizes the use of a pre-trained model to calculate the execution result corresponding to the operating instruction of the refinery through data interaction between the browser interface of the web client and the server. The user does not need to install the client program and can directly log in to the account on the browser interface. In addition, the data processing speed of the web server is fast, which is convenient for developers to maintain and manage the system. This method improves the interactive experience effect between the user and the client.
[0193] In this embodiment, the execution results are displayed in a tabular form, or in a graphical form, or in a reaction network generated in the output window of the browser interface. Displaying the execution results in a reaction network generated includes: displaying one or more of the molecular composition, the structure of various single molecules in the molecular composition, the content of various single molecules, the physical properties of various single molecules, or the content of various single molecules. The reaction network includes a two-dimensional reaction network or a three-dimensional reaction network.
[0194] In another embodiment of the present invention, the method further comprises:
[0195] Receive a user name and password input by the user through the browser interface;
[0196] The user name and password are sent to the web server through network communication so that the web server performs user identity authentication. If the user identity authentication is passed, step S110 is executed to receive the operation instruction corresponding to the oil refining device input by the user through the browser interface of the web client. The interactive security management is improved by authenticating the user.
[0197] In another embodiment of the present invention, the model includes a product prediction model, and obtaining the execution result output by the model corresponding to the parsed operation instruction includes:
[0198] Query a molecular composition database, and use the molecular composition data corresponding to the parsed operation instruction in the molecular composition database as the execution result output by the product prediction model; wherein the molecular composition database includes: the molecular composition of the crude oil of the oil refinery obtained; the molecular composition of different fractions obtained by distilling the crude oil obtained according to the physical properties of each single molecule in the molecular composition of the crude oil; according to a preset raw material ratio, input each corresponding fraction as a refining raw material into the product prediction model of the corresponding oil refinery respectively, and obtain the molecular composition of the corresponding predicted product and the content of each single molecule in the predicted product; use each of the predicted products as a product blending raw material to blend according to a preset rule set, and obtain the molecular composition of multiple groups of mixtures and the content of each single molecule in the mixture.
[0199] In this embodiment, a product prediction model is trained in advance for each oil processing device, and the execution result corresponding to the operation instruction is predicted by the corresponding product prediction model. This method has high accuracy, short time and low cost. In this embodiment, the molecular composition of the crude oil of the oil refining device can be determined by one or more of full two-dimensional gas chromatography, quadrupole gas chromatography-mass spectrometry, gas chromatography / field ionization-time of flight mass spectrometry, gas chromatography, near infrared spectroscopy, nuclear magnetic resonance spectroscopy, Raman spectroscopy, Fourier transform ion cyclotron resonance mass spectrometry, electrostatic field orbital trap mass spectrometry and ion mobility mass spectrometry.
[0200] Of course, the molecular composition of the crude oil can also be determined by other methods, such as by ASTM D2425, SH / T 0606, or ASTM D8144-18.
[0201] In this embodiment, a molecular characterization method based on SOL (Structure-Oriented Lumping) is used to characterize each single molecule (molecule) in the molecular composition. The molecular characterization method based on SOL can use 24 groups to characterize the structure of hydrocarbon molecules.
[0202] Furthermore, SOL is a lumping on the molecular scale, which reduces the number of molecules in the actual system from millions to thousands, greatly reducing the complexity of the refinery model. This molecular characterization method based on SOL can not only represent alkanes, cycloalkanes, and complex aromatic structures containing 50-60 carbon atoms, but also olefins or cycloolefins as intermediates or secondary reaction products, and also considers heteroatom compounds containing sulfur, nitrogen, oxygen, etc.
[0203] The product prediction model is used to determine the yield of the product of the crude oil under different reaction conditions according to the molecular composition of the crude oil. Further, the product prediction model is used to determine the content of various product molecules of the crude oil under different reaction conditions according to the molecular composition of the crude oil.
[0204] The steps for training the product prediction model will be described later and will not be repeated here.
[0205] In another embodiment of the present invention, the model includes a physical property calculation model, and obtaining the execution result output by the model corresponding to the parsed operation instruction includes:
[0206] The physical property parameter database is queried, and the physical property data corresponding to the parsed operation instruction in the physical property parameter database is used as the execution result output by the physical property calculation model; wherein the physical property parameter database includes: the physical properties of various single molecules in the molecular composition of the crude oil of the refinery; and the physical properties of the mixture.
[0207] The steps for training the physical property calculation model will be described later and will not be repeated here.
[0208] The steps of training the product prediction model are further described below. In an embodiment of the present invention, the steps of training the product prediction model include:
[0209] Establish a product prediction model; wherein the product prediction model includes: a reaction rule set of multiple reaction rules and a reaction rate algorithm; establish a product prediction model according to the type of oil processing equipment; the product prediction model corresponding to the type of oil processing equipment includes: a reaction rule set and a reaction rate algorithm corresponding to the type of oil processing equipment. wherein the reaction rule set includes: multiple reaction rules corresponding to the type of oil processing equipment;
[0210] Obtaining sample raw material information of the sample raw material; the sample raw material information of the sample raw material includes: the molecular composition of the sample raw material, the molecular content of each molecule in the sample raw material, the molecular composition of the actual product corresponding to the sample raw material and the actual content of each molecule in the actual product. The actual product refers to the product obtained after the sample raw material is processed by the type of petroleum processing device.
[0211] Using the sample raw material information, training the reaction rule set, and fixing the trained reaction rule set;
[0212] The reaction rate algorithm is trained using the sample raw material information, and the trained reaction rate algorithm is fixed to obtain the trained product prediction model.
[0213] A method for training a reaction rule set is given below. Those skilled in the art should know that this method is only used to illustrate this embodiment, but not to limit this embodiment.
[0214] Using the sample raw material information, training the reaction rule set includes:
[0215] The molecular composition of the sample raw material is processed according to a preset reaction rule set to obtain a reaction path corresponding to each molecule in the molecular composition of the sample raw material; when calculating the reaction path for the first time, the molecular composition of the sample raw material is processed according to a preset reaction rule set to obtain a reaction path corresponding to each molecule in the molecular composition of the sample raw material.
[0216] Each molecule in the sample raw material is reacted according to the reaction rules in the reaction rule set to obtain the reaction path corresponding to each molecule.
[0217] According to the reaction path corresponding to each molecule in the molecular composition of the sample raw material, a first molecular composition of the device product is obtained; the device product includes: the sample raw material, the intermediate product and the predicted product;
[0218] Calculating a first relative deviation based on a first molecular composition of a product of the device and a second molecular composition of an actual product;
[0219] If the first relative deviation meets a preset condition, fixing the reaction rule set;
[0220] If the first relative deviation does not meet the preset condition, the reaction rule in the reaction rule set is adjusted, and the first relative deviation is recalculated according to the adjusted reaction rule set until the first relative deviation meets the preset condition.
[0221] In an embodiment of the present invention, the first relative deviation is calculated according to the first molecular composition of the device product and the second molecular composition of the actual product, including: obtaining the types of single molecules in the first molecular composition to form a first set; obtaining the types of single molecules in the second molecular composition to form a second set; judging whether the second set is a subset of the first set; if the second set is not a subset of the first set, obtaining a pre-stored relative deviation value that does not meet the preset conditions as the first relative deviation value; if the second set is a subset of the first set, calculating the first relative deviation by the following calculation formula:
[0222]
[0223] Wherein, x1 is the first relative deviation, M is the first set, M1 is the set of single molecule types in the molecular composition of the sample raw material, M2 is the set of single molecule types in the molecular composition of the intermediate product, M3 is the second set, and card represents the number of elements in the set. The preset conditions include: relative deviation range. The two endpoint values of the relative deviation range are empirical values or experimentally obtained values.
[0224] A method for training a reaction rate algorithm is given below. Those skilled in the art should know that this method is only used to illustrate this embodiment, and is not used to limit this embodiment. Using the sample raw material information, the reaction rate algorithm is trained, including:
[0225] According to the reaction rate algorithm, respectively calculating the reaction rate of the reaction path corresponding to each molecule in the molecular composition of the sample raw material;
[0226] According to the molecular content of each molecule in the sample raw material and the reaction rate corresponding to the reaction path of the molecule, the predicted content of each molecule in the predicted product corresponding to the sample raw material is obtained; in this embodiment, the reaction rate corresponding to each reaction path is calculated by the reaction rate calculation method in the product prediction model, and the predicted content of each single molecule in the predicted product can be calculated in combination with the single molecule content of each single molecule in the raw material. For example, a single molecule A in the raw material, assuming that the single molecule A corresponds to 3 reaction paths, and the reaction rates corresponding to the 3 reaction paths are known, as the reaction proceeds, the concentration of single molecule A decreases, and the reaction rates corresponding to the 3 reaction paths will decrease in proportion to the decrease in concentration, so single molecule A will generate products in proportion to the reaction rates of the 3 paths. According to the above steps, the products obtained by the reaction of each molecule can be obtained, and the predicted products can be obtained. When the single molecule content of each single molecule in the catalytic reforming raw material is known, the predicted content of each single molecule in the predicted product can be obtained;
[0227] According to the predicted content of each molecule in the predicted product and the actual content of each molecule in the actual product, a second relative deviation is calculated; the second relative deviation is calculated, for example:
[0228] The second relative deviation = (actual content - predicted content) ÷ actual content.
[0229] If the second relative deviation meets a preset condition, fixing the reaction rate algorithm;
[0230] If the second relative deviation does not meet the preset conditions, the parameters in the reaction rate algorithm are adjusted, and the second relative deviation is recalculated according to the adjusted reaction rate algorithm until the second relative deviation meets the preset conditions.
[0231] In an embodiment of the present invention, according to the reaction rate algorithm, the reaction rate of the reaction path corresponding to each molecule in the molecular composition of the sample raw material is calculated respectively, including:
[0232] The reaction rate of each reaction path is calculated according to the reaction rate constant in the reaction rate algorithm; wherein,
[0233] The reaction rate constant is determined according to the following calculation formula:
[0234]
[0235] The kinetic parameters in the above formula are stored in the kinetic parameter database and are called by the pre-trained model. The specific kinetic parameters are as follows: k is the reaction rate constant, k Bis the Boltzmann constant, h is the Planck constant, R is the ideal gas constant, E is the temperature of the environment where the reaction path is located, exp is an exponential function with the natural constant as the base, ΔS is the entropy change before and after the reaction corresponding to the reaction rule corresponding to the reaction path, ΔE is the reaction energy barrier corresponding to the reaction rule corresponding to the reaction path, Catalyst activity factor, P is the pressure value of the environment in which the reaction path is located, and α is the pressure influence factor corresponding to the reaction rule corresponding to the reaction path.
[0236] Specifically, the reaction rate of the reaction path is obtained according to the reaction rate constant and reaction concentration corresponding to the reaction path. For example, when the reaction rate constant has been determined, the greater the space velocity, the shorter the contact time between the raw material and the catalyst, the shorter the reaction time of the raw material, the higher the concentration of the reactant in the raw material, and the higher the reaction rate of the reaction path; on the contrary, the smaller the space velocity, the longer the contact time between the raw material and the catalyst, the longer the reaction time of the raw material, the lower the concentration of the reactant in the raw material, and the lower the reaction rate of the reaction path.
[0237] A method for training the physical property calculation model is given below. Those skilled in the art should know that this method is only used to illustrate this embodiment and is not used to limit this embodiment. In this embodiment of the present invention, the steps of training the physical property calculation model include:
[0238] A single molecule physical property calculation model is constructed; in the physical property calculation model, the contribution value of each group to the physical property is included. The contribution value is an adjustable value, and the contribution value is the initial value during the first training. Further, in the physical property calculation model, the contribution value of each group to each physical property is included.
[0239] Obtaining the number of each group constituting a sample single molecule; the physical properties of the sample single molecule are known;
[0240] Inputting the number of each group contained in the sample single molecule into the physical property calculation model;
[0241] Obtaining the predicted physical properties of the sample single molecule output by the physical property calculation model;
[0242] If the deviation between the predicted physical property and the known physical property is less than a preset deviation threshold, the physical property calculation model is determined to be converged, and the contribution value corresponding to each group is obtained in the converged physical property calculation model, and stored as the contribution value of the group to the physical property;
[0243] If the deviation value between the predicted physical property and the known physical property is greater than or equal to the deviation threshold, the contribution value corresponding to each group in the physical property calculation model is adjusted until the physical property calculation model converges.
[0244] Two physical property calculation models that can be used for different physical properties are given below. Those skilled in the art should know that the following two physical property calculation models are only used to illustrate this embodiment, and are not used to limit this embodiment.
[0245] Model 1: Establish the following physical property calculation model:
[0246]
[0247] Where f is the physical property of a single molecule, n i is the number of the ith group in the single molecule, Δf i is the contribution value of the ith group in the single molecule to the physical property, and a is the association constant.
[0248] The groups constituting a single molecule can be further divided into multi-level groups. Furthermore, primary groups and multi-level groups are determined in all the groups of the single molecule; wherein all the groups constituting a single molecule are regarded as primary groups; multiple groups that exist at the same time and contribute to the same physical property are regarded as multi-level groups, and the number of the multiple groups is regarded as the level of the multi-level group.
[0249] For example, for boiling point, in the molecular characterization method based on SOL, all 24 groups are regarded as primary groups; among the 24 groups, one or more of N6, N5, N4, N3, me, AA, NN, RN, NO, RO, and KO will contribute to the boiling point when they exist at the same time. When dividing the groups of a single molecule, all the groups constituting the single molecule are regarded as primary groups, and it is checked whether there are multiple groups that exist at the same time and contribute to the boiling point among all the groups of the single molecule. If so, the multiple groups that exist at the same time and contribute to the boiling point are regarded as multi-level groups. For example, if N6 and N4 exist at the same time in the single molecule, then the number of groups that contribute to the boiling point when they exist at the same time is two, and both N6 and N4 are regarded as secondary groups.
[0250] Model 2: Based on the divided multi-level groups, the following physical property calculation model can be established:
[0251]
[0252] Among them, f is the physical property of a single molecule, m 1i is the number of the ith group in the primary group of the single molecule, Δf 1i is the contribution value of the ith group in the primary group of the single molecule to the physical property; m 2j is the number of the jth group in the secondary group of the single molecule, Δf 2j is the contribution value of the jth group in the secondary group of the single molecule to the physical property; mNl is the number of the first group in the N-level group of the single molecule, Δf Nl is the contribution value of the first group in the N-level groups of the single molecule to the physical property; N is a positive integer greater than or equal to 2; a is the association constant.
[0253] In the embodiment of the present invention, obtaining the number of groups of each group constituting a single molecule of the sample includes:
[0254] The primary groups, the number of primary groups, the multi-level groups and the number of multi-level groups are determined in all the groups of the sample single molecule; wherein the physical properties of the sample single molecule are known.
[0255] A training sample set is preset. The training sample set includes information of multiple sample single molecules. The sample single molecule information includes, but is not limited to: the number of groups of each group constituting the sample single molecule, and the physical properties of the sample single molecule.
[0256] All the groups constituting a single molecule are regarded as primary groups;
[0257] A plurality of groups that exist simultaneously and contribute to the same physical property are regarded as a multi-stage group, and the number of the plurality of groups is regarded as the level of the multi-stage group.
[0258] The physical properties of a single molecule include, but are not limited to, density, boiling point, density, and octane number. For example, the physical properties of a single molecule may also include viscosity, solubility parameter, cetane number, degree of unsaturation, and the like.
[0259] A group is a part of a molecule, and a group generally participates in chemical reactions as a whole.
[0260] Based on the molecular characterization method of SOL, the groups contained in each single molecule are determined; in each single molecule, the number of groups of each group in the single molecule and the contribution value of each group to the physical property in the single molecule are determined. Since there are multiple physical properties of a single molecule, it is necessary to determine the contribution value of each group in the single molecule to each physical property.
[0261] The calculation of the physical properties of the mixture is further described below.
[0262] For each single molecule in the mixture, calculating the physical property of the single molecule according to the number of each group constituting the single molecule and the contribution value of each group to the physical property;
[0263] The physical properties of the mixture are calculated based on the physical properties of various single molecules in the mixture and the content of each single molecule in the mixture.
[0264] In another embodiment of the present invention, before calculating the physical properties of the single molecule, the method further comprises:
[0265] Compare the number of each group constituting the single molecule with the molecular information of the template single molecule with known physical properties pre-stored in the second database; wherein the molecular information includes: the number of each group constituting the template single molecule;
[0266] Determining whether there is a template single molecule identical to the single molecule;
[0267] If there is a template single molecule identical to the single molecule, outputting the physical properties of the template single molecule as the physical properties of the single molecule;
[0268] If there is no template single molecule identical to the single molecule, the physical properties of the single molecule are calculated.
[0269] In the embodiment of the present invention, the physical properties of the mixture include: density, cloud point, pour point, aniline point and octane number.
[0270] In an embodiment of the present invention, when the physical property of the mixture is density, calculating the physical property of the mixture includes:
[0271] The density of the mixture is calculated by the following formula:
[0272] density=∑(D i × i_volume );
[0273] Wherein, density is the density of the mixture, D i is the density of the ith single molecule, x i_volume is the content of the i-th single molecule.
[0274] In an embodiment of the present invention, when the physical property of the mixture is a cloud point, calculating the physical property of the mixture includes:
[0275] Calculating the cloud point contribution value of each single molecule according to the density and boiling point of the single molecule;
[0276] The cloud point of the mixture is calculated according to the cloud point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
[0277] In an embodiment of the present invention, when the physical property of the mixture is the pour point, calculating the physical property of the mixture includes:
[0278] Calculating the pour point contribution value of each single molecule according to the density and molecular weight of the single molecule;
[0279] The pour point of the mixture is calculated according to the pour point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
[0280] In an embodiment of the present invention, when the physical property of the mixture is the aniline point, calculating the physical property of the mixture includes:
[0281] Calculating the aniline point contribution value of each single molecule according to the density and boiling point of the single molecule;
[0282] The aniline point of the mixture is calculated according to the aniline point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
[0283] In an embodiment of the present invention, when the physical property of the mixture is an octane number, calculating the physical property of the mixture includes:
[0284] The octane number of the mixture is calculated by the following calculation formula:
[0285]
[0286]
[0287]
[0288]
[0289]
[0290]
[0291]
[0292] Wherein, ON is the octane number of the mixture, HISQFG is a molecular set, H is a molecular set of normal alkanes, I is a molecular set of isoalkanes, S is a molecular set of cycloalkanes, Q is a molecular set of olefins, F is a molecular set of aromatic hydrocarbons, G is a molecular set of oxygen-containing compounds, and υ i is the content of each molecule in the mixture; H ,υ I ,υ S ,υ Q ,υ F ,υ G are the total content of normal alkanes, the total content of isoalkanes, the total content of cycloalkanes, the total content of olefins, the total content of aromatic hydrocarbons and the total content of oxygen-containing compounds in the mixture; β i is the regression parameter for each molecule in the mixture; i is the octane number of each molecule in the mixture; CH represents the interaction coefficient between normal alkanes and other molecules; C I represents the interaction coefficient between isoalkanes and other molecules; C S represents the interaction coefficient between cycloalkanes and other molecules; C Q represents the interaction coefficient between olefins and other molecules; C F represents the interaction coefficient between aromatic hydrocarbons and other molecules; C G It represents the interaction coefficient between oxygen-containing compounds and other molecules; represents the first constant coefficient between normal alkanes and isoalkanes, represents the first constant coefficient between normal alkanes and cycloalkanes, represents the first constant coefficient between normal alkanes and alkenes, represents the first constant coefficient between normal alkanes and aromatic hydrocarbons, represents the first constant coefficient between normal alkanes and oxygen-containing compounds, represents the first constant coefficient between isoalkanes and cycloalkanes, represents the first constant coefficient between isoparaffins and alkenes, represents the first constant coefficient between isoalkanes and aromatics, represents the first constant coefficient between isoalkanes and oxygen-containing compounds, represents the first constant coefficient between cycloalkanes and alkenes, represents the first constant coefficient between cycloalkanes and aromatic hydrocarbons, represents the first constant coefficient between cycloalkanes and oxygen-containing compounds, represents the first constant coefficient between olefins and aromatics, represents the first constant coefficient between olefins and oxygen-containing compounds, Represents the first constant coefficient between aromatic hydrocarbons and oxygen-containing compounds, represents the second constant coefficient between normal alkanes and isoalkanes, represents the second constant coefficient between normal alkanes and cycloalkanes, represents the second constant coefficient between normal alkanes and alkenes, represents the second constant coefficient between normal alkanes and aromatic hydrocarbons, represents the second constant coefficient between normal alkanes and oxygen-containing compounds, represents the second constant coefficient between isoalkanes and cycloalkanes, represents the second constant coefficient between isoalkanes and alkenes, The second constant coefficient between isoalkanes and aromatics, represents the second constant coefficient between isoalkanes and oxygen-containing compounds, represents the second constant coefficient between cycloalkanes and alkenes, The second constant coefficient between cycloalkanes and aromatic hydrocarbons, The second constant coefficient between cycloalkanes and oxygen-containing compounds, The second constant coefficient between olefins and aromatics, represents the second constant coefficient between olefins and oxygen-containing compounds, Represents the second constant coefficient between aromatic hydrocarbons and oxygen-containing compounds; wherein the octane number includes: research octane number and motor octane number.
[0293] The calculation of the physical properties of a single molecule is further described below.
[0294] For each single molecule in the mixture, obtain the number of groups of each group constituting the single molecule, and obtain the contribution value of each group to the physical property;
[0295] Furthermore, the types of groups contained in a single molecule are determined, the number of groups of each type is determined, and the contribution value of each type of group to various physical properties of the target product is obtained.
[0296] The number of each group constituting the single molecule and the contribution value of each group to the physical property are input into a pre-trained physical property calculation model to obtain the physical property of the single molecule output by the physical property calculation model.
[0297] In this embodiment, the physical property calculation model is used to calculate the physical property of the single molecule according to the number of each group contained in the single molecule and the contribution value of each group to the physical property.
[0298] Furthermore, the number of groups of each type of group in the single molecule is obtained, the contribution value of each type of group to each physical property of the target product is obtained, and the input is input into a pre-trained physical property calculation model to obtain multiple physical properties of the single molecule output by the physical property calculation model;
[0299] For each group, the contribution value of the group to each physical property is stored, so that when the physical properties of the single molecule are subsequently calculated, the contribution value of each group in the single molecule to the physical property to be known can be obtained, and the group number of each group in the single molecule and the contribution value of each group to the physical property to be known are used as inputs to the physical property calculation model. The physical property calculation model uses the group number of each group in the single molecule as a model variable, and the contribution value of each group to the physical property to be known as a model parameter (replacing the adjustable contribution value of each group to the physical property in the physical property calculation model) to calculate the physical property to be known.
[0300] In addition to the general physical property calculation model mentioned above, a physical property calculation model can also be constructed for each physical property according to the different types of physical properties.
[0301] For example: Calculate the boiling point of a single molecule according to the following physical property calculation model:
[0302]
[0303] Among them, T is the boiling point of a single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting a single molecule, GROUP 11 is the first contribution vector obtained by converting the contribution of the primary group to the boiling point, GROUP 12 is the second contribution vector obtained by converting the contribution of the secondary group to the boiling point, GROUP 1N is the Nth contribution value vector converted from the contribution value of the N-level group to the boiling point, Numh is the number of atoms other than hydrogen atoms in a single molecule, b, c, d are preset constants; and N is a positive integer greater than or equal to 2.
[0304] The single molecule vector obtained by converting the number of groups of each group constituting the single molecule includes: taking the number of types of all groups constituting the single molecule as the dimension of the single molecule vector; and taking the number of groups of each group as the element value of the corresponding dimension in the single molecule vector.
[0305] The first contribution value vector obtained by converting the contribution values of each primary group of the single molecule to the boiling point includes: the number of types of primary groups is used as the dimension of the first contribution value vector; the contribution value of each primary group is used as the element value of the corresponding dimension in the first contribution value vector. The second contribution value vector obtained by converting the contribution values of each secondary group of the single molecule to the boiling point includes: the number of types of secondary groups is used as the dimension of the second contribution value vector; the contribution value of each secondary group is used as the element value of the corresponding dimension in the second contribution value vector. By analogy, the Nth contribution value vector obtained by converting the contribution values of each Nth group of the single molecule to the boiling point includes: the number of types of Nth groups is used as the dimension of the Nth contribution value vector; the contribution value of each Nth group is used as the element value of the corresponding dimension in the Nth contribution value vector.
[0306] Another example: Calculate the density of a single molecule according to the following physical property calculation model:
[0307]
[0308] Where D is the density of a single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting a single molecule, GROUP 21 is the N+1th contribution value vector obtained by transforming the contribution value of the primary group to the density, GROUP22 is the N+2th contribution value vector obtained by converting the contribution value of the secondary group to the density, GROUP 2N is the 2Nth contribution value vector converted according to the contribution value of the N-level group to the density, e is a preset constant; and N is a positive integer greater than or equal to 2.
[0309] The single molecule vector obtained by converting the number of groups of each group constituting the single molecule includes: taking the number of types of all groups constituting the single molecule as the dimension of the single molecule vector; and taking the number of groups of each group as the element value of the corresponding dimension in the single molecule vector.
[0310] The N+1th contribution value vector obtained by converting the contribution values of each primary group of the single molecule to the density includes: the number of types of primary groups is used as the dimension of the N+1th contribution value vector; the contribution value of each primary group is used as the element value of the corresponding dimension in the N+1th contribution value vector. The N+2th contribution value vector obtained by converting the contribution values of each secondary group of the single molecule to the density includes: the number of types of secondary groups is used as the dimension of the N+2th contribution value vector; the contribution value of each secondary group is used as the element value of the corresponding dimension in the N+2th contribution value vector. By analogy, the 2Nth contribution value vector obtained by converting the contribution values of each N-level group of the single molecule to the density includes: the number of types of N-level groups is used as the dimension of the 2Nth contribution value vector; the contribution value of each N-level group is used as the element value of the corresponding dimension in the 2Nth contribution value vector.
[0311] For another example, the octane number of the single molecule is calculated according to the following physical property calculation model:
[0312] X=SOL×GROUP 31 +SOL×GROUP 32 +......+SOL×GROUP 3N +h;
[0313] Among them, X is the octane number of a single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting a single molecule, GROUP 31 is the 2N+1th contribution value vector obtained by converting the contribution value of the primary group to the octane number, GROUP 32 is the 2N+2 contribution value vector obtained by converting the contribution value of the secondary group to the octane number, GROUP 3N is the 3Nth contribution value vector converted according to the contribution value of the N-level group to the octane number; N is a positive integer greater than or equal to 2; and h is a preset constant.
[0314] The single molecule vector obtained by converting the number of groups of each group constituting the single molecule includes: taking the number of types of all groups constituting the single molecule as the dimension of the single molecule vector; and taking the number of groups of each group as the element value of the corresponding dimension in the single molecule vector.
[0315] The 2N+1 contribution value vector obtained by converting the contribution values of each primary group of the single molecule to the octane number includes: taking the number of types of primary groups as the dimension of the 2N+1 contribution value vector; and taking the contribution value of each primary group as the element value of the corresponding dimension in the 2N+1 contribution value vector. The 2N+2 contribution value vector obtained by converting the contribution values of each secondary group of the single molecule to the octane number includes: taking the number of types of secondary groups as the dimension of the 2N+2 contribution value vector; and taking the contribution value of each secondary group as the element value of the corresponding dimension in the 2N+2 contribution value vector. Similarly, the 3N contribution value vector obtained by converting the contribution values of each N-level group of the single molecule to the octane number includes: taking the number of types of N-level groups as the dimension of the 3N contribution value vector; and taking the contribution value of each N-level group as the element value of the corresponding dimension in the 3N contribution value vector.
[0316] This embodiment provides a refinery simulation device based on B / S architecture. Figure 2 As shown, the device includes: a receiving unit 11, a first processing unit 12 and a second processing unit 13.
[0317] In this embodiment, the receiving unit 11 is used to receive an operation instruction corresponding to the oil refining device input by the user through the browser interface of the web client;
[0318] In this embodiment, the first processing unit 12 is used to send the operation instruction to the web server through network communication, so that the web server parses the operation instruction, inputs the parsed operation instruction into a pre-trained model, obtains an execution result output by the model corresponding to the parsed operation instruction, and sends the execution result to the web client;
[0319] In this embodiment, the second processing unit 13 is used to display the execution result received by the web client on the browser interface.
[0320] In this embodiment, the receiving unit 11 is further configured to receive a user name and password input by a user through the browser interface.
[0321] In this embodiment, the device further includes: a third processing unit.
[0322] In this embodiment, the third processing unit is used to send the user name and password to the web server through network communication so that the web server can perform user identity authentication. If the user identity authentication is passed, the receiving unit 11 executes the step of receiving the operation instructions corresponding to the refinery input by the user through the browser interface of the web client.
[0323] In this embodiment, the second processing unit 13 is specifically used to display the execution result in a table form, or display the execution result in a graphical form, or display the execution result in a form of generating a reaction network, in the output window of the browser interface.
[0324] In this embodiment, the second processing unit 13 is specifically configured to display the execution result in a manner of generating a two-dimensional reaction network.
[0325] In this embodiment, the second processing unit 13 is specifically configured to display the execution result in a manner of generating a three-dimensional reaction network.
[0326] In this embodiment, the second processing unit 13 is specifically used to display one or more of the molecular composition, the structures of various single molecules in the molecular composition, the contents of various single molecules, the physical properties of various single molecules, or the contents of various single molecules.
[0327] In this embodiment, the device further includes: a control unit, which is used to display optional operation instructions and corresponding controls in the operation instruction input window of the browser interface for the user to select and use.
[0328] In this embodiment, the operation instruction includes an instruction type and instruction content.
[0329] In this embodiment, the instruction types include button click, screen click, screen sliding, auxiliary screen turning, rotation and zooming, and text input.
[0330] In this embodiment, the model includes a product prediction model.
[0331] In this embodiment, the first processing unit 12 is specifically used to query the molecular composition database, and use the molecular composition data corresponding to the parsed operation instruction in the molecular composition database as the execution result output by the product prediction model; wherein the molecular composition database includes: the molecular composition of the crude oil of the oil refinery obtained; the molecular composition of different fractions obtained by distilling the crude oil according to the physical properties of each single molecule in the molecular composition of the crude oil; according to a preset raw material ratio, the corresponding fractions are input into the product prediction model of the corresponding oil refinery as refining raw materials, and the molecular composition of the corresponding predicted product and the content of each single molecule in the predicted product are obtained; each of the predicted products is used as a product blending raw material and blended according to a preset rule set to obtain the molecular composition of multiple groups of mixtures and the content of each single molecule in the mixture.
[0332] In this embodiment, the first processing unit 12 is specifically used to establish a product prediction model; obtain sample raw material information of the sample raw material; use the sample raw material information to train the reaction rule set, and fix the trained reaction rule set; use the sample raw material information to train the reaction rate algorithm, and fix the trained reaction rate algorithm to obtain the trained product prediction model, wherein the product prediction model includes: a reaction rule set of multiple reaction rules and a reaction rate algorithm.
[0333] In this embodiment, the sample raw material information of the sample raw material includes: the molecular composition of the sample raw material, the molecular content of each molecule in the sample raw material, the molecular composition of the actual product corresponding to the sample raw material and the actual content of each molecule in the actual product.
[0334] In this embodiment, the first processing unit 12 is specifically used to process the molecular composition of the sample raw material according to a preset reaction rule set to obtain a reaction path corresponding to each molecule in the molecular composition of the sample raw material; according to the reaction path corresponding to each molecule in the molecular composition of the sample raw material, obtain a first molecular composition of the device product; the device product includes: the sample raw material, the intermediate product and the predicted product; according to the first molecular composition of the device product and the second molecular composition of the actual product, calculate a first relative deviation; if the first relative deviation meets the preset condition, fix the reaction rule set; if the first relative deviation does not meet the preset condition, adjust the reaction rules in the reaction rule set, and recalculate the first relative deviation according to the adjusted reaction rule set until the first relative deviation meets the preset condition.
[0335] In this embodiment, the first processing unit 12 is specifically used to obtain the types of single molecules in the first molecular composition to form a first set; obtain the types of single molecules in the second molecular composition to form a second set; determine whether the second set is a subset of the first set; if the second set is not a subset of the first set, obtain a pre-stored relative deviation value that does not meet the preset conditions as the first relative deviation value; if the second set is a subset of the first set, calculate the first relative deviation in the following manner:
[0336]
[0337] Among them, x1 is the first relative deviation, M is the first set, M1 is the set of types of single molecules in the molecular composition of the sample raw material, M2 is the set of types of single molecules in the molecular composition of the intermediate product, M3 is the second set, and card represents the number of elements in the set.
[0338] In this embodiment, the first processing unit 12 is specifically used to calculate the reaction rate of the reaction path corresponding to each molecule in the molecular composition of the sample raw material according to the reaction rate algorithm; obtain the predicted content of each molecule in the predicted product corresponding to the sample raw material according to the molecular content of each molecule in the sample raw material and the reaction rate corresponding to the reaction path of the molecule; calculate the second relative deviation according to the predicted content of each molecule in the predicted product and the actual content of each molecule in the actual product; if the second relative deviation meets the preset conditions, fix the reaction rate algorithm; if the second relative deviation does not meet the preset conditions, adjust the parameters in the reaction rate algorithm, and recalculate the second relative deviation according to the adjusted reaction rate algorithm until the second relative deviation meets the preset conditions.
[0339] In this embodiment, the first processing unit 12 is specifically used to calculate the reaction rate of each reaction path according to the reaction rate constant in the reaction rate algorithm; wherein,
[0340] The reaction rate constant is determined according to the following calculation formula:
[0341]
[0342] Where k is the reaction rate constant, k B is the Boltzmann constant, h is the Planck constant, R is the ideal gas constant, E is the temperature of the environment where the reaction path is located, exp is an exponential function with the natural constant as the base, ΔS is the entropy change before and after the reaction corresponding to the reaction rule corresponding to the reaction path, ΔE is the reaction energy barrier corresponding to the reaction rule corresponding to the reaction path, Catalyst activity factor, P is the pressure value of the environment in which the reaction path is located, and α is the pressure influence factor corresponding to the reaction rule corresponding to the reaction path.
[0343] In this embodiment, the model includes: a physical property calculation model.
[0344] In this embodiment, the first processing unit 12 is used to query the physical property parameter database, and use the physical property data corresponding to the parsed operation instructions in the physical property parameter database as the execution result output by the physical property calculation model; wherein the physical property parameter database includes: the physical properties of various single molecules in the molecular composition of the crude oil of the refinery; and the physical properties of the mixture.
[0345] In this embodiment, the first processing unit 12 is used to calculate the physical properties of each single molecule in the mixture according to the number of groups of each group constituting the single molecule and the contribution value of each group to the physical property; and calculate the physical properties of the mixture according to the physical properties of various single molecules in the mixture and the content of each single molecule in the mixture.
[0346] In this embodiment, the device also includes: a template single molecule physical property matching unit, which is used to compare the group number of each group constituting the single molecule with the molecular information of the template single molecule with known physical properties pre-stored in the second database; wherein the molecular information includes: the group number of each group constituting the template single molecule; judging whether there is a template single molecule identical to the single molecule; if there is a template single molecule identical to the single molecule, outputting the physical properties of the template single molecule as the physical properties of the single molecule; if there is no template single molecule identical to the single molecule, calculating the physical properties of the single molecule.
[0347] In this embodiment, the first processing unit 12 is specifically used to obtain, for each single molecule in the mixture, the number of groups of each group constituting the single molecule and the contribution value of each group to the physical property; the number of groups of each group constituting the single molecule and the contribution value of each group to the physical property are input into a pre-trained physical property calculation model to obtain the physical properties of the single molecule output by the physical property calculation model; wherein the physical property calculation model is used to calculate the physical properties of the single molecule based on the number of groups of each group contained in the single molecule and the contribution value of each group to the physical property.
[0348] In this embodiment, the device also includes: a model training unit, which is used to obtain the number of groups of each group constituting the single molecule and the contribution value of each group to the physical property for each single molecule in the mixture; the number of groups of each group constituting the single molecule and the contribution value of each group to the physical property are input into a pre-trained physical property calculation model to obtain the physical properties of the single molecule output by the physical property calculation model; wherein the physical property calculation model is used to calculate the physical properties of the single molecule based on the number of groups of each group contained in the single molecule and the contribution value of each group to the physical property.
[0349] In this embodiment, the model training unit is specifically used to establish the following physical property calculation model:
[0350]
[0351] Wherein, f is the physical property of the single molecule, n i is the number of groups in the ith group, Δf i is the contribution value of the ith group to the physical property, and a is the association constant.
[0352] In this embodiment, the model training unit is specifically used to regard all groups constituting a single molecule as primary groups; regard multiple groups that exist simultaneously and contribute to the same physical property as multi-level groups, and regard the number of the multiple groups as the level of the multi-level group.
[0353] In this embodiment, the model training unit is specifically used to establish the following physical property calculation model:
[0354]
[0355] Among them, f is the physical property of a single molecule, m 1i is the number of the ith group in the primary group of the single molecule, Δf 1i is the contribution value of the ith group in the primary group of the single molecule to the physical property; m 2j is the number of the jth group in the secondary group of the single molecule, Δf 2j is the contribution value of the jth group in the secondary group of the single molecule to the physical property; m Nl is the number of the first group in the N-level group of the single molecule, Δf Nl is the contribution value of the first group in the N-level groups of the single molecule to the physical property; N is a positive integer greater than or equal to 2; a is the association constant.
[0356] In this embodiment, the model training unit is specifically used to regard all groups constituting a single molecule as primary groups; regard multiple groups that exist simultaneously and contribute to the same physical property as multi-level groups, and regard the number of the multiple groups as the level of the multi-level group.
[0357] In this embodiment, the first processing unit 12 is specifically used to calculate the boiling point of the single molecule according to the following physical property calculation model:
[0358]
[0359] Wherein, T is the boiling point of the single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting the single molecule, GROUP 11 is the first contribution value vector obtained by converting the contribution values of each primary group of the single molecule to the boiling point, GROUP 12 is the second contribution value vector obtained by converting the contribution values of each secondary group of the single molecule to the boiling point, GROUP 1N is the Nth contribution value vector obtained by converting the contribution values of each N-level group of the single molecule to the boiling point; Numh is the number of atoms other than hydrogen atoms in the single molecule; b is the first preset constant, c is the second preset constant, and d is the third preset constant; N is a positive integer greater than or equal to 2.
[0360] In this embodiment, the first processing unit 12 is specifically used to calculate the density of the single molecule according to the following physical property calculation model:
[0361]
[0362] Where D is the density of the single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting the single molecule, GROUP 21 is the N+1th contribution value vector obtained by converting the contribution value of the primary group to the density, GROUP 22 is the N+2th contribution value vector obtained by converting the contribution value of the secondary group to the density, GROUP 2N is the 2Nth contribution value vector converted according to the contribution value of the N-level group to the density, e is the fourth preset constant; and N is a positive integer greater than or equal to 2.
[0363] In this embodiment, the first processing unit 12 is specifically used to calculate the octane number of the single molecule according to the following physical property calculation model:
[0364] X=SOL×GROUP 31 +SOL×GROUP 32+......+SOL×GROUP 3N +h;
[0365] Where X is the octane number of the single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting the single molecule, GROUP 31 is the 2N+1th contribution value vector obtained by converting the contribution values of each primary group of the single molecule to the octane number, GROUP 32 is the 2N+2 contribution value vector obtained by converting the contribution values of each secondary group of the single molecule to the octane number, GROUP 3N is the 3Nth contribution value vector obtained by converting the contribution values of each N-level group of the single molecule to the octane number; N is a positive integer greater than or equal to 2; and h is the fifth preset constant.
[0366] The physical properties of the mixture include density, cloud point, pour point, aniline point and octane number.
[0367] In this embodiment, the first processing unit 12 is specifically used to calculate the density of the mixture by the following calculation formula:
[0368] density=∑(D i × i_volume );
[0369] Wherein, density is the density of the mixture, D i is the density of the ith single molecule, x i_volume is the content of the i-th single molecule.
[0370] In this embodiment, the first processing unit 12 is specifically used to calculate the turbidity point contribution value of the single molecule according to the density and boiling point of each single molecule; and calculate the turbidity point of the mixture according to the turbidity point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
[0371] In this embodiment, the first processing unit 12 is specifically used to calculate the pour point contribution value of the single molecule according to the density and molecular weight of each single molecule; and calculate the pour point of the mixture according to the pour point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
[0372] In this embodiment, the first processing unit 12 is specifically used to calculate the aniline point contribution value of the single molecule according to the density and boiling point of each single molecule; and calculate the aniline point of the mixture according to the aniline point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
[0373] In this embodiment, the first processing unit 12 is specifically used to calculate the octane number of the mixture by the following calculation formula:
[0374]
[0375]
[0376]
[0377]
[0378]
[0379]
[0380]
[0381] Wherein, ON is the octane number of the mixture, HISQFG is a molecular set, H is a molecular set of normal alkanes, I is a molecular set of isoalkanes, S is a molecular set of cycloalkanes, Q is a molecular set of olefins, F is a molecular set of aromatic hydrocarbons, G is a molecular set of oxygen-containing compounds, and υ i is the content of each molecule in the mixture; H ,υ I ,υ S ,υ Q ,υ F ,υ G are the total content of normal alkanes, the total content of isoalkanes, the total content of cycloalkanes, the total content of olefins, the total content of aromatic hydrocarbons and the total content of oxygen-containing compounds in the mixture; β i is the regression parameter for each molecule in the mixture; i is the octane number of each molecule in the mixture; C H represents the interaction coefficient between normal alkanes and other molecules; C I represents the interaction coefficient between isoalkanes and other molecules; C S represents the interaction coefficient between cycloalkanes and other molecules; C Q represents the interaction coefficient between olefins and other molecules; C F represents the interaction coefficient between aromatic hydrocarbons and other molecules; C G It represents the interaction coefficient between oxygen-containing compounds and other molecules; represents the first constant coefficient between normal alkanes and isoalkanes, represents the first constant coefficient between normal alkanes and cycloalkanes, represents the first constant coefficient between normal alkanes and alkenes, represents the first constant coefficient between normal alkanes and aromatic hydrocarbons, represents the first constant coefficient between normal alkanes and oxygen-containing compounds, represents the first constant coefficient between isoalkanes and cycloalkanes, represents the first constant coefficient between isoparaffins and alkenes, represents the first constant coefficient between isoalkanes and aromatics, represents the first constant coefficient between isoalkanes and oxygen-containing compounds, represents the first constant coefficient between cycloalkanes and alkenes, represents the first constant coefficient between cycloalkanes and aromatic hydrocarbons, represents the first constant coefficient between cycloalkanes and oxygen-containing compounds, represents the first constant coefficient between olefins and aromatics, represents the first constant coefficient between olefins and oxygen-containing compounds, Represents the first constant coefficient between aromatic hydrocarbons and oxygen-containing compounds, represents the second constant coefficient between normal alkanes and isoalkanes, represents the second constant coefficient between normal alkanes and cycloalkanes, represents the second constant coefficient between normal alkanes and alkenes, represents the second constant coefficient between normal alkanes and aromatic hydrocarbons, represents the second constant coefficient between normal alkanes and oxygen-containing compounds, represents the second constant coefficient between isoalkanes and cycloalkanes, represents the second constant coefficient between isoalkanes and alkenes, The second constant coefficient between isoalkanes and aromatics, represents the second constant coefficient between isoalkanes and oxygen-containing compounds, represents the second constant coefficient between cycloalkanes and alkenes, The second constant coefficient between cycloalkanes and aromatic hydrocarbons, The second constant coefficient between cycloalkanes and oxygen-containing compounds, The second constant coefficient between olefins and aromatics, represents the second constant coefficient between olefins and oxygen-containing compounds, Represents the second constant coefficient between aromatic hydrocarbons and oxygen-containing compounds; wherein the octane number includes: research octane number and motor octane number.
[0382] In this embodiment, the type of the browser of the web client includes: one or more of IE, Chrome, Firefox, Safari or Opera.
[0383] In this embodiment, the types of web servers include: one or more of Apache, Nginx, Tomcat or IIS.
[0384] In this embodiment, the oil refining unit includes: a single oil processing unit, multiple oil processing units, or corresponding oil processing units in the entire oil refining process, and the types of oil processing units include: catalytic cracking unit, delayed coking unit, residual oil hydrogenation unit, hydrocracking unit, diesel hydro-modification unit, diesel hydro-refining unit, gasoline hydro-refining unit, catalytic reforming unit and alkylation unit; wherein each oil processing unit corresponds to a reaction rule set.
[0385] This embodiment provides a refinery simulation system based on B / S architecture. Figure 3 , Figure 4 , which is an architecture diagram of an oil refinery simulation system based on a B / S architecture according to an embodiment of the present invention.
[0386] In this embodiment, the oil refinery simulation system based on B / S architecture includes but is not limited to: a processor 310 and a memory 320 .
[0387] The processor 310 is used to execute the oil refinery simulation program based on the B / S architecture stored in the memory 320 to implement the above-mentioned oil refinery simulation method based on the B / S architecture.
[0388] Specifically, the processor 310 is used to execute the refinery simulation program based on the B / S architecture stored in the memory 320 to implement the following steps: receiving operation instructions corresponding to the refinery input by the user through the browser interface of the web client 210; sending the operation instructions to the web server 211 through network communication, so that the web server 211 parses the operation instructions, and inputs the parsed operation instructions into a pre-trained model, obtains the execution result corresponding to the parsed operation instruction output by the model, and sends the execution result to the web client 210; and displays the execution result received by the web client 210 on the browser interface.
[0389] The embodiment of the present invention also provides a storage medium. The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0390] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned oil refining device simulation method based on B / S architecture can be implemented.
[0391] Specifically, the processor is used to execute a refinery simulation program based on a B / S architecture stored in a memory to implement the following steps: receiving operation instructions corresponding to the refinery input by a user through a browser interface of a web client; sending the operation instructions to a web server through network communication, so that the web server parses the operation instructions, and inputs the parsed operation instructions into a pre-trained model, obtains an execution result corresponding to the parsed operation instruction output by the model, and sends the execution result to the web client; and displays the execution result received by the web client on the browser interface.
[0392] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. A method for simulating an oil refining unit based on a B / S architecture, characterized in that: include: Receiving operation instructions corresponding to the oil refining device input by the user through the browser interface of the web client; Sending the operation instruction to a web server through network communication, so that the web server parses the operation instruction, inputs the parsed operation instruction into a pre-trained model, obtains an execution result output by the model corresponding to the parsed operation instruction, and sends the execution result to the web client; Displaying the execution result received by the web client on the browser interface; The model includes a physical property calculation model, and obtaining the execution result output by the model corresponding to the parsed operation instruction includes: Querying a physical property parameter database, and using the physical property data corresponding to the parsed operation instruction in the physical property parameter database as the execution result output by the physical property calculation model; wherein the physical property parameter database includes: the physical properties of various single molecules in the molecular composition of the crude oil of the oil refining device; the physical properties of the mixture; The physical properties of the mixture, including octane number; The octane number of the mixture is calculated by the following calculation formula: Wherein, ON is the octane number of the mixture, HISQFG is a molecular set, H is a molecular set of normal alkanes, I is a molecular set of isoalkanes, S is a molecular set of cycloalkanes, Q is a molecular set of olefins, F is a molecular set of aromatic hydrocarbons, G is a molecular set of oxygen-containing compounds, and υ i is the content of each molecule in the mixture; H ,υ I ,υ S ,υ Q ,υ F ,υ G are the total content of normal alkanes, the total content of isoalkanes, the total content of cycloalkanes, the total content of olefins, the total content of aromatic hydrocarbons and the total content of oxygen-containing compounds in the mixture; β i is the regression parameter for each molecule in the mixture; i is the octane number of each molecule in the mixture; C H represents the interaction coefficient between normal alkanes and other molecules; C I represents the interaction coefficient between isoalkanes and other molecules; C S represents the interaction coefficient between cycloalkanes and other molecules; C Q represents the interaction coefficient between olefins and other molecules; C F represents the interaction coefficient between aromatic hydrocarbons and other molecules; C G It represents the interaction coefficient between oxygen-containing compounds and other molecules; represents the first constant coefficient between normal alkanes and isoalkanes, represents the first constant coefficient between normal alkanes and cycloalkanes, represents the first constant coefficient between normal alkanes and alkenes, represents the first constant coefficient between normal alkanes and aromatic hydrocarbons, represents the first constant coefficient between normal alkanes and oxygen-containing compounds, represents the first constant coefficient between isoalkanes and cycloalkanes, represents the first constant coefficient between isoparaffins and alkenes, represents the first constant coefficient between isoalkanes and aromatics, represents the first constant coefficient between isoalkanes and oxygen-containing compounds, represents the first constant coefficient between cycloalkanes and alkenes, represents the first constant coefficient between cycloalkanes and aromatic hydrocarbons, represents the first constant coefficient between cycloalkanes and oxygen-containing compounds, represents the first constant coefficient between olefins and aromatics, represents the first constant coefficient between olefins and oxygen-containing compounds, Represents the first constant coefficient between aromatic hydrocarbons and oxygen-containing compounds, represents the second constant coefficient between normal alkanes and isoalkanes, represents the second constant coefficient between normal alkanes and cycloalkanes, represents the second constant coefficient between normal alkanes and alkenes, represents the second constant coefficient between normal alkanes and aromatic hydrocarbons, represents the second constant coefficient between normal alkanes and oxygen-containing compounds, represents the second constant coefficient between isoalkanes and cycloalkanes, The second constant coefficient between isoalkanes and alkenes, The second constant coefficient between isoalkanes and aromatics, represents the second constant coefficient between isoalkanes and oxygen-containing compounds, represents the second constant coefficient between cycloalkanes and alkenes, The second constant coefficient between cycloalkanes and aromatic hydrocarbons, The second constant coefficient between cycloalkanes and oxygen-containing compounds, The second constant coefficient between olefins and aromatics, represents the second constant coefficient between olefins and oxygen-containing compounds, Represents the second constant coefficient between aromatic hydrocarbons and oxygen-containing compounds; wherein the octane number includes: research octane number and motor octane number.
2. The method according to claim 1, characterized in that The method further comprises: Receive a user name and password input by the user through the browser interface; The user name and password are sent to the web server through network communication so that the web server performs user identity authentication. If the user identity authentication is successful, the step of receiving the operation instructions corresponding to the oil refining device input by the user through the browser interface of the web client is executed.
3. The method according to claim 1, characterized in that The step of displaying the execution result received by the web client on the browser interface includes: In the output window of the browser interface, the execution results are displayed in a table, or in a graphical manner, or in a manner of generating a reaction network.
4. The method according to claim 3, characterized in that The displaying of the execution result in a manner of generating a reaction network includes: The execution result is displayed in a manner of generating a two-dimensional reaction network.
5. The method according to claim 3, characterized in that: The displaying of the execution result in a manner of generating a reaction network includes: The execution result is displayed in a manner of generating a three-dimensional reaction network.
6. The method according to claim 4 or 5, characterized in that: The displaying of the execution result in a manner of generating a reaction network includes: Display one or more of the molecular composition, the structure of various single molecules in the molecular composition, the content of various single molecules, the physical properties of various single molecules, or the content of various single molecules.
7. The method according to claim 1, characterized in that The method further comprises: In the operation instruction input window of the browser interface, optional operation instructions and corresponding controls are displayed for the user to select and use.
8. The method according to claim 1, characterized in that The operation instruction includes an instruction type and instruction content.
9. The method according to claim 8, characterized in that The instruction types include button click, screen click, screen sliding, auxiliary screen turning, rotation and zooming, and text input.
10. The method according to claim 1, characterized in that The model includes a product prediction model, and obtaining the execution result output by the model corresponding to the parsed operation instruction includes: Query a molecular composition database, and use the molecular composition data corresponding to the parsed operation instruction in the molecular composition database as the execution result output by the product prediction model; wherein the molecular composition database includes: the molecular composition of the crude oil of the oil refinery obtained; the molecular composition of different fractions obtained by distilling the crude oil obtained according to the physical properties of each single molecule in the molecular composition of the crude oil; according to a preset raw material ratio, input each corresponding fraction as a refining raw material into the product prediction model of the corresponding oil refinery respectively, and obtain the molecular composition of the corresponding predicted product and the content of each single molecule in the predicted product; use each of the predicted products as a product blending raw material to blend according to a preset rule set, and obtain the molecular composition of multiple groups of mixtures and the content of each single molecule in the mixture.
11. The method according to claim 10, characterized in that The step of training the product prediction model comprises: Establishing a product prediction model; wherein the product prediction model includes: a reaction rule set of multiple reaction rules and a reaction rate algorithm; Obtaining sample material information of the sample material; Using the sample raw material information, training the reaction rule set, and fixing the trained reaction rule set; The reaction rate algorithm is trained using the sample raw material information, and the trained reaction rate algorithm is fixed to obtain the trained product prediction model.
12. The method according to claim 11, characterized in that The sample raw material information of the sample raw material includes: the molecular composition of the sample raw material, the molecular content of each molecule in the sample raw material, the molecular composition of the actual product corresponding to the sample raw material, and the actual content of each molecule in the actual product.
13. The method according to claim 12, characterized in that Using the sample raw material information, training the reaction rule set includes: Processing the molecular composition of the sample raw material according to a preset reaction rule set to obtain a reaction path corresponding to each molecule in the molecular composition of the sample raw material; According to the reaction path corresponding to each molecule in the molecular composition of the sample raw material, a first molecular composition of the device product is obtained; the device product includes: the sample raw material, the intermediate product and the predicted product; Calculating a first relative deviation based on a first molecular composition of a product of the device and a second molecular composition of an actual product; If the first relative deviation meets a preset condition, fixing the reaction rule set; If the first relative deviation does not meet the preset condition, the reaction rule in the reaction rule set is adjusted, and the first relative deviation is recalculated according to the adjusted reaction rule set until the first relative deviation meets the preset condition.
14. The method according to claim 13, characterized in that Calculating a first relative deviation according to a first molecular composition of the device product and a second molecular composition of the actual product includes: Obtaining types of single molecules in the first molecular composition to form a first set; Obtaining types of single molecules in the second molecular composition to form a second set; Determining whether the second set is a subset of the first set; If the second set is not a subset of the first set, obtaining a pre-stored relative deviation value that does not meet a preset condition as the first relative deviation value; If the second set is a subset of the first set, the first relative deviation is calculated as follows: Among them, x1 is the first relative deviation, M is the first set, M1 is the set of types of single molecules in the molecular composition of the sample raw material, M2 is the set of types of single molecules in the molecular composition of the intermediate product, M3 is the second set, and card represents the number of elements in the set.
15. The method according to claim 12, characterized in that Using the sample raw material information, training the reaction rate algorithm includes: According to the reaction rate algorithm, respectively calculating the reaction rate of the reaction path corresponding to each molecule in the molecular composition of the sample raw material; Obtaining the predicted content of each molecule in the predicted product corresponding to the sample raw material according to the molecular content of each molecule in the sample raw material and the reaction rate corresponding to the reaction path of the molecule; Calculating a second relative deviation based on the predicted content of each molecule in the predicted product and the actual content of each molecule in the actual product; If the second relative deviation meets a preset condition, fixing the reaction rate algorithm; If the second relative deviation does not meet the preset conditions, the parameters in the reaction rate algorithm are adjusted, and the second relative deviation is recalculated according to the adjusted reaction rate algorithm until the second relative deviation meets the preset conditions.
16. The method according to claim 15, characterized in that According to the reaction rate algorithm, the reaction rate of the reaction path corresponding to each molecule in the molecular composition of the sample raw material is calculated respectively, including: The reaction rate of each reaction path is calculated according to the reaction rate constant in the reaction rate algorithm; wherein, The reaction rate constant is determined according to the following calculation formula: Where k is the reaction rate constant, k B is the Boltzmann constant, h is the Planck constant, R is the ideal gas constant, E is the temperature of the environment where the reaction path is located, exp is an exponential function with the natural constant as the base, ΔS is the entropy change before and after the reaction corresponding to the reaction rule corresponding to the reaction path, ΔE is the reaction energy barrier corresponding to the reaction rule corresponding to the reaction path, Catalyst activity factor, P is the pressure value of the environment in which the reaction path is located, and α is the pressure influence factor corresponding to the reaction rule corresponding to the reaction path.
17. The method according to claim 1, characterized in that The physical property calculation method of the mixture includes: For each single molecule in the mixture, calculating the physical property of the single molecule according to the number of each group constituting the single molecule and the contribution value of each group to the physical property; The physical properties of the mixture are calculated based on the physical properties of various single molecules in the mixture and the content of each single molecule in the mixture.
18. The method according to claim 17, characterized in that Before calculating the physical properties of the single molecule, it also includes: Compare the number of each group constituting the single molecule with the molecular information of the template single molecule with known physical properties pre-stored in the second database; wherein the molecular information includes: the number of each group constituting the template single molecule; Determining whether there is a template single molecule identical to the single molecule; If there is a template single molecule identical to the single molecule, outputting the physical properties of the template single molecule as the physical properties of the single molecule; If there is no template single molecule identical to the single molecule, the physical properties of the single molecule are calculated.
19. The method according to claim 17 or 18, characterized in that The method for calculating the physical properties of a single molecule includes: For each single molecule in the mixture, obtain the number of each group constituting the single molecule, and obtain the contribution value of each group to the physical property; The number of groups of each group constituting the single molecule and the contribution value of each group to the physical property are input into a pre-trained physical property calculation model to obtain the physical property of the single molecule output by the physical property calculation model; wherein, The physical property calculation model is used to calculate the physical property of the single molecule according to the number of each group contained in the single molecule and the contribution value of each group to the physical property.
20. The method according to claim 19, characterized in that The steps of training the physical property calculation model include: Construct computational models of physical properties of single molecules; Obtaining the number of each group constituting a sample single molecule; the physical properties of the sample single molecule are known; Inputting the number of each group contained in the sample single molecule into the physical property calculation model; Obtaining the predicted physical properties of the sample single molecule output by the physical property calculation model; If the deviation between the predicted physical property and the known physical property is less than a preset deviation threshold, the physical property calculation model is determined to be converged, and the contribution value corresponding to each group is obtained in the converged physical property calculation model, and stored as the contribution value of the group to the physical property; If the deviation value between the predicted physical property and the known physical property is greater than or equal to the deviation threshold, the contribution value corresponding to each group in the physical property calculation model is adjusted until the physical property calculation model converges.
21. The method according to claim 20, characterized in that The construction of a single molecule physical property calculation model comprises: The following physical property calculation model is established: Wherein, f is the physical property of the single molecule, n i is the number of groups in the ith group, Δf i is the contribution value of the ith group to the physical property, and a is the association constant.
22. The method according to claim 20, characterized in that In the step of training the physical property calculation model, primary groups and multi-level groups are determined among all the groups of the single molecule; wherein, All the groups constituting a single molecule are regarded as primary groups; A plurality of groups that exist simultaneously and contribute to the same physical property are regarded as a multi-stage group, and the number of the plurality of groups is regarded as the level of the multi-stage group.
23. The method according to claim 22, characterized in that The following physical property calculation model is established: Among them, f is the physical property of a single molecule, m 1i is the number of the ith group in the primary group of the single molecule, Δf 1i m is the contribution value of the ith group in the primary group of the single molecule to the physical property; 2j is the number of the jth group in the secondary group of the single molecule, Δf 2j is the contribution value of the jth group in the secondary group of the single molecule to the physical property; m Nl is the number of the first group in the N-level group of the single molecule, Δf Nl is the contribution value of the first group in the N-level groups of the single molecule to the physical property; N is a positive integer greater than or equal to 2; a is the association constant.
24. The method according to claim 19, characterized in that In the method for calculating the physical properties of a single molecule, obtaining the number of groups of each group constituting the single molecule includes: determining primary groups and multi-level groups among all the groups of the single molecule; wherein, All the groups constituting a single molecule are regarded as primary groups; A plurality of groups that exist simultaneously and contribute to the same physical property are regarded as a multi-stage group, and the number of the plurality of groups is regarded as the level of the multi-stage group.
25. The method according to claim 20, characterized in that In the method for calculating the physical properties of a single molecule, obtaining the number of groups of each group constituting the single molecule includes: determining primary groups and multi-level groups among all the groups of the single molecule; wherein, All the groups constituting a single molecule are regarded as primary groups; A plurality of groups that exist simultaneously and contribute to the same physical property are regarded as a multi-stage group, and the number of the plurality of groups is regarded as the level of the multi-stage group.
26. The method according to claim 24 or 25, characterized in that The physical properties of the single molecule include: the boiling point of the single molecule; The calculating the physical properties of the single molecule comprises: The boiling point of the single molecule is calculated according to the following physical property calculation model: Wherein, T is the boiling point of the single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting the single molecule, GROUP 11 is the first contribution value vector obtained by converting the contribution values of each primary group of the single molecule to the boiling point, GROUP 12 is the second contribution value vector obtained by converting the contribution values of each secondary group of the single molecule to the boiling point, GROUP 1N is the Nth contribution value vector obtained by converting the contribution values of each N-level group of the single molecule to the boiling point; Numh is the number of atoms other than hydrogen atoms in the single molecule; b is the first preset constant, c is the second preset constant, and d is the third preset constant; N is a positive integer greater than or equal to 2.
27. The method according to claim 24 or 25, characterized in that The physical properties of the single molecule include: density of the single molecule; The calculating the physical properties of the single molecule comprises: The density of the single molecule is calculated according to the following physical property calculation model: Where D is the density of the single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting the single molecule, GROUP 21 is the N+1th contribution value vector obtained by converting the contribution value of the primary group to the density, GROUP 22 is the N+2th contribution value vector obtained by converting the contribution value of the secondary group to the density, GROUP 2N is the 2Nth contribution value vector converted according to the contribution value of the N-level group to the density, e is the fourth preset constant; and N is a positive integer greater than or equal to 2.
28. The method according to claim 24 or 25, characterized in that The physical properties of the single molecule include: the octane number of the single molecule; The calculating the physical properties of the single molecule comprises: The octane number of the single molecule is calculated according to the following physical property calculation model: X=SOL×GROUP 31 +SOL×GROUP 32 +......+SOL×GROUP 3N +h; Where X is the octane number of the single molecule, SOL is the single molecule vector converted according to the number of groups of each group constituting the single molecule, GROUP 31 is the 2N+1th contribution value vector obtained by converting the contribution value of the primary group to the octane number, GROUP 32 is the 2N+2 contribution value vector obtained by converting the contribution value of the secondary group to the octane number, GROUP 3N is the 3Nth contribution value vector converted according to the contribution value of the N-level group to the octane number; N is a positive integer greater than or equal to 2; and h is the fifth preset constant.
29. The method according to claim 1, characterized in that The physical properties of the mixture also include: density, cloud point, pour point and aniline point.
30. The method according to claim 29, characterized in that When the physical property of the mixture is density, calculating the physical property of the mixture includes: The density of the mixture is calculated by the following formula: density=∑(D i ×x i_volume ); Wherein, density is the density of the mixture, D i is the density of the ith single molecule, x i_volume is the content of the i-th single molecule.
31. The method according to claim 29, characterized in that When the physical property of the mixture is a cloud point, calculating the physical property of the mixture includes: Calculating the cloud point contribution value of each single molecule according to the density and boiling point of the single molecule; The cloud point of the mixture is calculated according to the cloud point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
32. The method according to claim 29, characterized in that When the physical property of the mixture is the pour point, the physical property of the mixture is calculated, including: Calculating the pour point contribution value of each single molecule according to the density and molecular weight of the single molecule; The pour point of the mixture is calculated according to the pour point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
33. The method according to claim 29, characterized in that When the physical property of the mixture is the aniline point, the physical property of the mixture is calculated, including: Calculating the aniline point contribution value of each single molecule according to the density and boiling point of the single molecule; The aniline point of the mixture is calculated according to the aniline point contribution value of each single molecule in the mixture and the content of each single molecule in the mixture.
34. The method according to claim 1, characterized in that The types of browsers of the web client include: One or more of IE, Chrome, Firefox, Safari, or Opera.
35. The method according to claim 1, characterized in that The types of web servers include: One or more of Apache, Nginx, Tomcat, or IIS.
36. The method according to claim 1, characterized in that The oil refining unit comprises: A single oil processing unit, multiple oil processing units, or corresponding oil processing units in the entire oil refining process, the types of oil processing units include: Catalytic cracking unit, delayed coking unit, residue oil hydrogenation unit, hydrocracking unit, diesel hydro-modification unit, diesel hydro-refining unit, gasoline hydro-refining unit, catalytic reforming unit and alkylation unit; wherein each petroleum processing unit corresponds to a set of reaction rules.
37. A refinery simulation device based on B / S architecture, characterized in that: The device comprises: A receiving unit, used for receiving an operation instruction corresponding to the oil refining device input by a user through a browser interface of a web client; A first processing unit is used to send the operation instruction to the web server through network communication, so that the web server parses the operation instruction, inputs the parsed operation instruction into a pre-trained model, obtains an execution result output by the model corresponding to the parsed operation instruction, and sends the execution result to the web client; A second processing unit, configured to display the execution result received by the web client on the browser interface; The model includes a physical property calculation model, and obtaining the execution result output by the model corresponding to the parsed operation instruction includes: Querying a physical property parameter database, and using the physical property data corresponding to the parsed operation instruction in the physical property parameter database as the execution result output by the physical property calculation model; wherein the physical property parameter database includes: the physical properties of various single molecules in the molecular composition of the crude oil of the oil refining device; the physical properties of the mixture; The physical properties of the mixture, including octane number; The octane number of the mixture is calculated by the following calculation formula: Wherein, ON is the octane number of the mixture, HISQFG is a molecular set, H is a molecular set of normal alkanes, I is a molecular set of isoalkanes, S is a molecular set of cycloalkanes, Q is a molecular set of olefins, F is a molecular set of aromatic hydrocarbons, G is a molecular set of oxygen-containing compounds, and υi is the content of each molecule in the mixture; υ H ,υ I ,υ S ,υ Q ,υ F ,υ G are the total content of normal alkanes, the total content of isoalkanes, the total content of cycloalkanes, the total content of olefins, the total content of aromatic hydrocarbons and the total content of oxygen-containing compounds in the mixture; β i is the regression parameter for each molecule in the mixture; i is the octane number of each molecule in the mixture; C H represents the interaction coefficient between normal alkanes and other molecules; C I represents the interaction coefficient between isoalkanes and other molecules; C S represents the interaction coefficient between cycloalkanes and other molecules; C Q represents the interaction coefficient between olefins and other molecules; C F represents the interaction coefficient between aromatic hydrocarbons and other molecules; C G It represents the interaction coefficient between oxygen-containing compounds and other molecules; represents the first constant coefficient between normal alkanes and isoalkanes, represents the first constant coefficient between normal alkanes and cycloalkanes, represents the first constant coefficient between normal alkanes and alkenes, represents the first constant coefficient between normal alkanes and aromatic hydrocarbons, represents the first constant coefficient between normal alkanes and oxygen-containing compounds, represents the first constant coefficient between isoalkanes and cycloalkanes, represents the first constant coefficient between isoparaffins and alkenes, represents the first constant coefficient between isoalkanes and aromatics, represents the first constant coefficient between isoalkanes and oxygen-containing compounds, represents the first constant coefficient between cycloalkanes and alkenes, represents the first constant coefficient between cycloalkanes and aromatic hydrocarbons, represents the first constant coefficient between cycloalkanes and oxygen-containing compounds, represents the first constant coefficient between olefins and aromatics, represents the first constant coefficient between olefins and oxygen-containing compounds, Represents the first constant coefficient between aromatic hydrocarbons and oxygen-containing compounds, represents the second constant coefficient between normal alkanes and isoalkanes, represents the second constant coefficient between normal alkanes and cycloalkanes, represents the second constant coefficient between normal alkanes and alkenes, represents the second constant coefficient between normal alkanes and aromatic hydrocarbons, represents the second constant coefficient between normal alkanes and oxygen-containing compounds, represents the second constant coefficient between isoalkanes and cycloalkanes, The second constant coefficient between isoalkanes and alkenes, The second constant coefficient between isoalkanes and aromatics, represents the second constant coefficient between isoalkanes and oxygen-containing compounds, represents the second constant coefficient between cycloalkanes and alkenes, The second constant coefficient between cycloalkanes and aromatic hydrocarbons, The second constant coefficient between cycloalkanes and oxygen-containing compounds, The second constant coefficient between olefins and aromatics, represents the second constant coefficient between olefins and oxygen-containing compounds, Represents the second constant coefficient between aromatic hydrocarbons and oxygen-containing compounds; wherein the octane number includes: research octane number and motor octane number.
38. The oil refinery simulation device according to claim 37, characterized in that: The device further comprises: a third processing unit; The receiving unit is further used to receive a user name and password input by a user through the browser interface; The third processing unit is used to send the user name and password to the web server through network communication so that the web server can perform user identity authentication. If the user identity authentication is passed, the receiving unit executes the step of receiving the operation instructions corresponding to the oil refining device input by the user through the browser interface of the web client.
39. The oil refinery simulation device according to claim 37, characterized in that: The second processing unit is specifically used to display the execution result in a table form, or display the execution result in a graphical form, or display the execution result in a form of generating a reaction network, in the output window of the browser interface.
40. The oil refinery simulation device according to claim 37, characterized in that: The model includes a product prediction model; The first processing unit is specifically used to query a molecular composition database, and use the molecular composition data corresponding to the parsed operation instruction in the molecular composition database as the execution result output by the product prediction model; wherein the molecular composition database includes: the molecular composition of the crude oil of the oil refinery obtained; the molecular composition of different fractions obtained by distilling the crude oil obtained according to the physical properties of each single molecule in the molecular composition of the crude oil; according to a preset raw material ratio, the corresponding fractions are input into the product prediction model of the corresponding oil refinery as refining raw materials, and the molecular composition of the corresponding predicted product and the content of each single molecule in the predicted product are obtained; each of the predicted products is used as a product blending raw material and blended according to a preset rule set to obtain the molecular composition of multiple groups of mixtures and the content of each single molecule in the mixture.
41. A refinery simulation system based on B / S architecture, characterized in that: The oil refinery simulation system based on B / S architecture includes a processor and a memory; the processor is used to execute the oil refinery simulation program based on B / S architecture stored in the memory to implement the oil refinery simulation method based on B / S architecture described in any one of claims 1-36.
42. A storage medium, characterized in that The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the refinery simulation method based on B / S architecture as described in any one of claims 1-36.
