A simulation data verification method, device, equipment and storage medium
By obtaining and verifying the input parameters to be verified for the thermal hydraulic system, determining the target physical properties parameters and calculating the sound speed parameters, the problem of rationality verification of the initial value of the thermal hydraulic simulation model is solved, and the implementability and efficiency of the model simulation are improved.
Patent Information
- Application Number
- CN202410214290.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-27
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2044-02-27
AI Technical Summary
In the prior art, the thermal hydraulic simulation model cannot be effectively solved when the initial value is set unreasonably, resulting in simulation failure. Especially in the nuclear industry, it is difficult to achieve design verification through modeling and simulation software due to the high experimental cost.
By obtaining the input parameters to be verified, the target physical property parameters are determined, and the target sound speed parameter is calculated when the preset physical property judgment conditions are met, the rationality of the input parameters is verified based on the sound speed parameter.
The implementability and simulation efficiency of thermal hydraulic simulation models are improved, ensuring that the model can be solved smoothly.
Smart Images

Figure CN118095126B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of thermal hydraulics data simulation, and in particular to a simulation data verification method, apparatus, device and storage medium. Background Art
[0002] Thermal-hydraulic system simulation software requires users to enter numerous initial values during the modeling process. However, complex system models often fail at the beginning of the simulation due to improper input parameter settings. Especially in the nuclear industry, where experimental costs are extremely high, design verification using modeling and simulation software has become a necessity.
[0003] Simulation software uses numerical calculations to predict the changes in various physical quantities in the model. These numerical calculations require a starting point or initial state, namely initial conditions. Users are required to provide reasonable initial values based on experience and obtain the final results through iterative methods. These initial values have a significant impact on the performance and final results of the numerical methods, especially in complex systems such as thermal hydraulics. Each physical quantity must not only comply with conservation conditions such as mass, momentum, and energy, but is also subject to the constraints of coupled physical properties and sudden changes such as conditional conversion. In addition, for multi-solution problems such as nonlinear problems, incorrect initial value selection can cause the algorithm to fall into suboptimal solutions or fail to converge. During the simulation model construction phase, especially when building a new model, due to limited reference data (such as experimental data) and unclear model characteristics, it is easy to fail to obtain reasonable simulation results due to unreasonable initial value settings.
[0004] Therefore, it is necessary to establish an initial value processing method suitable for steady-state calculation of thermal hydraulic models to help users deal with the initial value setting problem and ensure that the model can be solved smoothly. Summary of the Invention
[0005] The embodiments of the present invention provide a simulation data verification method, apparatus, device and storage medium, which can determine the physical property data corresponding to the initial value data, and then verify the rationality of the initial value data based on the physical property data, thereby improving the feasibility of model simulation and improving the efficiency of model simulation.
[0006] In a first aspect, an embodiment of the present invention provides a simulation data verification method, the method comprising:
[0007] Acquiring input parameters to be verified for a target thermal-hydraulic system; wherein the input parameters to be verified include: parameters in a liquid phase state and parameters in a gas phase state;
[0008] Determine target physical property parameters based on the input parameters to be verified and a preset physical property determination model; wherein the target physical property parameters are thermodynamic parameters exhibited under the environmental conditions corresponding to the input parameters to be verified; the target physical property parameters include a first physical property parameter corresponding to a liquid phase state and a second physical property parameter corresponding to a gas phase state, or the target physical property parameters include the first physical property parameter, the second physical property parameter, and a third physical property parameter under the condition that the liquid phase state and the gas phase state coexist;
[0009] In the case where the target physical property parameters meet the preset physical property judgment conditions, determining a model according to the target physical property parameters and a preset sound speed to obtain a target sound speed parameter;
[0010] Based on the target sound speed parameter, a parameter rationality verification result corresponding to the input parameter to be verified is determined.
[0011] In a second aspect, an embodiment of the present invention provides a simulation data verification device, the device comprising:
[0012] The module for obtaining input parameters to be verified is used to obtain input parameters to be verified about the target thermal hydraulic system; wherein the input parameters to be verified include: parameters in the liquid phase state and parameters in the gas phase state;
[0013] a physical property parameter determination module, configured to determine target physical property parameters based on the input parameters to be verified and a preset physical property determination model; wherein the target physical property parameters are thermodynamic parameters exhibited under the environmental conditions corresponding to the input parameters to be verified; the target physical property parameters include a first physical property parameter corresponding to a liquid phase state and a second physical property parameter corresponding to a gas phase state, or the target physical property parameters include the first physical property parameter, the second physical property parameter, and a third physical property parameter under the condition that the liquid phase state and the gas phase state coexist;
[0014] a sound velocity parameter determination module, configured to obtain a target sound velocity parameter based on the target physical property parameter and a preset sound velocity determination model when the target physical property parameter satisfies a preset physical property determination condition;
[0015] The parameter rationality determination module is used to determine the parameter rationality verification result corresponding to the input parameter to be verified based on the target sound speed parameter.
[0016] In a third aspect, an embodiment of the present invention provides a computer device, the computer device comprising:
[0017] one or more processors;
[0018] a memory for storing one or more programs;
[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the simulation data verification method described in any embodiment.
[0020] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the simulation data verification method described in any embodiment.
[0021] The technical solution provided by the embodiment of the present invention obtains input parameters to be verified about the target thermal-hydraulic system; determines the target physical property parameters based on the input parameters to be verified and a preset physical property determination model; obtains the target sound velocity parameters based on the target physical property parameters and a preset sound velocity determination model when the target physical property parameters meet the preset physical property judgment conditions; and determines the parameter rationality verification result corresponding to the input parameters to be verified based on the target sound velocity parameters. The technical solution of the embodiment of the present invention solves the problem in the prior art that the rationality of the initial values of the thermal-hydraulic simulation model cannot be verified, resulting in the inability to effectively solve the model. The physical property data corresponding to the initial value data can be determined, and the rationality of the initial value data can be verified based on the physical property data, thereby improving the feasibility of the model simulation and improving the efficiency of the model simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is a flow chart of a simulation data verification method provided by an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of finding the position of a parameter in an interpolation table provided by an embodiment of the present invention;
[0024] Figure 3 This is a workflow diagram for performing simulation data verification provided by an embodiment of the present invention;
[0025] Figure 4 1 is a structural diagram of a simulation data verification device provided by an embodiment of the present invention;
[0026] Figure 5 It is a structural diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0028] Figure 1 This is a flow chart of a simulation data verification method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to scenarios where the rationality of input parameters of thermal hydraulic system simulation software is verified. The method can be executed by a simulation data verification device, which can be implemented by software and / or hardware.
[0029] like Figure 1 As shown, the simulation data verification method includes the following steps:
[0030] S110: Obtain input parameters to be verified for the target thermal-hydraulic system.
[0031] The target thermal-hydraulic system may be a thermal-hydraulic system requiring verification of initial parameters to be simulated. The input parameters to be verified may be input data requiring data rationality verification. Specifically, the input parameters to be verified may be manually set. The input parameters to be verified include: parameters in the liquid phase and parameters in the gas phase; the liquid phase input parameters are preset property parameters of the liquid phase in the target thermal-hydraulic system; and the gas phase input parameters are preset property parameters of the gas phase in the target thermal-hydraulic system. Exemplarily, the property parameters include parameters such as pressure, specific internal energy, temperature, and substance fraction.
[0032] For example, the initial parameters filled in by the user can be read to determine the parameter category. The current processing supports four types of input: 1) given pressure, gas-liquid phase internal energy ratio, and cavitation fraction; 2) given temperature and gas content; 3) given pressure and gas content; 4) given pressure and temperature. Except for type 1), the other three types need to be converted into pressure, gas-liquid phase internal energy ratio, and cavitation fraction through physical property calculation. The purpose of this operation is to provide a unified input for subsequent steps and ensure the simplicity of subsequent processing. That is, the converted input parameters to be verified include pressure, gas-phase internal energy ratio, liquid-phase internal energy ratio, and cavitation fraction.
[0033] S120 , determining target physical property parameters according to the input parameters to be verified and a preset physical property determination model.
[0034] The preset physical property determination model may be a preset calculation model for determining the physical property parameters corresponding to the input parameters to be verified. By inputting the input parameters to be verified into the preset physical property determination model, target physical property parameters may be obtained. The target physical property parameters may be thermodynamic parameters exhibited under the environmental conditions corresponding to the input parameters to be verified; the target physical property parameters may include a first physical property parameter corresponding to a liquid phase state and a second physical property parameter corresponding to a gas phase state, or the target physical property parameters may include the first physical property parameter, the second physical property parameter, and a third physical property parameter under conditions where both the liquid phase and the gas phase coexist.
[0035] This section introduces the basic concepts of physical properties. Physical properties refer to the properties of a substance under specific conditions. Common thermodynamic properties include density, specific internal energy, specific enthalpy, coefficient of thermal expansion, coefficient of volume expansion, specific heat capacity, viscosity, and thermal conductivity. Liquid-phase properties are the properties of liquid substances, gas-phase properties are the properties of gas-phase substances, and mixture properties are the properties of gas-liquid mixtures.
[0036] Specifically, the target physical property parameters may include saturated physical property parameters or unsaturated physical property parameters. Among them, saturated physical properties may be physical property parameters in the gas phase or in a saturated state. Unsaturated physical properties may be physical property parameters in the gas phase or in an unsaturated state. Specifically, saturated physical property parameters include a first physical property parameter corresponding to the liquid phase and a second physical property parameter corresponding to the gas phase. Unsaturated physical property parameters include a first physical property parameter, a second physical property parameter, and a third physical property parameter under the coexistence of liquid and gas phases. The embodiment of the present invention requires analysis of both saturated and unsaturated physical property parameters, so simulation analysis can be performed on the input parameters to be verified from both saturated and unsaturated perspectives.
[0037] Optionally, when the target physical property parameters include a first physical property parameter corresponding to the liquid phase state and a second physical property parameter corresponding to the gas phase state, the target physical property parameters are determined according to the physical properties corresponding to the input parameters to be verified, including: determining the corresponding saturated state parameters according to the input parameters to be verified, and determining the saturated physical property parameters according to the saturated state parameters and a preset saturated physical property interpolation table; wherein the preset saturated physical property interpolation table is a correspondence table between the saturated state parameters and the saturated physical property parameters, and the saturated physical property parameters include: gas phase saturated physical properties and liquid phase saturated physical properties.
[0038] Among them, the saturated state parameter can be a reference parameter in the process of obtaining the saturated physical property parameter. Exemplarily, the saturated state parameter can be a reference parameter in terms of pressure, temperature, etc. Specifically, the saturated state parameter corresponding to the input parameter to be verified can be determined based on the correspondence table between the input parameter to be verified and the saturated state parameter. Furthermore, the saturated physical property parameter corresponding to the saturated state parameter can be determined based on a preset saturated physical property interpolation table. Specifically, the saturated physical property parameters include: gas phase saturated physical properties and liquid phase saturated physical properties. The calculation method of the two is the same. The corresponding saturated physical property parameters can be determined based on the correspondence table of the gas phase or liquid phase, which will not be elaborated here.
[0039] Optionally, the corresponding saturation state parameters are determined according to the input parameters to be verified, and the saturation physical property parameters are determined according to the saturation state parameters and a preset saturation physical property interpolation table, including: determining the corresponding saturation pressure parameters according to the input parameters to be verified; determining the associated pressure parameters and the associated temperature parameters according to the corresponding parameter position of the saturation pressure parameters in the preset saturation temperature interpolation table for the pressure parameters; and determining the saturation physical property parameters according to the associated pressure parameters and the associated temperature parameters.
[0040] The saturation pressure parameter may be a pressure parameter among the input parameters to be verified. The preset saturation temperature interpolation table may be a preset correspondence table between saturation pressure and saturation temperature. The preset saturation temperature interpolation table contains a preset number of preset reference pressure values and preset reference temperature values, which are arranged in order of magnitude. The preset reference pressure values and preset reference temperature values have a correspondence relationship, and the preset reference pressure values and preset reference temperature values with a corresponding relationship are in the same column in the preset saturation temperature interpolation table.
[0041] Furthermore, the associated pressure parameter may be a preset reference pressure value corresponding to the saturation pressure parameter in a preset saturation temperature interpolation table. The associated temperature parameter may be a preset reference temperature value corresponding to the saturation pressure parameter in a preset saturation temperature interpolation table. Specifically, based on the parameter position corresponding to the saturation pressure parameter in the preset saturation temperature interpolation table for pressure parameters, a first preset number of preset reference pressure values adjacent to the parameter position may be used as the associated pressure parameter; and a second preset number of preset reference temperature values adjacent to the parameter position may be used as the associated temperature parameter. Furthermore, the associated pressure parameter and the associated temperature parameter may be substituted into the saturation property calculation formula to obtain the saturation property parameter corresponding to the saturation property calculation formula.
[0042] Optionally, the associated pressure parameter and the associated temperature parameter are determined according to the parameter position corresponding to the saturated pressure parameter in the preset saturated temperature interpolation table for the pressure parameter, including: determining the parameter position corresponding to the saturated pressure parameter in the preset saturated temperature interpolation table for the pressure parameter to obtain the corresponding position of the pressure parameter; taking two pressure parameters adjacent to the corresponding position of the pressure parameter in the preset saturated temperature interpolation table as associated pressure parameters; and taking a preset number of temperature parameters adjacent to the corresponding position of the pressure parameter in the preset saturated temperature interpolation table as associated temperature parameters.
[0043] Among them, the preset saturation temperature interpolation table can be a preset correspondence table for saturation pressure and saturation temperature. The preset saturation temperature interpolation table contains a preset number of preset reference pressure values and preset reference temperature values. The preset reference pressure values and preset reference temperature values are arranged in order of numerical value size. There is a corresponding relationship between the preset reference pressure values and the preset reference temperature values. The preset reference pressure values and preset reference temperature values with a corresponding relationship are in the same column in the preset saturation temperature interpolation table. The corresponding position of the pressure parameter can be the corresponding position of the saturation pressure parameter in the preset saturation temperature interpolation table. The associated pressure parameters are the pressure parameters adjacent to the corresponding positions of the parameters in the preset saturation temperature interpolation table. For example, when the saturation pressure parameter is 11.5, and the preset reference pressure values in the preset saturation temperature interpolation table are a sequence starting from 0 and intervalled by 1, then the associated pressure parameters corresponding to the saturation pressure parameter are 11 and 12.
[0044] Furthermore, the associated temperature parameter may be a preset reference temperature value adjacent to the position corresponding to the pressure parameter in a preset saturation temperature interpolation table. The number of associated temperature parameters may be set manually. At the same time, the method for determining the preset number of temperature parameters adjacent to the position corresponding to the pressure parameter may also be set manually. For example, when the number of associated temperature parameters is 5, the 3 temperature parameters on the left and the 2 temperature parameters on the right of the position corresponding to the pressure parameter may all be used as associated temperature parameters; or the 2 temperature parameters on the left and the 3 temperature parameters on the right of the position corresponding to the pressure parameter may all be used as associated temperature parameters.
[0045] Furthermore, the associated pressure parameter and the associated temperature parameter can be substituted into a preset saturation temperature calculation formula to obtain the saturation temperature parameter. Furthermore, based on the above steps of determining the saturation physical property parameter, other physical property parameters can be determined based on the saturation temperature parameter and other saturation physical property interpolation tables.
[0046] Optionally, the saturation physical property parameters are determined based on the associated pressure parameters and the associated temperature parameters, including: determining the target saturation temperature coefficient based on the associated pressure parameters, and determining the saturation temperature parameter based on the target saturation temperature coefficient and the associated temperature parameters; determining the reference temperature parameter and the associated physical property parameters based on the parameter position of the saturation temperature parameter in the preset saturation temperature interpolation table for the temperature parameter; and determining the saturation physical property parameters based on the associated temperature parameters and the associated physical property parameters.
[0047] The target saturation temperature coefficient may be a coefficient used to determine the saturation temperature parameter. Specifically, the calculation formula for determining the target saturation temperature coefficient c is as follows:
[0048]
[0049] Among them, p is the saturation pressure parameter; plow is the smaller parameter of the two associated pressure parameters; p high It is the parameter with the larger value among the two associated pressure parameters.
[0050] Furthermore, the target saturation temperature coefficient and the associated temperature parameter can be substituted into the preset saturation temperature determination formula to obtain the saturation temperature parameter. Furthermore, the preset saturation temperature interpolation table can be a relationship table between the saturation temperature parameter and other saturation physical property parameters. The reference temperature parameter can be the temperature parameter corresponding to the saturation temperature parameter in the preset saturation temperature interpolation table. The associated physical property parameter can be other reference physical property parameters corresponding to the saturation temperature parameter in the preset saturation temperature interpolation table. Specifically, based on the parameter position of the saturation temperature parameter in the preset saturation temperature interpolation table for temperature parameters, the third preset number of temperature parameters adjacent to the parameter position can be used as the reference temperature parameter; the third preset number of other reference physical property parameters adjacent to the parameter position can be used as the associated physical property parameter. Furthermore, the associated temperature parameter and the associated physical property parameter can be substituted into the other saturation physical property parameter determination formula to obtain other saturation physical property parameters except the saturation temperature parameter.
[0051] Optionally, when the target physical property parameters include a first physical property parameter, a second physical property parameter, and a third physical property parameter under the coexistence of liquid and gas phase states, the target physical property parameters are determined according to the physical properties corresponding to the input parameters to be verified, including: determining the corresponding unsaturated state parameters according to the input parameters to be verified, and determining the unsaturated physical property parameters according to the unsaturated state parameters and a preset unsaturated physical property interpolation table; wherein the preset unsaturated physical property interpolation table is a correspondence table between unsaturated state parameters and unsaturated physical property parameters, and the unsaturated physical property parameters include: unsaturated gas phase physical property parameters, unsaturated liquid phase physical property parameters, and mixed phase physical property parameters.
[0052] Among them, the unsaturated state parameters can be reference parameters in the process of obtaining unsaturated physical property parameters. Exemplarily, the unsaturated state parameters can be reference parameters in terms of pressure, temperature, etc. Specifically, the unsaturated state parameters corresponding to the input parameters to be verified can be determined based on the correspondence table between the input parameters to be verified and the unsaturated state parameters. Furthermore, the preset unsaturated physical property interpolation table can be a relationship table between the unsaturated state parameters and the unsaturated physical property parameters. The unsaturated physical property parameters corresponding to the unsaturated state parameters can be determined based on the preset unsaturated physical property interpolation table. Specifically, the unsaturated physical property parameters include: unsaturated gas phase physical property parameters, unsaturated liquid phase physical property parameters and mixed phase physical property parameters. The calculation method of the three is the same. The corresponding unsaturated physical property parameters can be determined based on the correspondence table of the gas phase, liquid phase or mixed phase, which will not be elaborated here.
[0053] Exemplarily, the steps for obtaining the target physical property parameters are as follows:
[0054] The calculation first calculates the saturated physical properties at the current pressure, then calculates the liquid phase physical properties using the pressure and liquid phase internal energy (when no liquid phase exists, the liquid phase physical properties are directly equal to the saturated physical properties at the current pressure). The gas phase physical properties and mixture properties are calculated in the same way. During the physical property calculation process, if unreasonable calculations of physical property parameters such as density and specific heat at constant pressure are detected, they will be re-interpolated using pressure and temperature to obtain reasonable physical properties.
[0055] Physical property calculations are performed by interpolation, and the physical property parameter data is stored in a table. Before calculation, first check whether the input exceeds the interpolation table range. Taking pressure and temperature as an example, the limited range is:
[0056] Table 3-1 Upper and lower limits of pressure and temperature
[0057]
[0058] The physical property calculation first calculates the saturated physical property based on the pressure. The calculation is performed by interpolation. First, find the value of the pressure in the interpolation table by traversing. For example, Figure 2 FIG. 1 is a schematic diagram of finding the position of a parameter in an interpolation table provided by an embodiment of the present invention. Figure 2 As shown, the numerical interval line corresponding to the parameter value can be found in the interpolation table according to the parameter value, and the position of the numerical interval line is used as the corresponding position of the parameter value.
[0059] Then get the pressure value p before and after this point low and p high And obtain the saturation temperature T at the current temperature through the following interpolation formula sat :
[0060]
[0061] T sat =T0+c(T1+c(T2+c(T3+c(T4+cT5))))
[0062] Wherein, T1-T5 represent associated temperature parameters.
[0063] Get the saturation temperature T sat After that, through T sat Calculate other saturated physical properties. Similarly, first obtain the position of the current temperature in the interpolation table by traversing:
[0064] The associated temperature parameter T is determined by this position low and T high , and calculate:
[0065]
[0066] Other saturated properties x sat The interpolation calculation is also performed using the following interpolation formula:
[0067] x sat =x0+c(x1+c(x2+c(x3+c(x4+cx5))))
[0068] Among them, x1-x5 represent the associated physical property parameters.
[0069] After the saturated physical properties are calculated, the liquid phase physical properties (if there is a liquid phase) are calculated by interpolation of pressure and liquid phase internal energy. Similarly, the position of pressure in the interpolation table Prp is obtained first. low , get the pressure value p before and after the point low and p high Obtain the position of the corresponding temperature in the interpolation table PrT by comparing the internal energy low , note the position of the pressure in the interpolation table Prp low and the position of temperature in the interpolation table PrT low Confirm T again low ,T high ,p low ,p high As the points needed for subsequent interpolation. Other physical properties are calculated using interpolation formulas similar to the above. Bad pixels may appear during the interpolation process. It is necessary to check the interpolation results and re-interpolate when bad pixels appear.
[0070] S130 : When the target physical property parameter satisfies a preset physical property determination condition, determine a model according to the target physical property parameter and a preset sound velocity to obtain a target sound velocity parameter.
[0071] Among them, the preset physical property judgment condition can be a judgment condition for whether the physical property parameter is reasonable. Specifically, the difference between the target physical property parameter and the corresponding physical property reference parameter can be calculated. When the difference between the two is less than the preset difference threshold, it can be determined that the target physical property parameter meets the preset physical property judgment condition. In addition, when the target physical property parameter does not meet the preset physical property judgment condition, the input parameter to be verified can be adjusted, and then the physical property parameter corresponding to the adjusted input parameter can be calculated. When the physical property parameter corresponding to the adjusted input parameter meets the preset physical property judgment condition, the subsequent steps are carried out, otherwise the input parameter is continued to be adjusted. Exemplarily, when the input parameter to be verified is adjusted, each index parameter in the input parameter to be verified can be replaced with a preset empirical value, and then the subsequent physical property parameter calculation is performed based on the adjusted empirical value.
[0072] Furthermore, the preset sound speed determination model may be a preset model for calculating the sound speed of the gas phase and the liquid phase. Specifically, the target physical property parameters may be input into the preset sound speed determination model to obtain the target sound speed parameters. The target sound speed parameters may be calculated sound speed parameters for the gas phase and the liquid phase. Specifically, the target sound speed parameters include: single-phase liquid sound speed parameters, single-phase gas sound speed parameters, and two-phase mixture sound speed parameters. The step of determining the target sound speed parameters includes: determining the single-phase liquid sound speed parameters based on the target physical property parameters and the single-phase liquid sound speed calculation function; determining the single-phase gas sound speed parameters based on the target physical property parameters and the single-phase gas sound speed calculation function; and determining the two-phase mixture sound speed parameters based on the target physical property parameters and the two-phase mixture sound speed calculation function.
[0073] The sound velocity calculation is divided into single-phase liquid sound velocity calculation, single-phase gas sound velocity calculation and two-phase mixed sound velocity calculation. The main purpose of the sound velocity calculation is to help further confirm the rationality of the parameters. The formula for calculating the target sound velocity parameter is as follows:
[0074] The calculation formula of single-phase liquid sound velocity is:
[0075]
[0076] The calculation formula of single-phase steam sound velocity is:
[0077]
[0078] The formula for calculating the sound velocity of a two-phase mixture is:
[0079]
[0080]
[0081] Where κ represents the volume expansion coefficient; C_p represents the specific heat at constant pressure; T represents the temperature; ρ represents the density; β represents the thermal expansion coefficient; v represents the specific volume; the subscript l represents the liquid phase, and the subscript g represents the gas phase.
[0082] S140. Determine a parameter rationality verification result corresponding to the input parameter to be verified based on the target sound speed parameter.
[0083] Among them, the parameter rationality verification result can be a judgment result on whether the input parameter to be verified is reasonable. Specifically, since the target sound speed parameters include single-phase liquid sound speed parameters, single-phase gas sound speed parameters and two-phase mixture sound speed parameters, the difference between each sound speed parameter and the corresponding reference sound speed threshold can be calculated here, and then the difference can be compared with the corresponding reference error threshold, and the rationality judgment result of each sound speed parameter can be determined based on the comparison result, and finally the parameter rationality verification result can be determined based on the rationality judgment result of each sound speed parameter. Exemplarily, when the rationality judgment result of each sound speed parameter is a parameter rationality judgment result, the parameter rationality verification result can be determined as the parameter is relatively reasonable; otherwise, the parameter rationality verification result can be determined as the parameter is unreasonable.
[0084] Optionally, if the target physical property parameter does not meet the preset physical property determination conditions or the parameter rationality verification result is an unreasonable verification result, the input parameter to be verified is adjusted, and the adjusted parameter is used as the new input parameter to be verified to restart the physical property determination step. Exemplarily, when adjusting the input parameter to be verified, each indicator parameter in the input parameter to be verified can also be replaced with a preset empirical value, and subsequent physical property parameter calculations are then performed based on the adjusted empirical values.
[0085] For example, Figure 3 This is a workflow diagram for performing simulation data verification provided by an embodiment of the present invention. Figure 3 As shown in the figure, the workflow of simulation data verification is as follows:
[0086] Step 1: Read the initial parameters entered by the user and determine the parameter category. The current processing supports four types of input: 1) given pressure, gas-liquid ratio internal energy, and cavitation fraction; 2) given temperature and gas content; 3) given pressure and gas content; 4) given pressure and temperature. Except for type 1), the other three types need to be converted into pressure, gas-liquid ratio internal energy, and cavitation fraction through physical property calculation. The purpose of this operation is to provide unified input for subsequent steps to ensure the simplicity of subsequent processing.
[0087] Step 2: Calculate the physical properties and check the calculation results. If an error occurs, print the error message, replace the initial parameters, and then proceed to the next step. If correct, proceed directly to the next step. When calculating, first calculate the saturated physical properties at the current pressure, then calculate the liquid phase physical properties by pressure and liquid phase internal energy (when there is no liquid phase, the liquid phase physical properties are directly equal to the saturated physical properties); calculate the gas phase physical properties and mixture properties in the same way; during the physical property calculation process, if it is detected that the calculation of physical property parameters such as density and constant pressure specific heat is unreasonable, re-interpolate the pressure and temperature to obtain reasonable physical properties;
[0088] Step 3: Calculate the speed of sound and check the results. If an error occurs, print the error message, return to the initial parameter replacement step, and enter the iterative process. If correct, proceed directly to the next step. The speed of sound calculation is divided into single-phase liquid speed of sound calculation, single-phase gas speed of sound calculation, and Holm Hertz equilibrium speed of sound calculation. The main purpose of the speed of sound calculation is to help further confirm the rationality of the parameters.
[0089] Step 4: When all calculation results are reasonable, the initial value processing is completed.
[0090] The technical solution provided by the embodiment of the present invention obtains input parameters to be verified about the target thermal-hydraulic system; determines the target physical property parameters based on the input parameters to be verified and a preset physical property determination model; obtains the target sound velocity parameters based on the target physical property parameters and a preset sound velocity determination model when the target physical property parameters meet the preset physical property judgment conditions; and determines the parameter rationality verification result corresponding to the input parameters to be verified based on the target sound velocity parameters. The technical solution of the embodiment of the present invention solves the problem in the prior art that the rationality of the initial values of the thermal-hydraulic simulation model cannot be verified, resulting in the inability to effectively solve the model. The physical property data corresponding to the initial value data can be determined, and the rationality of the initial value data can be verified based on the physical property data, thereby improving the feasibility of the model simulation and improving the efficiency of the model simulation.
[0091] Figure 4 This is a structural diagram of a simulation data verification device provided by an embodiment of the present invention. The embodiment of the present invention is applicable to scenarios where the rationality of input parameters of thermal-hydraulic system simulation software is verified. The device can be implemented by software and / or hardware and integrated into a computer device with application development capabilities.
[0092] like Figure 4 As shown, the simulation data verification device includes: an input parameter acquisition module 310 to be verified, a physical property parameter determination module 320, a sound speed parameter determination module 330 and a parameter rationality determination module 340.
[0093] Among them, the input parameter acquisition module 310 to be verified is used to obtain the input parameters to be verified about the target thermal-hydraulic system; wherein, the input parameters to be verified include: parameters in the liquid phase state and parameters in the gas phase state; the physical property parameter determination module 320 is used to determine the target physical property parameters based on the input parameters to be verified and a preset physical property determination model; wherein, the target physical property parameters are thermodynamic parameters exhibited under the environmental conditions corresponding to the input parameters to be verified; the target physical property parameters include a first physical property parameter corresponding to the liquid phase state and a second physical property parameter corresponding to the gas phase state, or the target physical property parameters include a first physical property parameter, a second physical property parameter and a third physical property parameter under the coexistence condition of the liquid phase state and the gas phase state; the sound speed parameter determination module 330 is used to obtain the target sound speed parameter based on the target physical property parameter and a preset sound speed determination model when the target physical property parameter meets the preset physical property judgment condition; the parameter rationality determination module 340 is used to determine the parameter rationality verification result corresponding to the input parameter to be verified based on the target sound speed parameter.
[0094] The technical solution provided by the embodiment of the present invention obtains input parameters to be verified about the target thermal-hydraulic system; determines the target physical property parameters based on the input parameters to be verified and a preset physical property determination model; obtains the target sound velocity parameters based on the target physical property parameters and a preset sound velocity determination model when the target physical property parameters meet the preset physical property judgment conditions; and determines the parameter rationality verification result corresponding to the input parameters to be verified based on the target sound velocity parameters. The technical solution of the embodiment of the present invention solves the problem in the prior art that the rationality of the initial values of the thermal-hydraulic simulation model cannot be verified, resulting in the inability to effectively solve the model. The physical property data corresponding to the initial value data can be determined, and the rationality of the initial value data can be verified based on the physical property data, thereby improving the feasibility of the model simulation and improving the efficiency of the model simulation.
[0095] In an optional embodiment, the physical property parameter determination module 320 includes: an unsaturated state parameter determination submodule, which is used to: when the target physical property parameter includes a first physical property parameter, a second physical property parameter, and a third physical property parameter under the coexistence condition of the liquid phase and the gas phase, determine the corresponding unsaturated state parameter according to the input parameter to be verified, and determine the unsaturated physical property parameter according to the unsaturated state parameter and a preset unsaturated physical property interpolation table; wherein the preset unsaturated physical property interpolation table is a correspondence table between unsaturated state parameters and unsaturated physical property parameters, and the unsaturated physical property parameters include: unsaturated gas phase physical property parameters, unsaturated liquid phase physical property parameters, and mixed phase physical property parameters.
[0096] In an optional embodiment, the physical property parameter determination module 320 also includes: a saturated state parameter determination submodule, which is used to: when the target physical property parameter includes a first physical property parameter corresponding to the liquid phase state and a second physical property parameter corresponding to the gas phase state, determine the corresponding saturated state parameter according to the input parameter to be verified, and determine the saturated physical property parameter according to the saturated state parameter and a preset saturated physical property interpolation table; wherein the preset saturated physical property interpolation table is a correspondence table between saturated state parameters and saturated physical property parameters, and the saturated physical property parameters include: gas phase saturated physical property and liquid phase saturated physical property.
[0097] In an optional embodiment, the saturation state parameter determination submodule includes: a saturation physical property parameter determination unit, used to: determine the corresponding saturation pressure parameter based on the input parameter to be verified; determine the associated pressure parameter and the associated temperature parameter based on the corresponding parameter position of the saturation pressure parameter in the preset saturation temperature interpolation table for pressure parameters; and determine the saturation physical property parameter based on the associated pressure parameter and the associated temperature parameter.
[0098] In an optional embodiment, the saturation physical property parameter determination unit includes: an associated parameter determination subunit, used to: determine the parameter position corresponding to the saturation pressure parameter in a preset saturation temperature interpolation table for pressure parameters to obtain the corresponding position of the pressure parameter; use the two pressure parameters adjacent to the corresponding position of the pressure parameter in the preset saturation temperature interpolation table as the associated pressure parameters; and use a preset number of temperature parameters adjacent to the corresponding position of the pressure parameter in the preset saturation temperature interpolation table as the associated temperature parameters.
[0099] In an optional embodiment, the saturation physical property parameter determination unit also includes: a saturation physical property parameter confirmation unit, which is used to: determine the target saturation temperature coefficient based on the associated pressure parameter, and determine the saturation temperature parameter according to the target saturation temperature coefficient and the associated temperature parameter; determine the reference temperature parameter and the associated physical property parameter according to the parameter position of the saturation temperature parameter in the preset saturation temperature interpolation table for temperature parameters; and determine the saturation physical property parameter according to the associated temperature parameter and the associated physical property parameter.
[0100] In an optional embodiment, the simulation data verification device also includes: a parameter adjustment module, which is used to: when the target physical property parameters do not meet the preset physical property judgment conditions or the parameter rationality verification result is an unreasonable verification result, adjust the input parameters to be verified, and use the adjusted parameters as new input parameters to be verified to restart the physical property determination step.
[0101] The simulation data verification device provided in the embodiment of the present invention can execute the simulation data verification method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0102] Figure 5 A schematic structural diagram of a computer device provided in an embodiment of the present invention. Figure 5 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The computer device 12 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention. The computer device 12 can be any terminal device with computing capabilities and can be configured in the simulation data verification device.
[0103] like Figure 5 As shown, computer device 12 is implemented as a general-purpose computing device. Components of computer device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 that connects various system components (including system memory 28 and processing unit 16).
[0104] The bus 18 may be one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0105] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0106] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 5 Not shown, often called a "hard drive"). Although Figure 5Not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
[0107] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0108] The computer device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may occur through an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. Figure 5 As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0109] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the simulation data verification method provided in the embodiment of the present invention, which includes:
[0110] Acquiring input parameters to be verified for a target thermal-hydraulic system; wherein the input parameters to be verified include: parameters in a liquid phase state and parameters in a gas phase state;
[0111] Determine target physical property parameters based on the input parameters to be verified and a preset physical property determination model; wherein the target physical property parameters are thermodynamic parameters exhibited under the environmental conditions corresponding to the input parameters to be verified; the target physical property parameters include a first physical property parameter corresponding to a liquid phase state and a second physical property parameter corresponding to a gas phase state, or the target physical property parameters include the first physical property parameter, the second physical property parameter, and a third physical property parameter under the condition that the liquid phase state and the gas phase state coexist;
[0112] In the case where the target physical property parameters meet the preset physical property judgment conditions, determining a model according to the target physical property parameters and a preset sound speed to obtain a target sound speed parameter;
[0113] Based on the target sound speed parameter, a parameter rationality verification result corresponding to the input parameter to be verified is determined.
[0114] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the simulation data verification method provided in any embodiment of the present invention is implemented, including:
[0115] Acquiring input parameters to be verified for a target thermal-hydraulic system; wherein the input parameters to be verified include: parameters in a liquid phase state and parameters in a gas phase state;
[0116] Determine target physical property parameters based on the input parameters to be verified and a preset physical property determination model; wherein the target physical property parameters are thermodynamic parameters exhibited under the environmental conditions corresponding to the input parameters to be verified; the target physical property parameters include a first physical property parameter corresponding to a liquid phase state and a second physical property parameter corresponding to a gas phase state, or the target physical property parameters include the first physical property parameter, the second physical property parameter, and a third physical property parameter under the condition that the liquid phase state and the gas phase state coexist;
[0117] In the case where the target physical property parameters meet the preset physical property judgment conditions, determining a model according to the target physical property parameters and a preset sound speed to obtain a target sound speed parameter;
[0118] Based on the target sound speed parameter, a parameter rationality verification result corresponding to the input parameter to be verified is determined.
[0119] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0120] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0121] Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0122] The computer program code for performing the operations of the present invention can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0123] Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using a general-purpose computing device. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computer device, which can then be stored in a storage device and executed by the computing device. Alternatively, they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
[0124] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions are possible for those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A simulation data verification method, characterized in that: include: Acquiring input parameters to be verified for a target thermal-hydraulic system; wherein the input parameters to be verified include: parameters in a liquid phase state and parameters in a gas phase state; Determine target physical property parameters based on the input parameters to be verified and a preset physical property determination model; wherein the target physical property parameters are thermodynamic parameters exhibited under the environmental conditions corresponding to the input parameters to be verified; the target physical property parameters include a first physical property parameter corresponding to a liquid phase state and a second physical property parameter corresponding to a gas phase state, or the target physical property parameters include the first physical property parameter, the second physical property parameter, and a third physical property parameter under the condition that the liquid phase state and the gas phase state coexist; In the case where the target physical property parameters meet the preset physical property judgment conditions, determining a model according to the target physical property parameters and a preset sound speed to obtain a target sound speed parameter; Determining a parameter rationality verification result corresponding to the input parameter to be verified based on the target sound speed parameter; Wherein, in a case where the target physical property parameter includes a first physical property parameter corresponding to a liquid phase state and a second physical property parameter corresponding to a gas phase state, determining the target physical property parameter according to the physical property corresponding to the input parameter to be verified includes: Determining a corresponding saturation pressure parameter according to the input parameter to be verified; Determining an associated pressure parameter and an associated temperature parameter according to a corresponding parameter position of the saturation pressure parameter in a preset saturation temperature interpolation table for pressure parameters; determining a target saturation temperature coefficient based on the associated pressure parameter, and determining a saturation temperature parameter based on the target saturation temperature coefficient and the associated temperature parameter; Determining a reference temperature parameter and associated physical property parameters according to a parameter position of the saturation temperature parameter in a preset saturation temperature interpolation table for temperature parameters; Determining a saturated physical property parameter according to the associated temperature parameter and the associated physical property parameter; The preset saturated physical property interpolation table is a correspondence table between saturated state parameters and saturated physical property parameters, and the saturated physical property parameters include: gas phase saturated physical properties and liquid phase saturated physical properties.
2. The method according to claim 1, characterized in that In a case where the target physical property parameters include a first physical property parameter, a second physical property parameter, and a third physical property parameter under the coexistence condition of the liquid phase and the gas phase, determining the target physical property parameters according to the physical properties corresponding to the input parameters to be verified includes: Determine the corresponding unsaturated state parameter according to the input parameter to be verified, and determine the unsaturated physical property parameter according to the unsaturated state parameter and a preset unsaturated physical property interpolation table; The preset unsaturated physical property interpolation table is a correspondence table between unsaturated state parameters and unsaturated physical property parameters, and the unsaturated physical property parameters include: unsaturated gas phase physical property parameters, unsaturated liquid phase physical property parameters and mixed phase physical property parameters.
3. The method according to claim 1, characterized in that The determining of the associated pressure parameter and the associated temperature parameter according to the corresponding parameter position of the saturated pressure parameter in the preset saturated temperature interpolation table for pressure parameters includes: Determine a parameter position corresponding to the saturation pressure parameter in a preset saturation temperature interpolation table for pressure parameters to obtain a corresponding position of the pressure parameter; using two pressure parameters adjacent to corresponding positions of the pressure parameters in the preset saturation temperature interpolation table as the associated pressure parameters; A preset number of temperature parameters adjacent to the corresponding position of the pressure parameter in the preset saturation temperature interpolation table are used as the associated temperature parameters.
4. The method according to claim 1, wherein The method further comprises: When the target physical property parameter does not meet the preset physical property judgment condition or the parameter rationality verification result is an unreasonable verification result, the input parameter to be verified is adjusted, and the adjusted parameter is used as the new input parameter to be verified to restart the physical property determination step.
5. A simulation data verification device, characterized in that: The device comprises: The module for obtaining input parameters to be verified is used to obtain input parameters to be verified about the target thermal hydraulic system; wherein the input parameters to be verified include: parameters in the liquid phase state and parameters in the gas phase state; a physical property parameter determination module, configured to determine target physical property parameters based on the input parameters to be verified and a preset physical property determination model; wherein the target physical property parameters are thermodynamic parameters exhibited under the environmental conditions corresponding to the input parameters to be verified; the target physical property parameters include a first physical property parameter corresponding to a liquid phase state and a second physical property parameter corresponding to a gas phase state, or the target physical property parameters include the first physical property parameter, the second physical property parameter, and a third physical property parameter under the condition that the liquid phase state and the gas phase state coexist; a sound velocity parameter determination module, configured to obtain a target sound velocity parameter based on the target physical property parameter and a preset sound velocity determination model when the target physical property parameter satisfies a preset physical property determination condition; A parameter rationality determination module is used to determine a parameter rationality verification result corresponding to the input parameter to be verified based on the target sound speed parameter; The physical property parameter determination module 320 includes a saturation state parameter determination submodule, which is used to: In a case where the target physical property parameter includes a first physical property parameter corresponding to a liquid phase state and a second physical property parameter corresponding to a gas phase state, determining a corresponding saturation pressure parameter according to the input parameter to be verified; Determining an associated pressure parameter and an associated temperature parameter according to a corresponding parameter position of the saturation pressure parameter in a preset saturation temperature interpolation table for pressure parameters; determining a target saturation temperature coefficient based on the associated pressure parameter, and determining a saturation temperature parameter based on the target saturation temperature coefficient and the associated temperature parameter; Determining a reference temperature parameter and associated physical property parameters according to a parameter position of the saturation temperature parameter in a preset saturation temperature interpolation table for temperature parameters; Determining a saturated physical property parameter according to the associated temperature parameter and the associated physical property parameter; The preset saturated physical property interpolation table is a correspondence table between saturated state parameters and saturated physical property parameters, and the saturated physical property parameters include: gas phase saturated physical properties and liquid phase saturated physical properties.
6. A computer device, characterized in that: The computer device comprises: one or more processors; a memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the simulation data verification method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the simulation data verification method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Probe for measuring parameters of a flowing fluid and / or multiphase mixture
CN1656360A