A fast calculation method for equilibrium of multiphase complex chemical reaction based on reaction gradient

By simplifying the solution of chemical reaction coefficient matrices and iterative solutions of changing gradients based on reaction gradients, this method solves the problems of large computational load and low iteration efficiency in equilibrium calculations for complex multiphase chemical reactions, achieving fast and efficient equilibrium calculations applicable to multiphase reaction systems.

CN117334263BActive Publication Date: 2026-11-24CENT SOUTH UNIV +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311246787.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2026-11-24
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

Existing techniques suffer from high computational cost and low iteration efficiency when calculating the equilibrium of complex multiphase chemical reactions, and the initial value setting affects the convergence efficiency, especially when the reactant content is low, the difference increment setting is limited.

Method used

A reaction gradient-based method is adopted, which simplifies the chemical reaction coefficient matrix, uses the gradient of the change in the degree of reaction for iterative solution, and removes substances that have completed the reaction to improve the iteration efficiency.

Benefits of technology

It accelerates the calculation speed of complex chemical reaction equilibrium, improves iteration efficiency, is applicable to chemical reaction systems with gas, liquid, and solid phases, and the results are more consistent with actual industrial production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117334263B_ABST
    Figure CN117334263B_ABST
Patent Text Reader

Abstract

The application discloses a fast calculation method of a multi-phase complex chemical reaction equilibrium based on a reaction gradient, which comprises the following steps: determining the physicochemical information of each substance in a standard state and the reaction coefficient of a chemical reaction involved according to reactants and products under given temperature and pressure conditions; obtaining a chemical reaction coefficient matrix from the chemical reaction coefficient and simplifying the chemical reaction coefficient matrix into a chemical reaction basic matrix; solving the Gibbs free energy of each substance according to the physicochemical information of each substance, combining the basic matrix to solve the variation of the total Gibbs free energy with each reaction, and solving the change gradient of the variation with the reaction degree of each reaction; confirming the iterative step length of each reaction according to the change gradient, and performing iterative solving with the variation = 0 as a target to obtain the amount of substance of the reactants and products in an equilibrium state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of multiphase reaction chemical equilibrium calculation, specifically relating to a rapid calculation method for multiphase complex reaction chemical equilibrium based on reaction gradient. Background Technology

[0002] Chemical reaction equilibrium calculations are an effective method for predicting elemental trends and phase formation in chemical processes. Given the composition and content of reactants, as well as temperature and pressure, the types, contents, and states of products at equilibrium can be calculated based on the principle of minimum Gibbs free energy or the chemical reaction equilibrium constant. This is of great significance for improving the informatization level of industrial production and reducing carbon emissions.

[0003] The wide range of sources, complex compositions, and diverse phases of reactants involved in actual industrial production processes lead to a rapid increase in the computational complexity of chemical reaction equilibrium. Methods for solving complex chemical reaction equilibria can be mainly divided into two categories: the chemical reaction equilibrium constant method and the minimum Gibbs free energy method. In studies using these two methods, a Lagrange operator is often introduced to combine the objective function (minimizing the total Gibbs free energy of each reaction equilibrium) with the constraint equations (element conservation), followed by iterative solving. The introduction of the Lagrange operator increases the number of unknowns, thus increasing the computational workload, and the initial value setting also affects the convergence efficiency. In existing studies on methods for solving complex chemical reaction equilibria based on the degree of reaction, a central difference is introduced to solve for the second derivative. The setting of the difference increment affects the iteration efficiency, and the setting of the difference increment is also limited when the reactant content is particularly low.

[0004] Therefore, it is necessary to design a rapid calculation method for the equilibrium of complex multiphase chemical reactions based on reaction gradients. Summary of the Invention

[0005] The purpose of this invention is to address the shortcomings of existing technologies by proposing a rapid calculation method for the equilibrium of multiphase complex chemical reactions based on reaction gradients, which can effectively improve the calculation efficiency of complex reactions.

[0006] To achieve the above objectives, the present invention provides the following solution: A rapid calculation method for equilibrium of complex multiphase chemical reactions based on reaction gradients includes the following steps: S1. Under given temperature and pressure conditions, determine the physicochemical information of each substance under standard state based on the reactants and products, as well as the reaction coefficients of the chemical reactions involved. It should be noted that the physicochemical information includes Gibbs free energy and phase state under standard conditions.

[0007] S2. Obtain the chemical reaction coefficient matrix from the chemical reaction coefficients and simplify it to the chemical reaction fundamental matrix; S3. Calculate the Gibbs free energy of each substance based on its physicochemical information, and combine the fundamental matrix to calculate the change of the total Gibbs free energy with each reaction, as well as the gradient of the change with the degree of reaction of each reaction. S4. Determine the iteration step size of each reaction based on the change gradient, and perform iterative solution with the goal of change = 0 to obtain the amount of reactants and products in equilibrium state.

[0008] Further, in step S2, the simplification specifically involves: performing elementary row operations on the matrix composed of all involved reactions to identify reactions that can be obtained by adding or subtracting other reactions, deleting those reactions, and obtaining the chemical basic reaction coefficient matrix.

[0009] Furthermore, in step S3, the total Gibbs free energy is solved by combining the fundamental matrix. G ij The change of Gibbs free energy with respect to each reaction is shown in the following details: S301. Calculate the Gibbs free energy of each reactant and product based on the content of each reactant, phase, temperature, and Gibbs free energy under standard conditions. G ij As shown in equation (1); in calculating the gas phase and liquid phase G ij During the process, because the formula contains a logarithmic function, in order to ensure the properties of all substances... G ij We can find the answer, but we need a minimum value to replace it here. n ij The solution is obtained by setting the value to 0. This invention uses 10... -10 ; , In the formula, i Phase; j Number the reactants; G ij reactants j In phase i Gibbs free energy; G ij 0 reactants j In phase i Gibbs free energy under the medium standard state; n ij reactants j In phase i The amount of substance, kmol; n i phase state iThe total amount of reactants, in kmol; R Here, we take the gas constant as 8.314. T Temperature, K;

[0010] S302. Calculate the changes in total Gibbs free energy and the degree of reaction of each reaction. f ( x h ): , In the formula, G Gibbs free energy; h The reaction sequence; Z hj Represents the fundamental matrix; x h For the reaction h The degree of response; G ij reactants j In phase i Gibbs free energy; U This represents the total number of types of substances.

[0011] Furthermore, in step S3, the gradient of the change in the amount of change and the degree of reaction of each reaction is calculated. The specific process is as follows: S303, Solving for the change f The extent of reaction of each reaction x gradient of change H : In the formula, h , m The reaction sequence; x h 、x m Representing the reaction sequence h , m The degree of reaction; U The total number of types of substances; j、b The substance ordinal number; i Phase state; n ij For substances in phase i j The total amount of substance, kmol; n i phase state i The total amount of substance, in kmol; Z hb 、Z mj The basic reaction coefficient matrix; G ib phase state i Middle substances bGibbs free energy.

[0012] Further, in step S4, the step of determining the iteration step size of each reaction based on the changing gradient, and performing iterative solutions with the goal of the change amount = 0, yields the amounts of reactants and products at equilibrium; specifically: S401. Determine the initial iteration step size of the reaction. dx : ; S402. Calculate the maximum reaction extent for each reaction based on the initial iteration step size. dx final : , In the formula, It is the maximum value among negative values; V This represents the total number of reactions; dx h For the reaction h The initial iteration step size.

[0013] S403. Judgment Check if the iteration termination condition is met. If it is, end the loop and output the amount of each reactant and product in equilibrium. The iteration termination condition is: ; If not satisfied, proceed to step S404; S404. Determine if any substance has reacted completely. If so, delete the substance and return to step S2. The condition for determining whether a substance has reacted completely is: If not, return to step S3.

[0014] Compared with the prior art, the advantages of the present invention are as follows: 1) This invention is based on a simplified chemical reaction coefficient matrix, and uses the gradient of the change in the amount of reaction with the degree of reaction of each reaction as the variable to solve the problem, which reduces the number of variables and speeds up the solution process; 2) This invention promptly removes reactants that have fully reacted, eliminating their impact on the iterative process and improving iterative efficiency. 3) This invention is applicable to chemical reaction systems in which gas, liquid, and solid phases coexist, and simultaneously solves for the amount of product when each phase reaches equilibrium, which is more consistent with actual industrial production processes. Attached Figure Description

[0015] Figure 1 This is a flowchart of a rapid calculation method for the equilibrium of multiphase complex chemical reactions based on reaction gradients, as described in one specific embodiment of the present invention.

[0016] Figure 2This is a flowchart illustrating the implementation process of a rapid calculation method for the equilibrium of multiphase complex chemical reactions based on reaction gradients, as described in one specific embodiment of the present invention. Detailed Implementation

[0017] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0018] A rapid calculation method for equilibrium of complex multiphase chemical reactions based on reaction gradients, such as... Figure 1 As shown, it includes the following steps: S1. Under given temperature and pressure conditions, determine the physicochemical information of each substance under standard state based on the reactants and products, as well as the reaction coefficients of the chemical reactions involved. It should be noted that the physicochemical information includes Gibbs free energy and phase state under standard conditions.

[0019] S2. Obtain the chemical reaction coefficient matrix from the chemical reaction coefficients and simplify it to the chemical reaction fundamental matrix; S3. Calculate the Gibbs free energy of each substance based on its physicochemical information, and combine the fundamental matrix to calculate the change of the total Gibbs free energy with each reaction, as well as the gradient of the change with the degree of reaction of each reaction. S4. Determine the iteration step size for each reaction based on the gradient change, with the goal of achieving a change of 0 (in actual calculations, use | f |<10 -10 The solution is iteratively obtained by taking the target as the objective and obtaining the amount of reactants and products in equilibrium.

[0020] In some preferred embodiments, the process for obtaining the fundamental matrix of chemical reaction coefficients is as follows: 1) Determine the reaction coefficient matrix based on the types of reactants and products.

[0021] Taking the reactions of C, CO, CO2, and O2 in the reduction process of lead-zinc oxide as an example, the main reactions involved are: (a) 2C + O2 = 2CO; (b) C + O2 = CO2; (c) 2CO + O2 = 2CO2. The reaction coefficient matrix is ​​as follows: , 2) Perform elementary row operations on the matrix composed of all involved reactions to identify reactions that can be obtained by adding or subtracting multiple other reactions. Delete these reactions to obtain the basic reaction coefficient matrix. Z ij : , In some preferred embodiments, such as Figure 2 As shown, the gradient of the total Gibbs free energy and the degree of reaction of each reaction is calculated based on the reactant information. The specific process is as follows: 1) Calculate the Gibbs free energy of each reactant and product based on the content of each reactant, phase, temperature, and Gibbs free energy under standard conditions. G ij As shown in equation (1); in calculating the gas phase and liquid phase G ij During the process, because the formula contains a logarithmic function, in order to ensure the properties of all substances... G ij We can find the answer, but we need a minimum value to replace it here. n ij The solution is obtained by setting the value to 0. This invention uses 10... -10 ; , In the formula, i Phase; j Number the reactants; G ij reactants j In phase i Gibbs free energy; G ij 0 reactants j In phase i Gibbs free energy under the medium standard state; n ij reactants j In phase i The amount of substance, kmol; n i phase state i The total amount of reactants, in kmol; R Here, we take the gas constant as 8.314. T Temperature, K; 2) Calculate the total Gibbs free energy and the change in the degree of reaction for each reaction. f ( x h ): , In the formula, G Gibbs free energy; h The reaction sequence; Z hj Represents the fundamental matrix; x h For the reaction h The degree of response; G ij reactants j In phase i Gibbs free energy. U This represents the total number of types of substances.

[0022] In some preferred embodiments, the iteration step size of each reaction is determined based on the gradient change, and the iteration is performed with the goal of zero change, to obtain the amounts of reactants and products at equilibrium; specifically: 1) Determine the fundamental matrix of reaction coefficients Z ij ; 2) Calculate the gradient of the total Gibbs free energy with respect to the degree of reaction of each reaction. f ; 3) Solving for the change f The extent of reaction of each reaction x gradient of change H : , In the formula, h , m The reaction sequence; x h 、x m Representing the reaction sequence h , m The degree of reaction; U The total number of types of substances; j、b The substance ordinal number; i Phase state; n ij For substances in phase i j The total amount of substance, kmol; n i phase state i The total amount of substance, in kmol; Z hb 、Z mj The basic reaction coefficient matrix; G ib phase state i Middle substances b Gibbs free energy; 4) Determine the initial iteration step size of the reaction. dx : ; 5) Calculate the maximum reaction extent for each reaction based on the initial iteration step size. dx final : , In the formula, It is the maximum value among negative values; V This represents the total number of reactions; dx h For the reaction h The initial iteration step size; 6) Judgment Check if the iteration termination condition is met. If it is, end the loop and output the amount of each reactant and product in equilibrium. The iteration termination condition is: ; If the requirements are not met, proceed to step 7). 7) Determine if any substance has reacted completely. If so, delete the substance and return to step S2. The condition for determining whether a substance has reacted completely is: If not, return to step 2).

[0023] The technical solution of the present invention will be further described below through specific embodiments. Example 1

[0024] This embodiment uses the reduction reaction of a mixture of lead and zinc metal oxides as an example, such as... Figure 2 As shown in the figure, the rapid calculation method for the equilibrium of multiphase complex chemical reactions based on reaction gradients proposed in the above specific embodiments was used. The physicochemical information of the reactants and products is shown in Table 1. Table 1. Physicochemical information of each substance in the reduction reaction of the mixture of lead and zinc oxides.

[0025] The fundamental matrix of the basic reaction coefficients was calculated, and the results are shown in Table 2.

[0026] Table 2 Basic Reaction Coefficient Matrix , Using Python, the amount of substance at equilibrium for each reaction can be obtained. The solution process is shown in Table 3.

[0027] Table 3 Solution process

[0028] Therefore, the technical solution of the present invention has the following beneficial effects: 1) This invention is based on a simplified chemical reaction coefficient matrix, and uses the gradient of the change in the amount of reaction with the degree of reaction of each reaction as the variable to solve the problem, which reduces the number of variables and speeds up the solution process; 2) This invention promptly removes reactants that have fully reacted, eliminating their impact on the iterative process and improving iterative efficiency. 3) This invention is applicable to chemical reaction systems in which gas, liquid, and solid phases coexist, and simultaneously solves for the amount of product when each phase reaches equilibrium, which is more consistent with actual industrial production processes.

[0029] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0030] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for fast calculation of equilibrium of multiphase complex chemical reactions based on reaction gradient, characterized in that, Includes the following steps: S1. Under given temperature and pressure conditions, determine the physicochemical information of each substance under standard state based on the reactants and products, as well as the reaction coefficients of the chemical reactions involved. S2. Obtain the chemical reaction coefficient matrix from the chemical reaction coefficients and simplify it to the chemical reaction fundamental matrix; The simplification is specifically as follows: by performing elementary row operations on the chemical reaction coefficient matrix of all involved reactions, find the reaction that is obtained by adding or subtracting other reactions, delete the reaction, and obtain the basic chemical reaction matrix; S3, solving the Gibbs free energy of each substance according to the physicochemical information of each substance, and solving the variation of the total Gibbs free energy with each reaction in combination with the basic matrix of chemical reactions f (x h ), and the change gradient of the variation with the reaction degree of each reaction; The specific process for determining the gradient of change in the magnitude of each reaction and the degree of reaction is as follows: S303, Solving for the change f (x) h ) and the degree of reaction of each reaction x gradient of change H : , In the formula, h , m The reaction sequence; x h 、x m Representing the reaction sequence h , m The degree of reaction; U The total number of types of substances; j、b The substance ordinal number; i Phase state; n ij phase state i Middle substances j The total amount of substance, kmol; n i phase state i The total amount of substance, in kmol; Z hb The reaction sequence in the basic chemical reaction matrix h substance b Chemical reaction coefficient ;Z mj The reaction sequence in the basic chemical reaction matrix m substance j The chemical reaction coefficient; G ib phase state i Middle substances b Gibbs free energy; R The gas constant is 8.314 J·mol⁻¹. -1 ·K -1 ; T Temperature, K; S4. Determine the iteration step size of each reaction based on the change gradient, and perform iterative solution with the goal of change = 0 to obtain the amount of reactants and products under equilibrium conditions. Specifically: S401. Determine the initial iteration step size for the reaction. dx : , S402. Calculate the maximum reaction extent for each reaction based on the initial iteration step size. dx final : , In the formula, It is the maximum value among negative values; V The total number of reactions; dx h For the reaction sequence h The degree of reaction is x The initial iteration step size; S403. Judgment Check if the iteration termination condition is met. If it is, end the loop and output the amount of each reactant and product in equilibrium. The iteration termination condition is: ; If not satisfied, proceed to step S404; S404. Determine if any substance has reacted completely. If so, delete the substance and return to step S2. The condition for determining whether a substance has reacted completely is: ; If not, return to step S3.

2. The method for rapid calculation of equilibrium of multiphase complex chemical reactions based on reaction gradients according to claim 1, characterized in that, In step S3, the total Gibbs free energy is solved by combining the fundamental chemical reaction matrix. G ij The change of Gibbs free energy with respect to each reaction is shown in the following details: S301. Calculate the Gibbs free energy of each reactant and product based on the content, phase, temperature, and Gibbs free energy under standard conditions. G ij As shown in equation (1); in Calculation of gas phase and liquid phase G ij During the process, at a minimum value of 10 -10 replace n ij Solve for =0; , In the formula, i Phase state; j The substance ordinal number; G ij For matter j In phase i Gibbs free energy; G ij 0 For matter j In phase i Gibbs free energy under the medium standard state; n ij For matter j In phase i The amount of substance, kmol; n i phase state i The total amount of substance, kmol; R The gas constant is 8.314 J·mol⁻¹. -1 ·K -1 ; T Temperature, K; S302. Calculate the changes in total Gibbs free energy and the degree of reaction of each reaction. f ( x h ): , In the formula, G Total Gibbs free energy; h The reaction sequence; Z hj Represents the reaction sequence in the fundamental matrix of chemical reactions h substances j The chemical reaction coefficient; x h For the reaction sequence h The degree of response; G ij For matter j In phase i Gibbs free energy; U This represents the total number of types of substances.