Flow field analysis method for supersonic viscous fluid
By externally processing linear weights in the flow field analysis of supersonic viscous fluids and using Gaussian function for nonlinear weighting, the boundary processing difficulties and computational divergence problems in traditional central differential formats in supersonic viscous flow analysis are solved, and the stability and robustness of the method are improved.
Patent Information
- Application Number
- CN202411661839.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-11-20
AI Technical Summary
When analyzing the problem of supersonic viscous flow, the traditional central differential format has problems such as excessive number of grid cell points, difficult boundary processing, poor robustness, inability to converge or even collapse.
By externalizing the solution of linear weights to make them all positive, the problem of negative values in linear weights in WENO format is solved; the Gaussian function is used to nonlinearly weight the inner derivatives in the viscous numerical flux, avoiding the computational divergence problem caused by directly using the Lagrangian interpolation function.
The number of grid cells required for format construction is reduced, the difficulty of boundary processing is reduced, the stability and robustness of the flow field analysis method is improved, the calculation divergence is avoided, and the accuracy and application value of the calculation format are ensured.
Smart Images

Figure CN119670604A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of flow field analysis, and in particular to a flow field analysis method for a supersonic viscous fluid. Background Art
[0002] Many flow problems in life are closely related to the field of fluid mechanics, such as cars on the road, airplanes flying in the sky, boats on the sea, etc. In order to obtain better flow performance, people can simulate the flow characteristics of these given scenarios through fluid mechanics, and design and reverse design based on the flow characteristics obtained by simulation, and finally obtain design parameters that meet the requirements. Compared with experimental fluid mechanics, computational fluid dynamics has the advantages of high efficiency, high precision, low cost and repeatable experiments in certain extreme environments. It has been widely used in military and civilian fields.
[0003] In order to solve the viscosity term of the governing equation in fluid mechanics, the conventional central difference format is usually used for parameter discretization in the prior art. However, the traditional central difference format has the following problems when analyzing supersonic viscous flow problems: (1) Since the traditional central difference format needs to discretize the external derivative first and then symmetrically discretize the internal derivative involved, the difference format with (2r) order format accuracy requires flow information from (4r+1) grid cell points. Too many grid cell points make it difficult to handle the boundaries; (2) Supersonic viscous flow problems are usually accompanied by the appearance of strong shock waves and strong discontinuities, and the traditional central difference format numerically discretizes the internal derivative by directly constructing a Lagrangian interpolation function and calculating its derivative. This discrete basis obviously does not meet the smoothness requirements of the interpolation function, and therefore ultimately leads to poor robustness of the result, failure to converge or even collapse; (3) The WENO format (weighted essential non-oscillation) constructed based on the traditional central difference format will have negative linear weights. This feature also makes the constructed WENO format unstable, eventually causing the system to collapse.
[0004] Therefore, developing a flow field analysis method suitable for supersonic viscous fluids under the finite difference framework has important theoretical significance and practical application value. Summary of the invention
[0005] In view of the above problems, the present invention provides a flow field analysis method for supersonic viscous fluid. Specifically, by externalizing the solution of linear weights, the obtained linear weights are all positive numbers, which solves the problem of negative weights in the linear weights of the WENO format based on the traditional central difference format, and improves the stability of the format; secondly, by setting a Gaussian function, the inner derivatives in the viscous numerical flux of the final nonlinear combination are nonlinearly weighted, which solves the problem of computational divergence in directly using the Lagrange interpolation function and finding its derivative function, and enhances the robustness of the flow field analysis method.
[0006] The present invention provides a flow field analysis method for a supersonic viscous fluid, and the specific steps are as follows:
[0007] Step 1, generating a structured grid of the area to be analyzed of the object to be analyzed; initializing the function point values on the grid cells according to the given initial boundary value conditions to obtain the function value of each grid cell in the initial state;
[0008] Step 2: According to the viscosity numerical flux at the boundary of the target grid cell Determine the grid unit required for the format discretization in the viscosity term of the control equation and define it as the large template S; divide the large template S into several small templates S of the same size m , m=0,1,2…,N, where N is the number of divided small templates, and the number of grid cells on each small template is r; the reconstruction viscosity numerical flux function on the large template and the small template is obtained by using the integral function based on reconstruction; the viscosity numerical flux on the boundary of the target cell on the large template and the small template is obtained;
[0009] Step 3: Numerical flux on the large template obtained in step 2 Numerical flux on a small template And the corresponding target unit boundary The linear weight d of each small template is obtained by the method of undetermined coefficients m ;
[0010] Step 4: Reconstruct the viscosity numerical flux function p of each small template based on step 2 m (x) Obtain the corresponding smoothness factor on the small template;
[0011] Step 5: Based on the linear weights d of each small template in step 3 m and the smoothing factor β from step 4 m , obtain the nonlinear weight ω on each small template m ;
[0012] Step 6: Based on the nonlinear weights on each small template and the target unit boundaries on each small template Viscous numerical flux on Get the final target cell boundary Viscous numerical flux on ;
[0013] Step 7, repeat steps 2-6 to obtain the final target cell boundary Viscous numerical flux on
[0014]
[0015] Step 8: Use the WENO difference scheme to discretize the inviscid numerical flux corresponding to the final viscous numerical flux on the target unit boundary obtained in steps 6 and 7. The derivative value of the conserved variable in the flow field with respect to time is obtained through the conservation semi-discrete format of the control equation The derivative of the conserved variable with respect to time in the convection field The variable values in the flow field are obtained by advancing the solution in time.
[0016] Preferably, the object to be analyzed for flow field is a supersonic vehicle.
[0017] Preferably, the initial boundary conditions are supersonic far-field incoming flow conditions.
[0018] Preferably, the reconstruction-based integral function is used to obtain the reconstructed viscosity numerical flux function p(x) on the large template, which is expressed as:
[0019]
[0020] Where x represents the input parameter; j represents the jth grid unit; G(u(x j ),u x (x j )) represents the viscosity term of the governing equation in the grid cell x in the corresponding template j The function value on u(x j ) represents the jth grid cell x j The value of the independent variable function on u x (x j ) represents the jth grid cell x j The value of the derivative of the independent variable function on .
[0021] Preferably, based on the viscosity numerical flux function p(x) obtained in the above steps, the target unit boundary on the large template is obtained. Viscous numerical flux on The expression is:
[0022]
[0023] Preferably, the reconstruction viscosity numerical flux function p of each small template is obtained by using the reconstruction-based integral function m (x), the expression is:
[0024]
[0025] Where x represents the input parameter; j represents the jth grid unit; G(u(x j ),u x (x j )) represents the viscosity term of the governing equation in the grid cell x in the corresponding template j The function value on u(x j ) represents the jth grid cell x j The value of the independent variable function on u x (x j ) represents the jth grid cell x j The value of the derivative of the independent variable function on .
[0026] Preferably, in step 3, the linear weight d of each small template m The expression is:
[0027]
[0028] Among them, d m represents the linear weight of the mth small template; Indicates that the large template S calculated in step 2 is at the boundary of the target unit The corresponding viscosity numerical flux; represents the small template S obtained by step 2 m In the target unit The corresponding viscosity numerical flux.
[0029] Preferably, in step 4, the expression of the smoothing factor is:
[0030]
[0031] Among them, β m represents the smoothing factor of the mth small template; r represents the number of grid cells on the small template; xJ represents the coordinates of the center point of the Jth target unit discrete point; xJ+1 represents the coordinates of the center point of the J+1th target unit discrete point; It means to find the l-th order derivative of the flux function along the x-axis, where l = 1, 2, … r; dx means to integrate the x-th input parameter.
[0032] Preferably, the nonlinear weight ω on the small template m , the expression is:
[0033]
[0034] Among them, ω m represents the nonlinear weight on the mth small template; Represents the nonlinear weight of the intermediate process; d m represents the linear weight of the mth small template; ε represents a small positive number to avoid the denominator being 0.
[0035] Preferably, the variable values in the flow field obtained in step 8 are density, momentum in the x-direction, momentum in the y-direction and total energy.
[0036] Compared with the prior art, the present invention has at least the following beneficial effects:
[0037] 1. The flow field analysis method of the supersonic viscous fluid of the present invention proposes a WENO framework, in which the (2r)-order format accuracy only requires (2r+1) grid units (where r is a natural number, such as when r=3, the sixth-order format accuracy requires 7 grid units). Compared with the traditional central difference format, it can effectively reduce the number of grid units required for format construction, thereby effectively reducing the difficulty of boundary processing;
[0038] 2. The flow field analysis method of the supersonic viscous fluid of the present invention proposes a WENO framework, under which the linear weights obtained are all positive values, which can effectively avoid the problem of negative linear weights in the WENO format based on the traditional central difference, and solve the problem of unstable results in flow field analysis;
[0039] 3. The flow field analysis method of the supersonic viscous fluid of the present invention proposes a WENO framework. Under the WENO framework, a Gaussian function is set to perform nonlinear weighting on the derivative function values on the large template and the small template, and finally the derivative function value of the numerical flux in the expression is calculated, thereby effectively avoiding the problem of easy divergence of calculation caused by directly performing Lagrangian interpolation in the large template and calculating its derivative function;
[0040] 4. The flow field analysis method of the supersonic viscous fluid of the present invention proposes a WENO framework, which is suitable for solving supersonic viscous flow problems, making the calculation less likely to diverge. While ensuring the accuracy of the calculation format, the robustness and stability of the calculation format are enhanced, and it has important application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of a discretized grid unit in one dimension of the method of the present invention;
[0042] Figure 2 A grid unit division diagram of the method of the present invention in the calculation area of the two-dimensional Mach 2000 jet problem;
[0043] Figure 3 It is a density diagram of the flow field initialization state at time t=0.0 in an embodiment of the present invention;
[0044] Figure 4 This is a density diagram of the logarithmic function of the flow field calculated when t=0.001 in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. In addition, the present invention can also be implemented in other ways different from those described herein, and therefore, the protection scope of the present invention is not limited by the specific embodiments disclosed below.
[0046] A specific embodiment of the present invention, as Figure 1-Figure 4 , discloses a flow field analysis method for supersonic viscous fluid, firstly, the defined large template is divided into several corresponding small templates, then the numerical flux expression defined at the center point of the unit is obtained by using the reconstruction-based method on the large template and each small template, and the corresponding linear weights on different small templates can be obtained based on these numerical flux expressions; in order to convert the linear weight into a nonlinear weight, the smoothness factor on the corresponding small template is obtained by integral expression, and the Lagrange interpolation function and its derivative function on the corresponding small template are constructed to obtain the derivative value on the smoothness factor, and finally the nonlinear weight can be obtained; for the derivative function on the nonlinearly weighted numerical flux, a Gaussian function is set to perform nonlinear weighting on the derivative value on the corresponding small template and the derivative value on the large template, and finally the numerical flux value on the unit boundary can be obtained, and the solution is obtained by time advancement, and the specific steps are as follows:
[0047] Step 1, generating a structured grid of the area to be analyzed of the object to be analyzed; initializing the function point values on the grid cells according to the given initial boundary value conditions to obtain the function value of each grid cell in the initial state;
[0048] Optionally, the object to be analyzed for flow field is a supersonic vehicle.
[0049] The structured grid includes multiple grid units x j , the left boundary of the grid cell is The right edge of the grid cell is
[0050] Exemplarily, the initial boundary value condition is a supersonic far-field oncoming flow condition. According to the supersonic far-field oncoming flow condition, the function point values on the grid points can be initialized according to the position coordinate information of the grid cells.
[0051] Step 2: According to the viscosity numerical flux at the boundary of the target grid cell Determine the grid unit required for the format discretization of the viscosity term G in the control equation to be solved, and define it as the large template S; divide the large template S into several small templates S of the same size m , m=0,1,2…,N, where N is the number of divided small templates, and the number of grid cells on each small template is r; the reconstruction viscosity numerical flux function on the large template and the small template is obtained respectively by using the reconstruction-based integral function; the viscosity numerical flux on the boundary of the target unit on the large template and the small template is obtained.
[0052] Furthermore, the reconstruction-based integral function is used to obtain the reconstructed viscosity numerical flux function p(x) on the large template, which is expressed as:
[0053]
[0054] Where x represents the input parameter; j represents the jth grid unit; G(u(x j ),u x (x j )) represents the viscosity term of the equation in the grid cell x in the corresponding template j The function value on is given by u(x j ) and u x (x j ) composite composition; u(x j ) represents the jth grid cell x j The value of the independent variable function on u x (x j ) represents the jth grid cell x j The derivative value of the independent variable function on ; S represents the large template.
[0055] Furthermore, based on the viscosity numerical flux function p(x) obtained in the above steps, the boundary of the target unit on the large template is obtained. Viscous numerical flux on The expression is:
[0056]
[0057] Furthermore, the reconstruction-based integral function is used to obtain the reconstructed viscosity numerical flux function p of each small template. m (x), the expression is:
[0058]
[0059] Furthermore, based on the viscosity numerical flux function p obtained in the above steps, m(x), get the target unit boundary on the small template Viscous numerical flux on The expression is:
[0060]
[0061] Step 3: Numerical flux on the large template obtained in step 2 Numerical flux on a small template And the corresponding target unit boundary The linear weight d of each small template is obtained by the method of undetermined coefficients m , the expression is:
[0062]
[0063] Among them, d m represents the linear weight of the mth small template; Indicates that the large template S calculated in step 2 is at the boundary of the target unit The corresponding viscosity numerical flux; represents the small template S obtained by step 2 m In the target unit The corresponding viscosity numerical flux.
[0064] Step 4: Reconstruct the viscosity numerical flux function p of each small template based on step 2 m (x) Obtain the corresponding smoothness factor on the small template;
[0065] The expression of the smooth factor is:
[0066]
[0067] Among them, β m represents the smoothness factor of the mth small template, which is the viscosity numerical flux function p on the corresponding small template m (x) is the integral of the sum of squares of the derivative functions of each order; r represents the number of grid cells on the small template; xJ represents the coordinates of the center point of the Jth target cell discrete point; xJ+1 represents the coordinates of the center point of the J+1th target cell discrete point; It means to find the l-order derivative of the flux function along the x-axis, l = 1, 2, ... r; dx means to integrate the x-th input parameter;
[0068] Among them, the smoothing factor β m is a series of point values of the viscosity flux term G(u(x j ),u x (x j )) is a linear combination of u(x j ) and u x(x j ) composite composition, u(x j ) represents the value of the independent variable function on the jth grid unit; u x (x j ) represents the derivative value of the independent variable function on the jth grid unit; where u(x j ) can be directly obtained through the flow field point value, and u x (x j ) then we need to construct a Lagrange interpolation function on the small template and find its derivative, and then calculate the corresponding point x=x j Substitute the coordinates of into the calculation to obtain;
[0069] Furthermore, the Lagrangian interpolation function of each small template is:
[0070]
[0071] Among them, l m,j (x) represents the jth Lagrangian interpolation basis function on the mth small template; u(x j ) represents the center point x=x at the jth grid cell in the flow field j The value of the function of the independent variable on ;
[0072] Furthermore, the derivative of the Lagrange interpolation function is:
[0073]
[0074] When the corresponding coordinate position x=x j When substituting into the derivative function of the above Lagrange interpolation function, we can get the corresponding derivative function value, that is, Indicates the derivative of the function along the x direction; the final smooth factor β is obtained by combining the expression of the smooth factor and the Lagrange interpolation of each small template m .
[0075] Furthermore, the flow field value includes density, velocity, total energy, etc. of the object to be analyzed.
[0076] Step 5: Based on the linear weights d of each small template in step 3 m and the smoothing factor β from step 4 m , obtain the nonlinear weight ω on each small template m , the expression is:
[0077]
[0078] Among them, ω m represents the nonlinear weight on the mth small template; Represents the nonlinear weight of the intermediate process; dm represents the linear weight of the mth small template; ε represents a small positive number to avoid the denominator being 0;
[0079] Preferably, ε=10 -6 .
[0080] Step 6: Based on the nonlinear weights on each small template and the target unit boundaries on each small template Viscous numerical flux on Get the final target cell boundary The specific expression of the viscosity numerical flux on is:
[0081]
[0082] It can be understood that the viscous numerical fluxes on the target unit boundary include density, velocity, pressure, total energy and temperature.
[0083] Furthermore, the target cell boundary on the small template Viscous numerical flux on is a series of point values of the viscosity flux term G(u(x j ),u x (x j )) is a linear combination of u(x j ) and u x (x j ) composite composition, u(x j ) represents the value of the independent variable function on the jth grid unit; u x (x j ) represents the derivative value of the independent variable function on the jth grid unit; where u(x j ) can be directly obtained through the flow field point value, and u x (x j ) then we need to construct a Lagrange interpolation function on the small template and find its derivative, and then calculate the corresponding point x=x j Substitute the coordinates of into the calculation to obtain Then, by constructing the Lagrange interpolation function on the small template and finding its derivative, we can find the corresponding point x=x j Substitute the coordinates of into the calculation to obtain
[0084] Furthermore, x (x j ) is and The nonlinear weighting function value of is expressed as follows:
[0085]
[0086] in, is the nonlinear weight ω on the mth small template m With linear weight d m The ratio of Φ(θ m ) is a specific Gaussian function value, which is defined as:
[0087]
[0088] Wherein, e represents a natural constant, preferably, e is approximately equal to 2.71828;
[0089] Finally, the viscosity numerical flux on the grid unit boundary can be calculated by using the conserved physical variable value u in the flow field
[0090] Step 7, repeat steps 2-6 to obtain the final target cell boundary Viscous numerical flux on
[0091]
[0092] Step 8: Use the WENO difference scheme to discretize the inviscid numerical flux corresponding to the final viscous numerical flux on the template target unit boundary obtained in steps 6 and 7. The derivative value of the conserved variable in the flow field with respect to time is obtained through the conservation semi-discrete format of the control equation The derivative of the conserved variable with respect to time in the convection field The variable values in the flow field are obtained by advancing the solution in time.
[0093] The conservative semi-discrete format of the control equation is expressed as:
[0094]
[0095] Among them, u j= u(x j ) represents the center point x=x at the jth grid cell in the flow field j The value of the function of the independent variable on .
[0096] Then the derivative of the conserved variable in the flow field with respect to time is The variable values in the flow field are obtained by advancing the solution in time using the third-order Runge-Kutta method.
[0097] Furthermore, variables in the flow field include density, momentum in the x-direction, momentum in the y-direction, total energy, and the like.
[0098] Exemplarily, the variables in the flow field include density ρ, velocity component u in the x-axis direction, velocity component v in the y-axis direction, pressure p, total energy E and temperature T of the fluid.
[0099] The governing equation for solving the variable values in the flow field is the two-dimensional Navier-Stokes equation, which is expressed as follows:
[0100]
[0101] Among them: U is the conserved variable to be solved, F1 and F2 (i.e. and ) is the inviscid term of the equation, G1 and G2 (i.e. and ) is the viscosity term of the equation; x represents the coordinate axis x; y represents the coordinate axis y.
[0102] Furthermore, U, F1, F2, G1, G2 are defined as:
[0103]
[0104] Where τ is the stress variable and q is the heat flux, which is defined as:
[0105]
[0106] For the above two-dimensional Navier-Stokes equation, the corresponding ideal gas state equation is:
[0107]
[0108] Where ρ is the density, u and v are the velocity components in the x-axis and y-axis directions respectively, p is the pressure, E is the total energy, T is the temperature of the fluid, Pr is the corresponding Prandtl constant, and γ is the general heat flow constant, which is 1.4 for an ideal gas.
[0109] Optionally, in the actual calculation process, the physical quantities to be solved are four physical quantities: ρ, u, v, and p. For other physical quantities of interest, such as total energy E, temperature T, etc., they can be obtained by directly solving the state equation.
[0110] It should be noted that the flow field variables in the above steps represent each component of the conservation variables to be solved; in order to illustrate the effectiveness of the method proposed in the present invention, the above technical solution of the present invention is described in detail through a specific embodiment, as follows:
[0111] Take the two-dimensional Mach 2000 jet problem as an example. This problem can be regarded as a simplified model of an aircraft engine nozzle. This is a numerical example with a Mach number of about 2000. The regional mesh division is obtained as follows: Figure 2As shown. The compact robust WENO difference method proposed by the present invention for the supersonic viscous flow problem is used to numerically discretize the viscous terms G1 and G2 in the equation, and the specific simulation accuracy is a sixth-order precision discrete format. For this problem, the specific steps of this method are as follows:
[0112] (1) For this problem, we first determine the computational domain and initial boundary conditions for solving the problem. The computational domain of this problem is: This problem is a rectangular computational domain of [0,1]*[-0.25,0.25]. The computational domain is divided into structured grids, such as Figure 2 As shown; in the same dimensional direction, the calculation area can be divided into N non-intersecting grid units, where The jth grid cell I j Defined as: and For unit I j The unit boundary of the problem; the initial conditions of the problem are: in the initial state, density ρ = 0.5, velocity u = v = 0, and pressure p = 0.4127; the boundary conditions of the problem are: the right boundary, upper boundary, and lower boundary are outflow boundary conditions, and the left boundary is the inflow boundary condition, specifically: when y∈[-0.05,0.05], density ρ = 5, velocity u = 800, v = 0, and pressure p = 0.4127, and the rest are: density ρ = 5, velocity u = 0, v = 0, and pressure p = 0.4127;
[0113] (2) Flow field initialization: Based on the initial conditions given above, the flow field can be initialized directly according to the unknown points in the calculation area, and the flow field state information of the corresponding points at the initial time can be obtained;
[0114] (3) Calculate the numerical flux expressions on different templates: To perform a sixth-order compact central difference discretization on the viscosity term G1 in the equation and obtain the unit boundary The numerical flux on the first definition of a template S = {x j-2 ,x j-1 ,x j ,x j+1 ,x j+2 ,x j+3} and three small templates S m ={x j-2+m ,...,x j+1+m},m=0,1,2, such as Figure 1 As shown, a quintic polynomial is defined on the large template S: p(x) = a0+a1x+a2x 2 +a3x 3 +a4x 4 +a5x 5, where a0, a1, a2, a3, a4, a5 are unknown coefficients to be determined; to obtain these unknown coefficients, we can use the function implicitly defined on the template S Where j = {j-2, j-1, j, j+1, j+2, j+3} is the corresponding unit index on the template S. Substituting the polynomial into it, we can get a closed system of equations of five variables. Solving the system of equations can get the corresponding unknown coefficients a0, a1, a2, a3, a4, a5, and take the function p(x) The function value on the unit boundary can be obtained by Numerical flux expression on : Similarly, the same operation can be performed on the three small templates to obtain the numerical flux on the corresponding small templates:
[0115]
[0116] (4) Calculate the linear weight on the small template: In order to make the numerical flux on the small template weighted to the value on the large template, define the formula: The corresponding linear weight can be calculated as:
[0117]
[0118] (5) Calculate the smoothness factor on the small template: By integrating the expression The smooth factor on the small template can be calculated. For the derivative function value involved in the smooth factor, the Lagrange interpolation function can be directly constructed on the corresponding small template, its derivative function can be calculated, and the corresponding point value can be taken to obtain the result.
[0119] (6) Convert linear weights into nonlinear weights:
[0120] The nonlinear weights ω corresponding to different small templates can be calculated m ;
[0121] (7) Nonlinear weighting of the derivative function value on the small template: Definition For the derivative function in the numerical flux expression on the small template, the Gaussian function The derivative function value calculated by the small template and the derivative function value calculated by the large template are nonlinearly weighted. The specific expression is: Calculate in this way The values of the derivative functions involved;
[0122] (8) Calculate the viscosity numerical flux on the unit boundary: From the expression The final viscosity numerical flux on the unit boundary can be calculated by nonlinear weighting, and the viscosity term G2 can be numerically discretized in a similar way;
[0123] (9) For the inviscid terms F1 and F2 in the equation, the weighted essential non-oscillatory method can be used for discretization, and the inviscid numerical flux on the unit boundary can be obtained by calculation;
[0124] (10) Advancing the solution in time: The inviscid numerical flux and viscous numerical flux on the unit boundary are calculated through the above steps, that is, the spatial discretization has been completed, and then the solution can be advanced in time.
[0125] Furthermore, the time-marching solution is performed by using the following third-order TVD type Runge-Kutta method, which is expressed as:
[0126]
[0127] in, Unit I is n time j The point value on, Δt is the time step, Unit I is n time j The spatial discrete operator on , Unit I at time n+1 j The point value on the graph can be used to advance the numerical solution to the next moment through the above formula;
[0128] (11) Repeat steps (3) to (10) until the set calculation time is reached, and the calculation results ρ, u, v, p can be output to complete the discrete solution of the algorithm. In this example, the logarithmic function density diagram of the Mach 2000 jet problem at time t = 0.001 is shown in Figure 3 shown.
[0129] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A flow field analysis method for supersonic viscous fluid, characterized in that: The specific steps are as follows: Step 1, generating a structured grid of the area to be analyzed of the object to be analyzed; initializing the function point values on the grid cells according to the given initial boundary value conditions to obtain the function value of each grid cell in the initial state; Step 2: According to the viscosity numerical flux at the boundary of the target grid cell Determine the grid unit required for the format discretization in the viscosity term of the control equation and define it as the large template S; divide the large template S into several small templates S of the same size m , m=0,1,2…,N, where N is the number of divided small templates, and the number of grid cells on each small template is r; the reconstruction viscosity numerical flux function on the large template and the small template is obtained by using the integral function based on reconstruction; the viscosity numerical flux on the boundary of the target cell on the large template and the small template is obtained; Step 3: The numerical flux on the large template obtained in step 2 Numerical flux on a small template And the corresponding target unit boundary The linear weight d of each small template is obtained by the method of undetermined coefficients m ; Step 4: Reconstruct the viscosity numerical flux function p of each small template based on step 2 m (x) Obtain the corresponding smoothness factor on the small template; Step 5: Based on the linear weights d of each small template in step 3 m and the smoothing factor β from step 4 m , obtain the nonlinear weight ω on each small template m ; Step 6: Based on the nonlinear weights on each small template and the target unit boundaries on each small template Viscous numerical flux on Get the final target cell boundary Viscous numerical flux on ; Step 7, repeat steps 2-6 to obtain the final target cell boundary Viscous numerical flux on Step 8: Use the WENO difference scheme to discretize the inviscid numerical flux corresponding to the final viscous numerical flux on the target unit boundary obtained in steps 6 and 7. The derivative value of the conserved variable in the flow field with respect to time is obtained through the conservation semi-discrete format of the control equation The derivative of the conserved variable with respect to time in the convection field The variable values in the flow field are obtained by advancing the solution in time.
2. The flow field analysis method of supersonic viscous fluid according to claim 1, characterized in that: The object of flow field analysis is a supersonic vehicle.
3. The flow field analysis method of supersonic viscous fluid according to claim 2, characterized in that: The initial and boundary conditions are supersonic far-field incoming flow conditions.
4. The flow field analysis method of supersonic viscous fluid according to claim 1, characterized in that: The reconstruction-based integral function is used to obtain the reconstructed viscosity numerical flux function p(x) on the large template, which is expressed as: Where x represents the input parameter; j represents the jth grid unit; G(u(x j ),u x (x j )) represents the viscosity term of the governing equation in the grid cell x in the corresponding template j The function value on u(x j ) represents the jth grid cell x j The value of the independent variable function on u x (x j ) represents the jth grid cell x j The value of the derivative of the independent variable function on .
5. The flow field analysis method of supersonic viscous fluid according to claim 4, characterized in that: Based on the viscosity numerical flux function p(x) obtained in the above steps, the target unit boundary on the large template is obtained Viscous numerical flux on The expression is:
6. The flow field analysis method of supersonic viscous fluid according to claim 1, characterized in that: The reconstruction-based integral function is used to obtain the reconstructed viscosity numerical flux function p of each small template. m (x), the expression is: Where x represents the input parameter; j represents the jth grid unit; G(u(x j ),u x (x j )) represents the viscosity term of the governing equation in the grid cell x in the corresponding template j The function value on u(x j ) represents the jth grid cell x j The value of the independent variable function on u x (x j ) represents the jth grid cell x j The value of the derivative of the independent variable function on .
7. The flow field analysis method of supersonic viscous fluid according to claim 1, characterized in that: In step 3, the linear weight d of each small template m The expression is: Among them, d m represents the linear weight of the mth small template; Indicates that the large template S calculated in step 2 is at the boundary of the target unit The corresponding viscosity numerical flux; represents the small template S obtained by step 2 m In the target unit The corresponding viscosity numerical flux.
8. The flow field analysis method of supersonic viscous fluid according to claim 1, characterized in that: In step 4, the expression of the smoothing factor is: Among them, β m represents the smoothing factor of the mth small template; r represents the number of grid cells on the small template; xJ represents the coordinates of the center point of the Jth target unit discrete point; xJ+1 represents the coordinates of the center point of the J+1th target unit discrete point; It means to find the l-th order derivative of the flux function along the x-axis, where l = 1, 2, … r; dx means to integrate the x-th input parameter.
9. The flow field analysis method of supersonic viscous fluid according to claim 8, characterized in that: Nonlinear weight ω on small template m , the expression is: Among them, ω m Represents the nonlinear weight on the mth small template; Represents the nonlinear weight of the intermediate process; d m represents the linear weight of the mth small template; ε represents a small positive number to avoid the denominator being 0.
10. The flow field analysis method of supersonic viscous fluid according to any one of claims 1 to 9, characterized in that: The variable values in the flow field obtained in step 8 are density, momentum in the x-axis direction, momentum in the y-axis direction, and total energy.
Citation Information
Patent Citations
Method for simulating compressible flow field problem in multi-resolution TWENO format
CN110069854A
High-precision shock wave capturing method based on finite difference method
CN115510717A
Physical quantity solving method in fluid problem
CN116258035A
WENO-based high-resolution high-precision shock wave discontinuous capturing method
CN116415518A
Viscous fluid flow field characteristic acquisition method based on region coupling
CN116663443A
