A Reynolds stress prediction method, device, equipment and medium
The Reynolds stress prediction model is built by implicitly predicting turbulent kinetic energy and deep neural networks, which solves the problems of dependence on experimental data and inaccurate predictions in the existing technology, achieves accurate Reynolds stress prediction for anisotropic turbulent flow scenarios, and improves the efficiency of Forecasting efficiency and accuracy.
Patent Information
- Application Number
- CN202411047962.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing Reynolds stress prediction methods rely on a large amount of experimental data and are difficult to handle anisotropic turbulent flow scenarios, and data-driven methods lack physical understanding, resulting in inaccurate predictions.
The preset effective viscosity assumption method is used to calculate turbulence data, and a Reynolds stress prediction model is constructed through an implicit predicted turbulence kinetic energy model and a deep neural network. The tensor invariant and velocity component features are spliced to generate a scalar basis function to fit isotropy. and anisotropy tensor to achieve accurate prediction of Reynolds stress.
Significantly reduces the dependence on experimental data, improves the accuracy and efficiency of prediction, saves costs, especially when resources are limited, and is more capable of processing complex data structures and extracting deep features than fully connected networks. good performance.
Smart Images

Figure CN118569145B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fluid mechanics, and in particular to a Reynolds stress prediction method, device, equipment and medium. Background Art
[0002] The Navier-Stokes (NS) equations are the core equations for describing fluid motion in fluid dynamics, while the Reynolds-averaged Navier-Stokes (RANS) equations are the main method currently applied to engineering problems. The RANS equations are obtained by time-averaging the NS equations. This process introduces an additional stress term, namely the Reynolds stress, which plays a key role in accurately describing the average characteristics of turbulent flows. In order to close the RANS equations and express the Reynolds stress term, the most commonly used method is to adopt the Boussinesq eddy viscosity hypothesis, which simplifies the treatment of turbulence models by linearizing the relationship between the Reynolds stress and the average velocity gradient. However, the Boussinesq eddy viscosity hypothesis cannot handle the anisotropy of the flow field. Moreover, the advancement of artificial intelligence technology has promoted the growing interest in using deep neural networks to study turbulent closure problems for the RANS equations. However, although this data-driven method has strong fitting capabilities, it lacks a deep understanding of the physical process, resulting in a lack of physical meaning in its predictions, that is, the predicted Reynolds stress is inaccurate. Therefore, there is an urgent need to incorporate physical principles into the model to enhance the accuracy and interpretability of its predictions. However, in previous Reynolds stress studies, most of them were based on measurement technology, numerical calculations, and pure data-driven methods, which require more measured experimental data on turbulent kinetic energy and turbulent dissipation rate.
[0003] In summary, how to use less experimental data to propose an interpretable Reynolds stress anisotropy tensor dual-model prediction technology for the Reynolds stress of various turbulent flow scenarios, so as to achieve accurate prediction of Reynolds stress under different turbulent flow scenarios. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a Reynolds stress prediction method, device, equipment and medium, which can use less experimental data to propose an interpretable Reynolds stress anisotropy tensor dual model prediction technology for the Reynolds stress of each turbulent flow scene, and realize accurate prediction of Reynolds stress in different turbulent flow scenes. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a Reynolds stress prediction method, comprising:
[0006] Calculate turbulence data in turbulent flow scenarios using the preset effective viscosity assumption method;
[0007] The original velocity characteristic data is used as the first target training data, and the first target training data is used to perform model training on the implicit prediction turbulent kinetic energy model for the mapping relationship between velocity field characteristics and turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy;
[0008] Performing feature splicing on the tensor invariant in the turbulence data, the velocity component, and the position information to obtain second target training data, and inputting the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network;
[0009] The target turbulence data of the target turbulent flow scenario is input into a Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so that the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function are fitted through the Reynolds stress prediction model to obtain the corresponding Reynolds stress.
[0010] Optionally, the calculating of turbulence data in a turbulent flow scenario using a preset effective viscosity assumption method includes:
[0011] Calculate the historical turbulent kinetic energy in the turbulent flow scene through the RANS equation and historical turbulent flow field information;
[0012] Calculating a strain rate tensor and a rotation rate tensor using the velocity field of the historical turbulent flow field information, so as to construct and calculate a basis tensor and a tensor invariant based on the strain rate tensor and the rotation rate tensor;
[0013] The historical turbulent kinetic energy, the strain rate tensor, the rotation rate tensor, the basis tensor and the tensor invariant are subjected to variable scaling processing to obtain amplified turbulence data.
[0014] Optionally, the original velocity characteristic data is used as the first target training data, and the first target training data is used to perform model training on the implicit prediction turbulent kinetic energy model for the mapping relationship between velocity field characteristics and turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy, including:
[0015] Extracting original velocity feature data from the original velocity field and velocity gradient data, and performing feature splicing on the original velocity feature data in the order of velocity component and velocity gradient to obtain first target training data;
[0016] Inputting the first target training data into an implicit prediction turbulent kinetic energy model so as to encode the first target training data through a fully connected encoding layer of the implicit prediction turbulent kinetic energy model to obtain an encoded training feature vector;
[0017] Inputting the encoded training feature vector into the feature extraction layer of the implicit prediction turbulent kinetic energy model so as to extract flow field velocity features through the feature extraction layer;
[0018] The flow field velocity characteristics are input into a preset Transformer encoder so that the preset Transformer encoder can learn and obtain target flow field velocity characteristics about the basic state and dynamic changes of the flow field, and capture the mapping relationship between the velocity field characteristics and the turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy.
[0019] Optionally, inputting the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network includes:
[0020] The second target training data is input into the Transformer-CNN network so as to fit the scalar basis function of the anisotropic tensor for expressing the Reynolds stress tensor through the Transformer-CNN network.
[0021] Optionally, inputting the second target training data into a Transformer-CNN network so as to fit a scalar basis function of an anisotropic tensor for expressing the Reynolds stress tensor through the Transformer-CNN network comprises:
[0022] Inputting the second target training data into a Transformer-CNN network so as to obtain a scalar function through the Transformer-CNN network;
[0023] The basis tensor calculated based on the average strain rate tensor and the average rotation rate tensor is scaled by a linear layer and an activation function to obtain a target basis tensor that meets a preset numerical interval condition;
[0024] The target basis tensor and the scalar function are fitted through the Transformer-CNN network to obtain a scalar basis function of an anisotropic tensor for expressing the Reynolds stress tensor.
[0025] Optionally, the target turbulence data of the target turbulent flow scenario is input into a Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain the corresponding Reynolds stress, including:
[0026] Inputting target turbulence data of a target turbulent flow scenario into a Reynolds stress prediction model constructed based on the target implicit prediction turbulence kinetic energy model and the scalar basis function, so as to predict the target turbulence kinetic energy corresponding to the target turbulence data through the target implicit prediction turbulence kinetic energy model, and calculating the isotropic tensor based on the target turbulence kinetic energy;
[0027] Determining an anisotropy tensor using the scalar basis function and the target turbulent kinetic energy;
[0028] The isotropic tensor and the anisotropic tensor are fitted by the Reynolds stress prediction model to output corresponding Reynolds stress.
[0029] Optionally, fitting the isotropic tensor and the anisotropic tensor by using the Reynolds stress prediction model to output corresponding Reynolds stress includes:
[0030] Through the Reynolds stress prediction model and according to The isotropic tensor and the anisotropic tensor are fitted to output a predicted Reynolds stress, where represents the isotropic tensor, represents the anisotropy tensor, represents the predicted Reynolds stress.
[0031] In a second aspect, the present application discloses a Reynolds stress prediction device, comprising:
[0032] A data calculation module, used to calculate turbulence data in a turbulent flow scenario using a preset effective viscosity assumption method;
[0033] A first model training module is used to use the original velocity characteristic data as the first target training data, and use the first target training data to perform model training on the implicit prediction turbulent kinetic energy model for the velocity field characteristic and the turbulent kinetic energy mapping relationship, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy;
[0034] A second model training module is used to perform feature splicing on the tensor invariant in the turbulence data, the velocity component, and the position information to obtain second target training data, and input the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network;
[0035] A prediction module is used to input the target turbulence data of the target turbulent flow scene into a Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain the corresponding Reynolds stress.
[0036] In a third aspect, the present application discloses an electronic device, comprising:
[0037] Memory, used to store computer programs;
[0038] A processor is used to execute the computer program to implement the steps of the aforementioned disclosed Reynolds stress prediction method.
[0039] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed Reynolds stress prediction method are implemented.
[0040] It can be seen that the present application discloses a method for calculating turbulence data in a turbulent flow scenario using a preset effective viscosity assumption method; using the original velocity characteristic data as the first target training data, and using the first target training data to perform model training on the implicit prediction turbulent kinetic energy model for the mapping relationship between velocity field characteristics and turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy; performing feature splicing on the tensor invariants in the turbulence data with the velocity components and position information to obtain the second target training data, and inputting the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network; inputting the target turbulence data of the target turbulent flow scenario into a Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain the corresponding Reynolds stress. It can be seen that by implicitly predicting turbulent kinetic energy instead of directly using measured experimental data, the dependence on experimental data is significantly reduced, especially when experimental resources are limited, which not only saves costs but also improves the feasibility and efficiency of research. In addition, the Reynolds stress prediction model has better performance in processing complex data structures and extracting deep features compared to the fully connected network of the prior art. This complex model architecture enables the present invention to more accurately map the relationship of Reynolds stress, significantly improving the accuracy and efficiency of Reynolds stress prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0042] Figure 1A flow chart of a Reynolds stress prediction method disclosed in this application;
[0043] Figure 2 A Transformer-CNN architecture diagram disclosed in this application;
[0044] Figure 3 A dual-model overall framework diagram for Reynolds stress disclosed in the present application;
[0045] Figure 4 A flow chart of a method for fitting a scalar function based on tensor basis vectors disclosed in this application;
[0046] Figure 5 This is a schematic diagram of the structure of a Reynolds stress prediction device disclosed in this application;
[0047] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0049] The Navier-Stokes (NS) equations are the core equations for describing fluid motion in fluid dynamics, while the Reynolds-averaged Navier-Stokes (RANS) equations are the main method currently applied to engineering problems. The RANS equations are obtained by time-averaging the NS equations. This process introduces an additional stress term, namely the Reynolds stress, which plays a key role in accurately describing the average characteristics of turbulent flows. In order to close the RANS equations and express the Reynolds stress term, the most commonly used method is to adopt the Boussinesq eddy viscosity hypothesis, which simplifies the treatment of turbulence models by linearizing the relationship between the Reynolds stress and the average velocity gradient. However, the Boussinesq eddy viscosity hypothesis cannot handle the anisotropy of the flow field. Moreover, the advancement of artificial intelligence technology has promoted the growing interest in using deep neural networks to study turbulent closure problems for the RANS equations. However, although this data-driven method has strong fitting capabilities, it lacks a deep understanding of the physical process, resulting in a lack of physical meaning in its predictions, that is, the predicted Reynolds stress is inaccurate. Therefore, there is an urgent need to incorporate physical principles into the model to enhance the accuracy and interpretability of its predictions. However, in previous Reynolds stress studies, most of them were based on measurement technology, numerical calculations, and pure data-driven methods, which require more measured experimental data on turbulent kinetic energy and turbulent dissipation rate.
[0050] To this end, the present invention provides a Reynolds stress prediction scheme that can utilize less experimental data and propose an interpretable Reynolds stress anisotropy tensor dual-model prediction technology for the Reynolds stress of various turbulent flow scenarios, thereby achieving accurate prediction of the Reynolds stress under different turbulent flow scenarios.
[0051] Reference Figure 1 As shown, an embodiment of the present invention discloses a Reynolds stress prediction method, comprising:
[0052] Step S11: Calculate turbulence data in a turbulent flow scenario using a preset effective viscosity assumption method.
[0053] In this embodiment, the turbulent flow scenes specifically include: turbulent flow scenes in pipes, atmospheric turbulent flow scenes, water turbulent flow scenes, turbulent flow scenes in the fluid machinery design process, and flow scenes of airflow around aircraft. Therefore, in the face of turbulent flow scenes in pipes, turbulent data include: the magnitude and direction of fluid velocity at different positions, including time-averaged velocity, pulsating velocity component, etc.; pressure data: pressure values at each point in the pipe, pressure fluctuations, etc.; temperature data: if heat exchange and other situations are involved, there will be temperature distribution data; turbulent kinetic energy data: reflecting the energy level of turbulence; turbulence intensity data: indicating the severity of turbulence; Reynolds stress data: describing the interaction between velocity pulsations in different directions in turbulence; spectral data: spectral information of parameters such as velocity and pressure, which can be used to analyze the frequency characteristics of turbulence; turbulent scale data: including integral scale, Taylor microscale, etc., used to describe the spatial characteristics of turbulence. In the case of atmospheric turbulent flow scenarios, turbulence data include: wind speed data: wind speed and direction at different locations, including average wind speed, pulsating wind speed, etc.; wind direction data: wind direction changes; temperature data: atmospheric temperature distribution and changes; humidity data: atmospheric humidity information; pressure data: atmospheric pressure values; turbulence intensity data: indicating the severity of turbulence; turbulence scale data: such as integral scale, Taylor microscale, etc., used to describe the spatial characteristics of turbulence; spectrum data: spectrum information of parameters such as wind speed and temperature, which can be used to analyze the frequency characteristics of turbulence. In other cases, the turbulence data in other turbulent flow scenarios are the corresponding data under different actual scenarios, which will not be elaborated.
[0054] The method of obtaining turbulence data is as follows:
[0055] The historical turbulent kinetic energy in the turbulent flow scene is calculated by using the RANS equation and the historical turbulent flow field information; the strain rate tensor and the rotation rate tensor are calculated by using the velocity field of the historical turbulent flow field information, so as to construct and calculate the basis tensor and tensor invariant based on the strain rate tensor and the rotation rate tensor; the historical turbulent kinetic energy, the strain rate tensor, the rotation rate tensor, the basis tensor and the tensor invariant are subjected to variable scaling processing to obtain the amplified turbulent data. It can be understood that the historical turbulent kinetic energy is calculated by the time-averaged form of the NS equation (RANS equation), and the RANS formula is shown in the following formula (1):
[0056] ;Formula (1)
[0057] in, is the density, and is the time-averaged form of pressure and velocity components in all directions (U, V, W). is the Reynolds stress, which is a symmetrical second-order tensor. The components UU, VV, and WW on the diagonal are called normal stresses, and the components on the off-diagonal are called shear stresses.
[0058] The Reynolds stress tensor can be decomposed into an isotropic part and an anisotropic part. The isotropic part is related to the turbulent kinetic energy of the fluid, while the anisotropic part describes the stress distribution characteristics other than the isotropic kinetic energy distribution, as shown in formula (2):
[0059] ;Formula (2)
[0060] in, is the isotropic tensor, is the anisotropy tensor, is the Kronecker Delta function, represents the Reynolds stress to be decomposed, when When , it is 1, otherwise it is 0. k is the turbulent kinetic energy, which is defined as half of the Reynolds stress tensor trace. The formula for obtaining the turbulent kinetic energy is shown in formula (3):
[0061] ;Formula (3)
[0062] The historical turbulent kinetic energy in the turbulent flow scene is calculated by formula (3) and the historical turbulent flow field information;
[0063] Among them, UU, VV, and WW represent the Reynolds stress components in the tangent directions of x, y, and z in the historical turbulent flow field information respectively. In addition, the historical turbulent flow field information also includes: position information x, y, z and velocity components U, V, W and velocity gradients U_x, U_y, U_z, V_x, V_y, V_z, W_x, W_y, W_z in the three directions of x, y, and z, as well as UV, UW, and VW in the final predicted target six Reynolds stress components τ=(UU, UV, UW, VV, WV, WW).
[0064] Then, the strain rate tensor and rotation rate tensor are calculated, where the strain rate tensor and rotation rate tensor represent the deformation rate and rotation rate of the flow, respectively, and are obtained based on the velocity field of the flow field in the historical turbulent flow field information. The velocity field vector of the fluid is , where u, v, w are the velocity components in the x, y, and z directions. Then, the strain rate tensor components can be calculated by formula (4), and the rotation rate tensor components can be calculated by formula (5). Therefore, formula (4) and formula (5) are as follows:
[0065] ;Formula (4)
[0066] ;Formula (5)
[0067] Subsequently, the basis tensor is calculated. In the Pope modified effective viscosity hypothesis, a set of specific basis tensors can be used to ensure that the turbulence model satisfies physical invariances such as Galilean invariance. The basis tensor is defined by a set of average strain rate tensor S and average rotation rate tensor R, that is, the average strain rate tensor S and average rotation rate tensor R determined by the strain rate tensor and rotation rate tensor obtained by formula (4) and formula (5) respectively are used to construct the basis tensor. As shown in formula (6):
[0068] ;Formula (6)
[0069] Computation of tensor invariants: Tensor invariants can capture the key physical properties of the flow field, such as vorticity, strain rate, and turbulence intensity. They are a set of scalars consisting of the eigenvalues of S and R and their combinations, as shown in formula (7). These scalar functions remain unchanged under coordinate transformations.
[0070] ;Formula (7)
[0071] Then, in order to improve the numerical stability of model training and speed up training, all data variables are first normalized to the maximum and minimum values, so that the data is scaled between 0 and 1 to eliminate the dimensional effects between indicators, as shown in formula (8). In order to avoid the normalized data being at the minimum value (very close to 0), the normalized data is further expanded by 100 times, as shown in formula (9), so that the model data and weight updates are within a more "comfortable" numerical range.
[0072] ;Formula (8)
[0073] ;Formula (9)
[0074] in, represents the normalized data of historical turbulent kinetic energy, strain rate tensor, rotation rate tensor, basis tensor and tensor invariant, The normalized data is magnified 100 times and represents the amplified turbulence data.
[0075] It can be seen that the amplified turbulence data after the rationalization of the numerical ranges of the historical turbulent kinetic energy, strain rate tensor, rotation rate tensor, basis tensor and tensor invariant obtained by formulas (1) to (7) are obtained by formulas (8) and (9).
[0076] Step S12: using the original velocity characteristic data as the first target training data, and using the first target training data to perform model training on the implicit prediction turbulent kinetic energy model for the mapping relationship between velocity field characteristics and turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy.
[0077] In this embodiment, original velocity feature data is extracted from the original velocity field and velocity gradient data, and the original velocity feature data is spliced according to the sequential features of velocity components and velocity gradients to obtain first target training data; the first target training data is input into an implicit prediction turbulent kinetic energy model so that the first target training data is encoded through the fully connected encoding layer of the implicit prediction turbulent kinetic energy model to obtain an encoded training feature vector; the encoded training feature vector is input into the feature extraction layer of the implicit prediction turbulent kinetic energy model so that the flow field velocity features are extracted through the feature extraction layer; the flow field velocity features are input into a preset Transformer encoder so that the preset Transformer encoder learns and obtains target flow field velocity features about the basic state and dynamic changes of the flow field, and captures the mapping relationship between velocity field features and turbulent kinetic energy to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy. It can be understood that the most informative feature representation for flow field analysis and modeling is extracted from the original velocity field and velocity gradient data in the historical turbulent flow scene as the original velocity feature data, and the original velocity feature data is feature spliced in the order of velocity component and velocity gradient to obtain the first target training data. speed _ x It should be noted that the original velocity field and velocity gradient data are both amplified turbulence data, where the feature concatenation result of the first target training data is shown in formula (10):
[0078] ;Formula (10)
[0079] like Figure 2 As shown, the vector It is sent to the fully connected encoding layer of the implicit prediction turbulent kinetic energy model for encoding, and the encoded feature vector is obtained , that is, the encoded training feature vector, the encoding process is shown in formula (11), where It is important to note that the implicit prediction turbulent kinetic energy model is a Transformer-CNN architecture model.
[0080] ;Formula (11)
[0081] Then, the encoded feature vector is trained Extracting flow field velocity features through the feature extractor of the implicit prediction turbulence kinetic energy prediction model , that is, the flow field velocity features are extracted through the feature extraction layer, as shown in formula (12), where Function representing a feature extraction network consisting of three one-dimensional convolutional layers.
[0082] ;Formula (12)
[0083] It can be understood that a feature extraction network is constructed through three one-dimensional convolutional layers, that is, a feature extractor is constructed.
[0084] Then, refer to Figure 3 As shown, the velocity characteristics of the flow field are Input to the preset Transformer encoder constructed by the three-layer Transformer encoder. In this way, the preset Transformer encoder can construct the mapping relationship between the flow field velocity characteristics and the turbulent kinetic energy, that is, the flow field velocity characteristics are further processed by a three-layer Transformer encoder , using the self-attention mechanism to obtain a deeper flow field representation ,in, It represents the process of processing the velocity characteristics of the flow field through the function composed of three layers of Transformer encoders, and then converting it through the fully connected relationship mapper to output the turbulent kinetic energy prediction value, thereby completing the mapping of velocity field characteristics to turbulent kinetic energy. The process is shown in formulas (13) and (14).
[0085] ;Formula (13)
[0086] ;Formula (14)
[0087] Reference Figure 3 As shown in Figure 1, the implicit prediction model of turbulent kinetic energy is trained based on the mean square error function, as shown in formula (15).
[0088] ;Formula (15)
[0089] Where k is the historical turbulent kinetic energy obtained by formula (3), is the predicted value of turbulent kinetic energy obtained by formula (14). In this way, by continuously optimizing the difference between the predicted turbulent kinetic energy and the historical turbulent kinetic energy, the optimization goal of minimizing the difference is achieved. In the process of optimization, the hyperparameters of the model are continuously updated to make the prediction of turbulent kinetic energy more accurate. After achieving the minimized optimization goal, the current hyperparameters are used as the model hyperparameters of the target implicit prediction turbulent kinetic energy model.
[0090] Step S13: feature concatenating the tensor invariant in the turbulence data with the velocity component and the position information to obtain second target training data, and inputting the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network.
[0091] In this embodiment, refer to Figure 3As shown, the input features (second target training data) are obtained by concatenating the variables λ1, ⋯, λ5 and the velocity components U, V, W in three directions and the position information x, y, z, and then obtaining the second target training data. , as shown in formula (16):
[0092] ;Formula (16)
[0093] In this embodiment, refer to Figure 3 As shown, the acquired second target training data is input into the preset deep neural network so as to fit the scalar basis function of the anisotropic tensor expressing the Reynolds stress tensor through the preset deep neural network. That is, the preset deep neural network is fitted and trained through the second target training data to obtain the scalar basis function.
[0094] Step S14: Input the target turbulence data of the target turbulent flow scene into the Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain the corresponding Reynolds stress.
[0095] In this embodiment, when there is a need to predict the Reynolds stress of a target turbulent flow scenario, the target turbulent data of the target turbulent flow scenario is input into the Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to predict the target turbulent kinetic energy corresponding to the target turbulent data through the target implicit prediction turbulent kinetic energy model, and calculate the isotropic tensor based on the target turbulent kinetic energy; determine the anisotropic tensor through the scalar basis function and the target turbulent kinetic energy; and fit the isotropic tensor and the anisotropic tensor through the Reynolds stress prediction model to output the corresponding Reynolds stress. It can be understood that after the target turbulent data is input into the Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, the target implicit prediction turbulent kinetic energy model predicts the corresponding target turbulent kinetic energy based on the input target turbulent data, and then the isotropic tensor of the Reynolds stress tensor is directly related to the turbulent kinetic energy k, as shown in Formula 17:
[0096] ;Formula (17)
[0097] Where k is the target turbulent kinetic energy predicted based on the target implicit prediction turbulent kinetic energy model. is the Kronecker symbol, when 1 if the value is 0, otherwise it is 0.
[0098] Then the anisotropy tensor is determined by the scalar basis function and the target turbulent kinetic energy. Specifically, Pope derived the general form of the constitutive relationship between the normalized anisotropy tensor b and the target basis tensor based on the Caley–Hamilton theory, as shown below:
[0099] ;Formula (18)
[0100] in, is the target basis tensor after the range nonlinear correction. λ1,…,λ5 are the tensor invariants in formula (7), is the scalar basis function obtained by fitting. b is obtained by normalizing the target turbulent kinetic energy k. Therefore, the anisotropy vector calculation formula is as follows:
[0101] ;Formula (19)
[0102] in, is calculated by formula (18), and k is the target turbulent kinetic energy. After the isotropic tensor and the anisotropic tensor are determined, the two are fitted through the Reynolds stress prediction model to output the predicted Reynolds stress. Specifically, the fitting process is as follows:
[0103] In this embodiment, the isotropic tensor and the anisotropic tensor are fitted by the Reynolds stress prediction model to output the corresponding Reynolds stress, including: The isotropic tensor and the anisotropic tensor are fitted to output the corresponding Reynolds stress, where: represents the isotropic tensor, represents the anisotropy tensor, represents the predicted Reynolds stress. It can be understood that by combining the isotropic and anisotropic fitted Reynolds stresses, under the effective viscosity assumption based on Pope's correction, the Reynolds stress tensor can be decomposed into an isotropic part and an anisotropic part. The isotropic tensor is calculated by formula (17) , the anisotropy tensor can be calculated from the above formula (19): , so the fitted Reynolds stress is obtained as formula (20).
[0104] ;Formula (20)
[0105] By implicitly predicting turbulent kinetic energy instead of directly using measured experimental data, the dependence on experimental resources is significantly reduced, which not only saves costs but also improves the feasibility and efficiency of research, especially when resources are limited. In addition, the Transformer-CNN model architecture used in the present invention has better performance in processing complex data structures and extracting deep features than traditional fully connected networks. This complex model architecture enables the present invention to more accurately map the relationship between Reynolds stress and improve the accuracy of prediction.
[0106] In order to more accurately predict the Reynolds stress, a weighted loss function is designed, which comprehensively considers the characteristics of mean square error (MSE) and mean absolute error (MAE), and introduces the coefficient of determination (R2) as an evaluation index to strengthen the consideration of the correlation between the model prediction value and the target value. As shown in formula (21):
[0107] ;Formula (21)
[0108] in, is the mean absolute error loss function. is the mean square error loss function. is the coefficient of determination loss function. Indicates The true Reynolds stress, Indicates The predicted Reynolds stress, It represents the average value of each true Reynolds stress, α, β, and γ are weight coefficients. By carefully selecting the weight coefficients, the balance of different types of prediction errors and the improvement of the overall performance can be achieved.
[0109] Therefore, the cost function of the Reynolds stress anisotropy tensor dual model (Reynolds stress prediction model) is ,in, represents the weighted loss function of the predicted Reynolds stress, Represents the weighted loss function of the true Reynolds stress.
[0110] The weighted loss function designed in the present invention can more comprehensively consider various types of prediction errors during the model training process. Compared with the traditional root mean square error loss function, it can optimize the overall prediction performance of the model and improve the accuracy and reliability of the prediction results.
[0111] It can be seen that the present application discloses a method for calculating turbulence data in a turbulent flow scenario using a preset effective viscosity assumption method; using the original velocity characteristic data as the first target training data, and using the first target training data to perform model training on the implicit prediction turbulent kinetic energy model for the mapping relationship between velocity field characteristics and turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy; performing feature splicing on the tensor invariants in the turbulence data with the velocity components and position information to obtain the second target training data, and inputting the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network; inputting the target turbulence data of the target turbulent flow scenario into a Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain the corresponding Reynolds stress. It can be seen that by implicitly predicting turbulent kinetic energy instead of directly using measured experimental data, the dependence on experimental data is significantly reduced, especially when experimental resources are limited, which not only saves costs but also improves the feasibility and efficiency of research. In addition, the Reynolds stress prediction model has better performance in processing complex data structures and extracting deep features compared to the fully connected network of the prior art. This complex model architecture enables the present invention to more accurately map the relationship of Reynolds stress, significantly improving the accuracy and efficiency of Reynolds stress prediction.
[0112] Reference Figure 4 As shown, the present invention discloses a method for fitting a scalar function based on a tensor basis vector, comprising:
[0113] Step S21: inputting the second target training data into the Transformer-CNN network so as to obtain a scalar function through the Transformer-CNN network.
[0114] In this embodiment, the second target training data is input into the Transformer-CNN network so as to fit the scalar basis function of the anisotropic tensor used to express the Reynolds stress tensor through the Transformer-CNN network. It can be understood that in the Pope modified effective viscosity hypothesis, the scalar basis function g (n) is a functional expression of the variables λ1, ⋯, λ5 in formula (7), which is introduced to express the anisotropic part of the Reynolds stress tensor and ensure that the turbulence model satisfies the physical invariance. The present invention fits the scalar basis function expression g by deep neural network technology. (n) , the preset deep neural network in this part is the same as the Transformer-CNN architecture of the implicit prediction turbulent kinetic energy prediction model.
[0115] Step S22: scaling the basis tensor calculated based on the average strain rate tensor and the average rotation rate tensor through a linear layer and an activation function to obtain a target basis tensor that meets a preset numerical range condition.
[0116] In this embodiment, in order to avoid the value range of the basis tensor being too large, which may cause numerical explosion in the model fitting process, the value range of the basis tensor is first nonlinearly corrected. Since the basis tensor is transformed from the matrix of the average strain rate tensor and the average rotation rate tensor after feature amplification, its value range is too large, which may easily cause numerical explosion in the model training process. Therefore, the basis tensor is passed through a linear layer and an activation function (Tanh function) in sequence to scale the basis tensor to a smaller numerical range, as shown in formula (22):
[0117] ;Formula (22)
[0118] in, is the basis tensor in formula (6). In this way, the modified basis tensor is used as the target basis tensor .
[0119] Step S23: Fitting the target basis tensor and the scalar function through the Transformer-CNN network to obtain a scalar basis function of the anisotropic tensor for expressing the Reynolds stress tensor.
[0120] In this embodiment, the target basis tensor and the scalar function λ n The Transformer-CNN network can learn the mapping relationship between the two and the anisotropic tensor, so that the fitted scalar basis function can accurately express the anisotropic tensor of Reynolds stress.
[0121] It can be seen that the adopted Transformer-CNN model architecture has better performance in processing complex data structures and extracting deep features than the traditional fully connected network. This complex model architecture enables the present invention to more accurately map the relationship between Reynolds stresses and improve the accuracy of predictions. It can also solve the problem of numerical stability based on the predicted turbulent kinetic energy and the nonlinear correction of the anisotropic tensor by fitting the scalar function, thereby enhancing the model's ability to process complex data. It provides an effective solution to common numerical problems in turbulence prediction models, ensuring the robustness of the model in complex application scenarios.
[0122] Reference Figure 5 As shown, the present invention also discloses a Reynolds stress prediction device, comprising:
[0123] A data calculation module 11 is used to calculate turbulence data in a turbulent flow scenario using a preset effective viscosity assumption method;
[0124] The first model training module 12 is used to use the original velocity characteristic data as the first target training data, and use the first target training data to perform model training on the implicit prediction turbulent kinetic energy model for the velocity field characteristic and the turbulent kinetic energy mapping relationship, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy;
[0125] A second model training module 13 is used to perform feature splicing on the tensor invariant in the turbulence data, the velocity component, and the position information to obtain second target training data, and input the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network;
[0126] The prediction module 14 is used to input the target turbulence data of the target turbulent flow scene into the Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain the corresponding Reynolds stress.
[0127] It can be seen that the present application discloses a method for calculating turbulence data in a turbulent flow scenario using a preset effective viscosity assumption method; using the original velocity characteristic data as the first target training data, and using the first target training data to perform model training on the implicit prediction turbulent kinetic energy model for the mapping relationship between velocity field characteristics and turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy; performing feature splicing on the tensor invariants in the turbulence data with the velocity components and position information to obtain the second target training data, and inputting the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network; inputting the target turbulence data of the target turbulent flow scenario into a Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain the corresponding Reynolds stress. It can be seen that by implicitly predicting turbulent kinetic energy instead of directly using measured experimental data, the dependence on experimental data is significantly reduced, especially when experimental resources are limited, which not only saves costs but also improves the feasibility and efficiency of research. In addition, the Reynolds stress prediction model has better performance in processing complex data structures and extracting deep features compared to the fully connected network of the prior art. This complex model architecture enables the present invention to more accurately map the relationship of Reynolds stress, significantly improving the accuracy and efficiency of Reynolds stress prediction.
[0128] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0129] Figure 6 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the Reynolds stress prediction method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0130] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0131] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0132] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0133] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the Reynolds stress prediction method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data received by the electronic device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0134] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed Reynolds stress prediction method. The specific steps of the method may refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be described in detail here.
[0135] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0136] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be implemented directly with hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory RAM (Random Access Memory), memory, read-only memory ROM (Read Only Memory), electrically programmable EPROM (Electrically Programmable Read Only Memory), electrically erasable programmable EEPROM (ElectricErasable Programmable Read Only Memory), register, hard disk, removable disk, CD-ROM (CompactDisc-Read Only Memory), or any other form of storage medium known in the technical field.
[0137] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0138] The scheme provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A Reynolds stress prediction method, characterized in that: include: Calculate turbulence data in turbulent flow scenarios using the preset effective viscosity assumption method; The original velocity characteristic data is used as the first target training data, and the first target training data is used to perform model training on the implicit prediction turbulent kinetic energy model for the mapping relationship between velocity field characteristics and turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy; Performing feature splicing on the tensor invariant in the turbulence data, the velocity component, and the position information to obtain second target training data, and inputting the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network; Inputting the target turbulence data of the target turbulent flow scenario into a Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain the corresponding Reynolds stress; The method of using the original velocity characteristic data as the first target training data and using the first target training data to perform model training on the implicit prediction turbulent kinetic energy model for the mapping relationship between velocity field characteristics and turbulent kinetic energy to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy includes: Extracting original velocity feature data from the original velocity field and velocity gradient data, and performing feature splicing on the original velocity feature data in the order of velocity component and velocity gradient to obtain first target training data; Inputting the first target training data into an implicit prediction turbulent kinetic energy model so as to encode the first target training data through a fully connected encoding layer of the implicit prediction turbulent kinetic energy model to obtain an encoded training feature vector; Inputting the encoded training feature vector into the feature extraction layer of the implicit prediction turbulent kinetic energy model so as to extract flow field velocity features through the feature extraction layer; The flow field velocity characteristics are input into a preset Transformer encoder so that the preset Transformer encoder can learn and obtain target flow field velocity characteristics about the basic state and dynamic changes of the flow field, and capture the mapping relationship between the velocity field characteristics and the turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy.
2. The Reynolds stress prediction method according to claim 1, characterized in that: The method of calculating turbulence data in a turbulent flow scenario using a preset effective viscosity assumption method includes: Calculate the historical turbulent kinetic energy in the turbulent flow scene through the RANS equation and historical turbulent flow field information; Calculating a strain rate tensor and a rotation rate tensor using the velocity field of the historical turbulent flow field information, so as to construct and calculate a basis tensor and a tensor invariant based on the strain rate tensor and the rotation rate tensor; The historical turbulent kinetic energy, the strain rate tensor, the rotation rate tensor, the basis tensor and the tensor invariant are subjected to variable scaling processing to obtain amplified turbulence data.
3. The Reynolds stress prediction method according to claim 1, characterized in that: The step of inputting the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network includes: The second target training data is input into the Transformer-CNN network so as to fit the scalar basis function of the anisotropic tensor for expressing the Reynolds stress tensor through the Transformer-CNN network.
4. The Reynolds stress prediction method according to claim 3, characterized in that: The step of inputting the second target training data into a Transformer-CNN network so as to fit a scalar basis function of an anisotropic tensor for expressing a Reynolds stress tensor through the Transformer-CNN network comprises: Inputting the second target training data into a Transformer-CNN network so as to obtain a scalar function through the Transformer-CNN network; The basis tensor calculated based on the average strain rate tensor and the average rotation rate tensor is scaled by a linear layer and an activation function to obtain a target basis tensor that meets a preset numerical interval condition; The target basis tensor and the scalar function are fitted through the Transformer-CNN network to obtain a scalar basis function of an anisotropic tensor for expressing the Reynolds stress tensor.
5. The Reynolds stress prediction method according to claim 1, characterized in that: The target turbulence data of the target turbulent flow scene is input into the Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain the corresponding Reynolds stress, including: Inputting target turbulence data of a target turbulent flow scenario into a Reynolds stress prediction model constructed based on the target implicit prediction turbulence kinetic energy model and the scalar basis function, so as to predict the target turbulence kinetic energy corresponding to the target turbulence data through the target implicit prediction turbulence kinetic energy model, and calculating the isotropic tensor based on the target turbulence kinetic energy; Determining an anisotropy tensor using the scalar basis function and the target turbulent kinetic energy; The isotropic tensor and the anisotropic tensor are fitted by the Reynolds stress prediction model to output corresponding Reynolds stress.
6. The Reynolds stress prediction method according to claim 5, characterized in that: The step of fitting the isotropic tensor and the anisotropic tensor by using the Reynolds stress prediction model to output corresponding Reynolds stress comprises: Through the Reynolds stress prediction model and according to The isotropic tensor and the anisotropic tensor are fitted to output corresponding Reynolds stress, wherein the isotropic tensor and the anisotropic tensor are fitted to output corresponding Reynolds stress, wherein, represents the isotropic tensor, represents the anisotropy tensor, represents the predicted Reynolds stress.
7. A Reynolds stress prediction device, characterized in that: include: A data calculation module, used to calculate turbulence data in a turbulent flow scenario using a preset effective viscosity assumption method; A first model training module is used to use the original velocity characteristic data as the first target training data, and use the first target training data to perform model training on the implicit prediction turbulent kinetic energy model for the velocity field characteristic and the turbulent kinetic energy mapping relationship, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy; A second model training module is used to perform feature splicing on the tensor invariant in the turbulence data, the velocity component, and the position information to obtain second target training data, and input the second target training data into a preset deep neural network so as to obtain a scalar basis function through the preset deep neural network; A prediction module, used for inputting target turbulence data of a target turbulent flow scenario into a Reynolds stress prediction model constructed based on the target implicit prediction turbulent kinetic energy model and the scalar basis function, so as to fit the isotropic tensor output based on the target implicit prediction turbulent kinetic energy model and the anisotropic tensor output based on the scalar basis function through the Reynolds stress prediction model to obtain corresponding Reynolds stress; The first model training module is specifically used to extract original velocity feature data from the original velocity field and velocity gradient data, and perform feature splicing on the original velocity feature data in the order of velocity component and velocity gradient to obtain first target training data; input the first target training data into the implicit prediction turbulent kinetic energy model, so that the first target training data is encoded through the fully connected encoding layer of the implicit prediction turbulent kinetic energy model to obtain an encoded training feature vector; input the encoded training feature vector into the feature extraction layer of the implicit prediction turbulent kinetic energy model, so that the flow field velocity features are extracted through the feature extraction layer; input the flow field velocity features into a preset Transformer encoder, so that the preset Transformer encoder learns and obtains the target flow field velocity features about the basic state and dynamic changes of the flow field, and captures the mapping relationship between the velocity field features and the turbulent kinetic energy, so as to obtain a target implicit prediction turbulent kinetic energy model for predicting turbulent kinetic energy.
8. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the Reynolds stress prediction method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the Reynolds stress prediction method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Turbulent flow field updating method and device and related equipment thereof
CN111324993A
Real-time bridge stress detection method and system
CN117807914A
