Turbine numerical calculation method based on SPH kernel function

By improving the design of the kernel function and optimizing the parameter combination, the problem of insufficient simulation accuracy and computational efficiency of the SPH method in industrial turbine design is solved, higher numerical stability and computational efficiency are achieved, and flow characteristics and energy conservation are ensured. Accurate description.

CN118569137APending Publication Date: 2024-08-30ZHEJIANG SCI-TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410780289.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing SPH method has problems of insufficient simulation accuracy and computational efficiency in industrial turbine design, especially when dealing with complex fluid problems, it is difficult to ensure numerical stability and energy conservation.

Method used

By improving the design of the kernel function, using a two-parameter polynomial kernel function and optimizing the combination of parameters α and β to meet the normalization conditions and improve the accuracy and robustness of the kernel function, higher numerical stability can be achieved in the SPH method. and computational efficiency.

Benefits of technology

The improved kernel function allows the use of larger time steps in turbine fluid calculations, improves computational efficiency and convergence speed, reduces numerical oscillations and error propagation, ensures accurate description of flow characteristics near boundaries and energy conservation, and provides A more reliable numerical simulation tool.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569137A
    Figure CN118569137A
Patent Text Reader

Abstract

The invention relates to a turbine numerical calculation method based on an SPH kernel function, belongs to the technical field of industrial turbines, and comprises the steps of improving the kernel function representing a particle action relation, optimizing parameter combinations alpha and beta and improving the turbine fluid calculation precision under an SPH overall control equation theoretical architecture. The form of the two-parameter polynomial kernel function for industrial turbine analogue simulation is as follows: # imgabs0 # I (alpha, beta) is a normalized constant determined by the following integral formula: # imgabs1 # improved kernel function allows a larger time step length to be adopted in turbine fluid calculation, so that the calculation efficiency and the convergence speed are improved. By optimizing the combination of the parameters alpha and beta, the numerical stability in the turbine fluid calculation process is improved, and numerical oscillation and error propagation are reduced. The description capability of the SPH method on fluid dynamic behaviors is enhanced, the calculation efficiency of simulation can be improved, and a more reliable numerical simulation tool is provided for solving the complex fluid problem in industrial turbine design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of industrial turbines, and in particular to a turbine numerical calculation method based on an SPH kernel function. Background Art

[0002] Industrial turbine design is a complex field involving multidisciplinary knowledge such as fluid mechanics, thermodynamics and structural mechanics. Its goal is to design turbine mechanical systems with high efficiency and stable performance, such as turbines, turbogenerators, etc. Fluid simulation plays a vital role in turbine design. It can help engineers predict the motion behavior of fluids, optimize flow field structures, evaluate system performance, etc., thereby guiding the design process and improving product quality.

[0003] SPH stands for Smoothed Particle Hydrodynamics. The SPH method is a meshless-based fluid dynamics simulation method that simulates the motion behavior of the fluid by discretizing the fluid continuum into a series of particles and applying kernel functions between the particles.

[0004] In industrial turbine design, accurate fluid dynamics simulation is crucial for the evaluation and optimization of system performance, and the selection and application of kernel functions directly affect the simulation accuracy and computational efficiency of the SPH method. The SPH method is a gridless particle method used to simulate continuous media, especially fluids. This method represents the fluid through a set of discrete particles, each of which carries physical quantities such as mass, velocity, and density. The role of kernel functions: Kernel functions are used in the SPH method to smooth and distribute the properties of particles to achieve reconstruction of continuous fields. Summary of the invention

[0005] The present invention mainly solves the deficiencies in the prior art and provides a turbine numerical calculation method based on the SPH kernel function. The improved kernel function is intended to make its integral value in a specific interval closer to the expected value, thereby improving the accuracy of the simulation results. It not only enhances the ability of the SPH method to describe fluid dynamics behavior, but also improves the computational efficiency of the simulation, providing a more reliable numerical simulation tool for solving complex fluid problems in industrial turbine design.

[0006] The above technical problems of the present invention are mainly solved by the following technical solutions:

[0007] A turbine numerical calculation method based on SPH kernel function includes the following steps:

[0008] Step 1: In the SPH method, the continuous scalar field A(r) is approximated by the W(rr′, h) kernel function, and the continuous field is represented as a weighted sum of the properties of a set of discrete particles and the kernel function: A(r) = ∫A(r′)W(rr′, h)dr′; By discretizing the continuous field, we get: Where: m j is the mass of particle j; ρ j is the density of particle j; A j is the property of particle j; W(rr′,h) is the kernel function, and h is the smoothing length.

[0009] Step 2: Density calculation: The density at particle i is calculated by the mass of the surrounding particles and the kernel function: ρ i =-∑ j m j W(r i -r j ,h).

[0010] Step 3: The discrete form of the momentum equation in the SPH method is:

[0011] Where: v i is the velocity of particle i; P i and P j are the pressures of particles i and j respectively; is the gradient of the kernel function; f i It's an external force.

[0012] Step 4: The discretized form of the energy equation in the SPH method is: where u i is the internal energy of particle i.

[0013] Step 5: The discrete form of the continuity equation in the SPH method is:

[0014] Step 6: Gradient of kernel function The specific form depends on the choice of kernel function and is expressed as: Through the gradient of the kernel function W, the SPH method transforms the continuous partial differential equation into the algebraic equation of discrete particles, thereby realizing the discretization representation of the continuous field.

[0015] Step 7: In order to ensure the conservation of physical quantities, the kernel function W(r i -r j ,h) The normalization condition must be met to ensure that the overall integral is 1: For discrete particle systems, this condition can be further expressed by discretization as: j W(r i -rj , h)≈1

[0016] As a preferred method, a two-parameter polynomial kernel function is used based on industrial turbines. In order to meet the normalization condition The normalization constant needs to be determined by calculation: make The upper limit of the integral becomes The integral is calculated as follows: set up 2AhI(α, β) = 1; the solution is: The expression of the two-parameter polynomial kernel function is obtained as follows: Due to the symmetry of the kernel function, the product of αβ must be an even number.

[0017] Preferably, the smoothing length of the SPH method used in industrial turbines is usually 1 mm. Based on this, when α and β are integers, different combinations of α and β are selected. Different two-parameter kernel functions are obtained by taking different values ​​of α and β. They are then solved separately and the results are compared to determine the kernel function with the highest accuracy.

[0018] 1. As a preferred embodiment, when α=1, β=2, we get So the normalization constant Therefore, the expression of the polynomial kernel function is: When h = 1, we can integrate the function to get The case of α = 2, β = 20 is selected as the kernel function with sufficient accuracy. In this case, the kernel function is The kernel functions with sufficient accuracy can be obtained when α ranges from 1 to 6:

[0019] 2. The turbine numerical calculation method based on the SPH kernel function according to claim 5 is characterized in that: by combining the detailed calculation values ​​and operation codes of the kernel function, the general form of the momentum equation is:

[0020] The general form of the energy equation is: The general form of the continuity equation is:

[0021] Among them, v is the velocity vector, ρ is the density, P is the pressure, v is the dynamic viscosity coefficient, f is the volume force, and E is the energy;

[0022] The kernel function W(r,h) and its gradient are: W(r,h) and

[0023] The continuity equation in SPH is expressed as:

[0024] The momentum equation in SPH is expressed as:

[0025]

[0026] The energy equation in SPH is expressed as:

[0027]

[0028] For the three-dimensional Cartesian coordinate system (x, y, z), the form of the above equation remains unchanged. We only need to consider the components of each variable. In the cylindrical coordinate system (r, θ, z), we need to consider the following relationship: Substituting W1(r, h) into the continuity equation, momentum equation and energy equation, we can obtain

[0029]

[0030] Substituting W2(r, h) into the continuity equation, momentum equation and energy equation respectively, we can obtain:

[0031]

[0032] Substituting W3(r, h) into the continuity equation, momentum equation and energy equation respectively, we can obtain:

[0033]

[0034]

[0035] Substituting W4(r, h) into the continuity equation, momentum equation and energy equation respectively, we can obtain:

[0036]

[0037] As a preference, the software MATLAB is used to calculate the function value, and the specific steps are as follows:

[0038] Step 1: Set the constant `h` to 1; set the constant `a` to 2; set the constant `b` to 1.

[0039] Step 2: Define an anonymous function `T` that receives a variable `u` and the calculation formula is `T(u)=(1-u^a)^b`; in this code, the specific formula is `T(u)=(1-u^2)^1=1-u^2`.

[0040] Step 3: Use the `integral` function in MATLAB to calculate the integral of `T(u)` from `u=0` to `u=1` and store the result in the variable `l`.

[0041] Step 4: Calculate the value of the constant `A` according to the calculation formula `A=1 / (2*h*l)`; `l` is the integral result obtained from the previous calculation, and `h` is 1.

[0042] Step 5: Define another anonymous function `f`, which receives a variable `r` and the calculation formula is `f(r)=A*(1-(r / h)^a)^b`; in this code, the specific formula is `f(r)=A*(1-(r / 1)^2)^1=A*(1-r^2)`.

[0043] Step 6: Use the `integral` function in MATLAB to calculate the integral of the kernel function `f(r)` from `r=-0.5` to `r=0.5` and store the result in the variable `result`.

[0044] Step 7: Use the `disp` function to output the final calculated integral result to the command window.

[0045] As a preference, the software MATLAB is used to draw the kernel function image, and the specific steps are as follows:

[0046] Step 1: Use the linspace function to generate 1000 equally spaced points from -0.5 to 0.5 and store them in the variable r.

[0047] Step 2: Set the constant `h` to 1; set the constant `a` to 2; set the constant `b` to 1.

[0048] Step 3: Define an anonymous function `T` that receives a variable `u` and the calculation formula is `T(u)=(1-u^a)^b`; in this code, the specific formula is `T(u)=(1-u^2)^1=1-u^2`.

[0049] Step 4: Use the `integral` function in MATLAB to calculate the integral of `T(u)` from `u=0` to `u=1` and store the result in the variable `l`.

[0050] Step 5: Calculate the value of the constant `A` according to the calculation formula `A=1 / (2*h*l)`; `l` is the integral result obtained from the previous calculation, and `h` is 1.

[0051] Step 6: Define another anonymous function `f`, which receives a variable `r` and the calculation formula is `f(r)=A*(1-(r / h)^a)^b`; in this code, the specific formula is `f(r)=A*(1-(r / 1)^2)^1=A*(1-r^2)`.

[0052] Step 7: Substitute the variable range `r` into the kernel function `f`, calculate the function value corresponding to each `r`, and store the result in the variable `f_values`.

[0053] Step 8: Use the `figure` function to create a new graphics window; use the `plot` function to plot the relationship between `r` and `f_values`, with a line color of black and a width of 2, and set the title of the image to "Plot of the custom kernel function"; set the horizontal axis label to `r` and the vertical axis label to `f(r)`; use the `grid on` command to display grid lines on the image; derive the kernel function The function graph of .

[0054] The present invention can achieve the following effects:

[0055] The present invention provides a turbine numerical calculation method based on the SPH kernel function. Compared with the prior art, in summary, the turbine numerical calculation method based on the SPH kernel function, the improved kernel function allows a larger time step to be used in turbine fluid calculation, thereby improving the calculation efficiency and convergence speed. By optimizing the combination of parameters α and β, the numerical stability in the turbine fluid calculation process is improved, and the numerical oscillation and error propagation are reduced. The improved kernel function provides higher accuracy and robustness when processing complex boundary conditions inside the turbine machinery, ensuring that the flow characteristics are accurately described near the boundary. In the high energy region of the turbine fluid, the improved kernel function can better maintain energy conservation, and improve the physical consistency and reliability of the calculation results. Not only can the SPH method enhance its ability to describe fluid dynamics behavior, but it can also improve the calculation efficiency of the simulation, providing a more reliable numerical simulation tool for solving complex fluid problems in industrial turbine design. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 is the kernel function of the present invention The function graph of .

[0057] Figure 2 It is the efficiency curve diagram of the Pelton turbine of the present invention.

[0058] Figure 3 It is a line graph of the integral value when α=2 is combined according to the present invention.

[0059] Figure 4 This is a line graph of the integral value when α=4 is combined according to the present invention.

[0060] Figure 5 It is a line graph of the integral value when α=6 is combined according to the present invention.

[0061] Figure 6 It is a line graph of the integral value when α=1 is combined according to the present invention.

[0062] Figure 7 This is a line graph of the integral value when α=3 is combined according to the present invention.

[0063] Figure 8 It is a line graph of the integral value when α=5 is combined according to the present invention. DETAILED DESCRIPTION

[0064] The technical solution of the invention is further specifically described below through embodiments and in conjunction with the accompanying drawings.

[0065] Example: Figure 1-8 As shown, a turbine numerical calculation method based on the SPH kernel function includes the following steps:

[0066] Step 1: In the SPH method, the continuous scalar field A(r) is approximated by the W(rr′, h) kernel function, and the continuous field is represented as a weighted sum of the properties of a set of discrete particles and the kernel function: A(r) = ∫A(r′)W(rr′, h)dr′; By discretizing the continuous field, we get: Where: m j is the mass of particle j; ρ j is the density of particle j; A j is the property of particle j; W(rr′,h) is the kernel function, and h is the smoothing length.

[0067] Step 2: Density calculation: The density at particle i is calculated by the mass of the surrounding particles and the kernel function: ρ i =-∑ j m j W(r i -r j , h).

[0068] Step 3: The discrete form of the momentum equation in the SPH method is:

[0069] Where: v i is the velocity of particle i; P i and P j are the pressures of particles i and j respectively; is the gradient of the kernel function; f i It's an external force.

[0070] Step 4: The discretized form of the energy equation in the SPH method is: where u i is the internal energy of particle i.

[0071] Step 5: The discrete form of the continuity equation in the SPH method is:

[0072] Step 6: Gradient of kernel function The specific form depends on the choice of kernel function and is expressed as: Through the gradient of the kernel function W, the SPH method transforms the continuous partial differential equation into the algebraic equation of discrete particles, thereby realizing the discretization representation of the continuous field.

[0073] Step 7: In order to ensure the conservation of physical quantities, the kernel function W(r i -r j , h) must satisfy the normalization condition to ensure that the overall integral is 1: For discrete particle systems, this condition can be further expressed by discretization as: j W(r i -r j , h)≈1.

[0074] The kernel function needs to be at least continuously differentiable to the second order: W∈C 2 (R d ); The kernel function is usually compactly supported, which reduces the amount of calculation and improves efficiency; outside the compact support range, if r>2r, the kernel function value is zero: W(rr′,h)=0for|rr′|>2h.

[0075] The kernel function is usually symmetric about its center, which ensures the smoothness and consistency of the kernel function in all directions: W(rr′,h)=W(r′-r,h); the properties of the kernel function require that its first-order moment is zero, which ensures unbiasedness: For a discrete particle system, this condition can be expressed as:∑ j (r i -r j )W(r i -r j , h)≈0; the relationship between the second-order moment of the kernel function and the smoothing length h shows its scale characteristics, which affects the resolution and stability of the numerical solution: Where σ is a constant related to the shape of the kernel function, and I is the unit matrix; the gradient of the kernel function plays a key role in the calculation of the interaction force between particles, and its expression is: The specific form depends on the selected kernel function; the Laplace operator of the kernel function is used to solve diffusion and viscosity problems in the SPH method, and its expression is: where d is the spatial dimension.

[0076] Based on industrial turbine, a two-parameter polynomial kernel function is used In order to meet the normalization condition The normalization constant needs to be determined by calculation: make The upper limit of the integral becomes The integral is calculated as follows: set up 2AhI(α, β) = 1; the solution is: The expression of the two-parameter polynomial kernel function is obtained as follows: Due to the symmetry of the kernel function, the product of αβ must be an even number.

[0077] The smoothing length of the SPH method used in industrial turbines is usually selected as 1 mm, based on which different combinations of α and β are selected when α and β are integers.

[0078] When α=1,β=2, we get So the normalization constant Therefore, the expression of the polynomial kernel function is: When h = 1, we can integrate the function to get

[0079] Use MATLAB software to calculate the function value. The specific steps are as follows:

[0080] Step 1: Set the constant `h` to 1; set the constant `a` to 2; set the constant `b` to 1.

[0081] Step 2: Define an anonymous function `T` that receives a variable `u` and the calculation formula is `T(u)=(1-u^a)^b`; in this code, the specific formula is `T(u)=(1-u^2)^1=1-u^2`.

[0082] Step 3: Use the `integral` function in MATLAB to calculate the integral of T(u)` from `u=0` to `u=1` and store the result in the variable `l`.

[0083] Step 4: Calculate the value of the constant `A` according to the calculation formula `A=1 / (2*h*l)`; `l` is the integral result obtained from the previous calculation, and `h` is 1.

[0084] Step 5: Define another anonymous function `f`, which receives a variable `r` and the calculation formula is `f(r)=A*(1-(r / h)^a)^b`; in this code, the specific formula is `f(r)=A*(1-(r / 1)^2)^1=A*(1-r^2)`.

[0085] Step 6: Use the `integral` function in MATLAB to calculate the integral of the kernel function `f(r)` from `r=-0.5` to `r=0.5` and store the result in the variable `result`.

[0086] Step 7: Use the `disp` function to output the final calculated integral result to the command window.

[0087] Use MATLAB software to draw the kernel function image. The specific steps are as follows:

[0088] Step 1: Use the linspace function to generate 1000 equally spaced points from -0.5 to 0.5 and store them in the variable r.

[0089] Step 2: Set the constant `h` to 1; set the constant `a` to 2; set the constant `b` to 1.

[0090] Step 3: Define an anonymous function `T` that receives a variable `u` and the calculation formula is `T(u)=(1-u^a)^b`; in this code, the specific formula is `T(u)=(1-u^2)^1=1-u^2`.

[0091] Step 4: Use the `integral` function in MATLAB to calculate the integral of `T(u)` from `u=0` to `u=1` and store the result in the variable `l`.

[0092] Step 5: Calculate the value of the constant `A` according to the calculation formula `A=1 / (2*h*l)`; `l` is the integral result obtained from the previous calculation, and `h` is 1.

[0093] Step 6: Define another anonymous function `f`, which receives a variable `r` and the calculation formula is `f(r)=A*(1-(r / h)^a)^b`; in this code, the specific formula is `f(r)=A*(1-(r / 1)^2)^1=A*(1-r^2)`.

[0094] Step 7: Substitute the variable range `r` into the kernel function `f`, calculate the function value corresponding to each `r`, and store the result in the variable `f_values`.

[0095] Step 8: Use the `figure` function to create a new graphics window; use the `plot` function to plot the relationship between `r` and `f_values`, with a line color of black and a width of 2, and set the title of the image to "Plot of the custom kernel function"; set the horizontal axis label to `r` and the vertical axis label to `f(r)`; use the `grid on` command to display grid lines on the image; derive the kernel function The function graph of Figure 1 shown.

[0096] Different two-parameter kernel functions are obtained by taking different values ​​of α and β, and then they are solved respectively and the results are compared to determine the kernel function with the highest accuracy.

[0097] When α=2, the integral values ​​under different β are as follows:

[0098]

[0099]

[0100] The case of α = 2, β = 20 is selected as the kernel function with sufficient accuracy. In this case, the kernel function is The kernel functions with sufficient accuracy can be obtained when α ranges from 1 to 6:

[0101] By combining the detailed calculation values ​​and operation codes of the kernel function, the general form of the momentum equation is:

[0102]

[0103] The general form of the energy equation is: The general form of the continuity equation is:

[0104]

[0105] Among them, v is the velocity vector, ρ is the density, P is the pressure, v is the dynamic viscosity coefficient, f is the volume force, and E is the energy;

[0106] The kernel function W(r, h) and its gradient are: W(r, h) and

[0107] The continuity equation in SPH is expressed as:

[0108] The momentum equation in SPH is expressed as:

[0109]

[0110] The energy equation in SPH is expressed as:

[0111]

[0112] For the three-dimensional Cartesian coordinate system (x, y, z), the form of the above equation remains unchanged. We only need to consider the components of each variable. In the cylindrical coordinate system (r, θ, z), we need to consider the following relationship: Substituting W1(r, h) into the continuity equation, momentum equation and energy equation, we can obtain:

[0113]

[0114] Substituting W2(r, h) into the continuity equation, momentum equation and energy equation respectively, we can obtain:

[0115]

[0116]

[0117] Substituting W3(r, h) into the continuity equation, momentum equation and energy equation respectively, we can obtain:

[0118]

[0119] Substituting W4(r, h) into the continuity equation, momentum equation and energy equation respectively, we can obtain:

[0120]

[0121]

[0122] like Figure 2 As shown, the turbine pressure is 2.5 MPa, and the selected kernel function is α=2 and β=20. The simulation calculation results of the efficiency are compared with the experimental values, and it is found that the error is within 5%. The method is easy to implement and has high accuracy.

[0123] The integral value when α=4 combinations

[0124]

[0125] The integral value when α=6 combinations

[0126]

[0127]

[0128] The integral value when α=1

[0129] The integral value when α=3 combinations

[0130] The integral value when α=5

[0131]

[0132] When α is an odd number, ① Generate the variable range: Use the `linspace` function to generate 1000 equally spaced points from -0.5 to 0.5 and store them in the variable `r`. ② Initialize the result storage: Create an empty array `results` to store the calculation results. ③ Set the parameter `a`: Set the parameter `a` to 1 (the value of `a` in this sample code is one of 1, 3, and 5, and is currently set to 1). ④ Loop through the parameter `b`: Use the `for` loop to traverse the value of `b` from 2 to 30, with a step size of 2. ⑤ Perform the following steps within the loop: Set the constant `h` to 1. Define an anonymous function `T` that receives a variable `u` and the calculation formula is `T(u) = (1-u^a)^b`. Use the `integral` function to calculate the integral of `T(u)` from `u = 0` to `u = 1`, and store the result in the variable `l`. The value of the constant `A` is calculated according to the calculation formula `A=1 / (2*h*I)`.

[0135] Define another anonymous function `f`, which receives a variable `r` and the calculation formula is `f(r) = A*(1-(r / h)^a)^b`. Use the `integral` function to calculate the integral of the kernel function `f(r)` from `r = -0.5` to `r = 0.5`, and store the result in the variable `integralValue`. Substitute the variable range `r` into the kernel function `f`, calculate the function value corresponding to each `r`, and store the result in the variable `f_values`. Use the `disp` function to display the current parameters `a` and `b` and the integral results on the integral interval `[-0.5, 0.5]`. Add the current parameters `a`, `b` and the integral result `integralValue` to the `results` array. ⑥ Save the results: Use the `array2table` function to convert the `results` array to a table format and set the column names to `{'a', 'b', 'IntegralValue'}`. Use the `writetable` function to save the result table to an Excel file named `KernelFunctionResults.xlsx`. Use the `disp` function to display a message that the results have been successfully written to the `KernelFunctionResults.xlsx` file.

[0136] When α is an even number, ① Generate the variable range: Use the linspace function to generate 1000 equally spaced points from -0.5 to 0.5 and store them in the variable r. ② Initialize the result storage: Create an empty array results to store the calculation results. ③ Loop through the parameters a and b: Use the for loop to loop through the values ​​of a (in the sample code, the value of a is set to 2, which can be one of 2, 4, and 6, and is currently set to 2). Use a nested for loop to loop through the values ​​of b from 1 to 30. ④ Perform the following steps in the inner loop: Set the constant h to 1. Define an anonymous function T that receives a variable u, and the calculation formula is T(u) = (1-u^a)^b. Use the integral function to calculate the integral of T(u) from u = 0 to u = 1, and store the result in the variable I. Calculate the value of the constant A according to the calculation formula A = 1 / (2*h*l).

[0137] Define another anonymous function f, which receives a variable r and has the calculation formula f(r) = A*(1-(r / h)^a)^b. Use the integral function to calculate the integral of the kernel function f(r) from r = -0.5 to r = 0.5, and store the result in the variable integralValue. Substitute the variable range r into the kernel function f, calculate the function value corresponding to each r, and store the result in the variable f_values. Use the disp function to display the current parameters a and b and the integral results on the integral interval [-0.5, 0.5]. Add the current parameters a, b and the integral result integralValue to the results array. ⑤ Save the results: Use the array2table function to convert the results array to a table format and set the column names to {'a', 'b', 'IntegralValue'}. Use the writetable function to save the result table to an Excel file named KernelFunctionResults.xlsx. Use the disp function to display the message that the results have been successfully written to the KernelFunctionResults.xlsx file.

[0138] In summary, the turbine numerical calculation method based on the SPH kernel function, the improved kernel function allows a larger time step to be used in the turbine fluid calculation, thereby improving the calculation efficiency and convergence speed. By optimizing the combination of parameters α and β, the numerical stability in the turbine fluid calculation process is improved, and the numerical oscillation and error propagation are reduced. The improved kernel function provides higher accuracy and robustness when dealing with complex boundary conditions inside the turbine machinery, ensuring that the flow characteristics are accurately described near the boundary. In the high-energy region of the turbine fluid, the improved kernel function can better maintain energy conservation and improve the physical consistency and reliability of the calculation results. It not only enhances the ability of the SPH method to describe fluid dynamics behavior, but also improves the calculation efficiency of the simulation, providing a more reliable numerical simulation tool for solving complex fluid problems in industrial turbine design.

[0139] The above description is only a specific embodiment of the present invention, but the structural features of the present invention are not limited thereto. Any changes or modifications made by any technician in the field of the present invention are included in the patent scope of the present invention.

Claims

1. A turbine numerical calculation method based on SPH kernel function, characterized in that The steps are as follows: Step 1: In the SPH method, the continuous scalar field A(r) is approximated by the W(rr′, h) kernel function, and the continuous field is represented as a weighted sum of the properties of a set of discrete particles and the kernel function: A(r) = ∫A(r′)W(rr′, h)dr′; By discretizing the continuous field, we get: Where: m j is the mass of particle j; ρ j is the density of particle j; A j is the property of particle j; W(rr′,h) is the kernel function, h is the smoothing length; Step 2: Density calculation: The density at particle i is calculated by the mass of the surrounding particles and the kernel function: ρ i =-∑ j m j W(r i -r j , h); Step 3: The discrete form of the momentum equation in the SPH method is: Where: v i is the velocity of particle i; P i and P j are the pressures of particles i and j respectively; is the gradient of the kernel function; f i It is an external force; Step 4: The discretized form of the energy equation in the SPH method is: where u i is the internal energy of particle i; Step 5: The discrete form of the continuity equation in the SPH method is: Step 6: Gradient of kernel function The specific form depends on the choice of kernel function and is expressed as: Through the gradient of the kernel function W, the SPH method transforms the continuous partial differential equation into the algebraic equation of discrete particles, thus realizing the discretization representation of the continuous field; Step 7: In order to ensure the conservation of physical quantities, the kernel function W(r i -r j , h) must satisfy the normalization condition to ensure that the overall integral is 1: For discrete particle systems, this condition can be further expressed by discretization as: j W(r i -r j , h)≈1.

2. The turbine numerical calculation method based on the SPH kernel function according to claim 1 is characterized in that: Based on industrial turbine, a two-parameter polynomial kernel function is used In order to meet the normalization condition The normalization constant needs to be determined by calculation: make The upper limit of the integral becomes The integral is calculated as follows: set up 2AhI(α, β) = 1; The solution is: The expression of the two-parameter polynomial kernel function is obtained as follows: Due to the symmetry of the kernel function, the product of αβ must be an even number.

3. The turbine numerical calculation method based on the SPH kernel function according to claim 2 is characterized in that: The smoothing length of the SPH method used in industrial turbines is usually 1 mm. Based on this, when α and β are integers, different combinations of α and β are selected. Different two-parameter kernel functions are obtained by taking different values ​​of α and β. They are then solved separately and the results are compared to determine the kernel function with the highest accuracy.

4. The turbine numerical calculation method based on the SPH kernel function according to claim 3 is characterized in that: When α=1,β=2, we get So the normalization constant Therefore, the expression of the polynomial kernel function is: When h = 1, we can integrate the function to get The case of α = 2, β = 20 is selected as the kernel function with sufficient accuracy. In this case, the kernel function is The kernel functions with sufficient accuracy can be obtained when α ranges from 1 to 6:

5. The turbine numerical calculation method based on the SPH kernel function according to claim 3 is characterized in that: By combining the detailed calculation values ​​and operation codes of the kernel function, the general form of the momentum equation is: The general form of the energy equation is: The general form of the continuity equation is: Among them, v is the velocity vector, ρ is the density, P is the pressure, v is the dynamic viscosity coefficient, f is the volume force, and E is the energy; The kernel function W(r, h) and its gradient are: W(r, h) and The continuity equation in SPH is expressed as: The momentum equation in SPH is expressed as: The energy equation in SPH is expressed as: For the three-dimensional Cartesian coordinate system (x, y, z), the form of the above equation remains unchanged. We only need to consider the components of each variable. In the cylindrical coordinate system (r, θ, z), we need to consider the following relationship: Substituting W1(r,h) into the continuity equation, momentum equation and energy equation, we can obtain: Substituting W2(r, h) into the continuity equation, momentum equation and energy equation respectively, we can obtain: Substituting W3(r, h) into the continuity equation, momentum equation and energy equation respectively, we can obtain: Substituting W4(r, h) into the continuity equation, momentum equation and energy equation respectively, we can obtain:

6. The turbine numerical calculation method based on the SPH kernel function according to claim 4 is characterized in that: Use MATLAB software to calculate the function value. The specific steps are as follows: Step 1: Set the constant `h` to 1; set the constant `a` to 2; set the constant `b` to 1; Step 2: Define an anonymous function `T`, which receives a variable `u` and the calculation formula is `T(u)=(1-u^a)^b`; in this code, the specific formula is `T(u)=(1-u^2)^1=1-u^2`; Step 3: Use the `integral` function in MATLAB to calculate the integral of `T(u)` from `u=0` to `u=1` and store the result in the variable `l`; Step 4: Calculate the value of constant `A` according to the calculation formula `A=1 / (2*h*I)`; `I` is the integral result obtained previously, and `h` is 1; Step 5: Define another anonymous function `f`, which receives a variable `r` and the calculation formula is `f(r)=A*(1-(r / h)^a)^b`; in this code, the specific formula is `f(r)=A*(1-(r / 1)^2)^1=A*(1-r^2)`; Step 6: Use the `integral` function in MATLAB to calculate the integral of the kernel function `f(r)` from `r = -0.5` to `r = 0.5` and store the result in the variable `result`; Step 7: Use the `disp` function to output the final calculated integral result to the command window.

7. The turbine numerical calculation method based on the SPH kernel function according to claim 4 is characterized in that: Use MATLAB software to draw the kernel function image. The specific steps are as follows: Step 1: Use the `linspace` function to generate 1000 equally spaced points from -0.5 to 0.5 and store them in the variable `r`; Step 2: Set the constant `h` to 1; set the constant `a` to 2; set the constant `b` to 1; Step 3: Define an anonymous function `T`, which receives a variable `u` and the calculation formula is `T(u)=(1-u^a)^b`; in this code, the specific formula is `T(u)=(1-u^2)^1=1-u^2`; Step 4: Use the `integral` function in MATLAB to calculate the integral of `T(u)` from `u=0` to `u=1` and store the result in the variable `l`; Step 5: Calculate the value of constant `A` according to the calculation formula `A=1 / (2*h*I)`; `I` is the integral result obtained by the previous calculation, and `h` is 1; Step 6: Define another anonymous function `f`, which receives a variable `r` and the calculation formula is `f(r)=A*(1-(r / h)^a)^b`; in this code, the specific formula is `f(r)=A*(1-(r / 1)^2)^1=A*(1-r^2)`; Step 7: Substitute the variable range `r` into the kernel function `f`, calculate the function value corresponding to each `r`, and store the result in the variable `f_values`; Step 8: Use the `figure` function to create a new graphics window; use the `plot` function to plot the relationship between `r` and `f_values`, with a line color of black and a width of 2, and set the title of the image to "Plot of the custom kernel function"; set the horizontal axis label to `r` and the vertical axis label to `f(r)`; use the `grid on` command to display grid lines on the image; derive the kernel function The function graph of .