Vehicle wind resistance coefficient prediction method, device and equipment and medium

The vehicle wind resistance coefficient is predicted through the twin network, the vehicle three-dimensional model data is simplified, and the wind resistance target twin network model is constructed, which solves the problems of complex models and high consumption of computing resources in the existing technology, achieves fast and accurate wind resistance coefficient prediction, and reduces the cost of research and development. cost.

CN118798074APending Publication Date: 2024-10-18CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410777395.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing technology has complex models, large computational resource consumption, complicated simulation settings and verifications in vehicle drag coefficient prediction, and cannot respond to design changes in a timely manner.

Method used

The twin network is used to predict vehicle wind resistance coefficient. By obtaining and simplifying vehicle three-dimensional model data, deep feature extraction and training are performed, and a wind resistance target twin network model is constructed to reduce computing resource requirements and improve computing efficiency.

Benefits of technology

It achieves rapid feedback on the drag coefficient after multiple plans or design changes, reduces R&D costs, improves wind drag calculation accuracy, and is suitable for aerodynamic performance optimization in many fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798074A_ABST
    Figure CN118798074A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of aerodynamics, in particular to a vehicle wind resistance coefficient prediction method and device, equipment and a medium. The method comprises the steps of performing simplification processing based on vertex attributes of first vehicle three-dimensional model data and second vehicle three-dimensional model data, and inputting the data into a wind resistance training twin network model for training; and obtaining three-dimensional model data of a to-be-predicted vehicle, simplifying the three-dimensional model data of the to-be-predicted vehicle, and inputting the simplified data into the wind resistance target twin network model to obtain a predicted wind resistance coefficient value of the to-be-predicted vehicle. According to the method, the wind resistance coefficient of the vehicle is predicted through the twin network, and the demand for a large number of computing resources is reduced, so that the research and development cost is reduced, and the calculation efficiency of the wind resistance coefficient after a plurality of schemes or designs are changed is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of aerodynamics, and in particular to a method, device, equipment and medium for predicting a vehicle drag coefficient. Background Art

[0002] The drag coefficient is an important parameter that measures the air resistance encountered by an object when it moves in a fluid, and it directly affects the fuel efficiency and high-speed driving performance of a vehicle. Traditional drag coefficient prediction methods rely on physical models and experimental tests, which are not only costly, but also difficult to provide real-time feedback on the impact of design changes. With the development of computer technology, computational fluid dynamics (CFD) software has become an important tool for predicting the drag coefficient. CFD can provide detailed flow field information, including pressure distribution, streamlines, etc., by numerically simulating fluid flow, and then calculate the drag coefficient. Although CFD technology is relatively accurate, it requires high-performance computing resources, and the simulation setup and verification are complex, which places high demands on the user's professional knowledge.

[0003] The calculation of wind resistance coefficient using CFD generally involves the following core steps: Step 1: Geometric modeling, which refers to the completion of a three-dimensional computer model of the car through CAD software. This model can reflect the details of the car's appearance, including the body, chassis, tires, etc. Step 2: Meshing, which is to divide the three-dimensional model into a grid consisting of multiple volume units. The quality of the grid directly affects the accuracy and efficiency of the calculation, and it is necessary to select the appropriate grid type and density according to the flow field characteristics. The finer the grid, the more complex the fluid characteristics can be captured, but it will also increase the demand for computing resources. Step 3: Boundary condition setting: that is, setting the boundary conditions of the flow field, including but not limited to the fluid inlet velocity, pressure, temperature, and wall conditions (such as slip or no slip). For wind resistance calculations, the free flow field conditions around the vehicle are usually concerned. Step 4: Turbulence model selection: Since most actual fluids are turbulent, it is crucial to select a suitable turbulence model. Commonly used models include the Reynolds averaged Navier-Stokes model (such as the k-ε model), large eddy simulation (LES) or direct numerical simulation (DNS). The selection of a model also requires consideration of the balance between computational cost and required accuracy. Step 5: Solve the governing equations: Use CFD software to solve the Navier-Stokes equations or their simplified forms to simulate the flow of fluid around the vehicle. This step usually involves iterative calculations until convergence to a predetermined tolerance standard. Step 6: Post-processing and analysis: After the calculation is completed, the results are post-processed to analyze the flow field characteristics, such as velocity field, pressure distribution, vortex structure, etc. By calculating the pressure distribution on the vehicle surface, these pressure values ​​can be integrated to calculate the total wind resistance and then determine the drag coefficient (Cd). Step 7: Verification and optimization: Compare the calculation results with wind tunnel test data or other reliable data to verify the accuracy of the CFD model. Based on the verification results, it may be necessary to adjust the grid, boundary conditions or model parameters to improve the prediction accuracy. In addition, use CFD to conduct parametric studies to explore the impact of different design variables on the drag coefficient and guide the optimization design. Step 8: Trend analysis and reporting: Analyze the trend of the drag coefficient with design changes, summarize the design optimization strategy, and write a detailed technical report, including calculation methods, result analysis, error evaluation, etc.

[0004] The above-mentioned scheme of using CFD to calculate the drag coefficient has the following defects: 1. The model is complex and requires a lot of computing resources and time; 2. The simulation setting and verification are complex and have high requirements on the user's professional knowledge; 3. There are many conceptual schemes for vehicle styling in the early stage. If each styling is modeled and calculated using CFD, it will take a lot of time and cannot be responded in time.

[0005] In view of this, the present invention is proposed. Summary of the invention

[0006] The purpose of the present invention is to provide a method, device, controller and medium for predicting the drag coefficient of a vehicle, so as to predict the drag coefficient of the vehicle through a twin network, reduce the demand for a large amount of computing resources, thereby reducing research and development costs, and improve the calculation efficiency of the drag coefficient after multiple schemes or design changes.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] In a first aspect, the present invention provides a method for predicting a vehicle drag coefficient, comprising:

[0009] Acquire vehicle model data to be trained, wherein the vehicle model data to be trained at least includes first vehicle three-dimensional model data and a first drag coefficient value corresponding to the first vehicle three-dimensional model data, and second vehicle three-dimensional model data and a second drag coefficient value corresponding to the second vehicle three-dimensional model data; the first vehicle three-dimensional model data and the second vehicle three-dimensional model data correspond to different vehicle models in terms of structural appearance;

[0010] Simplify the first vehicle three-dimensional model data and the second vehicle three-dimensional model data based on the attributes of each vertex, and obtain the first vehicle simplified model data and the second vehicle simplified model data whose simplification rates meet a preset simplification rate threshold;

[0011] Inputting the first vehicle simplified model data and the second vehicle simplified model data into the first subnetwork and the second subnetwork of the wind resistance training twin network model respectively to extract deep features, so as to obtain first vehicle deep features and second vehicle deep features;

[0012] Obtaining a first predicted drag coefficient value and a second predicted drag coefficient value according to the first vehicle depth feature and the second vehicle depth feature;

[0013] According to the first predicted drag coefficient value and the second predicted drag coefficient value, and the first drag coefficient value and the second drag coefficient value, the drag training twin network model is trained and parameters are adjusted to obtain a drag target twin network model, wherein the drag target twin network model makes the predicted difference between the output first predicted drag coefficient value and the second predicted drag coefficient value and the first drag coefficient value and the second drag coefficient value respectively meet a preset difference threshold;

[0014] The three-dimensional model data of the vehicle to be predicted is obtained, and the three-dimensional model data of the vehicle to be predicted is simplified and input into the wind resistance target twin network model to obtain the predicted wind resistance coefficient value of the vehicle to be predicted.

[0015] In a second aspect, the present invention provides a device for predicting a vehicle drag coefficient, comprising:

[0016] an acquisition module, used for acquiring vehicle model data to be trained, wherein the vehicle model data to be trained at least includes first vehicle three-dimensional model data and a first drag coefficient value corresponding to the first vehicle three-dimensional model data, and second vehicle three-dimensional model data and a second drag coefficient value corresponding to the second vehicle three-dimensional model data; the first vehicle three-dimensional model data and the second vehicle three-dimensional model data correspond to different vehicle models in terms of structural appearance;

[0017] A simplification module, configured to perform simplification processing based on each vertex attribute of the first vehicle three-dimensional model data and the second vehicle three-dimensional model data, to obtain the first vehicle simplified model data and the second vehicle simplified model data whose simplification rates meet a preset simplification rate threshold;

[0018] A feature extraction module, used for inputting the first vehicle simplified model data and the second vehicle simplified model data into the first sub-network and the second sub-network of the wind resistance training twin network model respectively to perform deep feature extraction to obtain the first vehicle deep feature and the second vehicle deep feature;

[0019] a feature processing module, configured to obtain a first predicted drag coefficient value and a second predicted drag coefficient value according to the first vehicle depth feature and the second vehicle depth feature;

[0020] A training module, used for training the drag training twin network model and adjusting parameters according to the first predicted drag coefficient value and the second predicted drag coefficient value, as well as the first drag coefficient value and the second drag coefficient value, to obtain a drag target twin network model, wherein the drag target twin network model makes the predicted difference between the output first predicted drag coefficient value and the second predicted drag coefficient value and the first drag coefficient value and the second drag coefficient value respectively meet a preset difference threshold;

[0021] The prediction module is used to obtain the three-dimensional model data of the vehicle to be predicted, simplify the three-dimensional model data of the vehicle to be predicted, and input it into the wind resistance target twin network model to obtain the predicted wind resistance coefficient value of the vehicle to be predicted.

[0022] In a third aspect, the present invention provides an electronic device, comprising:

[0023] at least one processor, and a memory communicatively coupled to at least one of the processors;

[0024] The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the above-mentioned method for predicting the vehicle drag coefficient.

[0025] In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable the computer to execute the above-mentioned method for predicting the vehicle drag coefficient.

[0026] Compared with the prior art, the present invention has the following beneficial effects:

[0027] 1. Fast response speed: The present invention can quickly feedback the drag coefficient after multiple schemes or design changes, thus improving the efficiency of automobile appearance design;

[0028] 2. Reduce costs: The present invention can predict wind resistance through a self-developed twin network, reducing the demand for a large amount of computing resources, thereby reducing R&D costs;

[0029] 3. Improve accuracy: By learning a large amount of experimental data and simulation data, we can capture the complex nonlinear relationships that may be ignored by traditional methods, thereby improving the accuracy of wind resistance calculation and reducing dependence on physical experiments.

[0030] 4. Strong adaptability: suitable for aerodynamic performance optimization in multiple fields such as automobiles, aerospace, etc.

[0031] 5. High efficiency: Use mesh simplification algorithm to simplify the three-dimensional model and improve the efficiency of the model algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 It is a schematic flow chart of a method for predicting a vehicle drag coefficient provided by the present invention;

[0034] Figure 2 is a flow chart of simplifying a three-dimensional mesh model using an improved QEM provided by an embodiment of the present invention;

[0035] Figure 3 is a schematic diagram of the architecture of the wind resistance training twin network model provided in an embodiment of the present invention;

[0036] Figure 4 It is a schematic diagram of the training process of the wind resistance training twin network model provided by an embodiment of the present invention;

[0037] Figure 5 It is a schematic structural diagram of a device for predicting a vehicle drag coefficient provided by the present invention;

[0038] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0039] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0040] As mentioned in the background technology, the existing technology requires flow field modeling of the vehicle, and the model is complex and requires a large amount of calculation; especially when repeatedly adjusting the design parameters of the vehicle model, it takes a lot of time and cannot respond in time. The present invention constructs a twin network to learn the three-dimensional model data of the vehicle to predict the vehicle's drag coefficient, so as to solve the problems existing in the background technology. The present invention is further described in detail below in conjunction with the embodiments.

[0041] Example 1

[0042] Figure 1 This is a flow chart of a method for predicting a vehicle drag coefficient provided by this embodiment. This embodiment is applicable to the case of predicting the drag coefficient based on the structural shape of the vehicle. Further, the variation trend of the drag coefficient with the structural shape can be obtained to guide the structural shape so that the drag coefficient meets the requirements. The structural shape of the vehicle can be a physical shape or a conceptual shape. The method can be executed by a vehicle drag coefficient prediction device, which can be composed of software and / or hardware and is generally integrated in an electronic device.

[0043] like Figure 1 As shown, this embodiment provides a method for predicting a vehicle drag coefficient, comprising the following steps:

[0044] S110, obtaining vehicle model data to be trained.

[0045] In an actual environment or in a simulation environment, the user changes the design parameters of the vehicle to adjust the structural shape of the vehicle, such as designing the body size, chassis height and tire shape. Different structural shapes of the vehicle will change the shape of the vehicle, thereby affecting the drag coefficient. In this embodiment, the structural shape can be reversely guided according to the predicted drag coefficient.

[0046] The vehicle model data to be trained includes at least first vehicle three-dimensional model data and a first drag coefficient value corresponding to the first vehicle three-dimensional model data, and second vehicle three-dimensional model data and a second drag coefficient value corresponding to the second vehicle three-dimensional model data. The first vehicle three-dimensional model data and the second vehicle three-dimensional model data correspond to different vehicle models.

[0047] Optionally, the first vehicle and the second vehicle may be of the same model or of different models.

[0048] After completing each structural shape of the vehicle, the three-dimensional computer model of the vehicle is completed by CAD software. This model can reflect the appearance details of the car, including the body, chassis, tires, etc. Then, the surface of the three-dimensional computer model is generated into a three-dimensional grid to form vehicle three-dimensional model data, including vertices and edges connecting vertices. For the convenience of description and distinction, the vehicle three-dimensional model data in this embodiment is used to train the wind resistance training twin network model, so it can be called the vehicle model data to be trained. The drag coefficient values ​​corresponding to the different vehicle structural shapes are obtained by wind tunnel testing, and the drag coefficient value of the first vehicle is referred to as the first drag coefficient value, and the drag coefficient value of the second vehicle is referred to as the second drag coefficient value.

[0049] Optionally, before obtaining the vehicle model data to be trained, multiple vehicle model data samples are collected, the vehicle model data samples include vehicle three-dimensional mesh model samples corresponding to multiple different vehicle structural shapes and drag coefficient values ​​corresponding to different vehicle structural shapes obtained through wind tunnel testing; the multiple collected vehicle model data samples are divided into vehicle model data to be trained and vehicle model data to be tested according to a preset sample threshold; the vehicle model data to be trained is used to train the wind resistance target twin network model, and the vehicle model data to be tested is used to test the wind resistance target twin network model. Among them, the preset sample threshold can be customized, for example, 4:6.

[0050] Multiple vehicle model data samples need to ensure data diversity to ensure that the 3D CAD model covers different styles, sizes, and surface treatment technologies. Optionally, data enhancement is an essential step in the model training process. In this embodiment, some vertices in the vehicle 3D mesh model sample are transformed, rotated, cropped, and other operations are performed to obtain more training samples.

[0051] S120: Simplify the first vehicle three-dimensional model data and the second vehicle three-dimensional model data based on the attributes of each vertex, and obtain the first vehicle simplified model data and the second vehicle simplified model data whose simplification rates meet a preset simplification rate threshold.

[0052] Since the car model is relatively complex, the generated 3D model may include abnormal meshes or too many meshes, which is not conducive to subsequent feature extraction. Therefore, it is necessary to reconstruct the mesh according to the attributes of each vertex and reduce the number of triangles to complete the simplification. Among them, the attributes of each vertex include the vertex neighborhood area, vertex curvature and vertex flatness of each vertex. The proportion of simplified meshes to the total mesh is the simplification rate. When the simplification rate meets the preset simplification rate threshold (for example, greater than or equal to 50%), the simplification operation is completed.

[0053] The prior art generally uses a mesh simplification algorithm (Quadic Error Metrics, QEM) to simplify a three-dimensional mesh model. QEM is a simplification algorithm based on edge collapse, which mainly reconstructs the mesh by deleting a certain edge and merging the vertices of this edge into new vertices, and simplifies it by multiple iterations to reduce the number of triangles. However, the QEM algorithm is prone to abnormal triangles, loss of local features, abnormal geometric structures, etc. Therefore, the present invention uses improved QEM simplification to simplify the model. Figure 2 This is a flow chart of simplifying a three-dimensional mesh model using an improved QEM provided by an embodiment of the present invention, including the following operations:

[0054] S210: Calculate a quadratic error matrix of each vertex in the first vehicle three-dimensional model data and the second vehicle three-dimensional model data.

[0055] In order to ensure that the local distance between the shrunk vertices and the original mesh is not too far, a method based on quadratic distance measurement is selected to find the optimal shrinkage point. The quadratic error matrix is ​​used to describe the degree of deformation of the vertex and can be calculated based on the existing QEM algorithm.

[0056] S220: Extracting a vertex neighborhood area, a vertex curvature, and a vertex flatness of each vertex from the first vehicle three-dimensional model data and the second vehicle three-dimensional model data.

[0057] S230, calculating the folding cost of each vertex for contraction according to the vertex neighborhood area, vertex curvature, vertex flatness and the quadratic error matrix of each vertex in the vehicle three-dimensional model data.

[0058] This embodiment introduces three simplification factors, namely, vertex neighborhood area, vertex curvature, and vertex flatness, as edge folding costs.

[0059] Vertex neighborhood area S LR (v): It is obtained by summing the surface accumulation of each triangle associated with the vertex. The formula is:

[0060]

[0061] Where k is the number of first-order neighboring triangles of vertex v.i represents the surface area of ​​the i-th triangle in the above neighborhood triangle. LR (v) After averaging, if the value is small, it means that the mesh density near the vertex is large and the feature is more obvious. Otherwise, the mesh is relatively flat.

[0062] Vertex Curvature It is calculated by the normal vector of the triangle and the vertex normal vector. The unit normal vector of a triangle T in a three-dimensional model is represented by n i , the v of a vertex in the model n The vertex normal vector is expressed as The vertex curvature is expressed as:

[0063]

[0064] Flatness of vertices It is calculated by calculating the quotient of the dihedral angle of all first-order neighboring edges and the number of edge triangles. The formula is:

[0065]

[0066] Where m is the number of first-order triangles in a vertex, β n Represents the angle between the external normals of the triangles of the nth edge in the common first-order neighborhood.

[0067] Therefore, the folding cost during model simplification is:

[0068]

[0069] Among them, v and Q are the quadratic error matrices of the new vertices after folding.

[0070] It should be noted that the vertices in this step are legal point pairs. The conditions for a vertex pair to be a legal point pair are: there is an edge connecting the vertex pairs, and the distance between the vertex pairs is less than the threshold. It only needs to meet one of the above conditions. Calculate the minimum folding cost of each legal point pair and the position of the best shrinking point.

[0071] S240: Establish a minimum heap according to the folding cost.

[0072] Place all legal point pairs in a pile in order according to their corresponding folding costs, with the legal point pair with the minimum folding cost at the top.

[0073] S250: Remove the vertex pair with the minimum folding cost from the minimum heap.

[0074] S260, determine whether the current simplification rate is greater than or equal to the preset simplification rate threshold. If it is greater than or equal to, execute S261, otherwise return to S250. The preset simplification rate threshold can be adjusted according to the quality of the simplified three-dimensional mesh model. For example, after simplification, if a certain number of abnormal meshes are found, the preset simplification rate threshold is increased. Preferably, the preset simplification rate threshold can be 50%.

[0075] S261. Obtain first vehicle simplified model data and second vehicle simplified model data.

[0076] This embodiment selects simplification factors such as vertex curvature and calculates the folding cost of the vertex to prevent the loss of detailed features during the simplification process. At the same time, in order to improve the efficiency of the algorithm, a minimum heap structure is introduced. The minimum heap is established based on the calculated folding cost. When simplifying, it is only necessary to select the folding edge from the minimum heap for operation and maintain the heap. Finally, an iterative process is performed to output the simplified vehicle simplified model data.

[0077] S130. Input the first vehicle simplified model data and the second vehicle simplified model data into the first subnetwork and the second subnetwork of the wind resistance training twin network model respectively to extract deep features, so as to obtain first vehicle deep features and second vehicle deep features.

[0078] S140. Obtain a first predicted drag coefficient value and a second predicted drag coefficient value according to the first vehicle depth feature and the second vehicle depth feature.

[0079] Siamese Network is a type of neural network structure, which is composed of two or more identical networks. The advantage of using Siamese Network is that it can reduce the number of parameters and improve the efficiency of the model. At the same time, due to the shared weights, the generalization ability of the network is also stronger.

[0080] In this embodiment, the untrained twin network used to predict the drag coefficient is called a drag training twin network model, and the drag training twin network model is built using python and pytorch frameworks. Figure 3 , including a first subnetwork and a second subnetwork. The first subnetwork and the second subnetwork include a graph convolutional neural network (GCN) and a fully connected layer connected in sequence. The GCN extracts deep features from a simplified vehicle model data, and then decodes the deep features into predicted drag coefficient values ​​through a fully connected layer. Parameters are shared between the GCNs and fully connected layers of different subgrids.

[0081] In this embodiment, the first vehicle simplified model data and the second vehicle simplified model data can be directly input into the wind resistance training twin network model. The first vehicle simplified model data and the second vehicle simplified model data include geometric features of vertices and edges: vertex position, edge position, connection relationship between vertex and edge, and angle formed by vertex and edge.

[0082] In GCN, for a graph structure dataset G, there are N vertices (node), each vertex has its own features. Let the features of these vertices form a matrix X of size N×D, where D represents the hidden state dimension of each vertex. In addition, the relationship between each vertex can also be extracted as an N×N relationship matrix A, also known as the adjacency matrix. X and A are the input features in the GCN model. X represents the vertex features, and each vertex has its own vector representation; A represents the graph structure features, that is, the features of the edges between vertices. GCN learns the feature representation of vertices by stacking multiple graph convolution layers. The operation of each layer can be summarized into the following two steps: 1. Feature aggregation, that is, each vertex collects the features of its neighbor vertices. 2. Feature update, that is, each vertex is updated based on the collected neighbor features and its own features.

[0083] It can be seen that the GCN network needs to input the features of vertices and edges, which matches the input data of this embodiment. Moreover, GCN performs feature aggregation and feature update on vertices, thereby learning the deep features of the three-dimensional graph composed of vertices and edges. In reality, the vertices of the three-dimensional mesh model directly reflect the design of the vehicle surface and are strongly correlated with the drag coefficient. Through training, GCN can learn the deep features associated with the drag coefficient, and then obtain the drag coefficient through subsequent decoding of the fully connected layer. Therefore, GCN's own operation on the vertices is also conducive to obtaining an accurate drag coefficient.

[0084] The simplified model data of the first vehicle is passed through the first sub-network to obtain a first predicted drag coefficient value, and the simplified model data of the second vehicle is passed through the second sub-network to obtain a second predicted drag coefficient value.

[0085] S150. According to the first predicted drag coefficient value and the second predicted drag coefficient value, and the first drag coefficient value and the second drag coefficient value, the drag training twin network model is trained and parameters are adjusted to obtain a drag target twin network model.

[0086] Since the drag training twin network model has not been trained and the model parameters are initial values, there is a certain gap between the first predicted drag coefficient value and the second predicted drag coefficient value obtained by the drag training twin network model and the actual first drag coefficient value and the second drag coefficient value.

[0087] Specifically, a loss function is constructed based on the predicted difference between the first predicted drag coefficient value and the first drag coefficient value, and the predicted difference between the second predicted drag coefficient value and the second drag coefficient value, and the parameters in the drag training twin network model are continuously adjusted to minimize the loss function, so that the trained model (which can be called the drag target twin network model) can make the predicted difference between the output first predicted drag coefficient value and the second predicted drag coefficient value compared with the first drag coefficient value and the second drag coefficient value respectively meet the preset difference threshold. Adjust the preset difference threshold according to the prediction accuracy requirement, for example, 90%. At this point, a high-precision drag target twin network model is obtained through training.

[0088] Optionally, the loss function uses Mean Squared Error (MSE) to ensure that the predicted drag coefficient value closely matches the actual drag coefficient. The calculation formula of MSE is:

[0089]

[0090] Where n is the number of samples, y i represents the drag coefficient value obtained from the test of the i-th sample, Represents the predicted drag coefficient value of the i-th sample.

[0091] Optionally, use the advanced optimization algorithm Adam and use the high-speed computing power of the GPU to train the wind resistance training twin network model. In this process, use strategies such as regularization, normalization, and data enhancement to prevent overfitting and improve generalization. After the model converges, save it and test it with the test set data to verify the performance of the final trained model. If the model performance does not meet the requirements, it is necessary to re-train and adjust the parameters using the vehicle model data to be trained until the performance requirements are met. The test results show that the prediction accuracy of the model differs from the flow field simulation calculation results by 2-4 counts, and the prediction time for each sample is about 10s. Compared with the simulation calculation method, the prediction efficiency of the model is increased by 1440 times.

[0092] S160, obtaining three-dimensional model data of the vehicle to be predicted, simplifying the three-dimensional model data of the vehicle to be predicted and inputting it into the wind resistance target twin network model to obtain a predicted wind resistance coefficient value of the vehicle to be predicted.

[0093] In this step, there are 1 or 2 groups of three-dimensional model data of vehicles to be predicted, corresponding to 1 or 2 vehicles, which can be called the third three-dimensional model data of vehicles to be trained and the fourth three-dimensional model data of vehicles to be trained. Each three-dimensional model data of vehicles to be predicted is simplified and input into a sub-network of the wind resistance target twin network model. That is, the three-dimensional model data of the third vehicle to be predicted is simplified and input into the first sub-network, and the three-dimensional model data of the fourth vehicle to be predicted is simplified and input into the second sub-network, so as to obtain the predicted wind resistance coefficient value output by the first sub-network and the second sub-network.

[0094] The three-dimensional model data of the vehicle to be predicted is the features of the vertices and edges of the three-dimensional mesh of the vehicle whose drag coefficient is unknown. Simplification processing is performed based on the attributes of each vertex of the three-dimensional model data of the vehicle to be predicted to obtain the simplified model data of the vehicle to be predicted whose simplification rate meets the preset simplification rate threshold.

[0095] This embodiment can simultaneously predict the drag coefficients of two vehicles to be predicted, thereby improving prediction efficiency.

[0096] Furthermore, the changing trend of the drag coefficient with the structural shape is determined according to the predicted drag coefficient value of the vehicle to be predicted. In this embodiment, by comparing the predicted drag coefficient values ​​output by the first subnetwork and the second subnetwork, the change of the drag coefficient can be clearly seen. When the structural shape of the vehicle to be predicted is changed, the predicted drag coefficient value that changes accordingly can be obtained through the drag target twin network model. For example, the higher the suspension height, the greater the drag coefficient. In order to reduce the drag coefficient, the suspension height needs to be lowered. By analyzing the trend of the drag coefficient as the design variables are adjusted, strong support is provided for the aerodynamic optimization design of the vehicle.

[0097] The technical effects of this embodiment are as follows:

[0098] 1. Fast response speed: The present invention can quickly feedback the drag coefficient after multiple schemes or design changes, thus improving the efficiency of automobile appearance design;

[0099] 2. Reduce costs: The present invention can predict wind resistance through a self-developed twin network, reducing the demand for a large amount of computing resources, thereby reducing R&D costs;

[0100] 3. Improve accuracy: By learning a large amount of experimental data and simulation data, we can capture the complex nonlinear relationships that may be ignored by traditional methods, thereby improving the accuracy of wind resistance calculation and reducing dependence on physical experiments;

[0101] 4. Strong adaptability: suitable for aerodynamic performance optimization in multiple fields such as automobiles, aerospace, etc.

[0102] 5. High efficiency: Use mesh simplification algorithm to simplify the three-dimensional model and improve the efficiency of the model algorithm.

[0103] Example 2

[0104] Based on the above embodiments, this embodiment refines the deployment and calling process of the trained wind resistance target twin network model. Specifically, after obtaining the wind resistance target twin network model, the application programming interface API is called to obtain the wind resistance target twin network model; the three-dimensional model data of the vehicle to be predicted and the three-dimensional model data of the reference vehicle corresponding to the three-dimensional vehicle model to be predicted are input into the first subnetwork and the second subnetwork of the wind resistance target twin network model after simplified processing, respectively, to obtain the first predicted wind resistance coefficient and the second predicted wind resistance coefficient; the three-dimensional model data of the vehicle to be predicted is optimized by the difference between the first predicted wind resistance coefficient and the second predicted wind resistance coefficient.

[0105] Optionally, the wind resistance target twin network model after training is deployed to the production environment, and is packaged using docker technology to obtain an application programming interface (API), so that when the wind resistance target twin network model needs to be used for prediction, the API is directly called to obtain the wind resistance target twin network model. By encapsulating the twin network as an API, it can be easily called, thereby realizing automated data transmission and saving a lot of time and human resources.

[0106] The reference vehicle three-dimensional model data may be the three-dimensional model data of the reference structural shape, and the three-dimensional model data of the vehicle to be predicted may be the three-dimensional model data of the structural shape after the reference structural shape is improved; wherein the reference structural shape is a design that meets the wind resistance requirements, and by comparing the predicted wind resistance coefficient value with the improved structural shape, i.e., making a difference, it can be known whether the predicted wind resistance coefficient value of the vehicle to be predicted becomes higher or lower after the structural improvement, thereby determining whether the improvement direction is correct. For example, if the suspension height of the vehicle to be predicted is increased on the basis of the reference vehicle, resulting in a higher predicted wind resistance coefficient value, it is necessary to reduce the suspension height on the basis of the previous suspension to reduce the predicted wind resistance coefficient value; or, improve the vehicle structure so that the predicted wind resistance coefficient value of the vehicle to be predicted is less than or equal to the predicted wind resistance coefficient value of the reference vehicle.

[0107] Optionally, during the use of the model, the actual measured drag coefficient value is determined based on the user's feedback on the predicted drag coefficient value; the drag target twin network model is trained based on the actual measured drag coefficient value and the corresponding vehicle three-dimensional model data to achieve online learning of the model. Online learning can quickly adjust the model in real time based on the user's online feedback data, so that the model can reflect the online situation in a timely manner and improve the accuracy of online predictions. The actual measured drag coefficient can be the drag coefficient value obtained by the user through a wind tunnel test. During user use, the drag target twin network model is deployed as an online learning mode to facilitate the drag coefficient prediction system to collect user feedback data, which is then used to train the model to improve the prediction accuracy of the model.

[0108] Based on the above description, see Figure 4 ,The wind resistance target twin network model can be trained offline or online, which ensures the prediction accuracy of the network.

[0109] Example 3

[0110] like Figure 5 As shown, this embodiment provides a device for predicting a vehicle drag coefficient, including:

[0111] The acquisition module 310 is used to acquire the vehicle model data to be trained, wherein the vehicle model data to be trained at least includes first vehicle three-dimensional model data and a first drag coefficient value corresponding to the first vehicle three-dimensional model data, and second vehicle three-dimensional model data and a second drag coefficient value corresponding to the second vehicle three-dimensional model data; the first vehicle three-dimensional model data and the second vehicle three-dimensional model data correspond to different vehicle models in terms of structure and appearance;

[0112] A simplification module 320, configured to perform simplification processing based on each vertex attribute of the first vehicle three-dimensional model data and the second vehicle three-dimensional model data, to obtain the first vehicle simplified model data and the second vehicle simplified model data whose simplification rates meet a preset simplification rate threshold;

[0113] A feature extraction module 330 is used to input the first vehicle simplified model data and the second vehicle simplified model data into the first sub-network and the second sub-network of the wind resistance training twin network model respectively to extract deep features, so as to obtain first vehicle deep features and second vehicle deep features;

[0114] A feature processing module 340, configured to obtain a first predicted drag coefficient value and a second predicted drag coefficient value according to the first vehicle depth feature and the second vehicle depth feature;

[0115] A training module 350 is used to train the drag training twin network model and adjust parameters according to the first predicted drag coefficient value and the second predicted drag coefficient value, as well as the first drag coefficient value and the second drag coefficient value, to obtain a drag target twin network model, wherein the drag target twin network model makes the predicted difference between the output first predicted drag coefficient value and the second predicted drag coefficient value and the first drag coefficient value and the second drag coefficient value respectively meet a preset difference threshold;

[0116] The prediction module 360 ​​is used to obtain the three-dimensional model data of the vehicle to be predicted, simplify the three-dimensional model data of the vehicle to be predicted, and input it into the wind resistance target twin network model to obtain the predicted wind resistance coefficient value of the vehicle to be predicted.

[0117] The device is used to execute the above method, and thus has at least functional modules and beneficial effects corresponding to the above method.

[0118] Example 4

[0119] like Figure 6 As shown, this embodiment provides an electronic device, including:

[0120] at least one processor; and

[0121] a memory communicatively connected to at least one of the processors; wherein,

[0122] The memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to perform the above method. At least one processor in the electronic device can perform the above method, and thus has at least the same advantages as the above method.

[0123] Optionally, the electronic device also includes an interface for connecting various components, including a high-speed interface and a low-speed interface. Various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on a memory to display graphical information of a GUI (Graphical User Interface) on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors can be used together with multiple memories, and / or multiple buses can be used together with multiple memories. Similarly, multiple electronic devices can be connected (for example, as a server array, a group of blade servers, or a multi-processor system), and each device provides some necessary operations. Figure 6 A processor 301 is taken as an example.

[0124] The memory 302 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the vehicle drag coefficient prediction method in the embodiment of the present invention. The processor 301 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 302, that is, realizing the above-mentioned vehicle drag coefficient prediction method.

[0125] The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 302 may further include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0126] The electronic device may further include: an input device 303 and an output device 304. The processor 301, the memory 302, the input device 303 and the output device 304 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0127] The input device 303 can receive input digital or character information, and the output device 304 can include a display device, an auxiliary lighting device (e.g., LED), and a tactile feedback device (e.g., a vibration motor), etc. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device can be a touch screen.

[0128] Example 5

[0129] This embodiment provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable the computer to execute the above method. The computer instructions on the computer-readable storage medium are used to enable the computer to execute the above method, and thus have at least the same advantages as the above method.

[0130] The medium in the present invention may adopt any combination of one or more computer-readable media. The medium may be a computer-readable signal medium or a computer-readable storage medium. The medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of the medium (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, the medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.

[0131] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0132] The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.

[0133] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0134] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0135] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for predicting a vehicle drag coefficient, characterized in that: include: Acquire vehicle model data to be trained, wherein the vehicle model data to be trained includes at least first vehicle three-dimensional model data and a first drag coefficient value corresponding to the first vehicle three-dimensional model data, and second vehicle three-dimensional model data and a second drag coefficient value corresponding to the second vehicle three-dimensional model data; The first vehicle three-dimensional model data and the second vehicle three-dimensional model data correspond to different vehicle models in terms of structure and appearance; Simplify the first vehicle three-dimensional model data and the second vehicle three-dimensional model data based on the attributes of each vertex, and obtain the first vehicle simplified model data and the second vehicle simplified model data whose simplification rates meet a preset simplification rate threshold; Inputting the first vehicle simplified model data and the second vehicle simplified model data into the first subnetwork and the second subnetwork of the wind resistance training twin network model respectively to extract deep features, so as to obtain first vehicle deep features and second vehicle deep features; Obtaining a first predicted drag coefficient value and a second predicted drag coefficient value according to the first vehicle depth feature and the second vehicle depth feature; According to the first predicted drag coefficient value and the second predicted drag coefficient value, and the first drag coefficient value and the second drag coefficient value, the drag training twin network model is trained and parameters are adjusted to obtain a drag target twin network model, wherein the drag target twin network model makes the predicted difference between the output first predicted drag coefficient value and the second predicted drag coefficient value and the first drag coefficient value and the second drag coefficient value respectively meet a preset difference threshold; The three-dimensional model data of the vehicle to be predicted is obtained, and the three-dimensional model data of the vehicle to be predicted is simplified and input into the wind resistance target twin network model to obtain the predicted wind resistance coefficient value of the vehicle to be predicted.

2. The method according to claim 1, characterized in that After obtaining the predicted drag coefficient value of the vehicle to be predicted, it also includes: The change trend of the drag coefficient with the structural shape is determined according to the predicted drag coefficient value of the vehicle to be predicted.

3. The method according to claim 1, characterized in that The first sub-network and the second sub-network include a graph convolutional neural network and a fully connected layer connected in sequence.

4. The method according to claim 1, characterized in that: The vertex attributes include vertex neighborhood area, vertex curvature and vertex flatness; The simplification process is performed based on the vertex attributes of the first vehicle three-dimensional model data and the second vehicle three-dimensional model data to obtain the first vehicle simplified model data and the second vehicle simplified model data whose simplification rates meet a preset simplification rate threshold, including: Calculating a quadratic error matrix of each vertex in the first vehicle three-dimensional model data and the second vehicle three-dimensional model data; Extracting vertex neighborhood area, vertex curvature and vertex flatness of each vertex from the first vehicle three-dimensional model data and the second vehicle three-dimensional model data; Calculate the folding cost of each vertex for contraction according to the vertex neighborhood area, vertex curvature, vertex flatness and the quadratic error matrix of each vertex in the vehicle three-dimensional model data; Establishing a minimum heap according to the folding cost; The vertex pair with the minimum folding cost is removed from the minimum heap until the simplification rate is greater than or equal to a preset simplification rate threshold, thereby obtaining the first vehicle simplified model data and the second vehicle simplified model data.

5. The method according to claim 1, characterized in that After obtaining the wind resistance target twin network model, it also includes: Calling an application programming interface API to obtain the wind resistance target twin network model; The three-dimensional model data of the vehicle to be predicted and the three-dimensional model data of the reference vehicle corresponding to the three-dimensional vehicle model to be predicted are input into the first sub-network and the second sub-network of the wind resistance target twin network model respectively after being simplified, so as to obtain a first predicted wind resistance coefficient and a second predicted wind resistance coefficient; Optimizing the three-dimensional model data of the vehicle to be predicted according to the difference between the first predicted drag coefficient and the second predicted drag coefficient; Among them, the API is formed by deploying the wind resistance target twin network model into the production environment and encapsulating it using Docker technology.

6. The method according to claim 1, characterized in that Before obtaining the vehicle model data to be trained, it also includes: Collecting a plurality of vehicle model data samples, wherein the vehicle model data samples include vehicle three-dimensional mesh model samples corresponding to the plurality of different vehicle structural shapes and drag coefficient values ​​corresponding to the different vehicle structural shapes obtained through wind tunnel testing; The multiple vehicle model data samples collected are divided into vehicle model data to be trained and vehicle model data to be tested according to a preset sample threshold; the vehicle model data to be trained is used to train the wind resistance target twin network model, and the vehicle model data to be tested is used to verify the wind resistance target twin network model.

7. The method according to any one of claims 1 to 6, characterized in that: After obtaining the three-dimensional model data of the vehicle to be predicted, simplifying the three-dimensional model data of the vehicle to be predicted and inputting it into the wind resistance target twin network model to obtain the predicted wind resistance coefficient value of the vehicle to be predicted, the method further includes: Determining a true measured drag coefficient value based on user feedback on the predicted drag coefficient value; The wind resistance target twin network model is trained according to the actual measured wind resistance coefficient value and the corresponding vehicle three-dimensional model data.

8. A device for predicting a vehicle drag coefficient, characterized in that: include: An acquisition module, used to acquire vehicle model data to be trained, wherein the vehicle model data to be trained includes at least first vehicle three-dimensional model data and a first drag coefficient value corresponding to the first vehicle three-dimensional model data, and second vehicle three-dimensional model data and a second drag coefficient value corresponding to the second vehicle three-dimensional model data; The first vehicle three-dimensional model data and the second vehicle three-dimensional model data correspond to different vehicle models in terms of structure and appearance; A simplification module, configured to perform simplification processing based on each vertex attribute of the first vehicle three-dimensional model data and the second vehicle three-dimensional model data, to obtain the first vehicle simplified model data and the second vehicle simplified model data whose simplification rates meet a preset simplification rate threshold; A feature extraction module, used for inputting the first vehicle simplified model data and the second vehicle simplified model data into the first sub-network and the second sub-network of the wind resistance training twin network model respectively to perform deep feature extraction to obtain the first vehicle deep feature and the second vehicle deep feature; a feature processing module, configured to obtain a first predicted drag coefficient value and a second predicted drag coefficient value according to the first vehicle depth feature and the second vehicle depth feature; A training module, used for training the drag training twin network model and adjusting parameters according to the first predicted drag coefficient value and the second predicted drag coefficient value, as well as the first drag coefficient value and the second drag coefficient value, to obtain a drag target twin network model, wherein the drag target twin network model makes the predicted difference between the output first predicted drag coefficient value and the second predicted drag coefficient value and the first drag coefficient value and the second drag coefficient value respectively meet a preset difference threshold; The prediction module is used to obtain the three-dimensional model data of the vehicle to be predicted, simplify the three-dimensional model data of the vehicle to be predicted, and input it into the wind resistance target twin network model to obtain the predicted wind resistance coefficient value of the vehicle to be predicted.

9. An electronic device, characterized in that: include: at least one processor, and a memory communicatively coupled to at least one of the processors; The memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the method for predicting the vehicle drag coefficient according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for predicting the vehicle drag coefficient according to any one of claims 1-7.

Citation Information

Cited By

  • Automobile dynamic wind resistance simulation method and device based on artificial intelligence

    CN119849370A

  • Vehicle point cloud wind resistance coefficient integrated prediction method and system based on feature recognition

    CN120354796A

  • Vehicle point cloud wind resistance coefficient prediction method and system based on multi-scale learning and convolution

    CN120409269A

  • Whole vehicle point cloud wind resistance coefficient prediction method and system based on multi-scale learning and convolution

    CN120409269B

  • Automobile appearance wind resistance performance comparison and discrimination method and system

    CN122310688A