Pressure gradient flow friction prediction method based on long and short term memory network

By using a method based on long short-term memory network and using flow field physical quantities for friction prediction, the problem of friction prediction in pressure gradient flow in the existing technology is solved, achieving high accuracy and applicability, and being simple to use.

CN118690646APending Publication Date: 2024-09-24CHINA AERODYNAMICS RES AND DEV CENT ULTRA-HIGH SPEED AERODYNAMICS RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410793667.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

It is difficult to accurately predict wall friction under flows with pressure gradients using existing technology, and data on measuring the wall normal gradient in experiments are scarce, which affects the high-precision prediction of friction.

Method used

Using a method based on long short-term memory network, by inputting physical quantities such as local Reynolds number, Mach number, near-wall flow deflection angle, local wall curvature radius and local wall pressure in the flow field, normalization processing is performed and input into the long short-term memory network. Friction prediction.

Benefits of technology

It achieves high-precision friction prediction within a wide Mach number range, with a deviation of less than 2%. It is suitable for flows with historical effects, is easy to use, and the input variables are relatively simple and easy to measure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690646A
    Figure CN118690646A
Patent Text Reader

Abstract

The invention discloses a pressure gradient flow friction prediction method based on a long-short term memory network, and relates to the field of shock wave-boundary layer interference flow prediction.The method comprises the steps that S1, physical quantity parameters capable of influencing pressure gradient flow friction prediction are selected from data parameters obtained in ground wind tunnel test capacity or numerical calculation; obtaining a flow field local Reynolds number Rex, a Mach number Ma infinity, a near-wall flow deflection angle phi, a wall surface local curvature radius Cw and a local wall surface pressure pw; s2, performing normalization processing on the physical quantity parameters in the S1 to obtain corresponding normalized variables; and S3, inputting the normalized variable obtained in the step S2 into a long-short term memory network to complete local friction prediction. The invention provides a pressure gradient flow friction resistance prediction method based on a long and short term memory network. Through the method, local friction resistance of quasi-two-dimensional flow with a pressure gradient can be effectively predicted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of shock wave-boundary layer interference flow prediction, and more specifically, to a pressure gradient flow friction prediction method based on a long short-term memory network. Background Art

[0002] Wall friction is one of the most important physical quantities in aerodynamic problems. When a viscous gas / fluid passes through a solid wall, the velocity difference between the mainstream and the wall will cause stress due to the no-slip condition of the wall. Friction is of great significance to high-speed flow because 50% of the total drag of hypersonic vehicles comes from friction. Researchers attach great importance to accurately predicting, measuring friction and understanding the origin of friction, which can provide support for optimizing aerodynamic layout, optimizing engine design and performing real-time flow control. However, the difficulties lie in two aspects. One is that the wall friction is very small, and the other is that measuring friction requires measuring the wall normal gradient very close to the wall.

[0003] Many methods and techniques for predicting or measuring wall friction have been developed from experiments, numerical simulations, and theories. These methods are divided into direct methods and indirect methods, which are distinguished by whether they directly measure the wall stress. In experiments, by measuring the strain ε, the direct method provides a constitutive relation f con Wall stress. Since ε is not easy to measure, especially in flight tests, a large number of indirect methods have been invented. It can be expressed in terms of measurable quantities q such as wall heat flux, pressure, temperature or particle velocity, and empirical or fitted relationships are constructed as C f =f fit(q). Related methods include those based on pressure difference, such as Preston tube [DWBechert, "Calibration of preston tubes," AIAA Journal 34, 205-206 (1996).], K-tube [T.Zhigong, Y.Xianxu, Q.Weiqi, X.Hanshan, B.Lin, and W.Wenzheng, "Research progress on the fusion of data obtained by high-speed wind tunnels, cfd and model flight," ACTA AERODYNAMICA SINICA 41, 44-58 (2023)] and microtube [Ch.Brucker, D.Bauer, and H.Chaves, "Dynamic response of micro-pillar sensors measuringfluctuating wall-shear-stress," Experiments in Fluids 42, 737-749 (2007)]. Based on other quantities, such as wall heat flux and particle velocity, hot film anemometers, particle image velocimeters (PIV), and molecular marker velocimeters have also been developed to measure wall stress [LXGAO Nan, "A review of wall-shear-stress measurement techniques for practical applictions," Acta Aerodynamica Sinica 41, 1-24 (2023).]. The advantage of the experimental method is that the experimental conditions are closest to engineering applications, but the scarcity of measurable data and the impact on signal acquisition are limiting factors. At the same time, due to the existence of pressure gradients in many flows, their historical effects affect the effect of single-point indirect prediction.

[0004] Recently, scholars have developed data-driven methods to predict wall volume, which achieves high accuracy with relatively low resource requirements. Kim and Lee proposed a convolutional neural network (CNN) model to predict local wall heat flux by inputting nearby wall shear stress and wall pressure fluctuations. Lagemann et al. combined PIV with the deep learning framework RAFT-PIV to derive wall shear stress dynamics from optical flow [C.Lagemann, K.Lagemann, S.Mukherjee, and W.Schroder,"Deep recurrent optical flow learning for particle image velocimetry data," Nature Machine Intelligence 3, 641{651(2021).]. They used convolutional gated recursive units to learn the spatiotemporal dynamics of particles. However, the above methods do not illustrate their applicability in flows with pressure gradients. At the same time, the physical quantities they require are not easy to obtain in wind tunnel experiments and other situations. Summary of the invention

[0005] An object of the present invention is to solve at least the above problems and / or disadvantages and to provide at least the advantages which will be described hereinafter.

[0006] In order to achieve these purposes and other advantages of the present invention, a method for predicting pressure gradient flow friction based on a long short-term memory network is provided, comprising:

[0007] S1. Select physical parameters that can affect the prediction of pressure gradient flow friction from the data parameters obtained in ground wind tunnel test capabilities or numerical calculations;

[0008] Get the local Reynolds number Re of the flow field x 、Mach number Ma ∞ , near-wall flow deflection angle Φ, local wall curvature radius C w and the local wall pressure p w ;

[0009] S2, normalizing the physical quantity parameters in S1 to obtain corresponding normalized variables;

[0010] S3. Input the normalized variables obtained in S2 into the long short-term memory network to complete the local friction prediction.

[0011] Preferably, in S1, the method of selecting the physical quantity parameter that can affect the prediction of the pressure gradient flow friction resistance includes: based on the following formula, a pair of parameters that affect the friction resistance C f The directly related physical quantities are analyzed:

[0012]

[0013] Among them, U ∞ is the incoming flow velocity, x is the stream direction coordinate, θ is the momentum thickness, δ * is the displacement thickness, H is the form factor, and H = δ * -θ;

[0014] The outflow satisfies formula 2:

[0015]

[0016] p is pressure, ρ is density;

[0017] Through the analysis of equations 1 and 2, it can be seen that the coupling effect of momentum flux loss, pressure gradient and velocity profile distortion affects the friction resistance. Therefore, by introducing the local Reynolds number Re x and Mach number Ma ∞ To describe the structure of the boundary layer, the near-wall flow deflection angle Φ and the local wall curvature radius C are introduced. w and the local wall pressure p w To describe the pressure gradient characteristics, and take the above-mentioned related to the structure and pressure gradient characteristics of the boundary layer as input.

[0018] Preferably, in S1, the physical quantity parameters include: the local Reynolds number Re of the flow field x 、Mach number Ma ∞ , near-wall flow deflection angle Φ, local wall curvature radius C w and the local wall pressure p w ;

[0019] In S2, the following formulas are used to calculate the physical quantity parameters:

[0020] q1=Re x / Re xE2

[0021] q2=Ma ∞ / 1

[0022] q3=φ / (π / 2)

[0023] q4=C w / (1 / L x )

[0024] q5=p w / p ∞

[0025] In the above formula, q1 is the x After normalization, q2 is the normalized variable for Ma ∞The normalized variable after normalization, q3 is the normalized variable after normalization of Φ, and q4 is the normalized variable after normalization of C w After normalization, q5 is the normalized variable for p w Normalized variable after normalization.

[0026] Preferably, in S3, the long short-term memory network is set by parameter setting and training constraints to complete the prediction of local friction;

[0027] The parameter settings include: setting the number of input features of the long short-term memory network to 5, the number of LSTM layers to 1, the number of neurons in each layer to 30, and the input and output lengths to 20;

[0028] The training constraints include:

[0029] S30, generating a data set by grouping the data of all working conditions in the training set with 20 consecutive data points each;

[0030] S31, input the data set obtained in S30 into the long short-term memory network, use the Adams method as the optimization method and the minimum square error as the goal to perform training;

[0031] The initial learning rate in training is set to 5×10 -5 After 300 epochs, the training is completed after 2000 epochs, with a rate of 0.9 decreasing every 200 epochs.

[0032] The present invention has at least the following beneficial effects: First, the present invention has higher accuracy, and the difference between the friction resistance predicted by the method and the actual friction resistance is small, and the deviation is generally within 2%. Even if the local position is critically separated, the difference does not exceed 10%;

[0033] Secondly, the present invention is more in line with physical characteristics. The method takes into account the local configuration characteristics and upstream information, so it is more suitable for flows in a wider range of Mach numbers (from Mach numbers 3 to 6 and attachment flows with corner angles from 2° to 8°, Figure 4 and Figure 5 ), especially for such flows with local pressure gradients and historical effects, friction prediction can still be performed effectively;

[0034] Thirdly, the present invention is easy to use and the measurement of input variables is relatively simple, because the input quantities used by the model are flow variables such as pressure and Mach number and configuration geometry quantities such as deflection angle and wall curvature radius that are relatively easy to obtain in calculations and experiments, so it is convenient in actual use.

[0035] Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 is a flow field diagram of an embodiment of the present invention;

[0037] Figure 2 This is a schematic diagram of a long short-term memory network unit;

[0038] Figure 3 It is a schematic diagram of the overall model of long short-term memory network;

[0039] Figure 4 The diagram is a comparison diagram of the prediction of friction resistance between the method of the present invention and the prior art under the condition of supersonic flow Mach 3 corner 2°.

[0040] Figure 5 The diagram is a comparison diagram of the prediction of friction resistance between the method of the present invention and the prior art in the case of a supersonic flow Mach 6 corner of 4°. DETAILED DESCRIPTION

[0041] The present invention is further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the invention with reference to the description.

[0042] The present invention proposes an RNN type model (Long Short-Term Memory, LSTM), which establishes an indirect friction prediction model for flow with pressure gradient by utilizing easily accessible physical quantities.

[0043] Example:

[0044] Based on the current ground wind tunnel test methods and numerical simulation capabilities, a prediction method for shock wave-boundary layer interference flow friction under pressure gradient conditions is proposed. The shock wave / boundary layer interference at the curved compression corner of the aircraft control surface is taken as an example (e.g. Figure 1 , Figure 1 The feasibility of this method is illustrated by combining the ground wind tunnel test and numerical simulation results.

[0045] (1) Based on the theoretical analysis of Von Karman′ momentum integral equation, the friction resistance C f directly related physical quantities.

[0046] Specifically, the equation can be expressed as:

[0047]

[0048] Among them, U ∞ is the incoming flow velocity, x is the stream direction coordinate, θ is the momentum thickness, δ * is the displacement thickness, HH=δ * / θ is the type factor, and H = δ * -θ.

[0049] In addition, outflows satisfy:

[0050]

[0051] Here, p is the pressure and ρ is the density.

[0052] The above two equations show that friction is caused by the coupling effect of momentum flux loss and pressure gradient and velocity profile distortion. Once the pressure gradient appears, it always combines with the velocity distortion to adjust its enhancement in the flow direction, resulting in a strong history effect. In order to describe the structure of the boundary layer, it is necessary to introduce the local Reynolds number Re of the flow field. x and Mach number Ma ∞ ; In order to describe the pressure gradient characteristics, it is necessary to introduce the near-wall flow deflection angle Φ and the local wall curvature radius C w and the local wall pressure p w The above variables are all the input quantities of this method.

[0053] In ground-based sonic wind tunnel equipment and numerical simulations, the local Reynolds number Re of the flow field at a specific point can be obtained through sensors (experiments) and direct data reading (numerical simulations). x 、Mach number Ma ∞ , near-wall flow deflection angle Φ, local wall curvature radius C w and the local wall pressure p w as a feature point.

[0054] Specifically, Re x =xU ∞ / ν, where x is the distance from the front edge to the stream, U ∞ is the mainstream velocity, v is the kinematic viscosity coefficient;

[0055] Ma ∞ =U ∞ / c ∞ , where c ∞ is the mainstream sound velocity; Φ is equal to the deflection angle of the wall, which is 0 on a flat plate, the angle of the inclined plate on an inclined plate, and the angle between the local tangent of the curved surface and the horizontal direction on a curved surface;

[0056] C w =y" w / (1+y' w2 ) 3 / 2 , where y" w and y' w They are the wall normal to the left y w The second and first derivatives with respect to the streamwise x;

[0057] (2) Normalize the obtained physical quantities to obtain normalized variables q1 to q5. The normalization method is:

[0058] q1=Re x / Re xE2

[0059] q2=Ma ∞ / 1

[0060] q3=φ / (π / 2)

[0061] q4=C w / (1 / L x )

[0062] q5=p w / p ∞

[0063] In the above formula, Re xE2 =x E2 U ∞ / v is the Reynolds number at the end of the flow field, L x is the length of the plate segment, p ∞ It's the flow pressure.

[0064] (3) The normalized variables obtained above are input into the long short-term memory network friction-LSTM to obtain the local friction prediction results.

[0065] The construction of the long short-term memory network friction-LSTM consists of two parts.

[0066] First, set the structural parameters of the long short-term memory network LSTM. The structure of the long short-term memory network LSTM is as follows Figure 2 As shown ( Figure 2 In, c t Indicates the current unit state, c t-1 represents the previous unit state, h t Indicates the current hidden state, h t-1 represents the previous hidden state, tanh represents the hyperbolic tangent, x trepresents the input signal, σ represents the bias, the circled multiplication sign represents the multiplication of two functions, and the circled plus sign represents the addition of two functions); LSTM contains input, output, and hidden state. The input and output of LSTM are sequence data of length Nstep, and the sequence data can contain multiple feature dimensions. The hidden state of LSTM is a series of memory cells, which are the main components of the neural network. In the memory cell, three gates are introduced, namely the input gate i t 、Forget gate t and output gate o t The formulas for these gates are:

[0067] i t =σ(W ii x t +W hi h t-1 +b i )

[0068] f t =σ(W if x t +W hf h t-1 +b f )

[0069] o t =σ(W io x t +W ho h t-1 +b o )

[0070] Where W ii , W hi is the input signal x t and the previous hidden state h t-1 The weight of b i and b f is the bias and σ is the sigmoid function. The symbols in the following definitions are similar.

[0071] Candidate unit state g t for:

[0072] g t =tanh(W ig x t +W hg h t-1 +b g )

[0073] Current cell status c t is the previous cell state c t-1 and the candidate cell state g t The weighted average of t and it ,

[0074] c t =f t ⊙c t-1 +i t ⊙g t

[0075] where ⊙ is the point-wise product (Hadamard product).

[0076] And the hidden state h t is through the output gate o t The current cell state c t gives:

[0077] h t =o t ⊙σ(c t )

[0078] According to the characteristics of surface compression flow, the number of input features is set to 5, the number of LSTM layers is set to 1, the number of neurons in each layer is set to 30, and the input and output length Nstep is set to 20. Figure 3 shown.

[0079] Then, the friction-LSTM is trained with the existing data set to obtain a predictable model. A part of the data with clear input features and output friction is used as the training set.

[0080] For all the working conditions in the training set, each Nstep continuous data point is a group to generate a data set. Each data point in the data set contains five features, each feature is the local Reynolds number Re x 、Mach number Ma ∞ , near-wall flow deflection angle Φ, local wall curvature radius C w and the local wall pressure p w ;

[0081] Each data point in the dataset contains an output, which is the normalized friction, and the normalization method is:

[0082]

[0083] Among them, C f is the friction, ρ ∞ is the incoming flow density, U ∞ Mainstream speed.

[0084] The data set is input into friction-LSTM, and the Adams method is used as the optimization method, the minimum square error is used as the goal, and the initial learning rate is set to 5×10 -5After 300 cycles, the training rate is reduced every 200 cycles at a rate of 0.9. A total of 2000 cycles are trained. Before each cycle training, the data is shuffled with groups as the smallest unit to improve the generalization performance of learning.

[0085] After training the model, friction prediction can be performed for other flow conditions. Since the prediction result is normalized friction, the result needs to be multiplied by Obtain the desired friction result.

[0086] By Results Figure 4 and Figure 5 (in, Figure 4-Figure 5 The red line is the prediction curve of the method of the present invention, the blue line is the prediction curve of the prior art, and the circle represents the standard prediction point). It can be seen that: using the prediction method of the present invention, the prediction deviation can be controlled below 2%.

[0087] The above solution is only an illustration of a preferred embodiment, but is not limited thereto. When implementing the present invention, appropriate replacement and / or modification can be performed according to user needs.

[0088] Although the embodiments of the present invention have been disclosed above, they are not limited to the applications listed in the specification and the embodiments. It can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily realized. Therefore, without departing from the general concept defined by the claims and equivalent scope, the present invention is not limited to the specific details and the illustrations shown and described here.

Claims

1. A method for predicting pressure gradient flow friction based on long short-term memory network, characterized in that: include: S1. Select physical parameters that can affect the prediction of pressure gradient flow friction from the data parameters obtained in ground wind tunnel test capabilities or numerical calculations; Get the local Reynolds number Re of the flow field x 、Mach number Ma ∞ , near-wall flow deflection angle Φ, local wall curvature radius C w and the local wall pressure p w ; S2, normalizing the physical quantity parameters in S1 to obtain corresponding normalized variables; S3. Input the normalized variables obtained in S2 into the long short-term memory network to complete the local friction prediction.

2. The pressure gradient flow friction prediction method based on long short-term memory network according to claim 1 is characterized in that: In S1, the methods for selecting physical parameters that can affect the prediction of pressure gradient flow friction include: Based on the following formula, the friction resistance C f The directly related physical quantities are analyzed: Among them, U ∞ is the incoming flow velocity, x is the stream direction coordinate, θ is the momentum thickness, δ * is the displacement thickness, H is the form factor, and H = δ * -θ; The outflow satisfies formula 2: Where p is pressure and ρ is density; Through the analysis of equations 1 and 2, it can be seen that the coupling effect of momentum flux loss, pressure gradient and velocity profile distortion affects the friction resistance. Therefore, by introducing the local Reynolds number Re x and Mach number Ma ∞ To describe the structure of the boundary layer, the near-wall flow deflection angle Φ and the local wall curvature radius C are introduced. w and the local wall pressure p w To describe the pressure gradient characteristics, and take the above-mentioned related to the structure and pressure gradient characteristics of the boundary layer as input.

3. The pressure gradient flow friction prediction method based on long short-term memory network according to claim 1 is characterized in that: In S1, the physical quantity parameters include: the local Reynolds number Re x 、Mach number Ma ∞ , near-wall flow deflection angle Φ, local wall curvature radius C w and the local wall pressure p w ; In S2, the following formulas are used to calculate the physical quantity parameters: q1=Re x / Re xE2 <h2 style=";text-align:left;direction:ltr">q2=Ma<h2 style=";text-align:left;direction:ltr"> ∞ <h2 style=";text-align:left;direction:ltr"> / 1 q3=φ / (π / 2) q4=C w / (1 / L x ) q5=p w / p ∞ In the above formula, q1 is the x After normalization, q2 is the normalized variable for Ma ∞ The normalized variable after normalization, q3 is the normalized variable after normalization of Φ, and q4 is the normalized variable after normalization of C w After normalization, q5 is the normalized variable for p w Normalized variable after normalization.

4. The pressure gradient flow friction prediction method based on long short-term memory network according to claim 1 is characterized in that: In S3, the long short-term memory network is set by parameter setting and training constraints to complete the prediction of local friction; The parameter settings include: setting the number of input features of the long short-term memory network to 5, the number of LSTM layers to 1, the number of neurons in each layer to 30, and the input and output lengths to 20; The training constraints include: S30, generating a data set by grouping the data of all working conditions in the training set with 20 consecutive data points each; S31, input the data set obtained in S30 into the long short-term memory network, use the Adams method as the optimization method and the minimum square error as the goal to perform training; The initial learning rate in training is set to 5×10 -5 After 300 epochs, the training is completed after 2000 epochs, with a rate of 0.9 decreasing every 200 epochs.