A full-process convergence method for digital twin systems

By solving the Jacobian matrix and inverse matrix of the target equation system, combined with the calculation and constraint conditions of iterative variables, the BROYDEN method solves the problem of many iterative calculation rounds and inability to converge, and achieves rapid convergence and efficient calculation.

CN114936459BActive Publication Date: 2024-09-24HANGZHOU BAIZIJIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210573164.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-25
Publication Date
2024-09-24
Estimated Expiration
2042-05-25

AI Technical Summary

Technical Problem

The existing BROYDEN method has the problem of being unable to converge when iterative calculation rounds are many and the iteration variables are highly coupled, especially when dealing with the convergence problem of circular logistics.

Method used

A full-process convergence method is proposed. By solving the Jacobian matrix J and its inverse matrix H of the target equation system, combined with the calculation and constraint conditions of the iteration variables, the direct iteration or Wegstein iteration method is used until the convergence conditions are met.

Benefits of technology

It effectively solves the convergence problem of highly coupled iteration variables, reduces iteration rounds, and improves calculation speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114936459B
    Figure CN114936459B
Patent Text Reader

Abstract

The invention relates to process simulation technology and discloses a full-process convergence method suitable for a digital twin system. Applied in process simulation technology, a full-process convergence method suitable for a digital twin system constructs a new target equation group, the equation group reflects the relationship between each iterative variable, and considers the physical meaning of each iterative variable. An improved Broyden method that adds constraints to the variables can effectively solve the convergence problem of highly coupled iterative variables, reduce the number of iterations, and thus improve the calculation speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to process simulation technology, and in particular to a full-process convergence method applicable to a digital twin system. Background Art

[0002] The process industry often has complex heat exchange networks and various types of logistics recycling, so it is inevitable to encounter the problem of circulating logistics in process simulation. The current process simulation system calculation method is neither the sequential module method nor the simultaneous solution method. Although the simultaneous solution method does not need to consider the problem of circulating logistics, the dimension of the equation to be solved is too large and the nonlinearity of the equation is high, resulting in its strong dependence on the solver. Therefore, the simultaneous solution method is not a mainstream calculation method. The sequential module method calculates one by one according to the connection relationship between modules and logistics, which requires solving the calculation problem of circulating logistics.

[0003] At present, the main algorithms for solving the convergence problem of circulating logistics are: direct iteration method, WEGSTEIN method, BROYDEN method, etc. When the coupling between iterative variables is high, the direct iteration method and WEGSTEIN method often cannot achieve the convergence of the process. Although the BROYDEN method can solve such problems, since the target equation group currently solved by BROYDEN is a univariate linear equation group, the coupling of each iterative variable is not reflected in the target equation group. Therefore, the current BROYDEN method usually has the problem of multiple iterative calculation rounds and cannot converge when the iterative variables have highly coupled characteristics. Summary of the invention

[0004] In view of the problem that the BROYDEN method in the prior art cannot converge when there are many iterative calculation rounds and the iterative variables have highly coupled characteristics, the present invention proposes a new full-process convergence method suitable for digital twin systems.

[0005] In order to solve the above technical problems, the present invention is solved by the following technical solutions:

[0006] A full-process convergence method applicable to a digital twin system is applied to process simulation technology, and the method includes:

[0007] Step 1, solve the Jacobian matrix J of the target equation group; then find the inverse matrix H of the Jacobian matrix J; the target equation group is:

[0008]

[0009] Wherein, x1 represents the total mass flow rate of the circulating flow, x2 represents the pressure of the circulating flow, x3 represents the enthalpy value of the circulating flow, x4, ...x n Indicates the mass flow rate of each component; gi (x1, x2, ... x n ) indicates that after the circulating stream is disconnected, the whole process is calculated as an open loop;

[0010] Step 2: Calculate based on the iteration variable

[0011] Step 3: According to formula 1 The convergence condition is judged when If it is less than tol1, the iteration is completed, otherwise, execute step 4.

[0012]

[0013] Among them, tol1 represents the allowable convergence error of one;

[0014] Step 4, calculate H k matrix

[0015]

[0016] in,

[0017] Step 5: Calculate the new iteration variable x k+1 ,

[0018]

[0019] Where k represents the kth iteration;

[0020] Step 6: Determine the updated iteration variable x k+1 Constraint, when it does not meet the constraint conditions, x k+1 It is calculated by direct iteration or Wegstein iteration;

[0021] Step 7: Determine the updated iteration variable x k+1 Whether the convergence condition is met, if it is met, the iteration is exited and the calculation is completed; otherwise, return to step 2 to continue the calculation;

[0022]

[0023] Among them, tol2 represents the allowable convergence error of two.

[0024] As a preferred method, the Jacobian matrix J of the target equations is solved by solving Partial derivatives of each iterated variable are used to solve the matrix;

[0025]

[0026] In order to solve the above technical problems, the present invention provides an electronic device, which is implemented by a full-process convergence method suitable for a digital twin system.

[0027] In order to solve the above technical problems, the present invention provides a storage medium, which is implemented by a full-process convergence method suitable for a digital twin system.

[0028] The present invention has significant technical effects due to the adoption of the above technical solution:

[0029] The present invention proposes a new target equation group, which reflects the relationship between each iterative variable and takes into account the physical meaning of each iterative variable. An improved full-process convergence method that adds constraints to the variables can effectively solve the convergence problem of highly coupled iterative variables, reduce the number of iterations and thus improve the calculation speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a flow chart of the present invention;

[0031] Figure 2 is a process flow chart of embodiment 2 of the present invention; DETAILED DESCRIPTION

[0032] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0033] Example 1

[0034] A full-process convergence method applicable to a digital twin system is applied to process simulation technology, and the method includes:

[0035] Step 1, solve the Jacobian matrix J of the target equation group; then find the inverse matrix H of the Jacobian matrix J; the target equation group is:

[0036]

[0037] Wherein, x1 represents the total mass flow rate of the circulating flow, x2 represents the pressure of the circulating flow, x3 represents the enthalpy value of the circulating flow, x4, ...x n Indicates the mass flow rate of each component; g i (x1, x2, ... x n ) represents the process calculation after disconnecting the circulating flow stream;

[0038] Step 2: Calculate based on the iteration variable

[0039] Step 3: According to formula 1 The convergence condition is judged when If it is less than tol1, the iteration is completed, otherwise, execute step 4.

[0040]

[0041] Among them, tol1 represents the allowable convergence error of one;

[0042] Step 4, calculate H k matrix

[0043]

[0044] in,

[0045] Step 5: Calculate the new iteration variable x k+1 ,

[0046]

[0047] Where k represents the kth iteration;

[0048] Step 6: Determine the updated iteration variable x k+1 Constraint, when it does not meet the constraint conditions, x k+1 It is calculated by direct iteration or Wegstein iteration;

[0049] Step 7: Determine the updated iteration variable x k+1 Whether the convergence condition is met, if it is met, the iteration is exited and the calculation is completed; otherwise, return to step 2 to continue the calculation;

[0050]

[0051] Among them, tol2 represents the allowable convergence error of two.

[0052] Solve the Jacobian matrix J of the target equations by solving Partial derivatives of each iterated variable are used to solve the matrix J;

[0053]

[0054] Example 2

[0055] Based on Example 1, the feed in this example is all saturated liquid, the operating pressure is 0.1 MPa, and the pressure drop of the separation equipment is ignored. The distillation towers (B1 and B5) use the component separator module, and the phase separator (B3) uses the component separator module. Only material balance is performed, and the NRTL physical property method is used for simulation.

[0056] By analyzing the process flow chart, logistics 9 is selected as the circulating stream, and the convergence error is set to 0.0001. The iteration variables are the total mass flow rate, pressure, enthalpy, mass flow rate of ethanol, mass flow rate of water, and mass flow rate of cyclohexane of logistics 9. The target equation group is:

[0057]

[0058] The calculation method of g(x1,x2,x3,x4,x5,x6) is: use the sequential module calculation method to calculate the unit modules B3, B5, B2, B1, and B4 in turn, so as to calculate the mass flow rate, pressure, enthalpy, mass flow rate of ethanol, mass flow rate of water, and mass flow rate of cyclohexane of logistics 6.

[0059] Among them, variable 1 is the total mass flow rate (Kg / h), variable 2 is the pressure (kPa), variable 3 is the enthalpy kJ / kg, variable 4 is the ethanol mass flow rate Kg / h, variable 5 is the water mass flow rate Kg / h, and variable 6 is the cyclohexane mass flow rate Kg / h; the iterative process of the cycle calculation is shown in the following table, and the calculation of the cycle stream can be completed after 13 iterations:

[0060]

[0061]

[0062] Aspen Plus software was used to simulate the same process, and the convergence error was set to 0.0001. The calculation of the circulating stream adopted the Broyden convergence method, and 98 iterations were required to complete the calculation, indicating that the new full-process convergence method proposed in the present invention has the characteristic of rapid convergence.

[0063] Example 3

[0064] Based on the above embodiments, this embodiment is an electronic device, which is implemented by a full-process convergence method suitable for a digital twin system.

[0065] Example 4

[0066] Based on the above embodiments, this embodiment is a storage medium, which is implemented by a full-process convergence method suitable for a digital twin system.

Claims

1. A full-process convergence method applicable to a digital twin system, applied to process simulation technology, comprising: Step 1, solve the Jacobian matrix J of the target equation system; then find the inverse matrix H of the Jacobian matrix J; Its objective equations are: Wherein, x1 represents the total mass flow rate of the circulating flow, x2 represents the pressure of the circulating flow, x3 represents the enthalpy value of the circulating flow, x4, ...x n Indicates the mass flow rate of each component; g i (x1, x2, ... x n ) indicates that after the circulating stream is disconnected, the whole process is calculated as an open loop; Step 2: Calculate based on the iteration variable Step 3: According to formula 1 The convergence condition is judged when If it is less than tol1, the iteration is completed, otherwise, execute step 4. Among them, tol1 represents the allowable convergence error of one; Step 4, calculate H k matrix in, Step 5: Calculate the new iteration variable x k+1 , Where k represents the kth iteration; Step 6: Determine the updated iteration variable x k+1 Constraint, when it does not meet the constraint conditions, x k+1 It is calculated by direct iteration or Wegstein iteration; Step 7: Determine the updated iteration variable x k+1 Whether the convergence condition is met, if it is met, the iteration is exited and the calculation is completed; otherwise, return to step 2 to continue the calculation; Among them, tol2 represents the allowable convergence error of two.

2. A full-process convergence method applicable to a digital twin system according to claim 1, characterized in that: The target equations constructed are nonlinear equations that take into account the coupling between variables. i (x1, x2, ... x n ); For the nonlinear system g i (x1, x2, ... x n ) The calculation method includes: after disconnecting the circulating stream, the circulating process simulation process becomes an open-loop process simulation process; Calculate the equipment units in sequence according to the connection order of the equipment unit modules; Finally, we return to the disconnected stream, thus forming the g in the nonlinear equation system. i (x1, x2, ... x n ).

3. The full-process convergence method applicable to a digital twin system according to claim 1, characterized in that: All iterative variables have specific physical meanings. Constraints are added based on their physical meanings to prevent the equation from iterating to an invalid interval, which would lead to calculation failure.

4. The full-process convergence method applicable to a digital twin system according to claim 1, characterized in that: Solve the Jacobian matrix J of the target equations using the difference method Partial derivatives of each iterated variable are used to solve the matrix J; 5. An electronic device, characterized in that: An electronic device implemented by a full-process convergence method applicable to a digital twin system as described in any one of claims 1-4.

6. A storage medium, characterized in that: A storage medium implemented by a full-process convergence method suitable for a digital twin system as described in any one of claims 1-4.