Multi-physics field coupling iteration method and device, equipment and storage medium
By performing fixed-point transformation processing and Jacobian matrix approximate inverse solution for the coupled iteration of multi-physics fields in a numerical reactor, the problem of slow iteration convergence speed is solved, and efficient use of resources and improvement of iteration speed are achieved.
Patent Information
- Application Number
- CN202410527657.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-09-03
AI Technical Summary
In numerical reactors, the iterative approach to multi-physics coupling problems converges slowly, resulting in high computer resource consumption.
By performing fixed-point transformation processing on coupled iterations of multiple physical fields, the approximate inverse matrix of the Jacobian matrix is determined, and the direction and step size of the iteration are quickly determined, thereby improving the convergence speed.
It effectively reduces the occupation of computer resources, improves the convergence speed of multi-physics coupling iterations of numerical reactors, and reduces the consumption of computing resources.
Smart Images

Figure CN118586154A
Abstract
Description
Technical Field
[0001] The present application relates to the field of numerical reactor data analysis, and in particular to an iterative method, device, equipment and storage medium for multi-physical field coupling. Background Art
[0002] When dealing with the problem of multi-physics coupling in numerical reactors, the commonly used iterative method needs to approximate the optimal solution by continuously updating the current solution. However, when the dimension is very high or the curvature of the solver function is very large, the commonly used iterative method converges slowly and requires a large number of iterations to reach the convergence condition, resulting in a huge consumption of computer resources. It can be seen that the current multi-physics coupling process of numerical reactors has the problem of high consumption of computing resources. Summary of the invention
[0003] The present application aims to propose an iterative method, device, equipment and storage medium for multi-physics field coupling to improve the convergence speed when processing the iterative problem of multi-physics field coupling of numerical reactors.
[0004] In a first aspect, an embodiment of the present application provides an iterative method for multi-physics field coupling, and the iterative method for multi-physics field coupling includes:
[0005] Obtaining distribution data of multiple physical fields of the numerical reactor at a first moment;
[0006] According to the distribution data of the multiple physical fields, fixed point transformation processing is performed on the coupled iterations of the multiple physical fields to obtain fixed point state vectors associated with the multiple physical fields;
[0007] Determining a Jacobian matrix according to the fixed point state vector;
[0008] An approximate inverse solution is performed on the Jacobian matrix to determine a converged solution of the iteration of the multiple physical field couplings at the first moment.
[0009] In a second aspect, an embodiment of the present application provides an iterative device for multi-physical field coupling, wherein the iterative device for multi-physical field coupling includes:
[0010] A physical field data acquisition module, used to acquire distribution data of multiple physical fields of the numerical reactor at a first moment;
[0011] A vector determination module, configured to perform fixed point transformation processing on the coupled iterations of the multiple physical fields according to the distribution data of the multiple physical fields, so as to obtain fixed point state vectors associated with the multiple physical fields;
[0012] A matrix acquisition module, used for determining a Jacobian matrix according to the fixed point state vector;
[0013] A solution module is used to perform an approximate inverse solution on the Jacobian matrix to determine a converged solution of the iteration of the multiple physical field couplings at the first moment.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a processor and a memory storing computer program instructions;
[0015] When the processor executes the computer program, the iterative method for multi-physical field coupling as described in the first aspect is implemented.
[0016] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the iterative method for multi-physical field coupling as described in the first aspect is implemented.
[0017] The iterative method, device, equipment and storage medium for multi-physical field coupling of the embodiments of the present application perform fixed-point conversion processing on the coupled iterations of multiple physical fields, thereby converting the numerical reactor coupling iterative problem into a fixed-point solution problem, and further utilizing the inverse matrix of the Jacobian matrix to quickly determine the direction and step size of each iteration, so that a converged solution can be obtained more quickly, effectively reducing the occupancy of computer resources and reducing the consumption of computer resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0019] Figure 1 A flowchart of an embodiment of an iterative method for multi-physics field coupling provided by the present application;
[0020] Figure 2 A flowchart for obtaining a converged solution in an embodiment of an iterative method for multi-physics field coupling provided in the present application;
[0021] Figure 3 A flowchart of obtaining the approximate inverse of the Jacobian matrix in an embodiment of the iterative method for multi-physics field coupling provided by the present application;
[0022] Figure 4 It is a structural schematic diagram of an embodiment of an iterative device for multi-physical field coupling provided by the present application;
[0023] Figure 5 It is a schematic diagram of the structure of an embodiment of the electronic device provided by the present application. DETAILED DESCRIPTION
[0024] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0025] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0026] In order to solve the problems of the prior art, the embodiments of the present application provide an iterative method, device, equipment and storage medium for multi-physics field coupling. The iterative method for multi-physics field coupling provided by the embodiments of the present application is first introduced below.
[0027] See also Figure 1 As shown, Figure 1 1 is a flowchart of an iterative method for multi-physics field coupling provided by an embodiment of the present application. The method is applied to an electronic device, which may be a server, etc. The iterative method for multi-physics field coupling includes steps S100 to S400;
[0028] Step S100, obtaining distribution data of multiple physical fields of the numerical reactor at a first moment;
[0029] Step S200, performing fixed point transformation processing on the coupled iterations of the multiple physical fields according to the distribution data of the multiple physical fields, to obtain fixed point state vectors associated with the multiple physical fields;
[0030] Step S300, determining the Jacobian matrix according to the fixed point state vector;
[0031] Step S400, performing an approximate inverse solution on the Jacobian matrix to determine a converged solution of the iteration of multiple physical field couplings at the first moment.
[0032] In an embodiment of the present application, fixed-point transformation processing is performed on the coupled iterations of multiple physical fields, thereby converting the numerical reactor coupled iteration problem into a fixed-point solution problem, and further utilizing the inverse matrix of the Jacobian matrix to quickly determine the direction and step size of each iteration, so that a converged solution can be obtained more quickly, effectively reducing the occupancy of computer resources and reducing the consumption of computer resources.
[0033] In the above step S100, the electronic device obtains distribution data of multiple physical fields of the numerical reactor at a first moment.
[0034] The distribution data of the above multiple physical fields need to be obtained according to the solver corresponding to each physical field. Take the "core-fluid-solid" model as an example:
[0035] The "nuclear" solver represents the solution to the neutron transport problem. Given the current operating conditions such as temperature, the distribution of the neutron flux and the associated power distribution are calculated, expressed in N as:
[0036] P f =N(T c ,T f ),
[0037] Among them, T c , and T f are the coolant temperature and fuel temperature in the numerical reactor, respectively;
[0038] The "flow" solver characterizes the heat and mass transfer process of the coolant fluid. Under given boundary conditions such as heating power, it calculates the coolant flow field and temperature field distribution, which is expressed as F:
[0039] T c =F(T f ,P f ),
[0040] The "solid" solver characterizes the heat transfer process of solids such as fuels. Under given boundary conditions such as heating power, it calculates the three-dimensional temperature field distribution in the solid, expressed as S:
[0041] T f =S(T c ,P f ).
[0042] It should be noted that, in practical problems, multiple physical fields are not necessarily the three physical fields mentioned above, but may also be other physical fields, or two physical fields, or a larger number of physical fields.
[0043] In the above step S200, the electronic device performs fixed point transformation processing on the coupled iterations of the multiple physical fields according to the distribution data of the multiple physical fields, and obtains fixed point state vectors associated with the multiple physical fields.
[0044] The above fixed point conversion process aims to convert the multi-physics field coupling iterative problem into a fixed point solution problem, which can effectively reduce the amount of calculation. Still taking the above "core-fluid-solid" model as an example:
[0045] If the coupling process of the numerical reactor adopts serial coupling, the fixed point x is defined as:
[0046] x=(T c ,T f ,P f ),
[0047] Then, the coupled iterative process can be defined as:
[0048] x k+1 =S·F·N(x k ),
[0049] x k+1 represents the result of the k+1th iteration;
[0050] Obviously, for the parallel coupling process, it can be expressed as:
[0051]
[0052] Therefore, whether it is the serial coupling calculation or the parallel coupling calculation of the numerical reactor, it can be expressed as solving the following fixed point problem:
[0053] x=H(x),
[0054] Among them, x represents the state variable or state vector of the current numerical reactor system, that is, the fixed point state vector, and x can be expressed as:
[0055]
[0056] From the above process, we can see that both serial coupling calculation and parallel coupling calculation can be finally converted into a fixed point solution problem.
[0057] In the above step S300, the electronic device determines the Jacobian matrix according to the fixed point state vector;
[0058] The above Jacobian matrix is obtained from the first-order partial derivative of solver H with respect to x, and solver H corresponds to the fixed point vector. The Jacobian matrix can be defined as:
[0059]
[0060] in, represents the first-order partial derivative of solver H with respect to x.
[0061] Because it contains first-order partial derivative information, which can reflect the direction and step size of the iterative update to a certain extent, the subsequent use of the approximate inverse of the Jacobian matrix can more effectively utilize this information to guide the iterative process.
[0062] In the above step S400, the electronic device performs an approximate inverse solution on the Jacobian matrix to determine a converged solution of the iteration of multiple physical field couplings at the first moment.
[0063] The approximate inverse of the above-mentioned Jacobian matrix is the approximate inverse matrix of the Jacobian matrix. Because the Jacobian matrix contains the first-order partial derivative information, the approximate inverse of the Jacobian matrix can be used to quickly determine the solution update amount for each iteration, and the iteration is completed using the solution update amount to obtain the solution result of each iteration. The approximate inverse will be recalculated during each iteration, and a new solution result will be obtained based on the updated approximate inverse, until a converged solution that meets the preset convergence conditions is obtained.
[0064] In some implementations, step S400 specifically includes:
[0065] The target solution obtained by performing at least one iteration using the approximate inverse of the Jacobian matrix is determined as a converged solution of the iteration of the multiple physical field couplings at the first moment;
[0066] The target solution is: the solution result of any iterative solution that reaches the preset convergence condition in at least one iterative solution.
[0067] In this embodiment, during the above-mentioned at least one iterative solution process, the approximate inverse of the Jacobian matrix can be used to obtain the solution result of each iteration. After obtaining the solution result of the current iteration, the approximate inverse of the Jacobian matrix can be re-determined, and then the next iteration can be completed to obtain the result of the next iteration.
[0068] In the above-mentioned iterative process, after continuous iterations, when a certain iteration satisfies the preset convergence condition, the solution result can be determined as a converged solution. In other implementations, the number of iterations can also be directly preset, and after the iterative process of the preset number of iterations, multiple solution results corresponding to the preset number of iterations are obtained, and subsequently a solution result that satisfies the preset convergence condition can be selected from the multiple solution results as the converged solution.
[0069] In some embodiments, Figure 2As shown, the target solution obtained by performing at least one iteration using the approximate inverse of the Jacobian matrix is determined as the converged solution of the iteration of multiple physical field couplings at the first moment, including steps S410 to S430:
[0070] Step S410, determining the approximate inverse of the Jacobian matrix in the k+1th iteration solution, where k is a positive integer;
[0071] Step S420, determining an iterative convergence result of the k+1th iterative solution according to the approximate inverse determined at the k+1th iteration, where the iterative convergence result is used to indicate whether the iterative solution of the k+1th iterative solution has converged;
[0072] Step S430, when the iteration convergence result indicates that the iteration of the k+1th iteration solution has not converged, update k+1 to k+2, and re-execute the above steps until the iteration of the k+1th iteration solution has converged;
[0073] The target solution is the solution result of the k+1th iteration solution, where the iteration convergence result indicates the iteration convergence.
[0074] The iterative convergence result of the above-mentioned k+1th iterative solution can be understood as whether the solution result obtained by the k+1th iterative solution satisfies the preset convergence condition. In some embodiments, the preset convergence condition can directly give a threshold range, and if the residual of the solution result is within this threshold range, it is judged to be converged. In other embodiments, the preset convergence condition requires further calculation, for example, it is necessary to perform norm calculation on the residual of the solution result, and then determine whether the norm result is less than the preset convergence threshold. There are also many norm calculations themselves, and the L1 norm or L2 norm can be selected, or other methods can be selected as needed.
[0075] Specifically, the norm of the residual of the k+1th iteration can be expressed as:
[0076]
[0077] in, is the solution obtained at the k+1th iteration; The physical field data obtained by solving the solution obtained by the k+1th iteration using the fixed point vector; L represents the norm, which can be 1 or 2, that is, the L1 norm or the L2 norm; t represents the current moment, that is, the first moment, and the residual of the k+1th iteration can be understood as the residual of the solution obtained by the k+1th iteration at the first moment. ε is less than a given threshold ε limt , then the solution result of this iteration meets the preset convergence condition.
[0078] In the above iterative convergence judgment process, if the iteration is determined to converge, it means that the converged solution is obtained and the cycle can be ended. If the solution result obtained after the current iterative calculation cannot meet the preset convergence condition, the next iteration is required, and the solution result obtained in this iteration will be used to solve the approximate inverse of the Jacobian matrix in the subsequent process.
[0079] In some embodiments, Figure 3 As shown, step S410 includes steps S411 to S412:
[0080] Step S411, obtaining the residual of the solution result of each iteration before the k+1th iteration;
[0081] Step S412, determining an approximate inverse of the Jacobian matrix according to the residual of the solution result of each iteration before the k+1th iteration and the solution result of each iteration before the k+1th iteration.
[0082] To obtain the residual of the solution result of each iteration before the k+1th iteration, it is necessary to use the fixed point vector to solve each solution result, obtain the physical field data corresponding to each iteration solution result, and calculate the difference between the physical field data and the solution result to obtain the residual. When obtaining the residual of the solution result of each iteration before the k+1th iteration, the residual of each time can be calculated at one time based on the previous solution results, or the calculated residual can be stored in each iteration process, and can be directly read when needed later.
[0083] Specifically, the residual of the kth iteration can be expressed as:
[0084]
[0085] in, is the solution obtained at the kth iteration; The physical field data obtained by solving the solution obtained by the k-th iteration using the fixed point vector; It can be expressed as:
[0086]
[0087] After obtaining each iterative result, the corresponding residual can be solved using the above method.
[0088] The above-mentioned solution results, the residuals corresponding to the solution results, and the physical field data corresponding to the solution results can, to a certain extent, be used to reflect the direction and step size of the iterative changes, so that these data can be used for approximate inverse solution to obtain the approximate inverse of the Jacobian matrix that reflects the update direction and step size as accurately as possible.
[0089] In some implementations, determining the approximate inverse of the Jacobian matrix based on the residual of the solution result of each iteration before the k+1th iteration and the solution result of each iteration before the k+1th iteration includes:
[0090] Obtaining a residual difference matrix, the residual difference matrix including the difference between the residual of the solution result of the k-th iteration and the residual of the solution result of each iteration before the k-th iteration;
[0091] Obtaining a physical field difference matrix, the physical field difference matrix includes the difference between the physical field data of the k iterations and the physical field data of each iteration before the k iteration; the physical field data of each iteration is obtained by solving the solution result corresponding to this iteration according to the fixed point state vector;
[0092] Determine the approximate inverse of the Jacobian matrix from the residual difference matrix and the physics difference matrix.
[0093] The residual difference matrix of the k+1th iteration is calculated from the data of the kth iteration and each iteration before it. Specifically, the residual difference matrix It can be expressed as:
[0094]
[0095] in, is the difference between the residual corresponding to the kth iteration and the residual corresponding to the ith iteration, where i is 0, 1, ..., k-1; It can be expressed as:
[0096]
[0097] in, is the residual corresponding to the i-th iteration, is the residual corresponding to the kth iteration.
[0098] The physical field difference matrix of the k+1th iteration is also calculated from the data of the kth iteration and each iteration before it. Specifically, the physical field difference matrix It can be expressed as:
[0099]
[0100] in, is the difference between the physical field data corresponding to the k-th iteration and the physical field data corresponding to the i-th iteration, where i is 0, 1, ..., k-1; It can be expressed as:
[0101]
[0102] in, is the physical field data corresponding to the i-th iteration, is the physical field data corresponding to the kth iteration.
[0103] The approximate inverse of the above Jacobian matrix can be determined after obtaining the residual difference matrix and the physical field difference matrix. The approximate inverse of the Jacobian matrix can be expressed as:
[0104]
[0105] in, It represents the approximate inverse of the Jacobian matrix obtained by using the data of each iteration before and after the kth iteration. The approximate inverse matrix needs to be recalculated during each iteration.
[0106] In some implementations, determining the iterative convergence result of the k+1th iteration solution according to the approximate inverse determined at the k+1th iteration includes:
[0107] According to the approximate inverse determined in the k+1th iteration, the solution of the k+1th iteration is obtained;
[0108] Determine the residual of the solution obtained by the k+1th iteration;
[0109] An iterative convergence result of the k+1th iterative solution is determined according to a residual of a solution result of the k+1th iterative solution.
[0110] During the k+1th iteration, after obtaining the approximate inverse of the Jacobian matrix, it is equivalent to determining the update direction and step size of the solution. At this time, the solution of the k+1th iteration can be obtained by using the approximate inverse of the Jacobian matrix and the solution obtained in the kth iteration.
[0111] The residual of the solution result of the k+1th iteration above indicates, to a certain extent, the update direction and step size of the next iteration. Usually, after multiple iterations, the step size to be updated will become shorter and shorter. When the step size to be updated is small to a certain extent, it has met the needs of industrial or experimental use, and there is no need to continue iterating. Therefore, the residual can be used to determine the iterative convergence result.
[0112] When the residual is used to determine the iterative convergence result, the size of the residual and the preset convergence threshold can be directly determined, or the norm of the residual can be further calculated and then compared with the preset convergence threshold.
[0113] In some implementations, the approximate inverse determined according to the k+1th iteration to obtain the solution result of the k+1th iteration includes:
[0114] Get the residual of the solution result of the kth iteration;
[0115] According to the residual of the approximate inverse and the solution of the kth iteration, the solution update is obtained;
[0116] According to the physical field data of the kth iteration and the solution update amount, the solution result of the k+1th iteration is obtained, wherein the physical field data of the kth iteration is obtained by solving the solution result corresponding to the kth iteration according to the fixed point state vector.
[0117] The above solution update amount may include the step size and direction to be updated. Based on the solution update amount, the solution result of the k+1th iteration can be quickly determined. Specifically, the following formula can be referred to:
[0118]
[0119]
[0120] in, It is the solution update amount needed in the k+1th iteration process.
[0121] In some implementations, the above-mentioned determination of the residual of the solution result of the k+1th iterative solution includes:
[0122] Solve the solution result of the k+1th iteration solution according to the fixed point state vector to obtain the physical field data of the solution result of the k+1th iteration solution;
[0123] According to the physical field data of the solution result of the k+1th iterative solution and the solution result of the k+1th iterative solution, the residual of the solution result of the k+1th iterative solution is obtained.
[0124] In this embodiment, after obtaining the solution result of the k+1th iterative solution, the distribution data of multiple physical fields after the k+1th iteration can be obtained. Based on these distribution data, or based on the solver corresponding to the fixed point state vector, the physical field data corresponding to the solution result of the k+1th iterative solution can be quickly determined, and then the residual calculation can be completed.
[0125] In some implementations, after obtaining the solution result of the k+1th iteration, the physical field distribution data of multiple physical fields after the k+1th iteration can be determined, and the effect of the iteration can be more intuitively understood based on the physical field distribution data. Taking the "core-fluid-solid" model as an example:
[0126] Distributed results obtained by solving the "core" solver in parallel:
[0127]
[0128] Distributed results from solving the Stream solver in parallel:
[0129]
[0130] Distributed results from solving the "solid" solver in parallel:
[0131]
[0132] is the numerical reactor coolant temperature after the k+1th iteration at time t, is the fuel temperature after the k+1th iteration at time t.
[0133] At this time, the physical field data corresponding to the solution result of the k+1th iteration is It can be expressed as:
[0134]
[0135] In some embodiments, when k is 1, the above-mentioned iterative method of multi-physics field coupling further includes:
[0136] Obtaining an initial result of the iterative calculation, where the initial result of the iterative calculation is obtained according to a converged solution at a second moment, where the second moment is a moment before the first moment;
[0137] According to the initial result of the iterative calculation and the preset value of the relaxation factor, the solution result of the first iteration is obtained.
[0138] During the iteration process, the approximate inverse of the Jacobian matrix needs to be determined, and in this process, at least two historical solution results need to be used.
[0139] The above-mentioned initial result of iterative calculation directly selects the converged solution obtained at the previous moment of the first moment, that is, the converged solution obtained at the second moment, as the first historical solution result as the initial result of iterative calculation. This selection method fully considers the actual physical meaning of the physical field.
[0140] The solution of the first iteration is obtained by using the preset value of the relaxation factor. The method based on the fixed relaxation factor acceleration can adopt the Picard iteration algorithm.
[0141] In some implementations, the two historical solution results can be directly preset manually.
[0142] The iterative method for multi-physics field coupling provided in the embodiment of the present application can be executed by the iterative device 400 for multi-physics field coupling. In the embodiment of the present application, the iterative method for multi-physics field coupling performed by the iterative device 400 for multi-physics field coupling is taken as an example to illustrate the iterative device 400 for multi-physics field coupling provided in the embodiment of the present application.
[0143] See also Figure 4, is a schematic diagram of the structure of the iterative device 400 for multi-physics field coupling provided in an embodiment of the present application. Figure 4 The multi-physics field coupling iteration device 400 shown includes:
[0144] A physical field data acquisition module 410 is used to acquire distribution data of multiple physical fields of the numerical reactor at a first moment;
[0145] A vector determination module 420, for performing fixed point transformation processing on the coupled iterations of the multiple physical fields according to the distribution data of the multiple physical fields, to obtain fixed point state vectors associated with the multiple physical fields;
[0146] A matrix acquisition module 430, for determining a Jacobian matrix according to a fixed point state vector;
[0147] The solution module 440 is used to perform an approximate inverse solution on the Jacobian matrix to determine a converged solution of the iteration of multiple physical field couplings at the first moment.
[0148] In some implementations, the solution module 440 is specifically configured to:
[0149] The target solution obtained by performing at least one iteration using the approximate inverse of the Jacobian matrix is determined as a converged solution of the iteration of the multiple physical field couplings at the first moment;
[0150] The target solution is: the solution result of any iterative solution that reaches the preset convergence condition in at least one iterative solution.
[0151] In some implementations, the solution module 440 may include:
[0152] An approximate inverse acquisition unit, used to determine the approximate inverse of the Jacobian matrix in the k+1th iteration solution, where k is a positive integer;
[0153] A convergence result acquisition unit, used to determine an iterative convergence result of the k+1th iterative solution according to the approximate inverse determined at the k+1th iteration, wherein the iterative convergence result is used to indicate whether the iterative solution of the k+1th iterative solution has converged;
[0154] An iterative execution state determination unit, configured to update k+1 to k+2 when the iterative convergence result indicates that the iterative solution of the k+1th iterative solution has not converged, and re-execute the above steps until the iterative solution of the k+1th iterative solution has converged;
[0155] The target solution is the solution result of the k+1th iteration solution, where the iteration convergence result indicates the iteration convergence.
[0156] In some implementations, the approximate inverse acquisition unit may include:
[0157] A first residual error obtaining subunit is used to obtain the residual error of the solution result of each iteration before the k+1th iteration;
[0158] The approximate inverse acquisition subunit is used to determine the approximate inverse of the Jacobian matrix according to the residual of the solution result of each iteration before the k+1th iteration and the solution result of each iteration before the k+1th iteration.
[0159] In some implementations, the approximate inverse acquisition subunit is specifically configured to:
[0160] Obtaining a residual difference matrix, the residual difference matrix including the difference between the residual of the solution result of the k-th iteration and the residual of the solution result of each iteration before the k-th iteration;
[0161] Obtaining a physical field difference matrix, the physical field difference matrix includes the difference between the physical field data of the k iterations and the physical field data of each iteration before the k iteration; the physical field data of each iteration is obtained by solving the solution result corresponding to this iteration according to the fixed point state vector;
[0162] Determine the approximate inverse of the Jacobian matrix from the residual difference matrix and the physics difference matrix.
[0163] In some implementations, the convergence result acquisition unit may include:
[0164] An iterative solution result acquisition subunit is used to obtain a solution result of the k+1th iterative solution according to the approximate inverse determined in the k+1th iteration;
[0165] A second residual error obtaining subunit is used to determine the residual error of the solution obtained by the k+1th iteration;
[0166] The convergence result acquisition subunit is used to determine the iterative convergence result of the k+1th iterative solution according to the residual of the solution result of the k+1th iterative solution.
[0167] In some implementations, the convergence result acquisition subunit is specifically used to:
[0168] Get the residual of the solution result of the kth iteration;
[0169] According to the residual of the approximate inverse and the solution of the kth iteration, the solution update is obtained;
[0170] According to the physical field data of the kth iteration and the solution update amount, the solution result of the k+1th iteration is obtained, wherein the physical field data of the kth iteration is obtained by solving the solution result corresponding to the kth iteration according to the fixed point state vector.
[0171] In some implementations, the convergence result acquisition subunit is further configured to:
[0172] Solve the solution result of the k+1th iteration solution according to the fixed point state vector to obtain the physical field data of the solution result of the k+1th iteration solution;
[0173] According to the physical field data of the solution result of the k+1th iterative solution and the solution result of the k+1th iterative solution, the residual of the solution result of the k+1th iterative solution is obtained.
[0174] In some implementations, when k is 1, the convergence result acquisition unit is further configured to:
[0175] Obtaining an initial result of the iterative calculation, where the initial result of the iterative calculation is obtained according to a converged solution at a second moment, where the second moment is a moment before the first moment;
[0176] According to the initial result of the iterative calculation and the preset value of the relaxation factor, the solution result of the first iteration is obtained.
[0177] The iterative device 400 of multi-physics field coupling in the embodiment of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile perSonal computer (ultra-mobile perSonal computer, UMPC), a netbook or a personal digital assistant (perSonal digital aSSiStant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (perSonal computer, PC), a television (televiSion, tV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0178] like Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 510 and a memory 520, wherein the memory 520 stores programs or instructions that can be executed on the processor 510, and when the program or instructions are executed by the processor 510, the various steps of the iterative method embodiment of the above-mentioned multi-physical field coupling are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0179] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned iterative method embodiment of multi-physical field coupling is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0180] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0181] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0182] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0183] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0184] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0185] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. An iterative method for multi-physics field coupling, characterized in that: The iterative method of multi-physics field coupling includes: Obtaining distribution data of multiple physical fields of the numerical reactor at a first moment; According to the distribution data of the multiple physical fields, fixed point transformation processing is performed on the coupled iterations of the multiple physical fields to obtain fixed point state vectors associated with the multiple physical fields; Determining a Jacobian matrix according to the fixed point state vector; An approximate inverse solution is performed on the Jacobian matrix to determine a converged solution of the iteration of the multiple physical field couplings at the first moment.
2. The iterative method for multi-physics field coupling according to claim 1, characterized in that: The performing an approximate inverse solution on the Jacobian matrix to determine a converged solution of the iteration of the multiple physical field couplings at the first moment includes: Determine a target solution obtained by performing at least one iterative solution using the approximate inverse of the Jacobian matrix as a converged solution of the iteration of the multiple physical field couplings at the first moment; The target solution is: the solution result of any iterative solution that reaches a preset convergence condition in the at least one iterative solution.
3. The iterative method for multi-physics field coupling according to claim 2, characterized in that: The step of performing at least one iterative solution using the approximate inverse of the Jacobian matrix to obtain a target solution as a converged solution of the iteration of the multiple physical field couplings at the first moment includes: Determine the approximate inverse of the Jacobian matrix in the k+1th iteration solution, where k is a positive integer; Determine, according to the approximate inverse determined at the k+1th iteration, an iterative convergence result of the k+1th iterative solution, wherein the iterative convergence result is used to indicate whether the iterative solution of the k+1th iterative solution has converged; When the iteration convergence result indicates that the iteration of the k+1th iteration solution has not converged, updating k+1 to k+2, and re-performing the above steps until the iteration of the k+1th iteration solution has converged; The target solution is the solution result of the k+1th iterative solution for which the iterative convergence result indicates iterative convergence.
4. The iterative method for multi-physics field coupling according to claim 3, characterized in that: Determining the approximate inverse of the Jacobian matrix in the k+1th iterative solution includes: Get the residual of the solution result of each iteration before the k+1th iteration; An approximate inverse of the Jacobian matrix is determined according to the residual of the solution result of each iteration before the k+1th iteration and the solution result of each iteration before the k+1th iteration.
5. The iterative method for multi-physics field coupling according to claim 4, characterized in that: Determining the approximate inverse of the Jacobian matrix according to the residual of the solution result of each iteration before the k+1th iteration and the solution result of each iteration before the k+1th iteration includes: Obtaining a residual difference matrix, wherein the residual difference matrix includes the difference between the residual of the solution result of the k-th iteration and the residual of the solution result of each iteration before the k-th iteration; Obtaining a physical field difference matrix, wherein the physical field difference matrix includes the difference between the physical field data of the kth iteration and the physical field data of each iteration before the kth iteration; the physical field data of each iteration is obtained by solving the solution result corresponding to the current iteration according to the fixed point state vector; An approximate inverse of the Jacobian matrix is determined based on the residual difference matrix and the physical field difference matrix.
6. The iterative method for multi-physics field coupling according to claim 3, characterized in that: The step of determining an iterative convergence result of the k+1th iterative solution according to the approximate inverse determined at the k+1th iteration includes: Obtaining a solution result obtained by the k+1th iteration according to the approximate inverse determined by the k+1th iteration; Determine the residual of the solution obtained by the k+1th iterative solution; An iterative convergence result of the k+1th iterative solution is determined according to a residual of a solution result of the k+1th iterative solution.
7. The iterative method for multi-physics field coupling according to claim 6, characterized in that: The method of obtaining a solution result obtained by the k+1th iteration according to the approximate inverse determined by the k+1th iteration includes: Get the residual of the solution result of the kth iteration; Obtaining a solution update amount according to the residual of the approximate inverse and the solution result of the k-th iteration; According to the physical field data of the kth iteration and the solution update amount, a solution result of the k+1th iteration is obtained, wherein the physical field data of the kth iteration is obtained by solving the solution result corresponding to the kth iteration according to the fixed point state vector.
8. The iterative method for multi-physics field coupling according to claim 6, characterized in that: The determining of the residual of the solution result obtained by the k+1th iterative solution comprises: Solve the solution result of the k+1th iterative solution according to the fixed point state vector to obtain physical field data of the solution result of the k+1th iterative solution; A residual of the solution result of the k+1th iterative solution is obtained according to the physical field data of the solution result of the k+1th iterative solution and the solution result of the k+1th iterative solution.
9. The iterative method for multi-physics field coupling according to claim 3, characterized in that: When k is 1, the iterative method of multi-physics field coupling further includes: Obtaining an initial result of iterative calculation, wherein the initial result of iterative calculation is obtained according to a converged solution at a second moment, where the second moment is a moment before the first moment; According to the iterative calculation initial result and the preset value of the relaxation factor, the solution result of the first iteration is obtained.
10. An iterative device for multi-physics field coupling, characterized in that: The multi-physics field coupling iteration device comprises: A physical field data acquisition module, used to acquire distribution data of multiple physical fields of the numerical reactor at a first moment; A vector determination module, configured to perform fixed point transformation processing on the coupled iterations of the multiple physical fields according to the distribution data of the multiple physical fields, so as to obtain fixed point state vectors associated with the multiple physical fields; A matrix acquisition module, used for determining a Jacobian matrix according to the fixed point state vector; A solution module is used to perform an approximate inverse solution on the Jacobian matrix to determine a converged solution of the iteration of the multiple physical field couplings at the first moment.
11. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the iterative method for multi-physical field coupling as described in any one of claims 1 to 9 when executing the computer program.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the iterative method for multi-physical field coupling as described in any one of claims 1 to 9.
