Separated flow prediction method and apparatus based on flow field inversion and symbolic regression
By using flow field inversion and symbolic regression methods, a target turbulence model is constructed, and the separation sensitivity of the adverse pressure gradient and free shear layer is adjusted. This solves the problem of insufficient computational accuracy and interpretability of existing models in the aerospace field, and realizes accurate prediction of complex separated flows and accuracy protection of simple attached flows.
Patent Information
- Application Number
- CN202510684813.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2026-11-27
AI Technical Summary
Existing machine learning-assisted RANS turbulence models are difficult to simultaneously protect the computational accuracy of simple attached flows and accurately predict complex separated flows in the aerospace field, and black-box models lack interpretability and robustness.
By employing flow field inversion and symbolic regression methods, the objective function is constructed and iteratively solved by determining the first and second control parameters of the flow field inversion. An analytical expression is generated and embedded into the benchmark turbulence model to form a target turbulence model. This model is used to adjust the separation sensitivity of the adverse pressure gradient and the free shear layer, ensuring computational accuracy and interpretability.
It achieves accurate prediction of complex separated flows in aerospace configurations while preserving the computational accuracy of simple attached flows, improving the interpretability and robustness of the model, and is applicable to the prediction of a variety of complex separated flows.
Smart Images

Figure CN123179544A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of aerospace technology, and in particular to a method and apparatus for predicting separated flows based on flow field inversion and symbolic regression. Background Technology
[0002] Turbulence is prevalent in the flows analyzed in the aerospace field, and it is a key issue that needs to be considered when designing aerospace applications. With the popularization of computational fluid dynamics (CFD) methods, turbulence simulation is often used to analyze turbulence problems.
[0003] Among a range of turbulence simulation methods, the Reynolds-averaged Navier-Stokes equations (RANS) method is favored for its efficiency and robustness. RANS methods rely on RANS turbulence models, which have limitations in predicting complex separated flows. However, machine learning-assisted RANS turbulence models can improve their ability to predict separated flows.
[0004] Existing machine learning-assisted RANS turbulence models, such as tensor basis neural network models, are likely to compromise the computational accuracy of benchmark turbulence models in simple attached boundary layers. However, in the real flows that need to be analyzed in the aerospace field, complex separated flows and simple attached flows always coexist.
[0005] Therefore, how to establish a machine learning-assisted turbulence model that can protect the accuracy of simple attached flow calculations, and thus lay the foundation for accurately analyzing the aerodynamic performance of aerospace configurations, has become a pressing technical problem that needs to be solved in the industry. Summary of the Invention
[0006] This invention provides a method and apparatus for predicting separated flows based on flow field inversion and symbolic regression. Compared with traditional machine learning-assisted RANS turbulence models, it has the characteristic of protecting the accuracy of boundary layer calculations. It can be applied to the prediction of various complex separated flows without affecting the calculation accuracy of simple attached flows, thus laying the foundation for accurately analyzing the aerodynamic performance of aerospace configurations.
[0007] In a first aspect, the present invention provides a method for predicting separated flows based on flow field inversion and symbolic regression, the method comprising the following steps: Based on the baseline turbulence model, the first and second control parameters for flow field inversion are determined; the first control parameter is used to adjust the sensitivity of reverse pressure gradient separation, and the second control parameter is used to adjust the sensitivity of free shear layer separation. An objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence to obtain non-uniform spatial distribution data of the first and second control parameters. The objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model prediction data and the high-precision flow field data, and to constrain the deviation of the first and second control parameters from their default values. The model prediction data is obtained by predicting using the benchmark turbulence model. The high-precision flow field data is flow field data with a precision greater than the constraint precision. Based on the non-uniform spatial distribution data, an input feature set related to the flow field characteristics is determined, and based on the input feature set, a symbolic regression algorithm is used to generate a first analytical expression for the first control parameter and a second analytical expression for the second control parameter. The first analytical expression and the second analytical expression are embedded into the coefficient control equations of the baseline turbulence model to obtain the target turbulence model, and the separated flow is predicted by the target turbulence model.
[0008] According to the present invention, a method for predicting separated flows based on flow field inversion and symbolic regression is provided. The method involves constructing an objective function for flow field inversion optimization based on the first and second control parameters, and iteratively solving the objective function until convergence, to obtain non-uniform spatial distribution data of the first and second control parameters, including: (1) in, Denotes the objective function, This represents the first control parameter. This indicates the second control parameter. This represents the i-th high-precision flow field data. For the model to predict data, This represents the coordinate in the direction of the first control parameter j. This represents the coordinate in the direction of the second control parameter j. This represents the first weighting coefficient that is dynamically adjusted. This represents the dynamically adjusted second weighting coefficient; The objective function is solved iteratively using an iterative optimization algorithm until convergence. The non-uniform spatial distribution data is determined based on the distribution of the first control parameter and the distribution of the second control parameter at the time of iterative convergence.
[0009] According to the present invention, a method for predicting separated flows based on flow field inversion and symbolic regression is provided, wherein the objective function is solved iteratively using an iterative optimization algorithm, including: The objective function is solved iteratively using the adjoint equation method for high-dimensional flow fields; The objective function is solved iteratively using the gradient descent method for the low-dimensional flow field.
[0010] According to the present invention, a method for predicting separated flow based on flow field inversion and symbolic regression is provided, wherein the input feature set includes at least one of the following feature parameters: a first Reynolds stress parameter, a second Reynolds stress parameter, a fifth Reynolds stress parameter, a turbulent kinetic energy generation to dissipation ratio, and a local Reynolds number based on vorticity.
[0011] According to the present invention, a method for predicting separated flow based on flow field inversion and symbolic regression is provided, wherein the step of generating a first analytical expression for the first control parameter and a second analytical expression for the second control parameter using a symbolic regression algorithm based on the input feature set includes: A genetic algorithm is used to iteratively screen the target candidate expression, and target candidate solutions are generated through crossover, mutation and selection operations; the target candidate solutions include candidate solutions of the first analytical expression and candidate solutions of the second analytical expression; Based on the criterion of minimizing prediction error, the target candidate solutions are screened to obtain the first analytical expression and the second analytical expression.
[0012] According to the present invention, a method for predicting separated flow based on flow field inversion and symbolic regression is provided, wherein the first analytical expression and the second analytical expression are embedded into the coefficient governing equations of the benchmark turbulence model to obtain the target turbulence model, comprising: Based on the first analytical expression and the second analytical expression, the governing equations for the first, second, third, and fourth parameters that need to be adjusted for flow field inversion are determined. The first and second parameters are used to determine the first key coefficients of the benchmark turbulence model using an internal and external hybrid strategy, and the third and fourth parameters are used to determine the second key coefficients of the benchmark turbulence model using an internal and external hybrid strategy. Based on the control equations of the first parameter, the second parameter, the third parameter, and the fourth parameter, the expressions for the first key coefficient and the second key coefficient are obtained by updating the boundary layer mixing function; Substituting the expressions for the first and second key coefficients into the coefficient control equations of the baseline turbulence model yields the target turbulence model.
[0013] According to the present invention, a method for predicting separated flows based on flow field inversion and symbolic regression is provided, the method further comprising: The computational accuracy of the target turbulence model in simple attached flow and complex separated flow was verified through validation examples. The verification examples include at least one simple attached flow example and one complex separated flow example.
[0014] According to the present invention, a method for predicting separated flows based on flow field inversion and symbolic regression is provided. The step of verifying the computational accuracy of the target turbulence model in simple attached flows and complex separated flows through validation examples includes: A flat plate boundary layer example is used to verify the accuracy of the friction coefficient calculation of the target turbulence model in the simple attached flow, so that the error threshold is less than the first threshold. The predictive capability of the target turbulence model for the complex separated flow is verified using a curve step case and a hump case, so that the velocity distribution error threshold in the separation zone is less than the second threshold; the first threshold is less than the second threshold; A two-segment airfoil example was used to verify the accuracy of the target turbulence model in predicting the maximum lift coefficient and stall angle of attack.
[0015] Secondly, the present invention also provides a separate flow prediction device based on flow field inversion and symbolic regression, the device comprising the following modules: The flow field inversion module is used to determine the first and second control parameters for flow field inversion based on the benchmark turbulence model; the first control parameter is used to adjust the sensitivity of the adverse pressure gradient separation, and the second control parameter is used to adjust the sensitivity of the free shear layer separation. An objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence to obtain non-uniform spatial distribution data of the first and second control parameters. The objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model prediction data and the high-precision flow field data, and to constrain the deviation of the first and second control parameters from their default values. The model prediction data is obtained by predicting using the benchmark turbulence model. The high-precision flow field data is flow field data with a precision greater than the constraint precision. The symbolic regression module is used to determine the input feature set related to the flow field characteristics based on the non-uniform spatial distribution data, and to generate a first analytical expression for the first control parameter and a second analytical expression for the second control parameter based on the input feature set using a symbolic regression algorithm. The prediction module is used to embed the first analytical expression and the second analytical expression into the coefficient control equations of the benchmark turbulence model to obtain the target turbulence model, and to predict the separated flow through the target turbulence model.
[0016] Thirdly, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the separation flow prediction method based on flow field inversion and symbolic regression as described above.
[0017] Fourthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the separation flow prediction method based on flow field inversion and symbolic regression as described above.
[0018] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the separation flow prediction method based on flow field inversion and symbolic regression as described above.
[0019] The present invention provides a method and apparatus for predicting separated flows based on flow field inversion and symbolic regression. First, based on a benchmark turbulence model, first and second control parameters for flow field inversion are determined. The first control parameter is used to adjust the separation sensitivity of the adverse pressure gradient, and the second control parameter is used to adjust the separation sensitivity of the free shear layer. Then, based on the first and second control parameters, an objective function for flow field inversion optimization is constructed, and the objective function is iteratively solved until convergence, obtaining non-uniform spatial distribution data of the first and second control parameters. This objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model-predicted data and the high-precision flow field data, and to constrain the deviation of the first and second control parameters from their default values. The model-predicted data is obtained through prediction using the benchmark turbulence model. Further, based on the non-uniform spatial distribution data, an input feature set related to the flow field characteristics is determined, and based on the input feature set, a first analytical expression for the first control parameter and a second analytical expression for the second control parameter are generated using a symbolic regression algorithm. Finally, the first and second analytical expressions are embedded into the coefficient control equations of the benchmark turbulence model to obtain a target turbulence model, and the separated flow is predicted using the target turbulence model.
[0020] This invention first determines the first and second control parameters for flow field inversion based on a benchmark turbulence model. The first control parameter is used to adjust the sensitivity of separation by the adverse pressure gradient, and the second control parameter is used to adjust the sensitivity of separation by the free shear layer. Then, an objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence, obtaining the non-uniform spatial distribution data of the first and second control parameters. Then, symbolic regression is performed to construct the target turbulence model. Because the flow field inversion process is performed on the first and second control parameters, which are variables that change across the entire field, compared with the traditional machine learning-assisted RANS turbulence model, it has the characteristic of protecting the accuracy of boundary layer calculation. It can be applied to the prediction of various complex separated flows without affecting the calculation accuracy of simple attached flows, laying the foundation for accurately analyzing the aerodynamic performance of aerospace configurations. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0022] Figure 1 This is one of the flowcharts of the separated flow prediction method based on flow field inversion and symbolic regression provided by the present invention.
[0023] Figure 2 This is the second flowchart of the separated flow prediction method based on flow field inversion and symbolic regression provided by the present invention.
[0024] Figure 3 A schematic diagram of the spatial distribution of the first and second control parameters obtained by flow field inversion provided by the present invention.
[0025] Figure 4 A schematic diagram illustrating the effect of the target turbulence model provided by this invention in calculating simple attached flow.
[0026] Figure 5 This is a schematic diagram illustrating the effect of aerospace calculations using the target turbulence model provided by the present invention.
[0027] Figure 6 This is a schematic diagram illustrating the effect of using a target turbulence model to predict the maximum lift coefficient and stall angle of attack of the two airfoils of NLR7301, as provided by the present invention.
[0028] Figure 7 This is a schematic diagram of the structure of the separation flow prediction device based on flow field inversion and symbolic regression provided by the present invention.
[0029] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0031] To more clearly understand the various embodiments provided by the present invention, the technical content involved in the present invention will first be described as follows: Existing machine learning-assisted RANS turbulence models have several shortcomings: First, machine learning-assisted RANS turbulence models are likely to compromise the computational accuracy of benchmark turbulence models in simple attached boundary layers, which is unacceptable because complex separated flows and simple attached flows always coexist in the real flows that need to be analyzed in the aerospace field.
[0032] Secondly, machine learning-assisted RANS turbulence models are often black-box models, such as neural networks and random forests. They lack concise analytical expressions that researchers can understand, and therefore lack interpretability. This makes it impossible for researchers to determine whether the corrections made by machine learning-assisted RANS turbulence models remain reliable under specific conditions, severely limiting their application scope.
[0033] Furthermore, black-box models can lead to problems such as high computational cost, high deployment cost, and compromise of the robustness of baseline turbulence models. Therefore, it is necessary to establish machine learning-assisted turbulence models that can protect the computational accuracy of simple attached flows, while simultaneously "white-boxing" the machine learning models to make them interpretable, thereby ensuring reliability and robustness.
[0034] To address the shortcomings of existing machine learning-assisted RANS turbulence models, this invention proposes a flow field inversion-signed regression turbulence model that preserves the accuracy of simple attached flow calculations. Its core improvements include: (1) Flow field inversion process considering boundary layer calculation accuracy constraints; (2) Obtain the analytical expression of the correction term using symbolic regression.
[0035] The following is combined Figures 1-8 The present invention describes a method and apparatus for predicting separated flows based on flow field inversion and symbolic regression.
[0036] Figure 1This is one of the flowcharts illustrating the separated flow prediction method based on flow field inversion and symbolic regression provided by this invention, such as... Figure 1 As shown, the method includes the following: Step 101: Based on the benchmark turbulence model, determine the first and second control parameters for flow field inversion; the first control parameter is used to adjust the sensitivity of reverse pressure gradient separation, and the second control parameter is used to adjust the sensitivity of free shear layer separation. Specifically, it should first be noted that the subject of this invention is an electronic device used to realize the prediction of separated flow based on flow field inversion and symbolic regression.
[0037] In the method provided in this embodiment, the modeling steps are divided into two steps: (1) inversion of the non-uniform flow field of the parameters; and (2) symbolic regression modeling of the parameters.
[0038] The modeling process will be introduced below: First, based on the baseline turbulence model, the first and second control parameters for flow field inversion are determined. The baseline turbulence model is the standard turbulence model before the embedding of the machine learning symbolic regression attachment module.
[0039] In computational fluid dynamics (CFD), benchmark turbulence models typically refer to standard turbulence models that have been widely validated, are applicable to various flow scenarios, and serve as the basis for comparison with other models. The following are common benchmark turbulence models and their characteristics: 1. RANS (Reynolds-averaged Navier-Stokes) model: This model performs time averaging of the Navier-Stokes equations and simulates turbulent effects by introducing eddy viscosity. Commonly used models include the k-ε (k-epsilon) model, the k-ω (k-omega) model, the Spalart-Allmaras (SA) model, and the variant SST k-ω: a mixture of k-ε and k-ω, optimized separately in the near-wall and far-field, and widely used in aerodynamics.
[0040] 2. Large Eddy Simulation (LES): Directly analyzes large-scale eddies, while small-scale eddies are simulated using a subgrid model.
[0041] 3. Direct Numerical Simulation (DNS): No modeling required; directly solves turbulent fluctuations at all scales.
[0042] The reference turbulence model in this invention adopts SST k- The model, and the corresponding turbulence model equations are: (2) (3) Where k is the turbulent kinetic energy, For characteristic dissipation frequency, It is eddy viscosity. For Reynolds stress, Let be the pulsation of velocity in the i-direction. Let be the velocity fluctuation in the j-direction. Let i be the average velocity in the i-direction. Let j be the coordinate in the j-direction. It is a constant, adjustable parameter. It is a constant, adjustable parameter. Molecular viscosity is a constant. It is a constant. This represents the diffusion coefficient after internal and external mixing. F1 represents the outer diffusion coefficient, and F1 represents the boundary layer mixing function. This represents the Bradshaw constant.
[0043] The boundary layer mixing function F1 is defined as follows: (4) in, Represents the boundary layer mixing function. Represents turbulent kinetic energy. For characteristic dissipation frequency, Let d represent molecular viscosity, and d be the distance to the nearest wall. Indicates the diffusion coefficient in the outer region. This represents the Bradshaw constant.
[0044] (5) Indicates cross-diffusion. Let j be the coordinate in the j-direction.
[0045] As can be seen from the above formula (3), In partial differential equations, coefficients and Crucially, their values are obtained using a hybrid internal and external strategy: (6) (7) in, Represents the boundary layer mixing function. Indicates the first key coefficient. This indicates the first parameter that needs to be adjusted for flow field inversion. This indicates the third parameter that needs to be adjusted for flow field inversion. This indicates the second key coefficient. This indicates the second parameter that needs to be adjusted for flow field inversion. This indicates the fourth parameter that needs to be adjusted for flow field inversion.
[0046] in addition, It can also be obtained through a hybrid internal and external strategy: (8) in, Represents the boundary layer mixing function. , , This represents the diffusion coefficient after internal and external mixing.
[0047] Based on the above equations, when performing flow field inversion, , Due to spatially non-uniform fields control( (in spatial coordinates), having the following form: (9) (10) in, This indicates the third parameter that needs to be adjusted for flow field inversion. This indicates the first parameter that needs to be adjusted for flow field inversion. Indicates the first control parameter. express The default value, express The default value, Indicates the inner layer diffusion coefficient. Denotes Kármán's constant. Represents Bradshaw's constant and The expression is similar, but determined by the field. and Joint control: (11) (12) in, This indicates the fourth parameter that needs to be adjusted for flow field inversion. This indicates the second parameter that needs to be adjusted for flow field inversion. Indicates the first control parameter. It was determined to be the second control parameter. express The default value, express The default value, Indicates the inner layer diffusion coefficient. Denotes Kármán's constant. This represents the Bradshaw constant.
[0048] Therefore, It is determined to be the first control parameter. It was determined to be the second control parameter. Represents spatial coordinates. Parameters are used in the flow field inversion process. , control , , , Thus being able to control , Using the above control methods, , The accuracy of simple attached flow calculations remains unaffected regardless of any spatial variations.
[0049] Step 102: Construct an objective function for flow field inversion optimization based on the first and second control parameters, and iteratively solve the objective function until convergence to obtain the non-uniform spatial distribution data of the first and second control parameters. The objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model prediction data and the high-precision flow field data, and to constrain the deviation of the first and second control parameters from their default values. The model prediction data is obtained by predicting through a benchmark turbulence model; the high-precision flow field data is flow field data with a higher constraint accuracy. Specifically, in determining the first control parameter Second control parameter The subsequent flow field inversion process is as follows: set up , The default values are 1 and 0, respectively. Meanwhile, for... , Perform flow field inversion to obtain high-precision matching data. , Distribution. The high-precision flow field data includes experimental data or high-precision simulation data of simple attached flow and complex separated flow. High-precision data, such as experimental data, is considered to be true values. High-precision flow field data is flow field data with a precision greater than that of constraints, including velocity distribution, pressure distribution, etc.
[0050] First based on the first control parameter Second control parameter Construct the objective function for flow field inversion optimization. The objective function is expressed as follows: Construct the objective function using the following formula (1): (1) in, Denotes the objective function, Indicates the first control parameter. This indicates the second control parameter. This represents the i-th high-precision flow field data. For model prediction data, express The j-th element, express The j-th element, This represents the first weighting coefficient that is dynamically adjusted. This represents the dynamically adjusted second weighting coefficient.
[0051] The objective function characterizes the spatial distribution of the first and second control parameters to minimize the deviation between the model's predicted data and the high-precision flow field data, and constrains the degree of deviation of the first and second control parameters from their default values. It can also be viewed as an optimization problem.
[0052] That is, adjustment , The spatial distribution of the data ensures that the data predicted by the RANS turbulence model matches the high-precision data (such as experimental data, considered as true values) as closely as possible, while avoiding... , They deviated too far from their respective default values (1 and 0).
[0053] Furthermore, the objective function is solved, that is, the optimization problem defined by formula (1) is solved, and the following is obtained: , Non-uniform spatial distribution data.
[0054] Step 103: Determine the input feature set related to the flow field characteristics based on the non-uniform spatial distribution data, and generate the first analytical expression of the first control parameter and the second analytical expression of the second control parameter based on the input feature set using the symbolic regression algorithm; Specifically, upon obtaining , Following the non-uniform spatial distribution data, further based on , Symbolic regression is performed on non-uniform spatially distributed data to obtain a first analytical expression for the first control parameter and a second analytical expression for the second control parameter. Both the first and second analytical expressions must satisfy physical interpretability and be consistent with classical RANS modeling experience.
[0055] For example, using a genetic algorithm for symbolic regression, the expression with the lowest loss after training is selected as the final result. This ultimately yields the first analytical expression ( expression) and second analytic expression ( expression).
[0056] Step 104: Embed the first analytical expression and the second analytical expression into the coefficient control equation of the benchmark turbulence model to obtain the target turbulence model, and predict the separated flow through the target turbulence model.
[0057] Specifically, after obtaining the first analytical expression ( expression) and second analytic expression ( After the expression, the first and second analytical expressions can be further embedded into the coefficient control equations of the baseline turbulence model to finally obtain the target turbulence model.
[0058] That is, first based on the first analytical expression obtained by solving ( expression) and second analytic expression ( The expression yields the key parameter coefficients. and Then, and Substituting the expression into the model equations of the baseline turbulence model, formulas (2) and (3), the target turbulence model can be obtained.
[0059] The target turbulence model, i.e., the trained turbulence model, can accurately predict separated flows while preserving the computational accuracy of simple attached flows. The relationship between separated flows and the stall angle of attack is primarily observed during the stall process. As the angle of attack increases, the intensification of separated flows leads to a decrease in lift, thereby triggering a stall.
[0060] The method provided in this embodiment first determines a first control parameter and a second control parameter for a spatially non-uniform flow field based on a benchmark turbulence model. The first control parameter is used to adjust the sensitivity to separation by the adverse pressure gradient, and the second control parameter is used to adjust the sensitivity to separation by the free shear layer. Then, an objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence, obtaining non-uniform spatial distribution data of the first and second control parameters. This objective function characterizes the adjustment of the spatial distribution of the first and second control parameters to minimize the deviation between the model-predicted data and the high-precision flow field data, and constrains the degree of deviation of the first and second control parameters from their default values. The model-predicted data is obtained through prediction by the benchmark turbulence model. Further, an input feature set related to flow field characteristics is determined based on the non-uniform spatial distribution data, and a first analytical expression for the first control parameter and a second analytical expression for the second control parameter are generated using a symbolic regression algorithm based on the input feature set. Finally, the first and second analytical expressions are embedded into the coefficient control equations of the benchmark turbulence model to obtain a target turbulence model, which is used to predict separated flows.
[0061] This invention first determines the first and second control parameters of a spatially non-uniform field based on a benchmark turbulence model. The first control parameter is used to adjust the sensitivity of separation by the adverse pressure gradient, and the second control parameter is used to adjust the sensitivity of separation by the free shear layer. Then, an objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence, obtaining the non-uniform spatial distribution data of the first and second control parameters. Then, symbolic regression is performed to construct the target turbulence model. Because the flow field inversion process is performed on the first and second control parameters, which are variables that change across the entire field, compared with the traditional machine learning-assisted RANS turbulence model, it has the characteristic of protecting the accuracy of boundary layer calculation. It can be applied to the prediction of various complex separated flows without affecting the calculation accuracy of simple attached flows, laying the foundation for accurately analyzing the aerodynamic performance of aerospace configurations.
[0062] According to the present invention, a method for predicting separated flow based on flow field inversion and symbolic regression is provided. An objective function for flow field inversion optimization is constructed based on first and second control parameters, and the objective function is iteratively solved until convergence, yielding non-uniform spatial distribution data of the first and second control parameters, including: Construct the objective function using the following formula (1): (1) in, Denotes the objective function, Indicates the first control parameter. This indicates the second control parameter. This represents the i-th high-precision flow field data. For model prediction data, This represents the coordinate in the direction of the first control parameter j. This represents the coordinate in the direction of the second control parameter j. This represents the first weighting coefficient that is dynamically adjusted. This represents the dynamically adjusted second weighting coefficient; An iterative optimization algorithm is used to iteratively solve the objective function until convergence. The non-uniform spatial distribution data is determined based on the distribution of the first control parameter and the distribution of the second control parameter at the time of iterative convergence.
[0063] Specifically, in some embodiments, the specific implementation process of step 102 includes the following steps: Step 2a: Construct the objective function using the following formula (1): (1) in, Describe the objective function. Indicates the first control parameter. This indicates the second control parameter. This represents the i-th high-precision flow field data. For model prediction data, This represents the coordinate in the direction of the first control parameter j. This represents the coordinate in the direction of the second control parameter j. This represents the first weighting coefficient that is dynamically adjusted. This represents the dynamically adjusted second weighting coefficient.
[0064] Step 2b: Further, the objective function is solved iteratively using an iterative optimization algorithm until convergence. The non-uniform spatial distribution data is determined based on the distribution of the first control parameter and the distribution of the second control parameter at the time of iterative convergence.
[0065] Iterative optimization algorithms include the adjoint equation method and gradient descent. Gradient descent updates parameters in the opposite direction of the objective function's gradient to find local minima. The adjoint equation method is used to efficiently calculate the gradient of optimization problems constrained by differential equations. By introducing adjoint variables (Lagrange multipliers), it constructs an adjoint equation corresponding to the original equation (the forward problem), avoiding direct calculation of the derivative of complex systems.
[0066] The method provided in this embodiment balances data matching accuracy and parameter deviation control in the objective function to avoid overfitting or underfitting. Furthermore, the flow field inversion process dynamically adjusts the weighting coefficients ( , The objective function is optimized to balance data matching and parameter stability, thereby improving the robustness of the inversion results.
[0067] According to the present invention, a method for predicting separated flows based on flow field inversion and symbolic regression is provided, which uses an iterative optimization algorithm to iteratively solve the objective function, including: The adjoint equation method is used to iteratively solve the objective function for high-dimensional flow fields; For low-dimensional flow fields, the gradient descent method is used to iteratively solve the objective function.
[0068] Specifically, in some embodiments, the selection of iterative optimization algorithms is based on factors including flow field complexity and computational resource constraints.
[0069] Flow field complexity and computational resource constraints are core challenges in computational fluid dynamics (CFD). These two factors directly impact the feasibility, efficiency, and accuracy of algorithms, especially when dealing with optimization problems involving the adjoint equation method and gradient descent method.
[0070] The complexity of the flow field is mainly reflected in the following aspects: (1) High-dimensional space: Three-dimensional flow field problems usually involve millions or even hundreds of millions of degrees of freedom (such as variables such as velocity, pressure, and temperature).
[0071] (2) Multiphysics coupling: such as fluid-structure interaction (FSI), turbulence-chemical reaction coupling, etc., require solving multiple equations simultaneously.
[0072] (3) Nonlinear and dynamic characteristics: such as the intermittent nature of turbulence and shock wave capture, make it difficult for the equations to converge.
[0073] (4) Geometric complexity: Complex geometries (such as aircraft airfoils and vascular networks) require fine meshing, which increases the amount of computation.
[0074] Computing resource limitations include the following aspects: (1) Memory limitation: Storing high-resolution flow fields and associated variables requires a large amount of memory, and distributed computing is required when the capacity of a single machine is exceeded.
[0075] (2) Computation time: A single simulation of a complex flow field may take several hours to several days, and the number of optimization iterations is limited.
[0076] (3) Parallel efficiency: The solution of the forward and inverse problems of the adjoint equation method needs to be parallelized efficiently, otherwise the speedup will be limited.
[0077] Typical bottleneck scenarios include: for example, aircraft airfoil design requires multiple iterations, but the cost of a single simulation is too high; for example, real-time optimization of UAV flow fields requires calculations to be completed within seconds; and for example, underground flow field reconstruction in geological exploration, which involves high parameter dimensionality and large data volume.
[0078] Gradient descent can be understood as the optimization engine, determining "how to reach the optimal solution," while the adjoint equation method is the gradient accelerator, solving "how to quickly calculate the direction." This embodiment focuses on the constraints of high-dimensional space.
[0079] Correspondingly, in this embodiment, an iterative optimization algorithm is used to iteratively solve the objective function, including: using the adjoint equation method to iteratively solve the objective function for high-dimensional flow fields to improve computational efficiency, and using the gradient descent method to iteratively solve the objective function for low-dimensional flow fields to reduce memory usage.
[0080] The method provided in this embodiment selects the adjoint equation method or gradient descent method as the iterative optimization algorithm according to the complexity of the flow field (high-dimensional / low-dimensional), which can improve computational efficiency (high-dimensional) or reduce memory usage (low-dimensional). It can select adaptive optimization strategies for different scenarios and achieve good optimization results.
[0081] According to the present invention, a method for predicting separated flow based on flow field inversion and symbolic regression is provided. The input feature set includes at least one of the following feature parameters: a first Reynolds stress parameter, a second Reynolds stress parameter, a fifth Reynolds stress parameter, a turbulent kinetic energy generation and dissipation ratio, and a local Reynolds number based on vorticity.
[0082] Specifically, in some embodiments, the input feature set includes at least one of the following feature parameters: a first Reynolds stress parameter. Second Reynolds stress parameters Fifth Reynolds stress parameter λ5, turbulent kinetic energy generation and dissipation ratio P k / ε, and the local Reynolds number based on vorticity .
[0083] The selection of input features directly affects the physical meaning of symbolic regression and the model correction effect. Therefore, in this embodiment, the input features should be selected from parameters that are strongly correlated with the flow field separation characteristics, such as the first Reynolds stress parameter. Second Reynolds stress parameters Fifth Reynolds stress parameter λ5, turbulent kinetic energy generation and dissipation ratio P k / ε, and the local Reynolds number based on vorticity .
[0084] The method provided in this embodiment generates analytical expressions by performing symbolic regression based on parameter features that are strongly correlated with the flow field separation characteristics, thereby enhancing the physical correlation of the correction terms.
[0085] According to the present invention, a method for predicting separated flow based on flow field inversion and symbolic regression is provided. This method generates a first analytical expression for a first control parameter and a second analytical expression for a second control parameter based on an input feature set using a symbolic regression algorithm. The method includes: A genetic algorithm is used to iteratively screen the target candidate expression, generating target candidate solutions through crossover, mutation, and selection operations; the target candidate solutions include candidate solutions of the first analytical expression and candidate solutions of the second analytical expression. Based on the criterion of minimizing prediction error, candidate solutions for the objective are screened to obtain the first analytical expression and the second analytical expression.
[0086] Specifically, in some embodiments, the step 103, which generates a first analytical expression for the first control parameter and a second analytical expression for the second control parameter based on the input feature set using a symbolic regression algorithm, can be implemented through the following steps: First, a genetic algorithm is used to iteratively screen the target candidate expression, generating target candidate solutions through crossover, mutation, and selection operations. The target candidate solutions include candidate solutions to the first analytical expression and candidate solutions to the second analytical expression.
[0087] Among them, the genetic algorithm transforms the optimization problem into a "population evolution" problem by simulating the biological evolution process: Encoding: Representing candidate solutions in the solution space as "chromosomes" (such as binary strings or real number vectors). Fitness function: Defining the evaluation criteria for solutions (such as the objective function value). Evolutionary operation: Generating a new generation of population through selection, crossover, and mutation, gradually approaching the optimal solution.
[0088] The key steps include the following: Step 1: Initialize the population: Randomly generate a set of initial solutions (candidate expression individuals).
[0089] Step 2, Fitness Assessment: Calculate the fitness value (objective function value of the candidate expression individual) for each individual.
[0090] Step 3, Selection: Select superior individuals as parents based on fitness (e.g., roulette selection, tournament selection).
[0091] Step 4, Crossover: Exchanging chromosome segments from the parent generation to generate offspring (e.g., single-point crossover, uniform crossover).
[0092] Step 5, Mutation: Randomly altering certain genes in offspring with a certain probability (e.g., bit flipping, Gaussian perturbation).
[0093] Step 6, Iterative Update: Replace some or all of the parent generation with the child generation, and repeat steps 2-5 until convergence is achieved, obtaining the optimal candidate expression individual, which is then used as the target candidate expression individual.
[0094] Furthermore, based on minimizing the prediction error, candidate solutions are screened to obtain a first analytical expression and a second analytical expression. For example, the expression corresponding to the minimum loss function is determined as the final expression.
[0095] The final first analytical expression The expression is: (13) in, This represents the fifth Reynolds stress parameter. This represents the second Reynolds stress parameter. The expression is mainly used to correct the sensitivity of turbulence models to inverse pressure gradient separation, through the inverse pressure gradient parameters ( , (Dynamically adjusted.)
[0096] Second parsing expression The expression is: (14) in, The second Reynolds stress parameter is represented by C2. The expression for C2 is derived from the shear strength parameter ( Dynamic adjustments are made to correct the sensitivity of the free shear layer separation. That is, the sensitivity of the turbulence model to the separation of the adverse pressure gradient is mainly corrected.
[0097] Both expressions are derived from symbolic regression machine learning and have simple forms. Their physical meaning can be analyzed: both expressions increase the correction coefficient when shear is strong. , Classical RANS modeling experience shows that turbulence models do indeed produce large errors in locations with strong shear. Therefore, the physical meaning of the two expressions obtained from training is consistent with classical RANS modeling experience and has good interpretability.
[0098] The method provided in this embodiment uses crossover, mutation, and selection operations of a genetic algorithm to select the expression with the minimum loss function, ensuring the simplicity and interpretability of the correction term.
[0099] According to the present invention, a method for predicting separated flow based on flow field inversion and symbolic regression is provided, which embeds a first analytical expression and a second analytical expression into the coefficient governing equations of a benchmark turbulence model to obtain a target turbulence model, including: Based on the first and second analytical expressions, the governing equations for the first, second, third, and fourth parameters that need to be adjusted for flow field inversion are determined. The first and second parameters are used to determine the first key coefficients of the benchmark turbulence model using an internal and external mixing strategy, while the third and fourth parameters are used to determine the second key coefficients of the benchmark turbulence model using the same strategy. Based on the control equations with the first, second, third, and fourth parameters, the expressions for the first and second key coefficients are obtained by updating the boundary layer mixing function. Substituting the expressions for the first and second key coefficients into the coefficient governing equations of the baseline turbulence model yields the target turbulence model.
[0100] Specifically, in some embodiments, step 104 can be implemented through the following steps: First, based on the first and second analytical expressions, the governing equations for the first, second, third, and fourth parameters that need to be adjusted for flow field inversion are determined.
[0101] Specifically, substitute the first analytical expression formula and the second analytical expression into the first parameter. The second parameter Third parameter The fourth parameter In the formula, the first parameter is obtained. The second parameter Third parameter The fourth parameter The governing equations are: that is, substitute formulas (13) and (14) into formulas (9), (10), (11), and (12).
[0102] Furthermore, based on the first parameter The second parameter Third parameter The fourth parameter The governing equations are updated using the boundary layer mixing function to obtain the first key coefficients of the baseline turbulence model. The expression and the second key coefficient The expression.
[0103] Specifically, by substituting the control equations for the first, second, third, and fourth parameters into formulas (6) and (7), the expressions for the key parameters can be derived (that is, the first key parameter is obtained). Second key coefficient (expression).
[0104] Furthermore, the first key coefficient The expression and the second key coefficient Substituting the expression into the coefficient governing equations of the baseline turbulence model yields the target turbulence model.
[0105] Specifically, and Substituting the expressions into the coefficient governing equations (Equations 2 and 3) of the baseline turbulence model yields the target turbulence model. Because this model incorporates the analytical expression of the correction term learned through symbolic regression machine learning, it is a machine learning-assisted RANS turbulence model.
[0106] Then, the target turbulence model and the Navier-Stokes equations are coupled and solved to obtain the parameters. Turbulent kinetic energy, Characteristic dissipation frequency, Eddy viscosity enables prediction of complex separated flows.
[0107] The method provided in this embodiment realizes adaptive adjustment based on the boundary layer mixing function (F1), which can improve the prediction capability of complex flows while maintaining the robustness of the model.
[0108] According to the present invention, a method for predicting separated flows based on flow field inversion and symbolic regression is provided, the method further comprising: The computational accuracy of the target turbulence model in simple attached flow and complex separated flow is verified through validation examples. The verification examples include at least one simple attached flow example and one complex separated flow example.
[0109] Specifically, in some embodiments, after obtaining the target turbulence model, the target turbulence model can be validated to ensure its computational accuracy in both simple and complex attached flows.
[0110] For example, the computational accuracy of the target turbulence model in simple attached flow and complex separated flow is verified by validation examples, wherein the validation examples include at least one simple attached flow example and one complex separated flow example.
[0111] The method provided in this embodiment enables the corrected model to have high-precision prediction capabilities in both simple attached flows and complex separated flows.
[0112] According to the present invention, a method for predicting separated flows based on flow field inversion and symbolic regression is provided. The accuracy of the target turbulence model in simple attached flows and complex separated flows is verified through validation examples, including: A flat plate boundary layer example is used to verify the accuracy of the friction coefficient calculation of the target turbulence model in simple attached flow, so that the error threshold is less than the first threshold. The prediction capability of the target turbulence model for complex separated flows is verified using the curve step and hump examples, so that the velocity distribution error threshold in the separation zone is less than the second threshold; the first threshold is less than the second threshold. A two-segment airfoil example was used to verify the accuracy of the target turbulence model in predicting the maximum lift coefficient and stall angle of attack.
[0113] Specifically, a flat plate boundary layer example is used to verify the accuracy of the friction coefficient calculation of the target turbulence model in simple attached flow, so that the error threshold is less than the first threshold. For example, the error threshold is less than 2%.
[0114] The predictive capability of the target turbulence model for complex separated flows is verified using post-curve step and hump examples, ensuring that the velocity distribution error threshold in the separation zone is less than a second threshold, and the first threshold is less than the second threshold. For example, the velocity distribution error threshold in the separation zone is less than 5%.
[0115] A two-segment airfoil example was used to verify the accuracy of the target turbulence model in predicting the maximum lift coefficient and stall angle of attack. For example, the error threshold was less than 5%.
[0116] The method provided in this embodiment enables the corrected model to have high-precision prediction capabilities in both simple attached flows and complex separated flows.
[0117] Figure 2 This is the second flowchart of the separated flow prediction method based on flow field inversion and symbolic regression provided by the present invention, as shown below. Figure 2 As shown, the method includes: Acquire high-precision flow field data.
[0118] Perform flow field inversion on two fields C1 and C2.
[0119] Select appropriate input features and perform symbolic regression training to obtain C1 and C2 expressions.
[0120] By embedding the expression into the baseline turbulence model equations, a separated flow prediction model that can protect the accuracy of the boundary layer is obtained.
[0121] At the technical level, the machine learning-assisted RANS turbulence model constructed in this invention, compared to traditional machine learning-assisted RANS turbulence models, has the characteristic of protecting the accuracy of boundary layer calculations. Furthermore, the embedded machine learning module is a white-boxed analytical expression, exhibiting good interpretability, reliability, and generalization ability.
[0122] At the application level, the turbulence model constructed in this patent can be used to analyze complex engineering flows in the aerospace field. The corrections C1 and C2 can be adaptively adjusted according to the local shear rate, thus being applied to the prediction of various complex separated flows without affecting the calculation of simple attached flows, laying the foundation for accurate analysis of the aerodynamic performance of aerospace configurations.
[0123] Figure 3 A schematic diagram of the spatial distribution of the first and second control parameters obtained from the flow field inversion provided by this invention. (See diagram below.) Figure 3 As shown, the left column shows the distribution in the flow field inversion based on the camel hump example, and the right column shows the distribution in the flow field inversion based on the curve step example. The horizontal axis represents the horizontal coordinate, and the vertical axis represents the vertical coordinate.
[0124] Figure 4 A schematic diagram illustrating the effect of the target turbulence model provided by this invention in calculating simple attached flow is shown below. Figure 4 As shown, the target turbulence model, also known as the Shear Stress Transfer-Constraint (SST-CSTR) model, can accurately calculate simple attached flows. Figure 4 The red line represents the friction coefficient distribution of a simple attached flow in the flat plate boundary layer. The red line represents the SST-CSTR calculation result, and the gray line represents the SST calculation result. The difference between the red line and the actual value represented by the gray line is very small. The vertical axis represents the friction drag coefficient, and the horizontal axis represents the vorticity Reynolds number.
[0125] Figure 5 This is a schematic diagram illustrating the aerospace simulation results calculated using the target turbulence model provided by the present invention, such as... Figure 5 As shown, the horizontal axis represents the lateral coordinates of the airfoil, and the vertical axis represents the vertical coordinates of the airfoil. M represents the Mach number.
[0126] Figure 6 This invention provides a schematic diagram illustrating the effect of using a target turbulence model to predict the maximum lift coefficient and stall angle of attack of the two-section airfoil of the NLR7301. Figure 6 As shown, the target turbulence model (SST-CSTR model) can predict the maximum lift coefficient and stall angle of attack of the two-section airfoil of NLR7301 more accurately than other traditional SST (Shear Stress Transfer) models, and is closer to the expected values (true values). The horizontal axis represents the angle of attack (AOA); the vertical axis represents the lift coefficient (CL).
[0127] The separation flow prediction device based on flow field inversion and symbolic regression provided by the present invention will be described below. The separation flow prediction device based on flow field inversion and symbolic regression described below can be referred to in correspondence with the separation flow prediction method based on flow field inversion and symbolic regression described above.
[0128] Figure 7 This is a schematic diagram of the structure of the separated flow prediction device based on flow field inversion and symbolic regression provided by the present invention, as shown below. Figure 7 As shown, the separated flow prediction device 300 based on flow field inversion and symbolic regression includes the following modules: The flow field inversion module 710 is used to determine the first control parameter and the second control parameter for flow field inversion based on the benchmark turbulence model; the first control parameter is used to adjust the adverse pressure gradient separation sensitivity, and the second control parameter is used to adjust the free shear layer separation sensitivity. An objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence to obtain non-uniform spatial distribution data of the first and second control parameters. The objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model prediction data and the high-precision flow field data, and to constrain the deviation of the first and second control parameters from their default values. The model prediction data is obtained by predicting using the benchmark turbulence model. The high-precision flow field data is flow field data with a precision greater than the constraint precision. The symbolic regression module 720 is used to determine the input feature set related to the flow field characteristics based on the non-uniform spatial distribution data, and to generate a first analytical expression for the first control parameter and a second analytical expression for the second control parameter based on the input feature set using a symbolic regression algorithm. The prediction module 730 is used to embed the first analytical expression and the second analytical expression into the coefficient control equation of the reference turbulence model to obtain the target turbulence model, and to predict the separated flow through the target turbulence model.
[0129] The apparatus provided in this embodiment includes a flow field inversion module 710, which is used to determine first and second control parameters for flow field inversion based on a benchmark turbulence model. The first control parameter is used to adjust the sensitivity to adverse pressure gradient separation, and the second control parameter is used to adjust the sensitivity to free shear layer separation. Then, an objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence, obtaining non-uniform spatial distribution data of the first and second control parameters. This objective function is used to adjust the spatial distribution of the first and second control parameters so that the model prediction data and the high-precision flow field data are compatible. The deviation is minimized, and the deviation of the first control parameter and the second control parameter from the default value is constrained. The model prediction data is obtained by predicting through the benchmark turbulence model. Further, the symbolic regression module 720 is used to determine the input feature set related to the flow field characteristics based on the non-uniform spatial distribution data, and to generate the first analytical expression of the first control parameter and the second analytical expression of the second control parameter based on the input feature set using the symbolic regression algorithm. Then, the prediction module 330 is used to embed the first analytical expression and the second analytical expression into the coefficient control equation of the benchmark turbulence model to obtain the target turbulence model, and to predict the separated flow through the target turbulence model.
[0130] This invention first determines the first and second control parameters of a spatially non-uniform field based on a benchmark turbulence model. The first control parameter is used to adjust the sensitivity of separation by the adverse pressure gradient, and the second control parameter is used to adjust the sensitivity of separation by the free shear layer. Then, an objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence, obtaining the non-uniform spatial distribution data of the first and second control parameters. Then, symbolic regression is performed to construct the target turbulence model. Because the flow field inversion process is performed on the first and second control parameters, which are variables that change across the entire field, compared with the traditional machine learning-assisted RANS turbulence model, it has the characteristic of protecting the accuracy of boundary layer calculation. It can be applied to the prediction of various complex separated flows without affecting the calculation accuracy of simple attached flows, laying the foundation for accurately analyzing the aerodynamic performance of aerospace configurations.
[0131] According to the present invention, a separate flow prediction device 700 based on flow field inversion and symbolic regression is provided, wherein the flow field inversion module 710 is specifically used for: The objective function is constructed using the following formula (1): in, Denotes the objective function, This represents the first control parameter. This indicates the second control parameter. This represents the i-th high-precision flow field data. For the model to predict data, This represents the coordinate in the direction of the first control parameter j. This represents the coordinate in the direction of the second control parameter j. This represents the first weighting coefficient that is dynamically adjusted. This represents the dynamically adjusted second weighting coefficient; The objective function is solved iteratively using an iterative optimization algorithm until convergence. The non-uniform spatial distribution data is determined based on the distribution of the first control parameter and the distribution of the second control parameter at the time of iterative convergence.
[0132] According to the present invention, a separate flow prediction device 700 based on flow field inversion and symbolic regression is provided, wherein the flow field inversion module 710 is further used for: The objective function is solved iteratively using the adjoint equation method for high-dimensional flow fields; The objective function is solved iteratively using the gradient descent method for the low-dimensional flow field.
[0133] According to the present invention, a separate flow prediction device 700 based on flow field inversion and symbolic regression is provided, wherein the input feature set includes at least one of the following feature parameters: a first Reynolds stress parameter, a second Reynolds stress parameter, a fifth Reynolds stress parameter, a turbulent kinetic energy generation and dissipation ratio, and a local Reynolds number based on vorticity.
[0134] According to the present invention, a separate flow prediction device 700 based on flow field inversion and symbolic regression is provided, wherein the symbolic regression module 720 is specifically used for: A genetic algorithm is used to iteratively screen the target candidate expression, and target candidate solutions are generated through crossover, mutation and selection operations; the target candidate solutions include candidate solutions of the first analytical expression and candidate solutions of the second analytical expression; Based on the criterion of minimizing prediction error, the target candidate solutions are screened to obtain the first analytical expression and the second analytical expression.
[0135] According to the present invention, a separate flow prediction device 700 based on flow field inversion and symbolic regression is provided, wherein the prediction module 730 is specifically used for: Based on the first analytical expression and the second analytical expression, the governing equations for the first, second, third, and fourth parameters that need to be adjusted for flow field inversion are determined. The first and second parameters are used to determine the first key coefficients of the benchmark turbulence model using an internal and external hybrid strategy, and the third and fourth parameters are used to determine the second key coefficients of the benchmark turbulence model using an internal and external hybrid strategy. Based on the control equations of the first parameter, the second parameter, the third parameter, and the fourth parameter, the expressions for the first key coefficient and the second key coefficient are obtained by updating the boundary layer mixing function; Substituting the expressions for the first and second key coefficients into the coefficient control equations of the baseline turbulence model yields the target turbulence model.
[0136] According to the present invention, a separate flow prediction device 700 based on flow field inversion and symbolic regression is provided, the device further comprising a verification module; The verification module is used for: The computational accuracy of the target turbulence model in simple attached flow and complex separated flow was verified through validation examples. The verification examples include at least one simple attached flow example and one complex separated flow example.
[0137] According to the present invention, a separate flow prediction device 700 based on flow field inversion and symbolic regression is provided, wherein the verification module is specifically used for: A flat plate boundary layer example is used to verify the accuracy of the friction coefficient calculation of the target turbulence model in the simple attached flow, so that the error threshold is less than the first threshold. The predictive capability of the target turbulence model for the complex separated flow is verified using a curve step case and a hump case, so that the velocity distribution error threshold in the separation zone is less than the second threshold; the first threshold is less than the second threshold; A two-segment airfoil example was used to verify the accuracy of the target turbulence model in predicting the maximum lift coefficient and stall angle of attack.
[0138] Figure 8 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 8 As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a separation flow prediction method based on flow field inversion and symbolic regression, the method including: The flow field inversion module is used to determine the first and second control parameters for flow field inversion based on the benchmark turbulence model; the first control parameter is used to adjust the sensitivity of the adverse pressure gradient separation, and the second control parameter is used to adjust the sensitivity of the free shear layer separation. An objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence to obtain non-uniform spatial distribution data of the first and second control parameters. The objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model prediction data and the high-precision flow field data, and to constrain the deviation of the first and second control parameters from their default values. The model prediction data is obtained by predicting using the benchmark turbulence model. The high-precision flow field data is flow field data with a precision greater than the constraint precision. The symbolic regression module is used to determine the input feature set related to the flow field characteristics based on the non-uniform spatial distribution data, and to generate a first analytical expression for the first control parameter and a second analytical expression for the second control parameter based on the input feature set using a symbolic regression algorithm. The prediction module is used to embed the first analytical expression and the second analytical expression into the coefficient control equations of the benchmark turbulence model to obtain the target turbulence model, and to predict the separated flow through the target turbulence model.
[0139] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0140] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program that can be stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is able to execute the separation flow prediction method based on flow field inversion and symbolic regression provided by the above methods, the method comprising: The flow field inversion module is used to determine the first and second control parameters for flow field inversion based on the benchmark turbulence model; the first control parameter is used to adjust the sensitivity of the adverse pressure gradient separation, and the second control parameter is used to adjust the sensitivity of the free shear layer separation. An objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence to obtain non-uniform spatial distribution data of the first and second control parameters. The objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model prediction data and the high-precision flow field data, and to constrain the deviation of the first and second control parameters from their default values. The model prediction data is obtained by predicting using the benchmark turbulence model. The high-precision flow field data is flow field data with a precision greater than the constraint precision. The symbolic regression module is used to determine the input feature set related to the flow field characteristics based on the non-uniform spatial distribution data, and to generate a first analytical expression for the first control parameter and a second analytical expression for the second control parameter based on the input feature set using a symbolic regression algorithm. The prediction module is used to embed the first analytical expression and the second analytical expression into the coefficient control equations of the benchmark turbulence model to obtain the target turbulence model, and to predict the separated flow through the target turbulence model.
[0141] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the separated flow prediction method based on flow field inversion and symbolic regression provided by the above methods, the method comprising: The flow field inversion module is used to determine the first and second control parameters for flow field inversion based on the benchmark turbulence model; the first control parameter is used to adjust the sensitivity of the adverse pressure gradient separation, and the second control parameter is used to adjust the sensitivity of the free shear layer separation. An objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence to obtain non-uniform spatial distribution data of the first and second control parameters. The objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model prediction data and the high-precision flow field data, and to constrain the deviation of the first and second control parameters from their default values. The model prediction data is obtained by predicting using the benchmark turbulence model. The high-precision flow field data is flow field data with a precision greater than the constraint precision. The symbolic regression module is used to determine the input feature set related to the flow field characteristics based on the non-uniform spatial distribution data, and to generate a first analytical expression for the first control parameter and a second analytical expression for the second control parameter based on the input feature set using a symbolic regression algorithm. The prediction module is used to embed the first analytical expression and the second analytical expression into the coefficient control equations of the benchmark turbulence model to obtain the target turbulence model, and to predict the separated flow through the target turbulence model.
[0142] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0143] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for predicting separated flows based on flow field inversion and symbolic regression, characterized in that, include: Based on the benchmark turbulence model, the first and second control parameters for flow field inversion are determined. The first control parameter is used to adjust the inverse pressure gradient separation sensitivity, and the second control parameter is used to adjust the free shear layer separation sensitivity. An objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence to obtain non-uniform spatial distribution data of the first and second control parameters. The objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model prediction data and the high-precision flow field data, and to constrain the degree of deviation of the first and second control parameters from their default values. The model prediction data is obtained by predicting using the benchmark turbulence model. The high-precision flow field data is the flow field data with a precision greater than that of the constraint. Based on the non-uniform spatial distribution data, an input feature set related to the flow field characteristics is determined, and based on the input feature set, a symbolic regression algorithm is used to generate a first analytical expression for the first control parameter and a second analytical expression for the second control parameter. The first analytical expression and the second analytical expression are embedded into the coefficient control equations of the baseline turbulence model to obtain the target turbulence model, and the separated flow is predicted by the target turbulence model.
2. The method for predicting separated flow based on flow field inversion and symbolic regression according to claim 1, characterized in that, The objective function for flow field inversion optimization is constructed based on the first control parameter and the second control parameter, and the objective function is iteratively solved until convergence to obtain the non-uniform spatial distribution data of the first control parameter and the second control parameter, including: The objective function is constructed using the following formula (1): (1) in, Denotes the objective function, This represents the first control parameter. This indicates the second control parameter. This represents the i-th high-precision flow field data. For the model to predict data, This represents the coordinate in the direction of the first control parameter j. This represents the coordinate in the direction of the second control parameter j. This represents the first weighting coefficient that is dynamically adjusted. This represents the second weighting coefficient, which is dynamically adjusted. The objective function is solved iteratively using an iterative optimization algorithm until convergence. The non-uniform spatial distribution data is determined based on the distribution of the first control parameter and the distribution of the second control parameter at the time of iterative convergence.
3. The method for predicting separated flow based on flow field inversion and symbolic regression according to claim 2, characterized in that, The step of iteratively solving the objective function using an iterative optimization algorithm includes: The objective function is solved iteratively using the adjoint equation method for high-dimensional flow fields; The objective function is solved iteratively using the gradient descent method for the low-dimensional flow field.
4. The method for predicting separated flow based on flow field inversion and symbolic regression according to claim 1, characterized in that, The input feature set includes at least one of the following feature parameters: a first Reynolds stress parameter, a second Reynolds stress parameter, a fifth Reynolds stress parameter, a turbulent kinetic energy generation and dissipation ratio, and a local Reynolds number based on vorticity.
5. The method for predicting separated flow based on flow field inversion and symbolic regression according to claim 1, characterized in that, The step of generating a first analytical expression for the first control parameter and a second analytical expression for the second control parameter based on the input feature set using a symbolic regression algorithm includes: A genetic algorithm is used to iteratively screen the target candidate expression, and target candidate solutions are generated through crossover, mutation and selection operations; the target candidate solutions include candidate solutions of the first analytical expression and candidate solutions of the second analytical expression; Based on the criterion of minimizing prediction error, the target candidate solutions are screened to obtain the first analytical expression and the second analytical expression.
6. The method for predicting separated flow based on flow field inversion and symbolic regression according to claim 1, characterized in that, The step of embedding the first analytical expression and the second analytical expression into the coefficient governing equations of the baseline turbulence model to obtain the target turbulence model includes: Based on the first analytical expression and the second analytical expression, the governing equations for the first, second, third, and fourth parameters that need to be adjusted for flow field inversion are determined. The first and second parameters are used to determine the first key coefficients of the benchmark turbulence model using an internal and external hybrid strategy, and the third and fourth parameters are used to determine the second key coefficients of the benchmark turbulence model using an internal and external hybrid strategy. Based on the control equations of the first parameter, the second parameter, the third parameter, and the fourth parameter, the expressions for the first key coefficient and the second key coefficient are obtained by updating the boundary layer mixing function; Substituting the expressions for the first and second key coefficients into the coefficient control equations of the baseline turbulence model yields the target turbulence model.
7. The method for predicting separated flow based on flow field inversion and symbolic regression according to any one of claims 1-6, characterized in that, The method further includes: The computational accuracy of the target turbulence model in simple attached flow and complex separated flow was verified through validation examples. The verification examples include at least one simple attached flow example and one complex separated flow example.
8. The method for predicting separated flow based on flow field inversion and symbolic regression according to claim 7, characterized in that, The verification of the target turbulence model's computational accuracy in simple attached flows and complex separated flows through validation examples includes: The accuracy of the friction coefficient calculation of the target turbulence model in the simple attached flow is verified by using a flat plate boundary layer example, so that the error threshold is less than the first threshold. The predictive capability of the target turbulence model for the complex separated flow is verified using a curve step case and a hump case, so that the velocity distribution error threshold in the separation zone is less than the second threshold; the first threshold is less than the second threshold; A two-segment airfoil example was used to verify the accuracy of the target turbulence model in predicting the maximum lift coefficient and stall angle of attack.
9. A separate flow prediction device based on flow field inversion and symbolic regression, characterized in that, include: The flow field inversion module is used to determine the first and second control parameters for flow field inversion based on the benchmark turbulence model. The first control parameter is used to adjust the inverse pressure gradient separation sensitivity, and the second control parameter is used to adjust the free shear layer separation sensitivity. An objective function for flow field inversion optimization is constructed based on the first and second control parameters, and the objective function is iteratively solved until convergence to obtain non-uniform spatial distribution data of the first and second control parameters. The objective function is used to adjust the spatial distribution of the first and second control parameters to minimize the deviation between the model prediction data and the high-precision flow field data, and to constrain the degree of deviation of the first and second control parameters from their default values. The model prediction data is obtained by predicting using the benchmark turbulence model. The high-precision flow field data is the flow field data with a precision greater than that of the constraint. The symbolic regression module is used to determine the input feature set related to the flow field characteristics based on the non-uniform spatial distribution data, and to generate a first analytical expression for the first control parameter and a second analytical expression for the second control parameter based on the input feature set using a symbolic regression algorithm. The prediction module is used to embed the first analytical expression and the second analytical expression into the coefficient control equations of the benchmark turbulence model to obtain the target turbulence model, and to predict the separated flow through the target turbulence model.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the separated flow prediction method based on flow field inversion and symbolic regression as described in any one of claims 1 to 8.
