A method for testing the smoothness of a system analysis software interfacial friction model
By obtaining the range of values for cavitation fraction, mixing flow rate, and gas-liquid relative velocity, 3D result diagrams were calculated and plotted. The interphase friction model was verified and optimized, solving the problem of poor smoothness in the interphase friction model and improving the stability and convergence of the system analysis software.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- STATE POWER INVESTMENT CORPORATION RESEARCH INSTITUTE
- Filing Date
- 2022-10-24
- Publication Date
- 2026-04-10
AI Technical Summary
The calculation smoothness of the interphase friction model in the existing technology is poor, which affects the stability and convergence of the safety analysis software for thermal-hydraulic systems.
By obtaining the range of values for cavitation fraction, mixing flow rate, and relative velocity between the gas and liquid phases, multiple sets of results are calculated using an interphase friction model. 3D result diagrams are plotted, and the smoothness of the model is verified based on the images. Optimization is then performed until the verification is passed.
The computational stability and convergence of the system analysis software were improved, ensuring the smoothness of the interphase friction model and improving the accuracy of safety analysis of thermal-hydraulic systems.
Smart Images

Figure CN117973240B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of nuclear power, in particular to a method for checking smoothness of phase friction model of system analysis software. BACKGROUND
[0002] The phase friction model is an important module of the flow heat transfer constitutive relation in the hydraulics model, and whether the calculation of the phase friction coefficient is smooth will directly affect the stability and convergence of the calculation of the thermal hydraulic system safety analysis software.
[0003] In the related art, the commonly used phase friction model is calculated according to different flow patterns by selecting different relation formulas, and the direct problem faced after integrating these relation formulas is that the calculation smoothness of the phase friction coefficient may be poor. SUMMARY
[0004] The present application provides a method for checking the smoothness of the phase friction model of the system analysis software. The specific scheme is as follows:
[0005] An embodiment of the present application provides a method for checking the smoothness of the phase friction model of the system analysis software, comprising:
[0006] Obtaining a value range corresponding to a void fraction, a mixed flow rate and a gas-liquid phase relative speed respectively;
[0007] According to the value range corresponding to the void fraction, the mixed flow rate and the gas-liquid phase relative speed respectively, calculating the phase friction coefficient by using the phase friction model to obtain a plurality of calculation results; wherein each calculation result includes a value of the void fraction, a value of the mixed flow rate, a value of the gas-liquid phase relative speed and a corresponding phase friction coefficient;
[0008] Based on the plurality of calculation results, drawing a first type of 3D result graph and a second type of 3D result graph; wherein the first type of 3D result graph is a 3D result graph drawn according to the phase friction coefficient calculated according to different void fractions and gas-liquid phase relative speeds under the condition that the mixed flow rate is the same; and the second type of 3D result graph is a 3D result graph drawn according to the phase friction coefficient calculated according to different void fractions and mixed flow rates under the condition that the gas-liquid phase relative speed is the same;
[0009] According to the first type of 3D result graph and the second type of 3D result graph, checking the smoothness of the phase friction model;
[0010] If the interphase friction model fails the smoothness check, the interphase friction model is subjected to a smoothness optimization process, and the optimized interphase friction model is subjected to the smoothness check again. If the optimized interphase friction model fails the smoothness check, the smoothness optimization process is continued until the smoothness check is passed.
[0011] Another aspect of the present application provides a system for analyzing the smoothness of an interphase friction model of software, comprising:
[0012] An acquisition module is configured to acquire a value range corresponding to a void fraction, a mixed flow rate, and a gas-liquid phase relative velocity, respectively.
[0013] A calculation module is configured to calculate an interphase friction coefficient using an interphase friction model based on the value range corresponding to the void fraction, the mixed flow rate, and the gas-liquid phase relative velocity, respectively, to obtain a plurality of calculation results. Each calculation result includes a value of the void fraction, a value of the mixed flow rate, a value of the gas-liquid phase relative velocity, and a corresponding interphase friction coefficient.
[0014] A drawing module is configured to draw a first type of 3D result graph and a second type of 3D result graph based on the plurality of calculation results. The first type of 3D result graph is a 3D result graph of interphase friction coefficients calculated based on different void fractions and gas-liquid phase relative velocities under the condition that the mixed flow rate is the same. The second type of 3D result graph is a 3D result graph of interphase friction coefficients calculated based on different void fractions and mixed flow rates under the condition that the gas-liquid phase relative velocity is the same.
[0015] A check module is configured to check the smoothness of the interphase friction model based on the first type of 3D result graph and the second type of 3D result graph.
[0016] An optimization module is configured to, if the interphase friction model fails the smoothness check, subject the interphase friction model to a smoothness optimization process, and subject the optimized interphase friction model to the smoothness check again. If the optimized interphase friction model fails the smoothness check, the smoothness optimization process is continued until the smoothness check is passed.
[0017] Another aspect of the present application provides a computer device, comprising a processor and a memory.
[0018] The processor runs a program corresponding to executable program code stored in the memory by reading the executable program code, to implement the method for analyzing the smoothness of an interphase friction model of software according to any one of the above aspects.
[0019] Another aspect of the present application provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the system analysis software interphase friction model smoothness verification method of the above aspect.
[0020] The system analysis software interphase friction model smoothness verification method of the present application can calculate the interphase friction coefficient by using the interphase friction model according to the value range corresponding to the void fraction, the mixed flow rate and the relative velocity of the gas-liquid phase, to obtain a plurality of calculation results, draw two types of 3D result graphs based on the plurality of calculation results, verify the smoothness of the interphase friction model according to the 3D result graphs, and perform smoothness optimization processing on the interphase friction model if the interphase friction model fails to pass the smoothness verification, and verify the smoothness of the optimized interphase friction model until the interphase friction model passes the smoothness verification. In this way, the smoothness of the interphase friction model of the system analysis software is verified, and the smoothness optimization processing is performed according to the verification result, so that the stability and convergence of the system analysis software calculation can be improved.
[0021] Additional aspects and advantages of the present application will be made apparent by the following description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0022] The above and / or additional aspects and advantages of the present application will become apparent and be readily appreciated from the following description, including the accompanying drawings, wherein:
[0023] Figure 1 A flowchart of a system analysis software interphase friction model smoothness verification method provided by an embodiment of the present application;
[0024] Figure 2 An exponential interpolation diagram provided by an embodiment of the present application;
[0025] Figure 3 A process diagram of a system analysis software interphase friction model smoothness verification provided by an embodiment of the present application;
[0026] Figure 4 A structure diagram of a system analysis software interphase friction model smoothness verification device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0027] Embodiments of the present application are described in detail below with reference to the accompanying drawings, in which like reference numerals indicate like elements or elements having the same or similar function throughout the several views. The embodiments described below are examples in which the same or similar elements are denoted by the same or similar reference numerals, and are intended to explain the present application, and cannot be understood as limiting the present application. The system analysis software interphase friction model smoothness verification method of the present application can calculate the interphase friction coefficient by using the interphase friction model according to the value range corresponding to the void fraction, the mixed flow rate and the relative velocity of the gas-liquid phase, to obtain a plurality of calculation results, draw two types of 3D result graphs based on the plurality of calculation results, verify the smoothness of the interphase friction model according to the 3D result graphs, and perform smoothness optimization processing on the interphase friction model if the interphase friction model fails to pass the smoothness verification, and verify the smoothness of the optimized interphase friction model until the interphase friction model passes the smoothness verification. In this way, the smoothness of the interphase friction model of the system analysis software is verified, and the smoothness optimization processing is performed according to the verification result, so that the stability and convergence of the system analysis software calculation can be improved.
[0028] A system analysis software interphase friction model smoothness verification method is described below with reference to the accompanying drawings.
[0029] The reactor thermal hydraulic system safety analysis software is mainly used for transient behavior and accident response analysis and calculation of the entire nuclear reactor primary system and part of the secondary system. The hydraulic model, thermal component model, neutron dynamics model, control logic, and part of the special components are generally used to simulate the nuclear power plant, calculate the thermal hydraulic parameters such as pressure, temperature, and void fraction in the system, and thus predict the transient thermal hydraulic behavior of the pressurized water reactor nuclear power plant, simulate the accident phenomenon and response.
[0030] The interphase friction model is an important module of the flow and heat transfer constitutive relationship in the hydraulic model. Whether the calculation of the interphase friction coefficient is smooth will directly affect the stability and convergence of the thermal hydraulic system safety analysis software calculation.
[0031] In the related art, the interphase friction model is calculated by selecting different relationship formulas according to different flow patterns. The direct problem faced after integrating these relationship formulas is that the calculation smoothness of the interphase friction coefficient may be poor. Therefore, in order to ensure the stability and convergence of the thermal hydraulic system safety analysis software calculation, it is necessary to verify the smoothness of the interphase friction model and perform necessary smoothness optimization processing.
[0032] Figure 1 A flowchart of a system analysis software interphase friction model smoothness verification method provided by an embodiment of the present application.
[0033] As shown in Figure 1 , the system analysis software interphase friction model smoothness verification method includes:
[0034] Step 101, obtaining the value range corresponding to the void fraction, mixed flow, and gas-liquid phase relative speed, respectively.
[0035] The gas-liquid phase relative speed refers to the relative speed between the gas phase and the liquid phase.
[0036] In the present application, different void fractions, mixed flows, and gas-liquid phase relative speeds can be selected to calculate the interphase friction coefficient. The value range corresponding to the void fraction, mixed flow, and gas-liquid phase relative speed, respectively, can be set as needed, and the present application does not limit this.
[0037] For example, the value range of the void fraction can be 0-1, the value range of the mixed flow can be 2000-3500 kg / m 2 / s, and the value range of the gas-liquid phase relative speed can be 0-20 m / s.
[0038] In step 102, according to the value ranges of the void fraction, the mixed flow rate, and the gas-liquid phase relative speed, respectively, the interphase friction coefficient is calculated by using the interphase friction model to obtain a plurality of calculation results.
[0039] In the present application, the interphase friction model can include a plurality of interphase friction coefficient calculation formulas, and the calculation formulas corresponding to different value ranges can be different.
[0040] In the present application, different void fractions, mixed flow rates, and gas-liquid phase relative speeds can be selected from the value ranges of the void fraction, the mixed flow rate, and the gas-liquid phase relative speed, respectively, and the interphase friction coefficient is calculated by using the interphase friction model to obtain a plurality of calculation results. In each calculation result, the value of the void fraction, the value of the mixed flow rate, the value of the gas-liquid phase relative speed, and the corresponding interphase friction coefficient are included.
[0041] For example, the value range of the void fraction is 0-1, the value range of the mixed flow rate is 2000-3500 kg / m 2 / s, and the value range of the gas-liquid phase relative speed is 0-20 m / s. The interphase friction coefficient can be calculated when the void fraction is 0.1, the mixed flow rate is 2000, and the gas-liquid phase relative speed is 0; the interphase friction coefficient can be calculated when the void fraction is 0.2, the mixed flow rate is 2000, and the gas-liquid phase relative speed is 0.5; the interphase friction coefficient can be calculated when the void fraction is 0.1, the mixed flow rate is 2200, and the gas-liquid phase relative speed is 0.5, and so on.
[0042] Among them, the void fraction is 0.1, the mixed flow rate is 2000, the gas-liquid phase relative speed is 0, and the calculated interphase friction coefficient is a set of calculation results; the void fraction is 0.2, the mixed flow rate is 2000, the gas-liquid phase relative speed is 0.5, and the calculated interphase friction coefficient is a set of calculation results; the void fraction is 0.1, the mixed flow rate is 2200, the gas-liquid phase relative speed is 0.5, and the calculated interphase friction coefficient is a set of calculation results, thereby obtaining three sets of calculation results.
[0043] It should be noted that the number of calculation results described above is only an example and should not be considered as a limitation of the present application.
[0044] In step 103, based on the plurality of calculation results, a first type of 3D result graph and a second type of 3D result graph are drawn.
[0045] In the present application, in order to facilitate smoothness verification, a relationship diagram of the interphase friction coefficient changing with the void fraction, the mixed flow rate, and the gas-liquid phase relative speed can be drawn based on the plurality of calculation results.
[0046] In the present application, one or more groups of calculation results can be selected from the multiple groups of calculation results, the selected one or more groups of calculation results having the same mixed flow rate, different void fractions and different gas-liquid phase relative velocities, so that the interfacial friction coefficients calculated according to the different void fractions and the different gas-liquid phase relative velocities are plotted to obtain a first type of 3D result graph under the condition of the same mixed flow rate.
[0047] It can be understood that each value of the mixed flow rate can correspond to a 3D result graph of the interfacial friction coefficient changing with the void fraction and the gas-liquid phase relative velocity, and then one or more 3D result graphs of this type can be included in the first type of 3D result graph.
[0048] For example, when the value of the mixed flow rate is A1, the interfacial friction coefficients calculated according to the different void fractions and the different gas-liquid phase relative velocities are plotted to obtain a corresponding 3D result graph, when the value of the mixed flow rate is A2, the interfacial friction coefficients calculated according to the different void fractions and the different gas-liquid phase relative velocities are plotted to obtain a corresponding 3D result graph, and so on, when the value of the mixed flow rate is An, the interfacial friction coefficients calculated according to the different void fractions and the different gas-liquid phase relative velocities are plotted to obtain a corresponding 3D result graph, and then n first type of 3D result graphs can be obtained.
[0049] In the present application, one or more groups of calculation results can be selected from the multiple groups of calculation results, the selected one or more groups of calculation results having the same gas-liquid phase relative velocity, different void fractions and different mixed flow rates, so that the interfacial friction coefficients calculated according to the different void fractions and the different mixed flow rates are plotted to obtain a second type of 3D result graph under the condition of the same gas-liquid phase relative velocity.
[0050] It can be understood that each value of the gas-liquid phase relative velocity can correspond to a 3D result graph of the interfacial friction coefficient changing with the void fraction and the mixed flow rate, and then one or more 3D result graphs of this type can be included in the second type of 3D result graph.
[0051] It should be noted that a third type of 3D result graph can also be plotted according to the interfacial friction coefficients calculated according to the different mixed flow rates and the different gas-liquid phase relative velocities under the condition of the same void fraction, as required, and the present application does not limit this.
[0052] In step 104, the smoothness of the interfacial friction model is verified according to the first type of 3D result graph and the second type of 3D result graph.
[0053] As a possible implementation manner, the smoothness of the interfacial friction coefficient can be verified by determining whether the multiple 3D result graphs in the first type of 3D result graph are all smooth surfaces and whether the multiple 3D result graphs in the second type of 3D result graph are all smooth surfaces.
[0054] If each 3D result graph in the first type of 3D result graphs is a smooth surface and each 3D result graph in the second type of 3D result graphs is also a smooth surface, it can be considered that the interfacial friction model is smooth and passes the smoothness check. If there is a 3D result graph in the first type of 3D result graphs or the second type of 3D result graphs that is not a smooth surface, it can be considered that the interfacial friction model does not pass the smoothness check.
[0055] In checking whether the 3D result graph is a smooth surface, it can be determined whether each point on the 3D result graph has a tangent plane. If all points have a tangent plane, it can be considered that the 3D result graph is a smooth surface.
[0056] As another possible implementation, in the present application, it can also be determined, according to the first type of 3D result graphs and the second type of 3D result graphs, whether the curves of the interfacial friction coefficient changing with each variable in the void fraction, the mixed flow and the gas-liquid phase relative velocity are smooth curves.
[0057] For the first type of 3D result graphs, it can be determined whether the curve of the interfacial friction coefficient changing with the void fraction is a smooth curve when the gas-liquid phase relative velocity is constant, and whether the curve of the interfacial friction coefficient changing with the gas-liquid phase relative velocity is a smooth curve when the void fraction is constant.
[0058] For the second type of 3D result graphs, it can be determined whether the curve of the interfacial friction coefficient changing with the void fraction is a smooth curve when the mixed flow is constant, and whether the curve of the interfacial friction coefficient changing with the mixed flow is a smooth curve when the void fraction is constant.
[0059] If the curves of the interfacial friction coefficient changing with each variable in the void fraction, the mixed flow and the gas-liquid phase relative velocity are smooth curves, it can be considered that the interfacial friction model is smooth and passes the smoothness check. If the curve of the interfacial friction coefficient changing with any variable is a non-smooth curve, it can be considered that the interfacial friction model does not pass the smoothness check.
[0060] It should be noted that for each first type of 3D result graph, it can be determined whether the curve of the interfacial friction coefficient changing with the void fraction is a smooth curve when the gas-liquid phase relative velocity has multiple different values, and it can also be determined whether the curve of the interfacial friction coefficient changing with the gas-liquid phase relative velocity is a smooth curve when the void fraction has multiple different values, so as to improve the accuracy of the smoothness check of the interfacial friction model.
[0061] Similarly, for each type II 3D result image, it is possible to determine whether the curve of the interphase friction coefficient changing with the cavitation fraction is a smooth curve under multiple different values of the mixed flow rate, and it is also possible to determine whether the curve of the interphase friction coefficient changing with the mixed flow rate is a smooth curve under multiple different values of the cavitation fraction.
[0062] Step 105: If the interphase friction model fails the smoothness check, perform smoothness optimization on the interphase friction model and perform smoothness check on the optimized interphase friction model. If the optimized interphase friction model fails the smoothness check, continue to perform smoothness optimization until it passes the smoothness check.
[0063] In this application, if the interphase friction model fails the smoothness test, the smoothness of the interphase friction model can be optimized, and the smoothness of the optimized interphase friction model can be verified. The verification method is similar to the verification method of the interphase friction model, so it will not be described in detail here.
[0064] If the optimized interphase friction model fails the smoothness check, continue the smoothness optimization process until the interphase friction model passes the smoothness check.
[0065] In this application, when the curve of the interphase friction coefficient changing with any variable among the cavitation fraction, mixing flow rate and gas-liquid phase relative velocity is a non-smooth curve, any variable can be used as a parameter for exponential interpolation.
[0066] To facilitate understanding, the following will be combined with... Figure 2 To explain, Figure 2 This is a schematic diagram of an exponential interpolation provided for an embodiment of this application. For example... Figure 2 As shown, assuming that the interphase friction coefficient f jumps abruptly at the position where the variable α is α0, f1 represents the calculation formula for the interphase model coefficient corresponding to the curve to the left of α0 (variable is α), and f2 represents the calculation formula for the interphase model coefficient corresponding to the curve to the right of α0 (variable is α), then exponential interpolation can be performed within the interval [α1, α2] around the position α0. The interpolation method is shown in the following formula:
[0067] f = f1 m (α)*f2 1-m (α), α∈[α1,α2],
[0068] in,
[0069] The system analysis software interphase friction model smoothness verification method of the embodiment of the application can calculate the interphase friction coefficient by using the interphase friction model according to the value ranges corresponding to the void fraction, the mixed flow rate and the gas-liquid phase relative speed, to obtain a plurality of groups of calculation results, draw two types of 3D result graphs based on the plurality of groups of calculation results, verify the smoothness of the interphase friction model according to the 3D result graphs, and if the interphase friction model fails the smoothness verification, perform smoothness optimization processing on the interphase friction model, and perform smoothness verification on the optimized interphase friction model until the interphase friction model passes the smoothness verification. In this way, the smoothness of the system analysis software interphase friction model is verified, and the smoothness optimization processing is performed according to the verification result, so that the stability and convergence of the system analysis software calculation can be improved.
[0070] The system analysis software interphase friction model smoothness verification method of the embodiment of the application can be applied to the verification of the interphase friction model of the reactor thermal hydraulic system safety analysis software, evaluate the smoothness of the interphase friction model of the software, and provide a basis for the smoothness improvement method, so that the stability and convergence of the software calculation can be improved.
[0071] In order to facilitate the understanding of the above embodiments, the following describes the embodiments of the application in conjunction with Figure 3 , Figure 3 A process schematic diagram of the system analysis software interphase friction model smoothness verification provided by the embodiment of the application.
[0072] As Figure 3 shown, the process of the system analysis software interphase friction model smoothness verification includes:
[0073] 1. Obtain the set calculation conditions
[0074] Take a circular pipe as the calculation object, set the cross-sectional area and the calculation pressure, select water as the calculation working medium, and the gas-liquid two phases are in a saturated state. When calculating the interphase friction coefficient, different void fractions, mixed flow rates and gas-liquid phase relative speeds can be selected for calculation. The value range of the void fraction can be 0-1, the value range of the mixed flow rate can be 2000-3500 kg / m 2 / s, and the value range of the gas-liquid phase relative speed can be 0-20 m / s.
[0075] 2. Interphase friction coefficient calculation
[0076] According to the above set calculation conditions, the interphase friction model is used to calculate the interphase friction coefficient, and the result file is saved. The result file can include a plurality of groups of calculation results, and each group of calculation results includes the void fraction, the mixed flow rate, the gas-liquid phase relative speed and the corresponding interphase friction coefficient.
[0077] 3. 3D drawing
[0078] According to the obtained calculation result, 3D result graphs are drawn. Since the calculation contains three variables of the void fraction, the mixture flow rate and the gas-liquid phase relative velocity, two types of 3D result graphs can be drawn. The first type of 3D result graph is the interfacial friction coefficient-void fraction-gas-liquid phase relative velocity 3D result graph obtained according to the interfacial friction coefficient calculated under different void fractions and gas-liquid phase relative velocities under the same mixture flow rate. The second type of 3D result graph is the interfacial friction coefficient-void fraction-mixture flow rate 3D result graph obtained according to the interfacial friction coefficient calculated under different void fractions and mixture flow rates under the same gas-liquid phase relative velocity.
[0079] 4. Smoothness verification
[0080] According to the obtained two types of 3D result graphs, the smoothness of the interfacial friction model is verified. If the obtained 3D result graph is a smooth surface, it indicates that the smoothness of the interfacial friction model is good, otherwise, the smoothness optimization processing of the interfacial friction model needs to be performed.
[0081] 5. Smoothness optimization processing
[0082] If the smoothness of the interfacial friction coefficient changing with the void fraction is poor, the void fraction can be used as a parameter for exponential interpolation processing. Similarly, if the smoothness of the interfacial friction coefficient changing with the mixture flow rate is poor, the mixture flow rate can be used as a parameter for exponential interpolation processing. If the smoothness of the interfacial friction coefficient changing with the gas-liquid phase relative velocity is poor, the gas-liquid phase relative velocity can be used as a parameter for exponential interpolation processing.
[0083] The exponential interpolation processing method can refer to the above-mentioned embodiments, and thus will not be described here again.
[0084] After the smoothness optimization processing, the interfacial model coefficients of the obtained interfacial friction model can be calculated, and 3D drawing is performed, and then the smoothness verification is performed. If the interfacial friction model is smooth, the processing is ended, if the interfacial friction model is not smooth, the smoothness optimization processing is continuously performed until the interfacial friction model passes the smoothness verification.
[0085] In order to realize the above-mentioned embodiments, the embodiment of the present application further provides a system analysis software interfacial friction model smoothness verification device. Figure 4 A structural schematic diagram of a system analysis software interfacial friction model smoothness verification device provided by the embodiment of the present application.
[0086] As shown in Figure 4 the system analysis software interfacial friction model smoothness verification device 400 includes:
[0087] The acquisition module 410 is configured to acquire a value range corresponding to a void fraction, a mixed flow rate, and a gas-liquid phase relative speed, respectively.
[0088] The calculation module 420 is configured to calculate an interphase friction coefficient by using an interphase friction model according to the value range corresponding to the void fraction, the mixed flow rate, and the gas-liquid phase relative speed, respectively, to obtain a plurality of groups of calculation results, wherein each group of calculation results includes a value of the void fraction, a value of the mixed flow rate, a value of the gas-liquid phase relative speed, and a corresponding interphase friction coefficient.
[0089] The drawing module 430 is configured to draw a first type of 3D result graph and a second type of 3D result graph based on the plurality of groups of calculation results, wherein the first type of 3D result graph is a 3D result graph of the interphase friction coefficient calculated according to different void fractions and gas-liquid phase relative speeds under the condition that the mixed flow rate is the same, and the second type of 3D result graph is a 3D result graph of the interphase friction coefficient calculated according to different void fractions and mixed flow rates under the condition that the gas-liquid phase relative speed is the same.
[0090] The verification module 440 is configured to verify the smoothness of the interphase friction model according to the first type of 3D result graph and the second type of 3D result graph.
[0091] The optimization module 450 is configured to, in a case where the interphase friction model fails the smoothness verification, perform a smoothness optimization process on the interphase friction model, and perform the smoothness verification on the optimized interphase friction model, and if the optimized interphase friction model fails the smoothness verification, continue to perform the smoothness optimization process until the smoothness verification is passed.
[0092] In a possible implementation manner of the embodiments of the present application, the verification module 440 is configured to:
[0093] The smoothness of the interphase friction model is verified by determining whether the plurality of 3D result graphs in the first type of 3D result graph are all smooth surfaces and whether the plurality of 3D result graphs in the second type of 3D result graph are all smooth surfaces.
[0094] In a possible implementation manner of the embodiments of the present application, the verification module 440 is configured to:
[0095] According to the first type of 3D result graph and the second type of 3D result graph, it is determined whether curves of the interphase friction coefficient changing with each variable in the void fraction, the mixed flow rate, and the gas-liquid phase relative speed are all smooth curves.
[0096] In a possible implementation manner of the embodiments of the present application, the optimization module 450 is configured to:
[0097] In the case that the curve of the interphase friction coefficient changing with any variable of the void fraction, the mixed flow, and the gas-liquid phase relative velocity is a non-smooth curve, the any variable is taken as a parameter for exponential interpolation processing.
[0098] It should be noted that the above explanation and description of the embodiment of the system analysis software interphase friction model smoothness testing method is also applicable to the embodiment of the system analysis software interphase friction model smoothness testing device, and therefore will not be repeated here.
[0099] In the embodiment of the present application, the interphase friction model can be used to calculate the interphase friction coefficient according to the value range corresponding to the void fraction, the mixed flow, and the gas-liquid phase relative velocity, respectively, to obtain a plurality of calculation results, based on the plurality of calculation results, two types of 3D result graphs are drawn, the smoothness of the interphase friction model is verified according to the 3D result graphs, if the interphase friction model does not pass the smoothness verification, the smoothness optimization processing can be performed on the interphase friction model, and the smoothness verification is performed on the optimized interphase friction model, until the interphase friction model passes the smoothness verification. Thus, the smoothness of the system analysis software interphase friction model is verified, and the smoothness optimization processing is performed according to the verification result, so that the stability and convergence of the system analysis software calculation can be improved.
[0100] In order to realize the above-mentioned embodiments, the embodiment of the present application also proposes a computer device comprising a processor and a memory;
[0101] The processor runs a program corresponding to the executable program code stored in the memory by reading the executable program code, so as to realize the system analysis software interphase friction model smoothness testing method as described in the above-mentioned embodiments.
[0102] In order to realize the above-mentioned embodiments, the embodiment of the present application also proposes a non-transitory computer readable storage medium having a computer program stored thereon, the program being executed by a processor to realize the system analysis software interphase friction model smoothness testing method as described in the above-mentioned embodiments.
[0103] In the description of the present application, the meaning of "a plurality of" is at least two, for example, two, three, etc., unless otherwise explicitly and specifically limited.
[0104] Although the embodiments of the present application have been shown and described above, it can be understood that the above-mentioned embodiments are exemplary and cannot be understood as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above-mentioned embodiments within the scope of the present application.
Claims
1. A method for verifying the smoothness of an interphase friction model in system analysis software, characterized in that, include: Obtain the value ranges corresponding to the cavitation fraction, mixing flow rate, and relative velocity of the gas and liquid phases, respectively; Based on the value ranges corresponding to the cavitation fraction, the mixing flow rate, and the relative velocity of the gas and liquid phases, the interphase friction coefficient is calculated using an interphase friction model to obtain multiple sets of calculation results; wherein, each set of calculation results includes the value of the cavitation fraction, the value of the mixing flow rate, the value of the relative velocity of the gas and liquid phases, and the corresponding interphase friction coefficient. Based on the multiple sets of calculation results, a first type of 3D result diagram and a second type of 3D result diagram are drawn; wherein, the first type of 3D result diagram is a 3D result diagram drawn based on the interphase friction coefficient calculated according to different cavitation fractions and relative velocities of the gas and liquid phases under the condition of the same mixing flow rate; the second type of 3D result diagram is a 3D result diagram drawn based on the interphase friction coefficient calculated according to different cavitation fractions and mixing flow rates under the condition of the same relative velocities of the gas and liquid phases. The smoothness of the interphase friction model is verified based on the first type of 3D result image and the second type of 3D result image; wherein, the verification method includes: verifying the smoothness of the interphase friction model by determining whether multiple 3D result images in the first type of 3D result image are all smooth surfaces, and whether multiple 3D result images in the second type of 3D result image are all smooth surfaces. If the interphase friction model fails the smoothness check, the interphase friction model is subjected to smoothness optimization processing, and the optimized interphase friction model is subjected to smoothness check. If the optimized interphase friction model fails the smoothness check, the smoothness optimization processing continues until the smoothness check is passed.
2. The method as described in claim 1, characterized in that, The verification method further includes: Based on the first type of 3D result diagram and the second type of 3D result diagram, determine whether the curves showing the interphase friction coefficient changing with each variable among the cavitation fraction, the mixing flow rate, and the relative velocity of the gas and liquid phases are all smooth curves.
3. The method as described in claim 1, characterized in that, The step of performing smoothing optimization on the interphase friction model when the model fails the smoothness check includes: If the curve of the interphase friction coefficient changing with any of the variables, such as the cavitation fraction, the mixing flow rate, and the relative velocity of the gas and liquid phases, is a non-smooth curve, then the variable is used as a parameter for exponential interpolation.
4. A device for testing the smoothness of interphase friction models in system analysis software, characterized in that, include: The acquisition module is used to obtain the value ranges corresponding to the void fraction, mixing flow rate, and relative velocity of the gas and liquid phases, respectively. The calculation module is used to calculate the interphase friction coefficient using an interphase friction model based on the value ranges corresponding to the cavitation fraction, the mixing flow rate, and the relative velocity of the gas and liquid phases, respectively, to obtain multiple sets of calculation results; wherein, each set of calculation results includes the value of the cavitation fraction, the value of the mixing flow rate, the value of the relative velocity of the gas and liquid phases, and the corresponding interphase friction coefficient; A drawing module is used to draw a first type of 3D result diagram and a second type of 3D result diagram based on the multiple sets of calculation results; wherein, the first type of 3D result diagram is a 3D result diagram drawn based on the interphase friction coefficient calculated according to different cavitation fractions and relative velocities of the gas and liquid phases under the condition of the same mixing flow rate; the second type of 3D result diagram is a 3D result diagram drawn based on the interphase friction coefficient calculated according to different cavitation fractions and mixing flow rates under the condition of the same relative velocities of the gas and liquid phases. The verification module is used to verify the smoothness of the interphase friction model based on the first type of 3D result image and the second type of 3D result image; wherein, the verification method includes: verifying the smoothness of the interphase friction model by determining whether multiple 3D result images in the first type of 3D result image are all smooth surfaces, and whether multiple 3D result images in the second type of 3D result image are all smooth surfaces. The optimization module is used to perform smoothness optimization on the interphase friction model if the interphase friction model fails the smoothness verification, and to perform smoothness verification on the optimized interphase friction model. If the optimized interphase friction model fails the smoothness verification, the smoothness optimization process continues until the smoothness verification is passed.
5. The apparatus as described in claim 4, characterized in that, The verification method further includes: Based on the first type of 3D result diagram and the second type of 3D result diagram, determine whether the curves showing the interphase friction coefficient changing with each variable among the cavitation fraction, the mixing flow rate, and the relative velocity of the gas and liquid phases are all smooth curves.
6. The apparatus as claimed in claim 4, characterized in that, The optimization module is used for: If the curve of the interphase friction coefficient changing with any of the variables, such as the cavitation fraction, the mixing flow rate, and the relative velocity of the gas and liquid phases, is a non-smooth curve, then the variable is used as a parameter for exponential interpolation.
7. A computer device, characterized in that, Including processor and memory; The processor reads executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the method as described in any one of claims 1-3.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-3.
Citation Information
Patent Citations
Rapid calculation method for void fraction distribution of gas-liquid two-phase flow in rod bundle sub-channel
CN114492244A
Interphase resistance analysis method and device suitable for rectangular channel
CN115221812A