UDF-based improved phase change model numerical simulation method

By using UDF technology to update the improved phase change model of condensation coefficient and saturation temperature in CFD simulation, the problem that the phase change model in the existing technology is difficult to describe the coexistence characteristics of evaporation and condensation is solved, and the accurate simulation of the gravity heat pipe startup process is achieved. Efficient computing.

CN118657079APending Publication Date: 2024-09-17TIANJIN POLYTECHNIC UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410818349.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the existing evaporation and condensation CFD simulation research, the phase change model is difficult to adapt to the phase change heat transfer characteristics of evaporation and condensation coexistence, and the saturation temperature and physical property parameters are set to fixed values, which cannot accurately describe the startup process of the gravity heat pipe, affecting the calculation accuracy. .

Method used

The improved phase change model numerical simulation method based on UDF is used to update the condensation coefficient and saturation temperature through adaptive functions, and correct the physical parameters of the working fluid according to the current pressure and temperature field to achieve dynamic simulation of the phase change process.

Benefits of technology

The calculation accuracy is improved and can accurately reflect the phase change heat transfer characteristics of evaporation-condensation coexistence. It is suitable for simulating the startup process of gravity heat pipes and has high calculation accuracy and fast calculation speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657079A
    Figure CN118657079A
Patent Text Reader

Abstract

The invention discloses an improved phase change model numerical simulation method based on UDF. Comprising the following steps: S1, establishing an adaptive function aiming at a phase change heat transfer element by utilizing a UDF function of fluid simulation software; s2, geometric modeling and grid division are carried out, and a grid model of the phase change heat transfer element is obtained; s3, loading the adaptive function into fluid simulation software to obtain an improved phase change model; s4, setting boundary conditions and iterative simulation in fluid simulation software, and obtaining a numerical simulation result after iteration is finished; and S5, performing post-processing on the numerical simulation result by utilizing fluid simulation software to obtain a simulated heat transfer effect, and analyzing or optimizing the phase change heat transfer performance of the to-be-simulated phase change heat transfer element according to the simulated heat transfer effect. The method has the characteristics of high calculation precision and high calculation speed, and is suitable for popularization and application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of gas-liquid two-phase flow numerical simulation, and in particular to a numerical simulation method that takes into account changes in condensation coefficient, saturation temperature and gaseous physical property parameters with pressure and temperature. Background Art

[0002] With the improvement of computer technology and the vigorous development of computational fluid dynamics (CFD) and numerical heat transfer, numerical simulation methods have become an important means of heat exchanger research. Through CFD technology, we can clearly understand the operating status of the calculation model under various working conditions. Many scholars have used numerical simulation methods to simulate the heat and mass transfer process when the working fluid in the gravity heat pipe undergoes phase change.

[0003] The Lee model is the main phase change model used in existing CFD simulation research on evaporation and condensation. It is difficult to adapt to the phase change heat transfer characteristics of evaporation and condensation coexisting in the model. Setting the saturation temperature as a constant value cannot accurately reflect the phase change law of the actual process of the model. In addition, during the startup of the model, the internal temperature and pressure gradually rise. At the same time, the corresponding physical parameters also change. Most current studies set the saturation temperature or physical parameters as constants, which is not conducive to describing the startup process of the gravity heat pipe, and thus affects the calculation accuracy.

[0004] Therefore, it is of great significance to study an improved phase change model that takes into account the dynamic adaptation of the condensation coefficient and the changes in physical parameters and saturation temperature. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention proposes an improved phase change model numerical simulation method based on UDF. The present invention improves the phase change model, corrects the condensation coefficient according to the evaporation mass of the liquid working fluid and the condensation mass of the gaseous working fluid at the current time step, corrects the saturation temperature and working fluid physical parameters according to the current pressure field and temperature field, and accurately obtains the temperature distribution in the model.

[0006] The present invention adopts the following technical solution:

[0007] The numerical simulation method comprises the following steps:

[0008] S1 Establishing an adaptive function for phase change heat transfer elements: Using the (UDF) function of the fluid simulation software, an adaptive function considering the condensation coefficient and saturation temperature is established for the phase change heat transfer element. The adaptive function is used to sequentially update the condensation coefficient during the iterative simulation and adjust the saturation temperature according to the current pressure.

[0009] Specifically, the adaptive functions considering the condensation coefficient and the saturation temperature for the phase change heat transfer element include a condensation coefficient adaptive function, a saturation temperature adaptive function and a gas phase density adaptive function.

[0010] The saturation temperature adaptability function is used to calculate the saturation temperature of the current cell at the current moment, specifically:

[0011]

[0012] Where: T sat is the saturation temperature of the current cell at the current moment, P is the pressure of the current cell at the current moment, A 1 is the saturation temperature fitting coefficient, A 2 is the saturation temperature fitting coefficient 2.

[0013] Furthermore, the saturation temperature T of the current cell at the current moment sat is the phase change criterion, which is used to determine whether there is a phase change process in the current cell. The phase change process includes evaporation process and condensation process. In the iterative solution process, the pressure of the current cell at the current moment is substituted into the saturation temperature adaptive function to obtain the saturation temperature T of the current cell at the current moment. sat At the current moment, if the liquid temperature in the current cell is higher than the saturation temperature T sat , the liquid phase working fluid in the cell is in the evaporation process; if the gas phase temperature in the current cell is lower than the saturation temperature T sat , the gas phase working fluid in this cell is in the condensation process.

[0014] The condensation coefficient adaptability function is used to update the condensation coefficient in time series, that is, to calculate the condensation coefficient at the next moment, specifically:

[0015]

[0016] In the formula, β c,new is the condensation coefficient at the next moment, β c,old is the condensation coefficient at the current moment, M E,total is the total liquid evaporation mass of all cells at the current moment, M C,tolal is the total gas condensation mass of all cells at the current moment, MAX(M E,total , M C,total ) is M E,total and M C,tolal The maximum value in .

[0017] Among them, the total liquid evaporation mass M of all cells at the current moment E,totalis the sum of the evaporation mass of the liquid phase working fluid of all cells in the grid model at the current moment. At the current moment, for the current cell, the calculation formula for the evaporation mass of the liquid phase working fluid of the cell is:

[0018]

[0019] Where M E is the evaporation mass of the liquid working fluid in the unit cell, β e is the evaporation coefficient, is the liquid volume fraction of the unit cell, ρ l is the liquid density of the unit cell, T l is the liquidus temperature of the cell, T sat is the saturation temperature of the current cell at the current moment; T l >T sat It means that the temperature of the current cell is greater than the saturation temperature of the current cell, and the liquid working medium in the current cell is in the evaporation process.

[0020] The total gas condensation mass M of all cells at the current moment C,tolal is the sum of the condensation mass of the gas phase working fluid of all cells in the grid model at the current moment; at the current moment, for the current cell, the calculation formula for the condensation mass of the gas phase working fluid of the cell is:

[0021]

[0022] Where M C is the gas phase working fluid condensation quality of the unit cell, β c is the condensation coefficient at the current moment, β c =β c,old , is the gas phase volume fraction of the unit cell, ρ v is the gas phase density of the current cell at the current moment, T v is the gas phase temperature of the cell, T sat is the saturation temperature of the current cell at the current moment, T v <T sat It means that the temperature of the current cell is lower than the saturation temperature of the current cell, and the gas phase working medium in the current cell is in the condensation process.

[0023] During the iterative solution process, the evaporation coefficient β e Always keep the preset initial value. Condensation coefficient β c Update according to the time sequence.

[0024] The gas phase density adaptability function is used to calculate the gas phase density of the current cell at the current moment, specifically:

[0025] ρv =A 3 ·T v +A 4 ·P v +A 5 ·P v ·T v +A 6 ·T v 2 +A 7 ·T v 3

[0026] In the formula, p v is the gas phase density of the unit cell, T v is the gas phase temperature of the cell, P v is the gas phase pressure of the cell, A 3 is the gas phase density fitting coefficient, A 4 A is the gas phase density fitting coefficient 5 A is the gas phase density fitting coefficient 6 A is the gas phase density fitting coefficient 7 is the gas phase density fitting coefficient five.

[0027] S2 Geometric modeling and meshing: Acquire characteristic parameters of the phase change heat transfer element to be simulated, and establish a geometric model of the phase change heat transfer element to be simulated based on the acquired characteristic parameters. After meshing the geometric model to obtain the mesh model of the phase change heat transfer element to be simulated, import the mesh model into the fluid simulation software to prepare for numerical simulation.

[0028] Specifically, the phase change heat transfer element to be simulated is a heat pipe, preferably a gravity heat pipe, the material of the gravity heat pipe is copper, the characteristic parameters of the phase change heat transfer element to be simulated include the outer diameter, wall thickness, evaporation section length, insulation section length and condensation section length of the heat pipe, and the geometric model is a two-dimensional model.

[0029] S3 obtains an improved phase change model: a working fluid material is selected, the working fluid material is filled inside the phase change heat transfer element to be simulated, the phase change heat transfer element to be simulated transfers heat through the phase change of the working fluid material between the gas and liquid phases, after determining the fitting coefficients of the adaptive function established in step S1 according to the thermophysical properties of the working fluid material, the adaptive function corresponding to the working fluid material is loaded into the fluid simulation software, and multiple physical property parameters of the working fluid material are set to change with temperature according to the thermophysical properties of the working fluid material, so as to obtain an improved phase change model.

[0030] Specifically, the working fluid material is water or 1,1,1,2-tetrafluoroethane (R134a).

[0031] Specifically, the multiple physical property parameters include liquid density, specific heat capacity and thermal conductivity.

[0032] Specifically, the thermophysical properties of the working fluid material include the saturation temperature of the working fluid material at different pressures, and the liquid phase density, specific heat capacity and thermal conductivity of the working fluid material at different temperatures.

[0033] The step S3 is specifically as follows:

[0034] S3.1 Initialize the multiphase flow model: In the fluid simulation software, set the multiphase flow model to the VOF multiphase flow model, set the flow model to laminar flow, turn on the energy equation, and set the number of user-defined memories (UDM) to two.

[0035] S3.2 Determine the fitting coefficients in the adaptive function: Select the working fluid material, use the physical property query tool or experimental measurement to obtain the saturation temperature of the working fluid material at different pressures, the gas phase density of the working fluid material at different pressures and temperatures, and then obtain the values ​​of the saturation temperature fitting coefficients in the saturation temperature adaptive function and the values ​​of the gas phase density fitting coefficients in the gas phase density adaptive function through fitting. Then, input the values ​​of the saturation temperature fitting coefficients and the gas phase density fitting coefficients into the adaptive function, and obtain the adaptive function corresponding to the working fluid material. Load the adaptive function corresponding to the working fluid material into the fluid simulation software. The fitting process is specifically as follows:

[0036] The pressure and the corresponding saturation temperature and the saturation temperature adaptive function are input into the data processing software, and the data processing software fits the pressure and the corresponding saturation temperature according to the saturation temperature adaptive function; alternatively, the pressure, temperature and the corresponding gas phase density and the gas phase density adaptive function are input into the data processing software, and the data processing software fits the pressure, temperature and the corresponding gas phase density according to the gas phase density adaptive function.

[0037] S3.3 Set multiple physical property parameters of the working fluid material to change with temperature: Use physical property query tools or experimental measurements to obtain the values ​​of multiple physical property parameters of the working fluid material at different temperatures, input the temperature and the corresponding physical property parameters into the data processing software respectively, and use the data processing software to fit to obtain the fitting curve formula between the various physical property parameters of the working fluid material and the temperature, and input the fitting curve formula between each physical property parameter and the temperature into the fluid simulation software through the interface corresponding to each physical property parameter to obtain an improved phase change model.

[0038] S4 Setting boundary conditions and iterative simulation: After setting boundary conditions in the fluid simulation software, the fluid simulation software iteratively simulates the phase change process in the phase change heat transfer element to be simulated based on the improved phase change model. After iterating until convergence or reaching a preset number of iterations, the iterative simulation ends and the numerical simulation result of the phase change process in the phase change heat transfer element to be simulated is obtained.

[0039] Specifically, the boundary conditions include temperature observation points, heat flux density, convective heat transfer coefficient and initial conditions; the initial conditions include initial gas phase temperature, initial liquid phase temperature, initial gas phase volume fraction, initial liquid phase volume fraction, initial evaporation coefficient and initial condensation coefficient, and the initial evaporation coefficient and initial condensation coefficient are both set to 0.1. Specifically, convergence means that the residual values ​​of all physical quantities reach the preset threshold, and the difference between the monitored physical quantities at two adjacent moments does not exceed the corresponding preset convergence threshold. In an embodiment of the present invention, the monitored physical quantity is temperature, and the preset convergence threshold corresponding to the temperature is 0.1K, that is, when the temperature changes by no more than 0.1K within 10 minutes, the temperature reaches a stable state.

[0040] S5 Post-processing: Use the post-processing tools in the fluid simulation software to post-process the numerical simulation results to obtain the simulated heat transfer effect, and analyze or optimize the heat dissipation performance of the simulated phase change heat transfer element based on the simulated heat transfer effect.

[0041] Specifically, the post-processing process is used to analyze or visualize the numerical simulation results.

[0042] Specifically, the simulated heat transfer effect includes the flow field characteristic distribution diagram of the heat pipe, the gas phase volume fraction or liquid phase volume fraction distribution diagram and the dynamic evolution process of the gas-liquid two-phase.

[0043] Specifically, the optimization specifically refers to: changing the operating parameters (such as characteristic parameters, boundary conditions, working fluid materials, etc. of the phase change heat transfer element to be simulated), re-establishing the geometric model of the phase change heat transfer element to be simulated, and simulating again according to the above steps until the heat transfer performance is optimal, thereby optimizing the process parameters of the phase change heat transfer element to be simulated.

[0044] The beneficial effects of the present invention are:

[0045] (1) The numerical simulation method provided by the present invention takes into account the change of the condensation coefficient with the evaporation and condensation mass, the change of the saturation temperature and gas phase density with temperature and pressure, and the change of multiple physical properties with temperature during the phase change process. The calculation results of the pressure field and temperature field are coordinated with the physical property parameters, and the calculation accuracy is high.

[0046] (2) The improved phase change model provided by the present invention can adapt to the phase change heat transfer characteristics of evaporation-condensation coexistence in the model, accurately reflect the phase change law of the actual process of the model, has the characteristics of high calculation accuracy and fast calculation speed, and is suitable for popularization and application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic diagram of the flow chart of the numerical simulation method of the present invention;

[0048] Figure 2 is a curve showing the relationship between the liquid phase density and the temperature of the liquid phase working fluid material R134a in Example 1 of the present invention;

[0049] Figure 3 is a curve showing the relationship between the specific heat capacity and temperature of the liquid working fluid material R134a in Example 1 of the present invention;

[0050] Figure 4 is a curve showing the relationship between the thermal conductivity and temperature of the liquid working fluid material R134a in Example 1 of the present invention;

[0051] Figure 5 is a fitting curve of the gas phase density of the gas phase working fluid material R134a in Example 1 of the present invention as a function of temperature and pressure;

[0052] Figure 6 is a fitting curve of the saturation temperature of the working fluid material R134a as a function of pressure in Example 1 of the present invention;

[0053] Figure 7 It is a curve showing the time series update of the condensation coefficient during the iterative solution process of Example 1 of the present invention.

[0054] Figure 8 This is the temperature distribution result obtained after iterative solution for 30 seconds in Example 1 of the present invention. DETAILED DESCRIPTION

[0055] The following will provide a detailed and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. The embodiments described in conjunction with the accompanying drawings are only exemplary descriptions of the present invention and cannot be interpreted as limiting the present invention.

[0056] The object of the method of the present invention is a phase change heat transfer element. The method of the present invention uses the UDF function of the fluid simulation software to realize that in the simulation process, the total evaporation mass of the liquid working fluid and the total condensation mass of the gaseous working fluid in the previous time step are used to jointly update the condensation coefficient of the next time step. The distribution characteristics of temperature and pressure are obtained by using UDF, and the influence of the working fluid gas phase density on temperature and pressure is considered; the heat and mass balance of the heat pipe startup process is promoted by optimizing the condensation coefficient. The saturation temperature of the working fluid material is used as the phase change criterion and the change of the physical parameters of the working fluid material with temperature is considered to obtain a more reasonable saturation temperature, which is conducive to describing the phase change heat transfer element, especially the startup process of the gravity heat pipe.

[0057] The specific embodiments of the present invention are as follows:

[0058] Example 1

[0059] In this embodiment, the phase change heat transfer element to be simulated is a copper-R134a gravity heat pipe. The numerical simulation method provided by the present invention is as follows: Figure 1 As shown, the specific steps include:

[0060] S1 Establish an adaptive function for phase change heat transfer elements: Use the (UDF) function of Fluent software to establish an adaptive function for copper-R134a gravity heat pipe that takes into account the condensation coefficient and saturation temperature. The adaptive function is used to update the condensation coefficient in a timely manner during the iterative simulation and adjust the saturation temperature according to the current pressure;

[0061] The adaptive functions considering the condensation coefficient and the saturation temperature for the copper-R134a gravity heat pipe include a condensation coefficient adaptive function, a saturation temperature adaptive function and a gas phase density adaptive function.

[0062] The saturation temperature adaptability function is used to calculate the saturation temperature of the current cell at the current moment. The saturation temperature T of the current cell at the current moment sat is the phase change criterion, which is used to determine whether there is a phase change process in the current cell. The saturation temperature adaptability function is specifically:

[0063]

[0064] Where: T sat is the saturation temperature of the current cell at the current moment, P is the pressure of the current cell at the current moment, A 1 is the saturation temperature fitting coefficient, A 2 is the saturation temperature fitting coefficient 2.

[0065] To determine whether there is a phase change process in the current cell, specifically: at the current moment, if the liquid temperature in the current cell is higher than the saturation temperature Tsat , the liquid phase working fluid in this cell is in the evaporation process; if the gas phase temperature in the current cell is lower than the saturation temperature T sat , the gas phase working fluid in this cell is in the condensation process.

[0066] During the iterative solution process, the evaporation coefficient β of the cell e Always keep the preset initial value. The condensation coefficient β of the unit cell c Update according to the time sequence.

[0067] The adaptive function of the condensation coefficient is used to update the condensation coefficient in time series, that is, to calculate the condensation coefficient at the next moment, specifically:

[0068]

[0069] In the formula, β c,new is the condensation coefficient at the next moment, β c,old is the condensation coefficient at the current moment, M E,total is the total liquid evaporation mass of all cells at the current moment, M C,tolal is the total gas condensation mass of all cells at the current moment, MAX(M E,total , M C,total ) is M E,total and M C,tolal The maximum value in .

[0070] Among them, the total liquid evaporation mass M of all cells at the current moment E,total is the liquid-phase working fluid evaporation mass of the cells in the grid model at the current moment, and is the sum of the liquid-phase working fluid evaporation mass of all cells. At the current moment, for the current cell, the calculation formula for the liquid-phase working fluid evaporation mass of the cell is:

[0071]

[0072] Where M E is the evaporation mass of the liquid working fluid in the unit cell, β e is the evaporation coefficient, is the liquid volume fraction of the unit cell, ρ l is the liquid density of the unit cell, T l is the liquidus temperature of the cell, T sat is the saturation temperature of the current cell at the current moment; T l >T sat It means that the temperature of the current cell is greater than the saturation temperature of the current cell, and the liquid working medium in the current cell is in the evaporation process.

[0073] Among them, the total gas condensation mass M of all cells at the current moment C,tolalis the sum of the condensation mass of the gas phase working fluid of all cells in the grid model at the current moment; at the current moment, for the current cell, the calculation formula for the condensation mass of the gas phase working fluid of the cell is:

[0074]

[0075] Where M C is the gas phase working fluid condensation quality of the unit cell, β c is the condensation coefficient at the current moment, β c =β c,old , is the gas phase volume fraction of the unit cell, ρ v is the gas phase density of the current cell at the current moment, T v is the gas phase temperature of the cell, T sat is the saturation temperature of the current cell at the current moment, T v <T sat It means that the temperature of the current cell is lower than the saturation temperature of the current cell, and the gas phase working medium in the current cell is in the condensation process.

[0076] Among them, the gas phase density adaptability function is used to calculate the gas phase density of the current cell at the current moment, specifically:

[0077] ρ v =A 3 ·T v +A 4 ·P v +A 5 ·P v ·T v +A 6 ·T v 2 +A 7 ·T v 3

[0078] In the formula, ρ v is the gas phase density of the current cell at the current moment, T v is the gas phase temperature of the cell, P v is the gas phase pressure of the cell, A 3 is the gas phase density fitting coefficient, A 4 A is the gas phase density fitting coefficient 5 A is the gas phase density fitting coefficient 6 A is the gas phase density fitting coefficient 7 is the gas phase density fitting coefficient five.

[0079] Step S1 specifically includes the following steps:

[0080] S1.1 The process of establishing the adaptive function of condensation coefficient using the user-defined function (UDF) is as follows:

[0081] Initialization: In the MASS_TRANSFER macro of the UDF, the evaporated mass β e and condensation quality β c The initial values ​​are all set to 0.1; through the UDM (User-Defined Memory) function, UDM1 and UDM2 are respectively set to: at the current moment, they are used to store the evaporation mass of the liquid working fluid of each cell and to store the condensation mass of the gas working fluid of each cell.

[0082] According to the total liquid evaporation mass of all cells and the total gas condensation mass of all cells at the current moment, the condensation coefficient of the next moment is updated: at the current moment, the EXECUTE_AT_END macro is used to traverse each cell in the grid model through the thread_loop_c macro and begin_c_loop macro in the RP_NODE calculation node. During the traversal process, the solver in the Fluent software solves each cell in turn. The liquid working fluid evaporation mass of each cell is stored in the phase pointer of UDM1, and the gas phase working fluid condensation mass of each cell is stored in the phase pointer of UDM2. After the traversal, the data in UDM1 and UDM2 are taken, and the liquid working fluid evaporation mass and gas phase working fluid condensation mass of all cells are accumulated respectively to obtain the total liquid evaporation mass of all cells at the current moment and the total gas phase condensation mass of all cells at the current moment. The PRF_GRSUM1 macro is used to summarize the data of all RP_NODE calculation nodes, and the condensation coefficient of the next moment is calculated based on the condensation coefficient adaptive function, and the condensation coefficient is updated. After the calculation of the current moment is completed, the data of the RP_NODE computing node is transferred to the RP_HOST computing node using node_to_host_real_num. Finally, the required parameters are output using the Message statement to complete the visualization of the parameters.

[0083] S1.2 The process of establishing the saturation temperature adaptive function using the user defined function (UDF) is as follows:

[0084] Update the saturation temperature of the current cell according to the cell pressure value of the current cell at the current moment: In the MASS_TRANSFER macro in the UDF function, use the C_P(c, t) macro to obtain the cell pressure value of the current cell at the current moment, and substitute it into the saturation temperature adaptive function to calculate the cell saturation temperature of the current cell at the current moment.

[0085] S1.3 The process of establishing the gas phase density adaptive function using the user defined function (UDF) is as follows:

[0086] Update the gas density of the current cell according to the gas pressure value and cell temperature of the current cell at the current moment: In the PROPERTY macro in the UDF function, use the C_P(c, t) macro to obtain the gas pressure of the current cell at the current moment, and use the C_T(c, t) macro to obtain the gas temperature of the current cell at the current moment, and substitute them into the gas density adaptive function respectively, and then calculate the cell gas density of the current cell at the current moment.

[0087] S2 Geometric modeling and meshing: Obtain the characteristic parameters of the copper-R134a gravity heat pipe, and establish a two-dimensional geometric model of the copper-R134a gravity heat pipe based on the obtained characteristic parameters. After meshing the geometric model to obtain the mesh model of the copper-R134a gravity heat pipe, import the mesh model into the Fluent software to prepare for numerical simulation.

[0088] Step S2 is specifically as follows:

[0089] S2.1 Establish a two-dimensional simulation model of the copper-R134a gravity heat pipe, the two-dimensional simulation model includes a solid pipe wall and a gas-liquid flow field, and determine relevant characteristic parameters, wherein the characteristic parameters include the heat pipe outer diameter, wall thickness, evaporation section length, insulation section length and condensation section length.

[0090] S2.2 imports the two-dimensional simulation model into the meshing software, sets the mesh parameters, divides the structured mesh, and obtains the mesh file; the meshing software may be mesh, icem, gambit and other software, and the mesh parameters include mesh size, boundary layer, mesh quality and other parameters.

[0091] S2.3 Import the grid file into Fluent software.

[0092] S3 obtains an improved phase change model: In this embodiment, the working fluid material is 1,1,1,2-tetrafluoroethane (R134a). R134a is filled in the interior of the gravity heat pipe to be simulated, and the gravity heat pipe to be simulated transfers heat through the phase change of R134a between the gas and liquid phases. After determining the fitting coefficients of the adaptive function established in step S1 according to the thermophysical properties of R134a, the adaptive function corresponding to R134a is loaded into the Fluent software, and the multiple physical property parameters of R134a are set to change with temperature according to the thermophysical properties of R134a, and an improved phase change model is obtained.

[0093] Step S3 is specifically as follows:

[0094] S3.1 Initialize the multiphase flow model: In the Fluent software, set the multiphase flow model to the VOF multiphase flow model, set the flow model to laminar flow, turn on the energy equation, and set the number of user-defined memories (UDM) to two;

[0095] S3.2 Determine the fitting coefficients of each item in the adaptive function. Specifically:

[0096] Saturation temperature fitting coefficient: Use REFPROP software to query the data of the saturation temperature of R134a changing with pressure, use Origin software to generate a scatter plot, fit the scatter plot according to the saturation temperature adaptive function to obtain the saturation temperature fitting curve, and determine the values ​​of saturation temperature fitting coefficient 1 and saturation temperature fitting coefficient 2 according to the saturation temperature fitting curve; the saturation temperature fitting curve is as follows: Figure 6 As shown;

[0097] Gas phase density fitting coefficient: Use REFPROP software to query the density data of R134a at different pressures and temperatures, use Origin software to generate a 3D scatter plot, and obtain the gas phase density fitting curve after surface fitting the 3D scatter plot according to the gas phase density adaptive function. According to the gas phase density fitting curve, the values ​​of gas phase density fitting coefficient 1, gas phase density fitting coefficient 2, gas phase density fitting coefficient 3, gas phase density fitting coefficient 4 and gas phase density fitting coefficient 5 are determined. The gas phase density fitting curve is as follows: Figure 5 As shown;

[0098] The values ​​of the saturation temperature fitting coefficient and the values ​​of the gas phase density fitting coefficient are respectively input into the saturation temperature adaptive function and the gas phase density adaptive function to obtain the adaptive function corresponding to R134a.

[0099] Load the adaptability function corresponding to R134a into the Fluent software: compile and load the written C language source file in the Fluent software, the Fluent software generates an executable environment for the UDF code, and creates a data connection with the solver in the Fluent software.

[0100] S3.3 sets multiple physical parameters of R134a to change with temperature. Multiple physical parameters include liquid density, specific heat capacity and thermal conductivity. Specifically:

[0101] Use REFPROP software to query the liquid density, specific heat capacity and thermal conductivity of R134a at different temperatures, use Origin software to fit the fitting curves of various physical parameters changing with temperature, and input the fitting curves of various physical parameters into the corresponding interface of Fluent. The fitting curve of liquid density is as follows: Figure 2 As shown, Figure 2 is the relationship curve between the liquid phase density and temperature of R134a. The fitting curve of specific heat capacity is as follows Figure 3 As shown, Figure 3 The relationship curve between the specific heat capacity and temperature of R134a is shown in Figure 2. The fitting curve of thermal conductivity is shown in Figure 2 Figure 4 As shown, Figure 4 This is the relationship curve between the thermal conductivity of R134a and temperature.

[0102] S4 sets boundary conditions: Set boundary conditions and solution algorithms in Fluent software. Boundary conditions include temperature observation points, heat flux density, and convective heat transfer coefficient. Initial conditions include initial gas phase temperature, initial liquid phase temperature, initial gas phase volume fraction, initial liquid phase volume fraction, initial evaporation coefficient, initial condensation coefficient, and time step, etc. In this embodiment, the initial evaporation coefficient and initial condensation coefficient are both set to 0.1, and the time step is set to an adaptive step.

[0103] Iterative simulation: Fluent software was used to iteratively simulate the phase change process in the copper-R134a gravity heat pipe based on the improved phase change model. After the temperature reached stability, the overall coupled field calculation reached convergence and the numerical simulation results were obtained.

[0104] The temperature reaches stability specifically means that the temperature change within 10 minutes does not exceed 0.1 K. The numerical simulation results include the evaporation section temperature, adiabatic section temperature, condensation section temperature, fluid temperature field, pressure field, gas phase volume cloud map, etc.

[0105] S5 uses the post-processing tools in Fluent software to post-process the numerical simulation results to obtain the simulated heat transfer effect, and analyzes or optimizes the phase change heat transfer performance of the simulated copper-R134a gravity heat pipe according to the simulated heat transfer effect.

[0106] Among them, the numerical simulation results are post-processed using tools such as cloud maps, vector maps, streamline maps, and curve maps in Fluent software. The post-processing process is used to realize the analysis or visualization of the numerical simulation results. The simulated heat transfer effects include the flow field characteristic distribution map of the heat pipe (pressure, temperature), the gas-liquid two-phase distribution characteristics (gas phase volume fraction or liquid phase volume fraction distribution map), and the dynamic evolution process of the gas-liquid two-phase.

[0107] The numerical simulation results and simulated heat transfer effects obtained in this embodiment are as follows Figure 7 and Figure 8 shown.

[0108] Figure 7 This is a curve showing the time-series update of the condensation coefficient during the iterative solution process of this embodiment.

[0109] Figure 8This is a schematic diagram of the temperature distribution result obtained after iterative solution for 30 seconds in this embodiment.

[0110] Example 2

[0111] This embodiment uses this method to perform numerical simulation (simulation value) on the copper-water gravity heat pipe. In addition, this embodiment also simulates the same system under the condition of only considering the changes in the condensation coefficient and the saturation temperature, without considering the physical properties of the gaseous working fluid (comparison value). The following table shows the numerical simulation results of the copper-water gravity heat pipe with phase change working fluid, where the simulation value is the simulation result obtained by this method, and the comparison value is the simulation result obtained without considering the physical properties of the gaseous working fluid.

[0112] Under the working condition of 172.87W, compared with the simulation results without considering the physical properties of the gaseous working fluid, the R of the heat pipe evaporation section and condensation section simulated by this method is E They decreased by 0.48% and 0.86% respectively.

[0113] It can be seen that the simulation accuracy of the temperature field can be further improved by improving the phase change model.

[0114]

[0115] The above is only a specific embodiment of the present invention, and these embodiments are only examples of the principles and applications of the present invention. Therefore, many modifications can be made to the exemplary embodiments, and other arrangements can be designed without departing from the spirit and scope of the present invention defined by the appended claims.

Claims

1. A numerical simulation method for an improved phase change model based on UDF, characterized in that: The numerical simulation method comprises the following steps: S1 Establishing an adaptive function for phase change heat transfer elements: using the function of fluid simulation software, establishing an adaptive function for phase change heat transfer elements that takes into account the condensation coefficient and saturation temperature; S2 Geometric modeling and meshing: Acquire characteristic parameters of the phase change heat transfer element to be simulated, and establish a geometric model of the phase change heat transfer element to be simulated according to the acquired characteristic parameters. After meshing the geometric model to obtain a mesh model of the phase change heat transfer element to be simulated, the mesh model is imported into the fluid simulation software; S3 obtains an improved phase change model: selects a working fluid material, determines the fitting coefficients of the adaptive function established in step S1 according to the thermophysical properties of the working fluid material, loads the adaptive function into the fluid simulation software, sets the physical property parameters of the working fluid material to change with temperature, and obtains an improved phase change model; S4 setting boundary conditions and iterative simulation: after setting boundary conditions in the fluid simulation software, the fluid simulation software iteratively simulates the phase change process in the phase change heat transfer element to be simulated based on the improved phase change model. After iterating until convergence or reaching a preset number of iterations, the iterative simulation ends and the numerical simulation result of the phase change process is obtained; S5 Post-processing: Use the post-processing tools in the fluid simulation software to post-process the numerical simulation results to obtain the simulated heat transfer effect, and analyze or optimize the heat dissipation performance of the simulated phase change heat transfer element based on the simulated heat transfer effect.

2. The improved phase change model numerical simulation method based on UDF according to claim 1, characterized in that: In step S1, the adaptive functions considering the condensation coefficient and the saturation temperature of the phase change heat transfer element include a condensation coefficient adaptive function, a saturation temperature adaptive function and a gas phase density adaptive function.

3. The improved phase change model numerical simulation method based on UDF according to claim 2 is characterized in that: The saturation temperature adaptability function is used to calculate the saturation temperature of the current cell at the current moment, specifically: Where: T sat is the saturation temperature of the current cell, P is the pressure of the current cell, A1 is the saturation temperature fitting coefficient one, and A2 is the saturation temperature fitting coefficient two.

4. The improved phase change model numerical simulation method based on UDF according to claim 2 is characterized in that: The condensation coefficient adaptive function is used to calculate the condensation coefficient at the next moment, specifically: In the formula, β c,ncw is the condensation coefficient at the next moment, β c,old is the condensation coefficient at the current moment, M E,total is the total liquid evaporation mass of all cells at the current moment, M C,tolal is the total gas condensation mass of all cells at the current moment, MAX(M E,total , M C,total ) is M E,total and M C,tolal The maximum value in ; The total liquid evaporation mass M of all cells at the current moment E,total is the sum of the evaporation mass of the liquid phase working fluid of all cells in the grid model at the current moment. The calculation formula of the evaporation mass of the liquid phase working fluid of the cell is: Where M E is the evaporation mass of the liquid working fluid in the unit cell, βc is the evaporation coefficient, is the liquid volume fraction of the unit cell, ρ l is the liquid density of the unit cell, T l is the liquidus temperature of the cell, T sat is the saturation temperature of the current cell; The total gas condensation mass M of all cells at the current moment C,tolal is the sum of the condensation mass of the gas phase working fluid in all cells in the grid model at the current moment; the calculation formula of the condensation mass of the gas phase working fluid in the cell is: Where M C is the gas phase working fluid condensation quality of the unit cell, β c is the condensation coefficient at the current moment, is the gas phase volume fraction of the unit cell, ρ v is the gas phase density of the unit cell, T v is the gas phase temperature of the cell, T sat is the saturation temperature of the current cell.

5. The improved phase change model numerical simulation method based on UDF according to claim 2, characterized in that: The gas phase density adaptability function is used to calculate the gas phase density of the current cell at the current moment, specifically: ρ v =A3·T v +A4·P v +A5·P v ·T v +A6·T v 2 +A7·T v 3 In the formula, ρ v is the gas phase density of the unit cell, T v is the gas phase temperature of the cell, P v is the gas phase pressure of the unit cell, A3 is the gas phase density fitting coefficient 1, A4 is the gas phase density fitting coefficient 2, A5 is the gas phase density fitting coefficient 3, A6 is the gas phase density fitting coefficient 4, and A7 is the gas phase density fitting coefficient 5.

6. The improved phase change model numerical simulation method based on UDF according to claim 1, characterized in that: In step S2, the phase change heat transfer element to be simulated is a heat pipe, and the characteristic parameters of the phase change heat transfer element to be simulated include the outer diameter, wall thickness, evaporation section length, insulation section length and condensation section length of the heat pipe, and the geometric model is a two-dimensional model.

7. The improved phase change model numerical simulation method based on UDF according to claim 2 is characterized in that: The step S3 is specifically as follows: S3.1 Initialize the multiphase flow model: In the fluid simulation software, set the multiphase flow model to the VOF multiphase flow model, set the flow model to laminar flow, and turn on the energy equation; S3.2 Determine the fitting coefficients in the adaptive function: Select the working fluid material, use the physical property query tool or experimental measurement to obtain the saturation temperature of the working fluid material at different pressures, the gas phase density of the working fluid material at different pressures and temperatures, and then obtain the values ​​of the saturation temperature fitting coefficients and the values ​​of the gas phase density fitting coefficients through fitting, and then load the adaptive function into the fluid simulation software; The fitting process is specifically as follows: inputting the pressure and the corresponding saturation temperature and the saturation temperature adaptive function into the data processing software, and the data processing software fits the pressure and the corresponding saturation temperature according to the saturation temperature adaptive function; or inputting the pressure, temperature and the corresponding gas phase density and the gas phase density adaptive function into the data processing software, and the data processing software fits the pressure, temperature and the corresponding gas phase density according to the gas phase density adaptive function; S3.3 Set the physical properties of the working fluid material to change with temperature: use physical property query tools or experimental measurements to obtain the values ​​of multiple physical properties of the working fluid material at different temperatures, input the temperature and the corresponding physical properties into the data processing software respectively, and use the data processing software to fit to obtain the fitting curve formula between the various physical properties of the working fluid material and the temperature, and input the fitting curve formula between each physical property parameter and the temperature into the fluid simulation software through the interface corresponding to each physical property parameter to obtain an improved phase change model; multiple physical property parameters include liquid density, specific heat capacity and thermal conductivity.

8. The improved phase change model numerical simulation method based on UDF according to claim 7, characterized in that: The working fluid material is water or 1,1,1,2-tetrafluoroethane.

9. The improved phase change model numerical simulation method based on UDF according to claim 1, characterized in that: In the step S4, the boundary conditions include temperature observation points, heat flux density, convective heat transfer coefficient and initial conditions; the initial conditions include initial gas phase temperature, initial liquid phase temperature, initial gas phase volume fraction, initial liquid phase volume fraction, initial evaporation coefficient and initial condensation coefficient, and the initial evaporation coefficient and initial condensation coefficient are both set to 0.1; in the step S4, iterating to convergence specifically means that the temperature change within 10 minutes is less than or equal to 0.1K.

10. The improved phase change model numerical simulation method based on UDF according to claim 1, characterized in that: In the step S5, the simulated heat transfer effect includes the flow field characteristic distribution diagram of the heat pipe, the gas phase volume fraction or liquid phase volume fraction distribution diagram and the gas-liquid two-phase dynamic evolution process.

Citation Information

Cited By

  • Non-azeotropic mixed working medium condensation numerical calculation method based on gas-liquid phase equilibrium

    CN121706635A