A method for constructing an adaptive reaction mechanism to simulate supersonic combustion flows
Through the adaptive reaction mechanism method, global sensitivity analysis and partitioning algorithms are used to efficiently simulate supersonic combustion flow in a wide range of operating conditions, which solves the problems in the existing technology of low calculation efficiency of detailed reaction mechanisms and inability to accurately simulate simplified mechanisms, and achieves Highly accurate and efficient combustion flow simulation.
Patent Information
- Application Number
- CN202111482349.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-12-07
AI Technical Summary
When the existing technology simulates supersonic combustion flow, the detailed reaction mechanism calculation efficiency is low, and the simplified mechanism cannot accurately simulate combustion characteristics in a wide range of operating conditions, resulting in insufficient calculation accuracy and efficiency.
The adaptive reaction mechanism method is used to divide the thermodynamic state space through global sensitivity analysis and partitioning algorithm, build an adaptive reaction mechanism library, and adjust the primitive reaction pre-exponential factor to maintain high calculation accuracy in a wide range of working conditions while greatly improving Computational efficiency.
It achieves high-precision simulation of supersonic combustion flow in a wide range of operating conditions, significantly reduces calculation time, and improves the calculation efficiency of combustion flow simulation. The adaptive reaction mechanism can be directly coupled to the CFD program, making it easy to promote and use.
Smart Images

Figure CN114171127B
Abstract
Description
Technical Field
[0001] The invention relates to the field of simulation of supersonic combustion flow problems, and in particular to a method for constructing an adaptive reaction mechanism to simulate supersonic combustion flow. Background Art
[0002] The chemical reaction mechanism used in supersonic combustion flow simulation determines the chemical reaction source term of the control equation (NS equation with multiple components including reaction source term), and the number of components and elementary reactions of the reaction mechanism determines the simulation accuracy and the computational time. The chemical reaction mechanism is of great significance for the simulation of supersonic combustion flow problems. However, in actual combustion simulation, the computational resources consumed by the simulation are relatively large due to the excessive number of components and elementary reactions contained in the detailed reaction mechanism of the fuel. In order to reduce the amount of calculation, simplified mechanisms with fewer components and elementary reactions have been widely used in the industry. However, a single simplified mechanism cannot accurately calculate the combustion flow problem. Therefore, combustion flow simulation urgently needs a chemical reaction mechanism with high computational accuracy and high computational efficiency over a wide range of operating conditions. Summary of the invention
[0003] The purpose of the present invention is to provide a method for constructing an adaptive reaction mechanism to simulate supersonic combustion flow, in view of the low efficiency of existing detailed mechanism calculations of combustion flow problems and the inability of simplified mechanisms to accurately simulate combustion characteristics under a wide range of operating conditions. The method uses an adaptive grid method to divide the thermodynamic state space, takes the reaction of a highly efficient simplified mechanism as a benchmark, takes the ignition delay time of a highly accurate detailed mechanism as a target, constructs an adaptive reaction mechanism of the fuel in each thermodynamic state region, and maintains the calculation accuracy within a wide range of operating conditions while greatly improving the calculation efficiency.
[0004] The object of the present invention is achieved through the following technical solutions:
[0005] A method for constructing an adaptive reaction mechanism to simulate supersonic combustion flow, the method comprising the steps of:
[0006] (1) Use global sensitivity analysis to obtain the pre-exponential factors of the elementary reactions that need to be corrected;
[0007] (2) Use the partitioning algorithm to divide the thermodynamic state space:
[0008] (3) Based on the divided regions, construct an adaptive reaction mechanism library;
[0009] (4) Storage and retrieval of adaptive reaction mechanism libraries;
[0010] (5) Simulate supersonic combustion flow based on the adaptive reaction mechanism library.
[0011] As a further technical solution, step (1) is specifically: using a global sensitivity method to evaluate the global sensitivity coefficient of the calculated ignition delay time to the pre-exponential factor of the elementary reaction, and then adjusting the pre-exponential factor of the elementary reaction of the simplified mechanism so that the delay time calculated at the selected state point of the adjusted simplified mechanism is consistent with the ignition delay time calculated by the detailed mechanism; the delay time is a calculation parameter of the chemical mechanism under the zero-dimensional ignition model, and the zero-dimensional ignition model is a simplified two-dimensional chemical reaction multi-component Euler equations.
[0012] As a further technical solution, the simplified two-dimensional chemical reaction multi-component Euler equations are the control equations used to describe the combustion flow problem without considering viscosity, and are composed of three parts: conservation of mass, conservation of momentum, and conservation of energy. Among them, U in the equation group represents the conserved quantity, E and F represent the flux in the x-direction and y-direction respectively, and S represents the chemical reaction source term. The specific form is Among them, ρ, P, e represent the density, pressure and specific internal energy of the gas, u, v represent the speed in the x and y directions, ns represents the number of components, ρ i represents the density of the i-th component, σ i represents the mass generation rate of the ith component.
[0013] As a further technical solution, the ignition delay time is defined as: for the zero-dimensional ignition control equation To solve, set the horizontal axis to time and the vertical axis to temperature. The obtained temperature-time curve is the ignition curve. On the ignition curve, each moment corresponds to a temperature gradient, which is defined as The discrete expression is tg represents the temperature gradient, tg (n) represents the temperature gradient at the nth moment, T(T (n) ) represents the temperature at the nth moment, Δt represents the time step used to calculate the control equation, and in the ignition curve, the ignition delay time is defined as the moment corresponding to the position with the maximum temperature gradient.
[0014] As a further technical solution, the global sensitivity coefficient is specifically as follows: consider the following mathematical model of n input variables, use vector x to represent n input variables, scalar y to represent output, y=f(x), x∈Kn, input x is defined on the n-dimensional unit cube Kn, and f(x) is decomposed by Sobol, that is, polynomial expansion is performed on f(x) to expand it into an independent variable function. When f(x) is integrable on Kn, the expanded form is unique:
[0015] in:
[0016]
[0017]
[0018] The expanded polynomial satisfies When {i1,...,i s}≠{j1,...j s}, Represents all except x i Integrate the variables outside Represents the pair except x i and x j Integrate the external variables.
[0019] As a further technical solution, step (2) is specifically as follows: first, state points are uniformly selected in the state space so that the state points can cover the entire state space, and the ignition delay times of the simplified mechanism and the detailed mechanism are respectively calculated at these state points, and the ignition delay time response surface is constructed. Then, the ignition delay time of any point in the state space is calculated using the trilinear interpolation method, and the difference in the zero-dimensional ignition delay time of the simplified mechanism and the detailed mechanism is evaluated in the pre-divided sub-areas, and the reaction area is iteratively divided until the difference between the two meets the requirements.
[0020] As a further technical solution, the difference between the zero-dimensional ignition delay time of the simplified mechanism and the detailed mechanism is evaluated as follows: in each region of the state space, a custom relative error parameter Re is calculated for each region, Re representing the maximum relative change in the error between the zero-dimensional ignition delay time of the simplified mechanism and the detailed mechanism in the sub-region; in the region in refers to the state represented by the center point of the sub-region, It refers to the state represented by any point in the sub-area, igtd is the ignition delay time of the detailed mechanism, and igts is the ignition delay time of the simplified mechanism.
[0021] As a further technical solution, step (3) is specifically as follows: by correcting the elementary reaction pre-exponential factor of the simplified mechanism selected in the global sensitivity analysis to construct an adaptive reaction mechanism library, firstly realizing the mechanism generation at a single state point, obtaining the adjustment multiple of the pre-exponential factor of the center point of each divided area, and then realizing the mechanism generation in the state space; the mechanism generation at a single state point refers to: selecting a state point in the thermodynamic state space And adjust the parameters at the state point to generate a reaction mechanism; the mechanism generation in the state space refers to: based on the known coordinates of a finite number of sample points and the reaction mechanism of this sample point, an interpolation algorithm is used to realize the adaptive reaction mechanism of any point in the state space using a finite number of sample points.
[0022] Compared with the prior art, the present invention generates an adaptive reaction mechanism that keeps the components and elementary reactions unchanged, so that the adaptive mechanism can be directly coupled to the CFD program without modifying the chemical reaction program of the original program, and is easy to promote and use. Compared with a CFD system using a single simplified mechanism, a CFD system considering an adaptive reaction mechanism can reduce calculation time and improve calculation accuracy when simulating flow combustion problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a work flow chart of the present invention;
[0024] Figure 2 Partitioning algorithm flow chart;
[0025] Figure 3 This is the flow chart of the rough adjustment algorithm;
[0026] Figure 4 To fine tune the algorithm flow chart;
[0027] Figure 5 This is the flow chart of the corner point parameter estimation algorithm;
[0028] Figure 6 It is the flow chart of the algorithm for calculating the weight coefficient;
[0029] Figure 7 It is a schematic diagram for storing the adaptive reaction mechanism library;
[0030] Figure 8 This is the flow chart of the interpolation correction algorithm;
[0031] Fig. 9 It is a schematic diagram of area division and a diagram of the magnitude of ignition delay error of Example 1;
[0032] Fig.10 Figure a is a comparison of temperature curves for a zero-dimensional ignition implementation case;
[0033] Fig.11 Figure b is a temperature curve comparison diagram of the zero-dimensional ignition implementation case;
[0034] Fig.12 Figure c is a temperature curve comparison diagram of the zero-dimensional ignition implementation case;
[0035] Fig.13 Figure d is a temperature curve comparison diagram of the zero-dimensional ignition implementation case;
[0036] Fig.14 Figure e is a temperature curve comparison of the zero-dimensional ignition implementation case;
[0037] Fig.15 Figure f is a temperature curve comparison diagram of the zero-dimensional ignition implementation case;
[0038] Fig.16 It is a schematic diagram of the implementation case of one-dimensional gas column;
[0039] Fig.17 It is the temperature distribution diagram of one-dimensional air column flow field;
[0040] Fig.18 This is a schematic diagram of a two-dimensional oblique detonation implementation case;
[0041] Fig.19 This is a two-dimensional oblique detonation isobar diagram. DETAILED DESCRIPTION
[0042] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0043] Example
[0044] This embodiment provides a method for constructing an adaptive reaction mechanism to simulate supersonic combustion flow. Figure 1 As shown, it uses a data-driven pre-partitioning adaptive method to solve the problem that detailed mechanism calculations of combustion flow problems are inefficient and simplified mechanisms cannot accurately simulate combustion characteristics under a wide range of operating conditions. An adaptive reaction mechanism is constructed to maintain the calculation accuracy within a wide range of operating conditions while greatly improving the calculation efficiency.
[0045] The method of constructing an adaptive reaction mechanism to simulate supersonic combustion flow can be divided into five steps: the first step is to use global sensitivity analysis to obtain the pre-exponential factors of the elementary reactions that need to be corrected; the second step is to use a partitioning algorithm to divide the thermodynamic state space; the third step is to construct an adaptive reaction mechanism library based on the divided areas; the fourth step is the storage and retrieval of the adaptive reaction mechanism library; the fifth step is to simulate the supersonic combustion flow according to the adaptive reaction mechanism library.
[0046] The instructions for the first step are as follows:
[0047] The present invention adjusts the pre-exponential factor of the elementary reaction of the simplified mechanism so that the delay time calculated at the selected state point of the adjusted simplified mechanism is consistent with the ignition delay time calculated by the detailed mechanism. Therefore, it is necessary to use a global sensitivity method to evaluate the global sensitivity coefficient of the calculated ignition delay time to the pre-exponential factor of the elementary reaction.
[0048] The delay time is a calculation parameter of the chemical mechanism under the zero-dimensional ignition model, and the zero-dimensional ignition model is a simplified two-dimensional chemical reaction multi-component Euler equations.
[0049] The two-dimensional chemical reaction multi-component Euler equations are the control equations used to describe the combustion flow problem without considering viscosity. They are composed of three parts: conservation of mass, conservation of momentum, and conservation of energy. Among them, U in the equation group represents the conserved quantity, E and F represent the flux in the x-direction and y-direction respectively, and S represents the chemical reaction source term. The specific form is Among them, ρ, P, e represent the density, pressure and specific internal energy of the gas, u, v represent the speed in the x and y directions, ns represents the number of components, ρ i represents the density of the i-th component, σ i represents the mass generation rate of the i-th component. The first four equations in this system represent the conservation of mass, momentum and energy of the gas respectively; the last ns equations represent the conservation of mass of the corresponding components. Since the mass conservation equation of each component is equivalent to the mass conservation equation of the gas, the form of the sum of the last ns equations is the same as the first equation, so there are ns+3 independent equations in this system. In the two-dimensional multi-component Euler equations for chemical reactions, the independent variables are ρ i (i=1, 2, ..., ns), P, u, v, e, a total of ns+4, while the equation group has only ns+3 independent equations. Therefore, to solve the two-dimensional multi-component Euler equation, it is necessary to provide another independent equation to close the equation group. The additional equation provided by the present invention is the multi-component ideal gas state equation, and its specific form is: Among them, P i is the partial pressure of the ith component, Y i is the mass fraction of the ith component, R i is the gas constant of the i-th component, and T is the temperature. If the gas constant is expressed as The gas state equation can be expressed as Where R u is the universal gas constant, M i represents the molar mass of the i-th component, represents the average molar mass of the gas, which can be expressed as: Finally, substitute into the formula ρ i =ρY i , the multi-component ideal gas state equation can be expressed as
[0050] For the chemical reaction source term S of the multi-component Euler equation of two-dimensional chemical reaction, the numerical simulation of reaction flow in engineering widely uses the finite rate chemical reaction kinetic model to describe the chemical reaction process. The simplified mechanism and complex mechanism mentioned above are a kind of finite rate reaction kinetic model. For a reaction mechanism with ns as the number of components and nr as the number of elementary reactions, the mass generation rate σi of component i can be calculated by the kinetic equation group. In the chemical reaction mechanism, the rth elementary reaction, r = 1, 2, ..., nr can be expressed as where v′ i,r , v″ i,rThe forward reaction stoichiometric constant and the reverse reaction stoichiometric constant of component i in elementary reaction r are respectively. The forward reaction stoichiometric constant refers to the equivalent coefficient when component i is a reactant in the elementary reaction, and the reverse reaction stoichiometric constant refers to the equivalent coefficient when component i is a product in the elementary reaction. i Represents the molar concentration fraction of component i: Where ci is the molar concentration of the i-th component and c is the molar concentration of the mixed gas. The mass generation rate of component i can be expressed as: where RR r is the net reaction rate in the elementary reaction r, expressed as: where TBi,r is the three-body collision coefficient of component i in elementary reaction r, given by the chemical reaction mechanism. The forward reaction rate constant k for reaction r can be calculated using the Arrhenius formula f,r : Among them A r 、b r and T a,r Represent the pre-exponential factor, temperature coefficient and activation energy of the elementary reaction r, respectively, which are given by the chemical reaction mechanism. For the reverse chemical reaction rate constant k b,r There are two ways to calculate it. If the above parameters are available, it can be calculated in the same way as the forward reaction rate constant; if there are no corresponding parameters, it can be calculated using the reaction equilibrium constant. The reaction equilibrium constant expressed in concentration in the elementary reaction r is: p0 represents a standard atmospheric pressure, k eq,r|p is the equilibrium constant expressed in terms of pressure, and is in, gi is the Gibbs free energy of component i, which can be obtained from the specific enthalpy hi and specific entropy si: g i =h i -Ts i Specific enthalpy and specific entropy can be obtained by fitting the formula The polynomial fitting coefficients in the formula can be obtained from NASA's thermochemical polynomial fitting data.
[0051] The control equations mentioned above involve the discretization and solution format of differential equations. The discretization and solution format of differential equations are collectively referred to as calculation formats. The present invention mainly solves the multi-component Euler equations of chemical reactions, which are divided into flow solutions and chemical reaction source term solutions. Since the calculation problem is relatively simple, the flow-combustion decoupling algorithm is adopted, and its specific form is U (n+1) =R(Δt)F(Δt)U (n) Among them, U (n)represents the conservation quantity of the multi-component Euler equation for a two-dimensional chemical reaction at the nth moment, U (n+1) represents the conservation quantity of the two-dimensional chemical reaction multi-component Euler equation at the (n+1)th moment, F is the flow operator, and the equation solved by this operator is the two-dimensional multi-component Euler equation: F(Δt) indicates the change in the conserved quantity due to the flow effect after a time step of Δt. The solution of F adopts the AUSM format. F is the flow operator, and the equation solved by this operator is the chemical reaction source ODE equation: R(Δt) represents the change in the conserved quantity due to chemical reaction after a time step of Δt. The solution of R adopts the direct explicit decoupling format: in, is the density of the ith component at the nth moment, is the density of the ith component at the n+1th time, Δt is the time step for solving the reaction source term, σ i is the mass fraction generation rate of the ith component. The zero-dimensional ignition model does not consider the flow effect, but only the chemical reaction source term. Therefore, in the control equation, Therefore, the two-dimensional chemical reaction multi-component Euler equation is degenerated into the chemical reaction source term ODE equation group For the conserved quantity u=v=0, Specifically, the equations are: Since the mass conservation equation of the mixed gas The component mass conservation equation can be used Add them together, so the equation consists of ns+1 independent equations, expressed as Therefore, the physical process of zero-dimensional ignition simulation is: a constant-volume, insulated container is filled with a mixed gas, and it is a process in which the mixed gas undergoes self-ignition. By setting the initial conditions and solving the zero-dimensional ignition control equation, we can obtain the physical evolution process dominated by the chemical reaction source term. The horizontal axis is set to time, and the vertical axis is set to temperature. The obtained temperature-time curve is the ignition curve. The zero-dimensional ignition process can be divided into three stages: in the first stage, as time goes by, the temperature does not change significantly. In the second stage, ignition occurs and the temperature rises rapidly in a short period of time. The third stage is the stable stage. After the ignition process is completed, the mixed gas is in a high-temperature, stable state. On the ignition curve, each moment corresponds to a temperature gradient, which is defined as The discrete expression is tg represents the temperature gradient, tg (n) represents the temperature gradient at the nth moment, T(t (n)) represents the temperature at the nth moment, and Δt represents the time step used to calculate the control equation. In the ignition curve, the ignition delay time is defined as the moment corresponding to the position with the maximum temperature gradient.
[0052] The sensitivity index includes a global sensitivity coefficient and a variance-based sensitivity coefficient, wherein: the size of the global sensitivity coefficient represents the contribution of the change in the reaction rate of each elementary reaction to the change in the total ignition delay time; the variance-based sensitivity coefficient represents the contribution of the input variation range to the total output variance.
[0053] The global sensitivity coefficient is specifically as follows: Consider the following mathematical model of n input variables, use vector x to represent n input variables, scalar y to represent output, y=f(x), x∈Kn, input x is defined on the n-dimensional unit cube Kn, and f(x) is decomposed by Sobol, that is, polynomial expansion is performed on f(x) to expand it into an independent variable function. When f(x) is integrable on Kn, the expansion form is unique:
[0054] in:
[0055] The expanded polynomial satisfies When {i1,...,i s}≠{j1,...j s}, Represents all except x i Integrate the variables outside Represents all except x i and x j Integrate the external variables.
[0056] The specific steps of the global sensitivity analysis for the simplified mechanism are: take three sections with equivalence ratios of 0.2, 1.0, and 2.0 in the state space, uniformly sample five sample points on the three sections with different equivalence ratios, representing five cases of low temperature and low pressure, low temperature and high pressure, high temperature and low pressure, and medium temperature and medium pressure, and use the global sensitivity analysis method to calculate the sensitivity coefficient of the ignition delay time to the pre-exponential factor at each sample point. Comprehensively consider the size of the sensitivity coefficient of each sample point, and select the pre-exponential factors of two elementary reactions as the correction objects in the subsequent steps.
[0057] The instructions for the second step are as follows:
[0058] The partitioning algorithm of the present invention is an adaptive grid technology that continuously generates subgrids according to parameters in the thermodynamic state space to meet the requirements of the present invention for dividing regions. The flow chart of the partitioning algorithm is as follows: Figure 2The specific process is: first, uniformly select state points in the state space so that the state points can cover the entire state space, and calculate the ignition delay time of the simplified mechanism and the detailed mechanism at these state points, respectively, and construct the ignition delay time response surface, and then use the trilinear interpolation method to calculate the ignition delay time of any point in the state space, evaluate the difference between the simplified mechanism and the detailed mechanism zero-dimensional ignition delay time in the pre-divided 50×50×20 sub-region, and iteratively divide the reaction region until the difference between the two meets the requirements of the present invention.
[0059] The ignition time delay response surface refers to: equally dividing the pressure, temperature, and equivalence ratio dimensions into 901, 201, and 41 parts respectively, selecting 901×201×41 sample points, and calculating the simplified mechanism and the zero-dimensional ignition delay time of each sample point.
[0060] The difference between the simplified mechanism and the detailed mechanism zero-dimensional ignition delay time is evaluated as follows: in each region of the state space, the self-defined relative error parameter Re of each region is calculated, and Re represents the maximum relative change of the error between the simplified mechanism and the detailed mechanism zero-dimensional ignition delay time in the sub-region. in refers to the state represented by the center point of the sub-region, It refers to the state represented by any point in the sub-area, igtd is the ignition delay time of the detailed mechanism, and igts is the ignition delay time of the simplified mechanism.
[0061] The iterative division of the reaction area means that in the pre-divided 50×50×20 sub-area, when the Re of the detailed mechanism and the simplified mechanism zero-dimensional ignition delay time is greater than 15%, the area is equally divided in the three dimensions of pressure, temperature, and equivalence ratio, that is, the area is evenly divided into eight sub-areas, and these eight sub-areas are iteratively evaluated until Re of all areas is less than 15%, and the partitioning algorithm is completed.
[0062] The instructions for the third step are as follows:
[0063] The present invention constructs an adaptive reaction mechanism library by correcting the primitive reaction pre-exponential factors of simplified mechanisms selected in global sensitivity analysis, firstly realizes mechanism generation at a single state point, obtains the adjustment multiples of the pre-exponential factors of the center points of each divided area, and finally realizes mechanism generation in the state space.
[0064] The mechanism generation at a single state point refers to: selecting a state point in the thermodynamic state space The parameters are adjusted at the state point to generate the reaction mechanism. In the present invention, the center point of each sub-region is selected as the state point to realize the generation of the mechanism. The process can be divided into two steps: coarse adjustment and fine adjustment.
[0065] The rough adjustment algorithm process is as follows Figure 3 As shown. The zero-dimensional ignition delay time of the detailed mechanism is igtd, the zero-dimensional ignition delay time of the simplified mechanism is igts, the two elementary reactions selected by the global sensitivity analysis are R1 and R2, the pre-exponential factors of the two elementary reactions are A1 and A2, and the gradient of the ignition delay time to the pre-exponential factors A1 and A2 of the elementary reactions is recorded as dA is the adjustment step size of the coarse adjustment. In the present invention, In the rough adjustment algorithm, the zero-dimensional ignition delay time igtd, igts and the gradient of the ignition delay time to the pre-exponential factor of the detailed mechanism and the simplified mechanism are first calculated. Then compare the size of igtd and igts. If igtd>igts, it means that the elementary reaction of the simplified mechanism is too fast and the reaction rate of the elementary reaction needs to be reduced, that is, the elementary reaction pre-exponential factor needs to be reduced. The specific calculation is: Then use the adjusted pre-exponential factors A′1 and A′2 to calculate the new ignition delay time igts and the gradient of the ignition delay time to the elementary reaction. If igtd>igts, repeat the above process until igtd≤igts, and output the parameters A1, A2 before adjustment and A′1, A′2 after adjustment in the last cycle. On the contrary, if igtd<igts, it means that the elementary reaction of the simplified mechanism ES model is slow, and it is necessary to increase the reaction rate of the elementary reaction, that is, increase the elementary reaction pre-exponential factor, which is calculated as follows: Then use the adjusted pre-exponential factors A′1 and A′2 to calculate the new ignition delay time igts and the gradient of the ignition delay time to the elementary reaction. If igtd<igts, repeat the above process until igtd≥igts, and output the parameters A1, A2 before adjustment and A′1, A′2 after adjustment in the last cycle.
[0066] The coarse parameter adjustment algorithm outputs two sets of pre-exponential factors A1, A2 and A'1, A'2. The two ignition delay times of the simplified mechanism calculated using the two sets of parameters are one greater than the ignition delay time calculated by the detailed mechanism, and one less than the ignition delay time calculated by the detailed mechanism. Therefore, the pre-exponential factor that can accurately calculate the ignition delay time exists between these two sets of parameters, so the fine adjustment algorithm is needed to further find this value.
[0067] The detailed adjustment algorithm process is as follows Figure 4 Based on the symbolic representation in the rough adjustment algorithm, the original pre-exponential factors of the two elementary reactions of the simplified mechanism are It represents the i-th group of pre-exponential factors after the coarse adjustment outputs A1, A2 and A′1, A′2 are divided into n equal parts. In the present invention, n is taken as 21. It represents the final pre-exponential factor determined by fine adjustment, uf1 and uf2 represent the pre-exponential factor adjustment multiples, which are defined as: Input the parameters A1A2A′1A′2 output by the rough adjustment algorithm, divide them into n equal parts at A1A2 and A′1A′2, and get n groups of pre-exponential factors. right Traverse and find a set of pre-exponential factors so that the error |igtd-igts| between the ignition delay time igts calculated using this set of pre-exponential factors and the ignition delay time igtd calculated by the detailed mechanism is minimized. This set of parameters is saved as It is the pre-exponential factor finally determined by the fine adjustment algorithm. Calculate the adjustment multiples uf1 and uf2 of the pre-exponential factor relative to the unadjusted pre-exponential factor of the simplified mechanism, output uf1 and uf2, and the fine adjustment algorithm is completed.
[0068] The mechanism generation in the state space refers to: based on the known coordinates of a finite number of sample points (the center point of each sub-region) and the reaction mechanism of this sample point, an interpolation algorithm is used to realize the adaptive reaction mechanism of any point in the state space using a finite number of sample points.
[0069] The interpolation algorithm includes two sub-algorithms. The first sub-algorithm calculates the adjustment multiple of the pre-exponential factor on the corner points of the cube; the second sub-algorithm calculates the weight coefficient required for interpolation calculation in each sub-region.
[0070] The first sub-algorithm is the corner point parameter estimation algorithm, and its specific process is as follows Figure 5 The specific process is: first, loop input sub-regions, then loop input sub-region corner points, record the corner point coordinates as The pre-exponential factor adjustment multiples that need to be calculated at the corner point are (uf1, uf2). Next, for the input corner point, search all sub-regions near the corner point, that is, find all sub-regions that share the corner point. The number of sub-regions is recorded as n (4≤n≤8), and the coordinates of the center point of the sub-region are recorded as The corresponding pre-exponential factor adjustment multiple at the center point is recorded as Use these searched center points to make the least squares estimate of the corner points. In order to prevent the estimation error caused by the large difference in the scale range of the coordinates, the coordinates of the corner points and the center points are dimensionless: Use least squares estimation of dimensionless parameters: AC1=B1. Solving this equation using the least squares method can yield the three coefficients corresponding to matrix C1, and we can then find Similarly, AC2=B2. Using the least squares method to solve the equation, we can find the three coefficients corresponding to the matrix C2. Then we can find Traverse the corner points of each sub-region, and use the algorithm described above to calculate the adjustment multiple of the pre-exponential factor corresponding to each corner point, and the corner point parameter estimation algorithm is completed.
[0071] The second sub-algorithm is the weight coefficient calculation algorithm, and its specific process is as follows Figure 6 The specific process is: loop input sub-regions, record the coordinates of the sub-region center point as The adjustment factor at the center point is The coordinates of the corner points of the sub-region are The corresponding adjustment parameters are recorded as The interpolation weight coefficient is denoted as a 11 , a 12 , a 13 , a 21 , a 22 , a 23 In order to prevent estimation errors caused by large differences in the scale range of the coordinates, the dimensionless method in the first sub-algorithm is used to process the coordinates of the diagonal points and the center point to obtain the dimensionless expression of the coordinates and make: FX=N1. Solving this equation using the least squares estimation method, we can obtain the weight parameter a about uf1 11 , a 12 , a 13 , the same method can be used to obtain the weight parameter a of uf2 21 , a 22 , a 23 .
[0072] The instructions for step 4 are as follows:
[0073] The present invention stores data in an octree structure. Each uniform partition of the first layer and the sub-regions further divided on this partition constitute an octree structure. Figure 7 As shown, the reaction mechanism of each sub-region is stored as a class in the node of the octree. The variables in this class include: the number of the sub-region, whether a subtree exists, the number of the subtree, the range of the sub-region, the adjustment multiple of the pre-exponential factor of the primitive reaction at the center point, and the weight coefficient used for interpolation. Since the uniform partitions of the first layer are 50*50*20 in total, there are a total of 50,000 octree structures in the present invention for storing the adaptive reaction mechanism.
[0074] The mechanism retrieval algorithm of the present invention can be divided into two steps: the first step is to retrieve the sub-region where a given state point is located, and the second step is to perform interpolation correction on the sub-region.
[0075] The sub-region of a given state point is retrieved using an octree-based retrieval algorithm, and its implementation process is relatively simple: for the input state point, the octree where the state point is located is selected from the 50,000 octrees, and the octree retrieval algorithm is used in this tree to search for the sub-region applicable to the point.
[0076] The interpolation correction algorithm process is as follows Figure 8 In order to obtain an adaptive reaction mechanism suitable for the input state point, it is necessary to use the center point and weight parameters for interpolation correction. The coordinates of the center point of the sub-region are recorded as The adjustment factor at the center point is The input state point coordinates are The pre-exponential factor adjustment multiples to be output are uf1 and uf2, and the two sets of weight coefficients are a. 11 , a 12 , a 13 and a 21 , a 22 , a 23 .
[0077] Use the formula The pre-exponential factor adjustment multiple of any state point in dimensionless processing can be calculated.
[0078] The present invention is described below with several practical examples: Specific embodiment 1
[0080] This embodiment generates a hydrogen-oxygen adaptive reaction mechanism for the supersonic combustion ignition problem with unchanged components and elementary reactions. The detailed hydrogen-oxygen combustion mechanism KS model (11 components, 24 reactions) and the simplified mechanism ES mechanism (8 components, 8 reactions) are selected, and the adaptive mechanism generation method is used to construct an adaptive reaction mechanism under wide-range reaction conditions of 0.5-10atm pressure, 900-1800K temperature, and 0.2-2 equivalence ratio.
[0081] The ES model refers to:
[0082]
[0083] The KS model refers to:
[0084]
[0085]
[0086]
[0087] In this embodiment, three sections with equivalence ratios of 0.2, 1.0, and 2.0 are taken in the state space, and five sample points are uniformly sampled on the three sections with different equivalence ratios, representing five conditions of low temperature and low pressure, low temperature and high pressure, high temperature and low pressure, and medium temperature and medium pressure. The sensitivity of the ignition delay time to the pre-exponential factor is calculated at each sample point using the method of global sensitivity analysis. The pressure of the first sample point is set to 1atm and the temperature is set to 920K, representing the low temperature and low pressure condition; the pressure of the second sample point is set to 9atm and the temperature is set to 920K, representing the low temperature and high pressure condition; the pressure of the third sample point is set to 1atm and the temperature is set to 1780K, representing the low pressure and high temperature condition; the pressure of the fourth sample point is set to 9atm and the temperature is set to 1780K, representing the high temperature and high pressure condition; the pressure of the fifth sample point is set to 5atm and the temperature is set to 1350K, representing the medium temperature and medium pressure condition.
[0088] Since the calculation results of the three sections are similar, only the calculation results of five sample points when the equivalence ratio is 1.0 are shown.
[0089] Table 1 Sensitivity coefficients of five samples
[0090]
[0091] The results of equivalence ratios of 0.2 and 2.0 are similar to the above. According to the calculation results of Table 1, it can be analyzed that the pre-exponential factors of the 2nd, 3rd, 4th, 5th, and 6th elementary reactions have almost no effect on the ignition delay time calculated by the ES model, and changing the pre-exponential factors of the 1st, 7th, and 8th elementary reactions will modify the ignition delay time of the ES model to a relatively large extent. Among them, the ignition delay time calculated by the ES model is most sensitive to the pre-exponential factor A7 of the 7th elementary reaction. In most cases, the ignition delay time is less sensitive to the pre-exponential factor A8 of the 8th elementary reaction. However, at certain state points, the pre-exponential factor A8 of the 8th elementary reaction has a relatively large impact on the ignition delay time. The impact of the 1st elementary reaction A1 on the ignition delay time is always small. Taking the above conclusions into consideration, this embodiment selects the 7th and 8th elementary reactions, and based on these two elementary reactions, modifies the pre-exponential factors of the two elementary reactions, thereby generating an adaptive reaction mechanism.
[0092] The ignition delay error magnitude diagram and partition results of this embodiment when the equivalence ratio is 1 are as follows Fig. 9 As shown in Figure 2, the area where the ignition delay time of the ES model and the KS model differs greatly needs to be divided into more grids to meet the accuracy requirements. Specific embodiment 2
[0094] This embodiment verifies whether the computational complexity of retrieving the reaction mechanism will bring a heavy burden to the solution of the combustion flow problem, tests the efficiency of the retrieval algorithm, randomly selects state points in the state space, and tests the computational time of the retrieval algorithm.
[0095] The results of this example are shown in Table 1.
[0096] Table 1 Retrieval algorithm efficiency test
[0097]
[0098] In this embodiment, the average time spent on one search is about 8.63e-7s. The time spent on one search is very short, and the computational burden brought by solving the combustion flow problem is very small. Specific embodiment 3
[0100] This embodiment targets the hydrogen-oxygen zero-dimensional ignition process, selects 6 different points in the thermodynamic state space as sample points, and calculates the ignition delay time calculated by the ES model, KS model, and adaptive reaction mechanism at the 6 sample points to test the calculation accuracy of the zero-dimensional ignition.
[0101] The six sample points selected in this embodiment all belong to the low temperature region. The states of the sample points are (3atm, 1050K, 0.5), (3atm, 1050K, 1.0), (3atm, 1050K, 1.5), (4atm, 950K, 0.5), (4atm, 950K, 1.0), (4atm, 950K, 1.5). The calculation results of the ignition delay time are as follows: Figure 10 to Figure 15 shown.
[0102] The temperature curve of the adaptive reaction mechanism is close to that of the KS model. Compared with the calculation results of the ES model, the error is greatly reduced, which verifies that the adaptive reaction mechanism has high calculation accuracy in the zero-dimensional ignition example. Specific embodiment 4
[0104] This implementation case tests the accuracy and efficiency of the adaptive reaction mechanism for a one-dimensional gas column process. Fig.16 As shown in the figure, the setting conditions are: the initial velocity of the flow field is 0, the temperature is 1100K, the pressure is 5atm, the left side of the flow field area is filled with air, and the right side is filled with a mixture of hydrogen and air with an equivalence ratio of 1.0. The left boundary condition is set as the extrapolated boundary condition, and the right boundary condition is set as the symmetric boundary condition to simulate the evolution process of the 1D-4s example. The physical process simulated in this example is that the mixed gas on the right side burns, the temperature gradually rises, and due to convection and heat transfer effects, the temperature of the air on the left side gradually rises.
[0105] This implementation case defines two quantities to determine whether the one-dimensional gas column example is calculated accurately: t1 is defined as the time corresponding to the temperature rise of 50K at the center of the flow field, and t2 is defined as the time corresponding to the temperature rise of 10K at 1mm from the left boundary. The t1 and t2 of the ES model, KS model and adaptive reaction mechanism (AD model) are statistically analyzed to calculate the maximum time step and example calculation time used in this implementation case. The statistical results are shown in Table 2.
[0106] Table 2 Statistical results of one-dimensional gas column embodiment
[0107]
[0108] In this implementation case, compared with the KS model, the ES model ignites significantly faster, resulting in a too small calculation result of t1, and the calculation result of the AD model is not much different from that of the KS model.
[0109] The temperature distribution at 6D-5s in this implementation case is as follows Fig.17 The temperature curve of the adaptive reaction mechanism is close to that of the KS model. Compared with the calculation results of the ES model, the error is greatly reduced, which verifies that the adaptive reaction mechanism has high calculation accuracy in the zero-dimensional ignition example. Specific embodiment 5
[0111] This implementation case tests the accuracy and efficiency of the adaptive reaction mechanism for a two-dimensional oblique detonation process. Fig.18 As shown, the setting conditions are: a flow field with a length of 5.25 cm and a width of 2 cm is filled with a mixture of hydrogen and air with an equivalence ratio of 1, an initial temperature of 293 K, a pressure of 0.4 MPa, a velocity of 0, an incoming flow velocity of 7.5 Ma at the left boundary of the flow field, an angle of attack of 25°, a symmetric boundary condition at the lower boundary, and an extrapolated boundary condition at the right boundary and the upper boundary. The physical process of this implementation case is that the supersonic incoming flow at the left boundary of the flow field region has a certain angle of attack, an oblique shock wave is formed in the region, the temperature of the airflow rises after passing through the oblique shock wave, the mixed gas burns, and a stable detonation wave is formed.
[0112] The basis for judging whether the calculation is accurate in this implementation case is the intersection coordinates of the detonation wave and the lower interface. The intersection coordinates of the ES model, KS model and adaptive reaction mechanism (AD model) and the maximum time step and calculation time used in calculating the example are respectively counted. The statistical results are shown in Table 3 and Fig.19 shown.
[0113] Table 3 Statistical results of two-dimensional oblique detonation
[0114]
[0115] From the perspective of calculation accuracy, compared with the KS model, the intersection point between the detonation wave calculated by the ES model and the lower boundary is quite different, while the calculation results of the AD model are quite close to those of the KS model. It can be considered that the AD model has good calculation results in the two-dimensional oblique detonation example.
[0116] In terms of calculation time, the KS model has many components and elementary reactions, so the calculation time for a single-step chemical reaction is relatively long. In addition, due to the strong rigidity of the KS model, only a small time step of dt = 1 × 10 -9 s for time advancement, so its calculation time is the longest, using 8396.88s. Compared with the KS model, the number of components and elementary reactions of the AD model is consistent with the ES model, which is relatively small, so the calculation time of a single-step chemical reaction is relatively short. At the same time, due to the weak rigidity of the AD model, a large time step of dt = 4×10 -9 s for time advancement, so the calculation time is significantly reduced to 1545.71s. The speedup ratio of this implementation case is 5.43.
[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. It should be pointed out that any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for constructing an adaptive reaction mechanism to simulate supersonic combustion flow, It is characterized in that The method comprises the steps of: (1) Use global sensitivity analysis to obtain the pre-exponential factors of the elementary reactions that need to be corrected; (2) Use the partitioning algorithm to divide the thermodynamic state space: (3) Based on the divided regions, construct an adaptive reaction mechanism library; (4) Storage and retrieval of adaptive reaction mechanism libraries; (5) Simulate supersonic combustion flows based on an adaptive reaction mechanism library; Step (1) is specifically: using a global sensitivity method to evaluate the global sensitivity coefficient of the calculated ignition delay time to the pre-exponential factor of the elementary reaction, and then adjusting the pre-exponential factor of the elementary reaction of the simplified mechanism so that the delay time calculated by the adjusted simplified mechanism at the selected state point is consistent with the ignition delay time calculated by the detailed mechanism; the delay time is a calculation parameter of the chemical mechanism under the zero-dimensional ignition model, and the zero-dimensional ignition model is a simplified two-dimensional chemical reaction multi-component Euler equations; Step (2) is specifically as follows: first, uniformly select state points in the state space so that the state points can cover the entire state space, and respectively calculate the ignition delay time of the simplified mechanism and the detailed mechanism at these state points, and construct the ignition delay time response surface, and then use the trilinear interpolation method to calculate the ignition delay time of any point in the state space, evaluate the difference between the simplified mechanism and the detailed mechanism zero-dimensional ignition delay time in the pre-divided sub-regions, and iteratively divide the reaction region until the difference between the two meets the requirements; Step (3) is specifically as follows: by modifying the elementary reaction pre-exponential factor of the simplified mechanism selected in the global sensitivity analysis to construct an adaptive reaction mechanism library, firstly realizing the mechanism generation at a single state point, obtaining the adjustment multiple of the pre-exponential factor of the center point of each divided area, and then realizing the mechanism generation in the state space; the mechanism generation at a single state point refers to: selecting a state point in the thermodynamic state space And adjust the parameters at the state point to generate a reaction mechanism; the mechanism generation in the state space refers to: based on the known coordinates of a finite number of sample points and the reaction mechanism of this sample point, an interpolation algorithm is used to realize the adaptive reaction mechanism of any point in the state space using a finite number of sample points.
2. A method for constructing an adaptive reaction mechanism to simulate supersonic combustion flow according to claim 1, It is characterized in that The simplified two-dimensional chemical reaction multi-component Euler equations are the control equations used to describe the combustion flow problem without considering viscosity. They are composed of three parts: conservation of mass, conservation of momentum, and conservation of energy. Among them, U in the equation group represents the conserved quantity, E and F represent the flux in the x-direction and y-direction respectively, and S represents the chemical reaction source term. The specific form is Among them, ρ, P, e represent the density, pressure and specific internal energy of the gas, u, v represent the speed in the x and y directions, ns represents the number of components, ρ i represents the density of the i-th component, σ i represents the mass generation rate of the ith component.
3. A method for constructing an adaptive reaction mechanism to simulate supersonic combustion flow according to claim 2, It is characterized in that The ignition delay time is defined as: To solve, set the horizontal axis to time and the vertical axis to temperature. The obtained temperature-time curve is the ignition curve. On the ignition curve, each moment corresponds to a temperature gradient, which is defined as The discrete expression is tg represents the temperature gradient, tg (n) represents the temperature gradient at the nth moment, T(t (n) ) represents the temperature at the nth moment, Δt represents the time step used to calculate the control equation, and in the ignition curve, the ignition delay time is defined as the moment corresponding to the position with the maximum temperature gradient.
4. A method for constructing an adaptive reaction mechanism to simulate supersonic combustion flow according to claim 1, It is characterized in that The global sensitivity coefficient is specifically as follows: Consider the following mathematical model of n input variables, use vector x to represent n input variables, scalar y to represent output, y=f(x), x∈Kn, input x is defined on the n-dimensional unit cube Kn, and f(x) is decomposed by Sobo1, that is, polynomial expansion is performed on f(x) to expand it into an independent variable function. When f(x) is integrable on Kn, the expanded form is unique: in: The expanded polynomial satisfies When {i 1 , ..., i s }≠{j 1 , ... s }, Represents all except x i Integrate the external variables. Represents all except x i and x j Integrate the variables outside Represents all except x i Integrate the external variables. Represents all except x i and x j Integrate the external variables.
5. A method for constructing an adaptive reaction mechanism to simulate supersonic combustion flow according to claim 1, It is characterized in that The difference between the zero-dimensional ignition delay time of the simplified mechanism and the detailed mechanism mentioned in the evaluation refers to: in each region of the state space, the self-defined relative error parameter Re of each region is calculated, and Re represents the maximum relative change of the zero-dimensional ignition delay time error between the simplified mechanism and the detailed mechanism in the sub-region; in the region in Refers to the state represented by the center point of the sub-region, It refers to the state represented by any point in the sub-area, igtd is the ignition delay time of the detailed mechanism, and igts is the ignition delay time of the simplified mechanism.
