Object generation method and device, equipment, medium, program product and object entity
Optimizing the car's appearance through feedforward calculation methods and surrogate models solves the problem of large CFD calculations in traditional methods, improves design efficiency and global optimization capabilities, and adapts to a variety of optimization design problems.
Patent Information
- Application Number
- CN202410797757.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-17
AI Technical Summary
In traditional automobile design, when optimizing the aerodynamic appearance, methods based on local gradient optimization and global optimization have good local optimization effects but poor global optimization capabilities, and rely on a large amount of CFD simulation calculations, resulting in low efficiency.
Through the feedforward calculation method, the surface pressure and shear force distribution information is calculated based on the surrogate model (such as the GINO surrogate model) to obtain the wind resistance coefficient, and the mapping relationship is used to optimize the initial appearance control parameters, reducing reliance on CFD calculations and improving optimization efficiency. .
It achieves rapid optimization of car appearance, reduces the amount of CFD calculations, improves design efficiency, adapts to single-peak and multi-peak optimization problems, and reduces the risk of local optimization falling into local optimality.
Smart Images

Figure CN118656916A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, in particular to the field of deep learning, and specifically to an object generation method, device, equipment, medium, program product and object entity. Background Art
[0002] Moving objects such as vehicles are subject to four major resistances during driving, including air resistance, rolling resistance, acceleration resistance and slope resistance. As vehicle speed increases, air resistance gradually becomes dominant, and reducing the drag coefficient has become one of the important goals of the automotive industry. Appearance resistance is the main source of air resistance for moving objects, so optimizing its appearance design is crucial to reducing the drag coefficient. Summary of the invention
[0003] The present disclosure provides an object generation method, apparatus, device, medium, program product and object entity.
[0004] According to one aspect of the present disclosure, there is provided an object generation method, comprising: performing feedforward calculation on a surface mesh of the object to be generated according to initial shape control parameters of the object to be generated, to obtain surface pressure distribution information and surface shear force distribution information of the surface mesh; obtaining a drag coefficient of the object to be generated according to the surface pressure distribution information and the surface shear force distribution information, wherein the drag coefficient has a mapping relationship with a design variable constructed for the object to be generated, and the design variable is used to control the change of the geometric structure of the object to be generated; and optimizing the initial shape control parameters according to the mapping relationship to obtain an optimized shape of the object to be generated.
[0005] According to another aspect of the present disclosure, there is provided an object generation device, comprising: a feedforward calculation module, used to perform feedforward calculation on a surface mesh of the object to be generated according to initial shape control parameters of the object to be generated, so as to obtain surface pressure distribution information and surface shear force distribution information of the surface mesh; a drag coefficient acquisition module, used to obtain the drag coefficient of the object to be generated according to the surface pressure distribution information and the surface shear force distribution information, wherein the drag coefficient has a mapping relationship with a design variable constructed for the object to be generated, and the design variable is used to control the change of the geometric structure of the object to be generated; and an optimization module, used to optimize the initial shape control parameters according to the mapping relationship, so as to obtain an optimized shape of the object to be generated.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the object generation method of the present disclosure.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the object generation method of the present disclosure.
[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program is stored on at least one of a readable storage medium and an electronic device, and when the computer program is executed by a processor, the object generation method of the present disclosure is implemented.
[0009] According to another aspect of the present disclosure, an object entity is provided, wherein the appearance of the object entity is generated based on the object generation method of the present disclosure.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0012] Figure 1 An exemplary system architecture to which the object generation method and device according to an embodiment of the present disclosure can be applied is schematically shown;
[0013] Figure 2 A flowchart of an object generation method according to an embodiment of the present disclosure is schematically shown;
[0014] Figure 3 A schematic diagram of calculating the drag coefficient based on GINO according to an embodiment of the present disclosure is schematically shown;
[0015] Figure 4 The training process of the GINO agent model according to the embodiment of the present disclosure is schematically shown;
[0016] Figure 5 The framework diagram of the object appearance optimization method based on the data-driven AI agent model according to the embodiment of the present disclosure is schematically shown;
[0017] Figure 6An example diagram schematically shows a reconstructed geometric structure parameterized model according to an embodiment of the present disclosure;
[0018] Figure 7 A block diagram schematically shows an object generation device according to an embodiment of the present disclosure; and
[0019] Figure 8 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure 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 may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0021] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.
[0022] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0023] Research shows that the energy consumed by moving objects such as cars to overcome aerodynamic drag during driving accounts for about 20% of the vehicle's energy consumption. In the traditional automobile design process, the aerodynamic design of the car is continuously optimized through empirical design, numerical simulation, and wind tunnel experiments to reduce the car's drag coefficient. Among them, numerical simulation has been widely used as a relatively low-cost optimization design method, and local gradient optimization methods represented by adjoint optimization and global optimization methods represented by heuristic algorithms such as genetic algorithms have been developed.
[0024] The local gradient optimization method based on adjoint optimization obtains the gradient information of the objective function to the design variables by constructing a parametric model of the geometric structure and solving the adjoint equation of the optimization problem, thereby realizing iterative optimization of the design variables. This method is more suitable for the design process of optimizing and improving the existing aerodynamic appearance of automobiles.
[0025] The global optimization method based on heuristic algorithm does not need to solve the gradient information of the objective function to the design variables, but continuously constructs new design points through heuristic algorithm to search for a better aerodynamic shape design structure. This method is more suitable for the aerodynamic shape design of new models.
[0026] In the process of realizing the concept of the present disclosure, the inventors found that the local gradient optimization method based on adjoint optimization can realize fast local optimization space optimization, and has good optimization effect on single peak optimization problems, but has poor global optimization ability. For multi-peak optimization problems, it is easy to fall into local optimality, and the application effect of new aerodynamic structure design whose initial aerodynamic structure is far from the optimal aerodynamic structure is uncertain. The global optimization method based on heuristic algorithm has strong global optimization ability, does not rely on the gradient information of the objective function, and can realize the optimization of black box problems. However, this method has poor local optimization ability and low optimization efficiency. In addition, the local gradient optimization method based on adjoint optimization requires CFD (Computational Fluid Dynamics) calculation and solving the adjoint equation, and the global optimization method based on heuristic algorithm also requires CFD calculation. Both methods rely on a large amount of fluid CFD simulation calculations during the optimization process, which requires a large amount of computing power and has relatively low efficiency.
[0027] The present disclosure provides an object generation method, apparatus, device, medium, program product and object entity, the method comprising: performing feedforward calculation on a surface mesh of an object to be generated according to initial shape control parameters of the object to be generated, and obtaining surface pressure distribution information and surface shear force distribution information of the surface mesh; obtaining a drag coefficient of the object to be generated according to the surface pressure distribution information and the surface shear force distribution information, wherein the drag coefficient has a mapping relationship with a design variable constructed for the object to be generated, and the design variable is used to control the change of the geometric structure of the object to be generated; and optimizing the initial shape control parameters according to the mapping relationship, and obtaining an optimized shape of the object to be generated.
[0028] Figure 1 An exemplary system architecture to which the object generation method and apparatus according to an embodiment of the present disclosure can be applied is schematically shown.
[0029] It should be noted that Figure 1 The examples shown are only examples of system architectures to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. For example, in another embodiment, the exemplary system architecture to which the object generation method and apparatus can be applied may include a terminal device, but the terminal device may implement the object generation method and apparatus provided by the embodiments of the present disclosure without interacting with the server.
[0030] like Figure 1As shown, the system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0031] The user may use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software, etc. (only as examples).
[0032] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0033] The server 105 may be a server that provides various services, such as a background management server that provides support for the content browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (for example only). The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0034] It should be noted that the object generation method provided in the embodiment of the present disclosure can generally be executed by the first terminal device 101, the second terminal device 102 or the third terminal device 103. Correspondingly, the object generation device provided in the embodiment of the present disclosure can also be set in the first terminal device 101, the second terminal device 102 or the third terminal device 103.
[0035] Alternatively, the object generation method provided in the embodiment of the present disclosure may also be generally executed by the server 105. Accordingly, the object generation device provided in the embodiment of the present disclosure may generally be arranged in the server 105. The object generation method provided in the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the object generation device provided in the embodiment of the present disclosure may also be arranged in a server or a server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0036] For example, when optimizing the appearance of the object to be generated, the first terminal device 101, the second terminal device 102, and the third terminal device 103 can obtain the initial appearance control parameters of the object to be generated, and then send the obtained initial appearance control parameters to the server 105, and the server 105 performs feedforward calculation on the surface mesh of the object to be generated according to the initial appearance control parameters to obtain surface pressure distribution information and surface shear force distribution information of the surface mesh; obtain the drag coefficient of the object to be generated according to the surface pressure distribution information and the surface shear force distribution information, wherein the drag coefficient has a mapping relationship with the design variables constructed for the object to be generated, and the design variables are used to control the geometric structure change of the object to be generated; and optimize the initial appearance control parameters according to the mapping relationship to obtain the optimized appearance of the object to be generated. Alternatively, the server or server cluster that can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105 analyzes the initial appearance control parameters of the object to be generated, and realizes obtaining the optimized appearance of the object to be generated.
[0037] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0038] Figure 2 The flowchart of the object generation method according to the embodiment of the present disclosure is schematically shown.
[0039] like Figure 2 As shown, the method includes operations S210 to S230.
[0040] In operation S210, a feedforward calculation is performed on a surface mesh of the object to be generated according to initial shape control parameters of the object to be generated, so as to obtain surface pressure distribution information and surface shear force distribution information of the surface mesh.
[0041] According to an embodiment of the present disclosure, the object to be generated may represent an object that may be affected by resistance such as gas medium, liquid medium, etc. during operation, which may affect the object's own movement ability. For example, the moving object may include any one of the following: vehicles, aerospace vehicles, ships, high-speed trains, wind turbine blades and towers, high-rise buildings, bicycles, golf clubs, skis, racing helmets and other items, and may not be limited thereto.
[0042] According to an embodiment of the present disclosure, the initial appearance control parameters can characterize the characterization parameters of the initial appearance of the object to be generated. The initial appearance can be designed by a designer. The initial appearance can be encoded using a neural network to obtain a multidimensional vector, and the multidimensional vector can be determined as the initial appearance control parameters. The geometric structure of the initial appearance can also be parameterized based on the three-dimensional position information of each point on the initial appearance, and the array or matrix describing the three-dimensional position information of each point can be determined as the initial appearance control parameters. The method of determining the initial appearance control parameters may not be limited to this.
[0043] According to an embodiment of the present disclosure, based on the initial shape control parameters, the geometric structure of the initial shape of the object to be generated can be determined, and the geometric structure can exist in the form of a point cloud or in the form of a SDF (sign distance function), which is not limited here. The surface mesh of the object to be generated can be obtained by meshing the geometric structure information such as the point cloud information or SDF information of the object to be generated.
[0044] According to an embodiment of the present disclosure, feedforward calculation can characterize the process of inference based on the model. The process of feedforward calculation can be implemented based on a proxy model with operator learning ability. The proxy model can be used to receive the table name grid information of the object to be generated determined according to the initial appearance control parameters as input, and output the surface pressure distribution information and surface shear force distribution information of the surface grid after model processing. The proxy model can be implemented using at least one of GINO (Geometry-informed neural operator), FNO (Fourier neural operator), GNO (Graph neural operator), etc., and may not be limited to this.
[0045] In operation S220, the drag coefficient of the object to be generated is obtained according to the surface pressure distribution information and the surface shear force distribution information. The drag coefficient has a mapping relationship with the design variables constructed for the object to be generated. The design variables are used to control the geometric structure change of the object to be generated.
[0046] According to an embodiment of the present disclosure, the surface pressure distribution information may include the surface pressure values of each point of the object to be generated. The surface shear force distribution information may include the surface shear force values of each point of the object to be generated. The surface pressure distribution information and the surface shear force distribution information may be integrated to obtain the drag coefficient. The integral calculation may include multiplying the grid area, multiplying the normal vector, projecting, summing, etc. for each point, and may not be limited thereto. Among them, the grid area and the normal vector may be directly obtained based on the information of the surface grid generated by grid division.
[0047] For example, for any point of the object to be generated, the surface pressure value of the point can be first multiplied by the grid area of the surface grid where the point is located, and then multiplied by the normal vector of the surface grid to obtain the pressure vector value of the point on the surface grid. Then, the pressure vector value can be projected in the opposite direction of the direction of movement to obtain the pressure-type resistance generated by the surface pressure of the point. Correspondingly, the shear-type resistance generated by the surface shear force of the point can be calculated in the same way. By calculating the pressure-type resistance and shear-type resistance for each point and summing them, the drag coefficient of the point can be obtained. By summing the pressure-type resistance and shear-type resistance calculated for all points, the drag coefficient of the object to be generated can be obtained.
[0048] It should be noted that the above-mentioned method for calculating the drag coefficient is only an exemplary embodiment, but is not limited thereto, and may also include other calculation methods known in the art, as long as the drag coefficient can be obtained. For example, a model for calculating the drag coefficient based on surface pressure distribution information and surface shear force distribution information may be trained, and the surface pressure distribution information and surface shear force distribution information of the surface grid representing the object to be generated may be input into the model to obtain the drag coefficient of the object to be generated, and the method may not be limited thereto.
[0049] According to an embodiment of the present disclosure, a design variable may represent a parameter for controlling a change mode of a surface point of an object to be generated. The change mode may include, for example, at least one of the following: rotation, translation, etc., and may not be limited thereto. A design variable may represent at least one of a rotation angle, a translation distance, etc., and may not be limited thereto.
[0050] For example, the drag coefficient is , the design variables include , then the above mapping relationship can be represented as .
[0051] In operation S230, the initial appearance control parameters are optimized according to the mapping relationship to obtain an optimized appearance of the object to be generated.
[0052] According to an embodiment of the present disclosure, based on the mapping relationship, the process of optimizing the initial appearance control parameters can be characterized as a process of adjusting the initial appearance control parameters according to the design variables to obtain a better drag coefficient.
[0053] For example, the object to be generated needs to obtain a larger drag coefficient. The optimization process can adjust the initial appearance control parameters to obtain an object appearance with a larger drag coefficient as the optimized appearance.
[0054] For example, the object to be generated needs to obtain a smaller drag coefficient. The optimization process can adjust the initial appearance control parameters to obtain the object appearance with a smaller drag coefficient as the optimized appearance.
[0055] Through the above-mentioned embodiments of the present disclosure, the drag coefficient is calculated by feedforward calculation instead of CFD calculation, without relying on a large number of CFD simulation calculations, which alleviates the problem of large CFD calculation amount encountered in traditional appearance optimization methods, reduces the computing power demand, and improves the optimization efficiency.
[0056] In conjunction with specific embodiments, Figure 2 The method shown is further explained.
[0057] According to an embodiment of the present disclosure, the above operation S210 may include: mapping the initial shape control parameters to a latent space to obtain a latent space array representation result of the initial shape control parameters. Based on a proxy model with operator learning capability, mapping the latent space array representation result to surface pressure distribution information and surface shear force distribution information.
[0058] According to an embodiment of the present disclosure, the initial appearance control parameters can represent a complex geometric structure, such as a point cloud information. The latent space can be a regular processing space, such as a 64×64×64 three-dimensional space. For example, the object to be generated is a car, including one hundred thousand points, each of which can be represented by xyz, and the initial appearance control parameters of the car can be a one hundred thousand × 3-dimensional array. Through the process of mapping the initial appearance control parameters to the latent space, the one hundred thousand × 3-dimensional array representing irregular shapes can be mapped to a 64×64×64×3-dimensional array representing regular shapes. The 64×64×64×3-dimensional array can represent the latent space array representation result.
[0059] According to an embodiment of the present disclosure, the proxy model can learn the process of mapping the latent space array representation result to the surface pressure distribution information and the surface shear force distribution information. Thus, the surface pressure distribution information and the surface shear force distribution information can be obtained by mapping based on the proxy model.
[0060] According to an embodiment of the present disclosure, the surface pressure distribution information represents scalar information and can be represented by one-dimensional data. The surface shear force distribution information represents vector information and can be represented by three-dimensional data. The surface pressure distribution information and the surface shear force distribution information can be represented by four-dimensional data. Thus, based on the proxy model, a 64×64×64×3-dimensional array can be mapped to a 100,000×4-dimensional array. The surface pressure distribution information and the surface shear force distribution information can be determined based on the 100,000×4-dimensional array.
[0061] Through the above-mentioned embodiments of the present disclosure, operations are performed in the low latitude of the latent space, which can reduce memory consumption and computational complexity and improve data processing efficiency.
[0062] According to an embodiment of the present disclosure, the above operation S210 may further include: fitting the frequency domain representation result of the latent space array representation result to obtain a frequency domain fitting result. Processing the frequency domain fitting result to obtain a latent space array representation result.
[0063] According to an embodiment of the present disclosure, a Fourier transform may be performed on the latent space array representation result to obtain a frequency domain representation result of the latent space array representation result. An inverse Fourier transform may be performed on the frequency domain fitting result to obtain a processed latent space array representation result.
[0064] It should be noted that the above-mentioned spatial conversion based on Fourier transform is only an exemplary embodiment, but is not limited to this. It can also include other methods known in the art, as long as it can achieve the conversion from latent space to frequency domain and from frequency domain to latent space, and is not limited here.
[0065] According to an embodiment of the present disclosure, the fitting and processing process can be applied after the latent space array representation result is obtained and before the latent space array representation result is mapped, and can be used as a partial processing process based on the aforementioned proxy model with operator learning ability. That is, after the initial shape control parameters are mapped to the latent space and the latent space array representation result of the initial shape control parameters is obtained, the frequency domain representation result of the latent space array representation result can be first fitted to obtain the frequency domain fitting result. Then, the frequency domain fitting result is processed to obtain the latent space array representation result. Afterwards, the processed latent space array representation result is mapped to surface pressure distribution information and surface shear force distribution information.
[0066] For example, after mapping a 100,000×3-dimensional array to a 64×64×64×3-dimensional array, the 64×64×64×3-dimensional array can be fast Fourier transformed, and the transformation results can be learned and fitted in the frequency domain space to obtain frequency domain fitting results. Then, the fitting results are inverse Fourier transformed to restore them to a 64×64×64×3-dimensional array, and then mapped to a 100,000×4-dimensional array representing surface pressure distribution information and surface shear force distribution information.
[0067] Through the above-mentioned embodiments of the present disclosure, the latent space array representation result is transformed into the frequency domain space for fitting, which can have higher learning and fitting efficiency.
[0068] According to the embodiments of the present disclosure, different from the traditional proxy model construction method, the present disclosure can use a data-driven AI (Artificial Intelligence) proxy model to predict the drag coefficient, which is introduced below using the GINO proxy model as an example.
[0069] Figure 3 A schematic diagram of calculating the drag coefficient based on GINO according to an embodiment of the present disclosure is schematically shown.
[0070] like Figure 3 As shown, the GINO agent model 330 may include an input graph neural operator layer 331, a Fourier neural operator layer 332, and an output graph neural operator layer 333. Both the graph neural operator layer 331 and the output graph neural operator layer 333 may use the GNO model, but are not limited thereto. The Fourier neural operator layer 332 may use the FNO model, but are not limited thereto.
[0071] According to the embodiments of the present disclosure, Figure 3 As shown, when the geometric structure shape control parameters 310 are obtained at any stage of the optimization process, the geometric structure shape control parameters 310 can be meshed to obtain the geometric structure shape surface mesh 320. Then, the geometric structure shape surface mesh 320 can be input into the GINO proxy model 330, mapped to the latent space via the input graph neural operator layer 321, and completed learning and fitting in the frequency domain space based on the Fourier neural operator layer 322, and then mapped via the output graph neural operator layer 323, and the surface pressure distribution information and the surface shear force distribution information 340 can be obtained. The surface pressure distribution information and the surface shear force distribution information 340 can be integrated and calculated to obtain the drag coefficient 350.
[0072] According to the above-mentioned embodiments of the present disclosure, the above-mentioned GINO proxy model can be a purely data-driven model. Taking the optimization of aerodynamic shape as an example, the training data of the above-mentioned GINO proxy model can be aerodynamic shape flow field CFD calculation data, and the training data can be calculated by a CFD solver. The CFD solver can use software such as OpenFOAM (Open Source Field Operation and Manipulation, open source field operation and processing software), ANSYS Fluent (a general computational fluid dynamics software), etc., and is not limited to this.
[0073] Figure 4 The training process of the GINO agent model according to an embodiment of the present disclosure is schematically shown.
[0074] like Figure 4 As shown, the process includes operations S410 to S440.
[0075] In operation S410, a plurality of appearance samples of an object to be trained are obtained.
[0076] In operation S420, a CFD solver is used to solve the surface pressure distribution and the surface shear force distribution of each shape sample corresponding to the shape, which are used as labels in the training process.
[0077] In operation S430 , CFD training data is constructed according to the plurality of appearance samples and labels.
[0078] In operation S440 , the GINO agent model is trained using the CFD training data.
[0079] According to an embodiment of the present disclosure, the input of the GINO proxy model may be the three-dimensional coordinates and velocity information of the surface mesh of the object to be trained, and the velocity information may be provided by the shape control parameters of the object to be trained. The output may be the surface pressure distribution and the surface shear force distribution of the object to be trained. Further integration of the output of the GINO proxy model may obtain the drag coefficient of the object to be trained. Compared with the traditional Kriging (Gaussian random process model or Kriging model) model, the GINO proxy model has better model generalization. During the training process, fewer samples are required. For example, only some of the appearance samples among multiple appearance samples and the labels corresponding to the some of the appearance samples may be used for training.
[0080] It should be noted that the above-mentioned GINO proxy model only needs to complete model training before the optimization process and can be put into use without the need for secondary training.
[0081] According to an embodiment of the present disclosure, the proxy model used in the above-mentioned feedforward calculation may be a proxy model trained by the above-mentioned training method.
[0082] Through the above-mentioned embodiments of the present disclosure, based on the operator learning ability of the GINO model, it is possible to map the surface mesh of any geometric shape to the surface pressure distribution information and the surface shear force distribution information, so that the drag coefficient of a given shape can be quickly predicted and rapid optimization can be achieved.
[0083] According to the above embodiments of the present disclosure, a data-driven AI agent model is developed, and operator learning is performed based on the agent model to establish an agent model for object shape flow field simulation, which can effectively reduce the amount of CFD calculations in traditional optimization algorithms. On this basis, the initial shape control parameters can be constructed, combined with global optimization and local optimization, to optimize the initial shape control parameters and obtain the optimized shape process.
[0084] According to an embodiment of the present disclosure, the above operation S230 may include: iteratively performing global optimization on the initial appearance control parameters. In response to the global optimization process converging, obtaining the globally optimized appearance control parameters that characterize the convergence of the global optimization. Iteratively performing local optimization on the globally optimized appearance control parameters. In response to the local optimization process converging, obtaining the locally optimized appearance control parameters that characterize the convergence of the local optimization. Determine the optimized appearance according to the locally optimized appearance control parameters.
[0085] According to an embodiment of the present disclosure, the process of global optimization and local optimization of the appearance control parameters can be achieved by optimizing the drag coefficient corresponding to the appearance control parameters.
[0086] According to an embodiment of the present disclosure, in the process of optimizing the drag coefficient, a global optimizer based on a heuristic algorithm may be first used to perform global optimization. The heuristic algorithm may be selected from at least one of the following: a genetic algorithm, a particle swarm algorithm, a Bayesian optimization, etc., and may not be limited thereto. When the global optimization process reaches a manually set convergence standard, the global optimization ends.
[0087] According to an embodiment of the present disclosure, the convergence criterion of global optimization may include: the change in drag coefficient obtained by two global optimizations is less than a certain set value, such as 1%, and may not be limited thereto. The convergence criterion of global optimization may also be the number of global optimization rounds, such as reaching 50 rounds, and may not be limited thereto.
[0088] According to the embodiments of the present disclosure, after the global optimization is completed, a local optimization process based on gradient information can be entered. The gradient optimization algorithm can select at least one of the following: gradient descent method, Newton method, quasi-Newton method, etc., and may not be limited thereto. When the local optimization process reaches the artificially set convergence standard, the local optimization ends and the optimized appearance is obtained.
[0089] According to an embodiment of the present disclosure, similar to the convergence criterion of global optimization, the convergence criterion of local optimization may include: the change in drag coefficient obtained by two local optimizations is less than a certain set value, such as 1%, and may not be limited thereto. The convergence criterion of local optimization may also be the number of local optimization rounds, such as 50 rounds, and may not be limited thereto.
[0090] Through the above-mentioned embodiments of the present disclosure, the global optimization algorithm is combined with the local optimization algorithm, which can adapt to various aerodynamic optimization design problems such as single peak value and multi-peak value, and take into account both global optimization and optimization efficiency.
[0091] According to an embodiment of the present disclosure, a global optimizer may be used in conjunction with a proxy model.
[0092] According to an embodiment of the present disclosure, iteratively performing global optimization on the initial appearance control parameters may include: performing global optimization on the i-th reconstruction appearance control parameters to obtain the i-th optimized appearance control parameters. Wherein, i is a positive integer, i represents the number of iterations of global optimization, and when i is equal to 1, the i-th reconstruction appearance control parameters represent the initial appearance control parameters. In response to the global optimization process not converging, determining the i+1-th reconstruction appearance control parameters according to the i-th optimized appearance control parameters. Iteratively performing global optimization on the i+1-th reconstruction appearance control parameters.
[0093] According to the embodiments of the present disclosure, the i-th optimized appearance control parameter can be directly determined as the i+1-th reconstructed appearance control parameter, and the i+1-th round of global optimization can be performed. The i-th optimized appearance control parameter can also be further adjusted to obtain the i-th post-reconstruction optimized appearance control parameter. The i-th post-reconstruction optimized appearance control parameter can also be determined as the i+1-th reconstructed appearance control parameter, and the i+1-th round of global optimization can be performed. The specific method for determining the i+1-th reconstructed appearance control parameter based on the i-th optimized appearance control parameter is not limited here.
[0094] According to the embodiment of the present disclosure, in the appearance optimization design scenario, the local optimization method based on gradient information needs to solve the adjoint equation to obtain the drag coefficient C d The drag coefficient is a function of the surface CFD mesh, flow field variables, and geometric design variables, so the drag coefficient C d It can be calculated based on the following formula (1).
[0095] Formula (1)
[0096] Among them, x represents the design variable determined for the shape, M represents the CFD grid of the object shape calculation domain, and U represents the flow field solution vector, which can represent surface pressure, surface shear force and other information in this embodiment. If you want to obtain the drag coefficient C dFor the gradient information of the design variable x, taking the total derivative of the above formula, we can get formula (2).
[0097] Formula (2)
[0098] According to an embodiment of the present disclosure, based on formula (2), the above-mentioned iterative local optimization of the appearance control parameters after global optimization may include: based on feedforward calculation, obtaining the jth drag coefficient of the jth object to be generated represented by the jth reconstructed appearance control parameter, j is a positive integer, j represents the number of iterative rounds of local optimization, and when j is equal to 1, the jth reconstructed appearance control parameter represents the appearance control parameter after global optimization. Calculate the jth gradient information of the jth drag coefficient with respect to the jth design variable. Perform local optimization on the jth reconstructed appearance control parameter based on the jth gradient information to obtain the jth optimized appearance control parameter. In response to the local optimization process not converging, determine the j+1th reconstructed appearance control parameter according to the jth optimized appearance control parameter. Iterate and perform local optimization on the j+1th reconstructed appearance control parameter.
[0099] According to an embodiment of the present disclosure, the jth drag coefficient can be obtained by inputting the geometric structure parameterized model determined in the jth round into the data-driven AI proxy model for feedforward calculation and integral calculation. It is also possible to train a proxy model that directly outputs the drag coefficient, and directly obtain the jth drag coefficient by inputting the geometric structure parameterized model determined in the jth round into the proxy model for feedforward calculation. The method for determining the jth drag coefficient is not limited to this.
[0100] According to an embodiment of the present disclosure, for example, after obtaining the drag coefficient C of the jth round d In the case of variable information, the gradient information used for the j-th round of local optimization can be calculated based on the calculation method on the left side of the equal sign in formula (2).
[0101] According to the embodiments of the present disclosure, the jth optimized appearance control parameter can be directly determined as the j+1th reconstructed appearance control parameter, and the j+1th round of local optimization can be performed. The jth optimized appearance control parameter can also be further adjusted to obtain the jth post-reconstruction optimized appearance control parameter. The jth post-reconstruction optimized appearance control parameter can be determined as the j+1th reconstructed appearance control parameter, and the j+1th round of local optimization can be performed. The specific method for determining the j+1th reconstructed appearance control parameter based on the jth optimized appearance control parameter is not limited here.
[0102] According to the embodiments of the present disclosure, it is also possible to obtain the gradient information of the drag coefficient with respect to the design variables based on the parameterized geometric model and the chain derivative rule, and perform gradient-based local optimization.
[0103] According to an embodiment of the present disclosure, the above-mentioned calculation of the jth gradient information of the jth drag coefficient to the jth group of variable information may include: based on feedforward calculation, obtaining the jth surface pressure distribution information and the jth surface shear force distribution information of the jth object to be generated. Based on the chain rule, the jth design variable, the jth surface pressure distribution information, the jth surface shear force distribution information, the jth drag coefficient and the jth surface mesh information of the jth object to be generated are calculated to obtain the jth gradient information.
[0104] According to an embodiment of the present disclosure, for example, after obtaining the drag coefficient C of the jth round d After obtaining the surface pressure distribution information, surface shear force distribution information, surface mesh information and variable information, the gradient information used for the j-th round of local optimization can be calculated based on the calculation method on the right side of the equal sign of formula (2).
[0105] Through the above embodiments of the present disclosure, since the number of design variables may be large, a method of obtaining relevant parameters for calculating gradient information based on feedforward calculation is adopted, and there is no need to use CFD to solve dU / dx, and there is no order to solve the adjoint equation, which effectively reduces the amount of calculation in the entire optimization process and reduces the difficulty of implementation. In addition, the gradient information of the drag coefficient to the design variable can be easily obtained by combining the chain rule, so that the proxy model can be combined with the local optimization algorithm based on gradient information, which can be beneficial to improve the optimization efficiency.
[0106] Figure 5 The framework diagram of the object appearance optimization method based on the data-driven AI agent model according to an embodiment of the present disclosure is schematically shown.
[0107] like Figure 5 As shown, the framework 500 may include modules such as an initial geometric structure parameterized model 510 of an object, a data-driven AI agent model 520, a global optimizer 530, and a local optimizer 540. The initial geometric structure parameterized model 510 may provide an initial shape control parameter 511 of the object and an initial shape 512 of the object. The initial shape 512 may be generated according to the initial shape control parameter 511. The initial geometric structure parameterized model 510 may be a point cloud model or an SDF model.
[0108] During the optimization process, Figure 5As shown, first, based on the geometric structure of the preliminary design of the object, an initial geometric structure parameterized model 510 of the object can be established, and the initial shape 512 can be meshed to obtain an initial shape surface mesh 513. Then, the initial shape control parameters 511 and the initial shape surface mesh 513 can be input into the data-driven AI agent model 520 trained based on a small amount of CFD numerical simulation data, and feedforward calculation can be performed to quickly obtain the surface pressure distribution information and surface shear force distribution information of the input shape surface mesh, and then the drag coefficient 521 of the input shape surface mesh can be obtained by integration. In the first optimization round, the input shape surface mesh can represent the initial shape surface mesh 513. Afterwards, a global optimizer 530 and a local optimizer 540 can be used, and combined with the data-driven AI agent model 520, to perform the aforementioned iterative optimization process.
[0109] like Figure 5 As shown, the drag coefficient 521 can be combined, and the initial shape control parameters 511 can be iteratively optimized globally based on the global optimizer 530, including: when the global optimization process has not converged, the first optimized shape control parameters 531 output by the global optimizer 530 can be used to construct a first reconstructed geometry parameterized model 532 including first reconstructed shape control parameters and first reconstructed shape, and the first reconstructed shape control parameters and the first reconstructed shape surface mesh obtained by meshing the first reconstructed shape are input into the data to drive the AI agent model 520, and iteratively execute the global optimization process. When the global optimization process has converged, the first optimized shape control parameters 531 output by the global optimizer 530 can be used to construct a first optimized shape 534 under the condition that the global optimization has converged, and the shape control parameters after global optimization determined according to the first optimized shape 534 can be iteratively optimized locally based on the local optimizer 540.
[0110] like Figure 5 As shown, iterative local optimization of the shape control parameters after global optimization based on the local optimizer 540 may include: when the local optimization process has not converged, a second reconstructed geometric structure parameterized model 542 including second reconstructed shape control parameters and second reconstructed shape can be constructed according to the second optimized shape control parameters 541 output by the local optimizer 540, and the second reconstructed shape control parameters and the second reconstructed shape surface mesh obtained by meshing the second reconstructed shape are input into the data to drive the AI agent model 520 to iteratively execute the local optimization process. When the local optimization process has converged, a second optimized shape 544 in which the local optimization has converged can be constructed according to the second optimized shape control parameters 541 output by the local optimizer 540. Afterwards, the final optimized shape 550 constructed for the object can be determined according to the second optimized shape 544.
[0111] According to an embodiment of the present disclosure, corresponding to the situation where the aforementioned global optimization fails to converge, the above-mentioned determination of the i+1th reconstructed appearance control parameters according to the i-th optimized appearance control parameters may include: according to the i-th group of variable information generated for the design variables, performing the i-th parametric modification on some control parameters in the i-th optimized appearance control parameters to obtain the i-th intermediate appearance control parameters, wherein the i-th intermediate appearance control parameters may include the first part of control parameters that have been parametrically modified and the second part of control parameters that have not been parametrically modified. According to the first part of control parameters, taking the i-th optimized appearance control parameters as constraints, the i-th intermediate appearance control parameters including the first part of control parameters and the second part of control parameters are adjusted to obtain the i+1th reconstructed appearance control parameters.
[0112] According to an embodiment of the present disclosure, the i-th group of variable information may be generated randomly, or may be determined based on the i-1th drag coefficient, or may be determined based on control parameters of a preset appearance with a better drag coefficient, which is not limited here.
[0113] According to the embodiments of the present disclosure, Figure 5 As shown, the i-th optimized shape control parameter can represent the first optimized shape control parameter 531 output by the global optimizer 530 during the i-th round of global optimization. The i+1-th reconstructed shape control parameter can represent the first reconstructed shape control parameter of the first reconstructed geometric structure parameterized model 532 reconstructed from the first optimized shape control parameter 531 during the i-th round of global optimization, and can also represent the first reconstructed shape control parameter of the input data-driven AI agent model 520 during the i+1-th round of global optimization.
[0114] According to an embodiment of the present disclosure, corresponding to the situation where the aforementioned local optimization fails to converge, the above-mentioned determination of the j+1th reconstructed appearance control parameters according to the jth optimized appearance control parameters may include: performing a j+1th parameterization modification on some control parameters in the jth optimized appearance control parameters according to the jth group of variable information generated for the design variables to obtain the jth intermediate appearance control parameters, wherein the jth intermediate appearance control parameters include the third part of control parameters that have been parameterized. According to the third part of control parameters, the jth intermediate appearance control parameters are adjusted with the jth optimized appearance control parameters as constraints to obtain the j+1th reconstructed appearance control parameters.
[0115] According to an embodiment of the present disclosure, similar to the generation method of the i-th group of variable information, the j-th group of variable information can be generated randomly, or determined according to the j-1-th drag coefficient, or determined according to the control parameters of a preset appearance with a better drag coefficient, which is not limited here.
[0116] According to the embodiments of the present disclosure, Figure 5As shown, the jth optimized shape control parameter can represent the second optimized shape control parameter 541 output by the local optimizer 540 during the jth round of local optimization. The j+1th reconstructed shape control parameter can represent the second reconstructed shape control parameter of the second reconstructed geometric structure parameterized model 542 reconstructed from the second optimized shape control parameter 541 during the jth round of local optimization, and can also represent the second reconstructed shape control parameter of the input data-driven AI agent model 520 during the j+1th round of local optimization.
[0117] According to an embodiment of the present disclosure, in the above-mentioned global optimization stage and local optimization stage, the reconstruction process of the geometric structure parameterized model can be implemented by using FFD (Free form deformation) and IDW (Inverse distance weighting). The geometric structure can be determined and parametrically modified by the free form deformation control points and design variables, and the influence of the geometric structure reconstruction on the CFD mesh can be propagated through the inverse distance weighted difference.
[0118] Figure 6 An example diagram of a reconstructed geometric structure parameterized model according to an embodiment of the present disclosure is schematically shown.
[0119] like Figure 6 As shown, the initial shape control parameters 610 can be input into the FFD 620 to perform free-form surface deformation processing. For example, the FFD 620 can first determine a portion of points as free-form surface deformation control points based on the initial shape control parameters 610. Then, the free-form surface deformation control points can be parametrically modified according to the design variables, for example, modification methods such as translation setting distance and rotation setting angle can be included. Afterwards, the output of the FFD 620 can be input into the IDW 630. The IDW 630 can adjust the initial shape control parameters 610 according to the free-form surface deformation control points and design variable information determined in the FFD 620, and can obtain control parameters for constructing a reconstructed shape, and then reconstruct a reconstructed shape 640.
[0120] It should be noted that the above method for reconstructing a geometric structure parameterized model is only an exemplary embodiment, but is not limited thereto, and may also include other model-based methods known in the art, as long as an updated geometric structure parameterized model can be obtained.
[0121] Through the above-mentioned embodiments of the present disclosure, by performing parametric geometric modeling and adopting data-driven AI agent models, it is possible to simultaneously support global optimization based on heuristic algorithms and local optimization based on gradient information. The object generation method implemented based on this can combine the advantages of global optimization and local optimization to achieve efficient global and local optimization of appearance optimization, and can achieve optimal design of new appearance structures and optimization improvement of existing appearance structures, thereby improving the ability to find the global optimal solution, reducing the amount of calculation of CFD and optimization processes, and effectively reducing the problem that local optimization algorithms are prone to fall into local optimal solutions, increasing adaptability to multi-peak optimization problems, and having high practical application value.
[0122] Figure 7 A block diagram of an object generating device according to an embodiment of the present disclosure is schematically shown.
[0123] like Figure 7 As shown, the object generation device 700 includes a feedforward calculation module 710 , a drag coefficient acquisition module 720 and an optimization module 730 .
[0124] The feedforward calculation module 710 is used to perform feedforward calculation on the surface mesh of the object to be generated according to the initial shape control parameters of the object to be generated, and obtain surface pressure distribution information and surface shear force distribution information of the surface mesh.
[0125] The drag coefficient obtaining module 720 is used to obtain the drag coefficient of the object to be generated according to the surface pressure distribution information and the surface shear force distribution information, wherein the drag coefficient has a mapping relationship with the design variables constructed for the object to be generated, and the design variables are used to control the geometric structure changes of the object to be generated.
[0126] The optimization module 730 is used to optimize the initial shape control parameters according to the mapping relationship to obtain the optimized shape of the object to be generated.
[0127] According to an embodiment of the present disclosure, the feedforward calculation module includes a latent space mapping submodule and a distribution information mapping submodule.
[0128] The latent space mapping submodule is used to map the initial appearance control parameters to the latent space to obtain the latent space array representation result of the initial appearance control parameters.
[0129] The distribution information mapping submodule is used to map the latent space array representation results into surface pressure distribution information and surface shear force distribution information based on a proxy model with operator learning capabilities.
[0130] According to an embodiment of the present disclosure, the feedforward calculation module further includes a fitting submodule and a processing submodule.
[0131] The fitting submodule is used to fit the frequency domain representation result of the latent space array representation result to obtain the frequency domain fitting result.
[0132] The processing submodule is used to process the frequency domain fitting results to obtain the latent space array representation results.
[0133] According to an embodiment of the present disclosure, the optimization module includes a global optimization submodule, a global optimized parameter acquisition submodule, a local optimization submodule, a local optimized parameter acquisition submodule and an optimized appearance determination submodule.
[0134] The global optimization submodule is used to iterate the global optimization of the initial shape control parameters.
[0135] The global optimized parameter acquisition submodule is used to obtain the global optimized appearance control parameters representing the convergence of the global optimization process in response to the convergence of the global optimization process.
[0136] The local optimization submodule is used to iteratively perform local optimization on the appearance control parameters after global optimization.
[0137] The local optimized parameter acquisition submodule is used to obtain the local optimized appearance control parameters that characterize the convergence of the local optimization process in response to the convergence of the local optimization process.
[0138] The optimized appearance determination submodule is used to determine the optimized appearance according to the appearance control parameters after local optimization.
[0139] According to an embodiment of the present disclosure, the global optimization submodule includes an i-th global optimization unit, an i+1-th reconstruction parameter determination unit and an i+1-th global optimization unit.
[0140] The i-th global optimization unit is used to perform global optimization on the i-th reconstructed appearance control parameter to obtain the i-th optimized appearance control parameter, wherein i is a positive integer, i represents the number of iteration rounds of global optimization, and when i is equal to 1, the i-th reconstructed appearance control parameter represents the initial appearance control parameter.
[0141] The (i+1)th reconstruction parameter determination unit is used to determine the (i+1)th reconstruction appearance control parameter according to the (i)th optimized appearance control parameter in response to the global optimization process not converging.
[0142] The i+1th global optimization unit is used to perform global optimization on the i+1th reconstruction shape control parameter iteration.
[0143] According to an embodiment of the present disclosure, the (i+1)th reconstruction parameter determination unit includes an (i)th modification subunit and an (i)th adjustment subunit.
[0144] The i-th modification subunit is used to perform the i-th parametric modification on some control parameters in the i-th optimized appearance control parameters according to the i-th group of variable information generated for the design variables, so as to obtain the i-th intermediate appearance control parameters, wherein the i-th intermediate appearance control parameters include the first part of control parameters that have been parametrically modified.
[0145] The i-th adjusting subunit is used to adjust the i-th intermediate appearance control parameter according to the first part of the control parameters and take the i-th optimized appearance control parameter as a constraint to obtain the i+1-th reconstructed appearance control parameter.
[0146] According to an embodiment of the present disclosure, the local optimization submodule includes a jth drag coefficient obtaining unit, a jth gradient information calculating unit, a jth local optimization unit, a j+1th reconstruction parameter determining unit and a j+1th local optimization unit.
[0147] The j-th drag coefficient obtaining unit is used to obtain the j-th drag coefficient of the j-th object to be generated represented by the j-th reconstructed appearance control parameter based on feedforward calculation, wherein j is a positive integer, j represents the number of iteration rounds of local optimization, and when j is equal to 1, the j-th reconstructed appearance control parameter represents the appearance control parameter after global optimization.
[0148] The j-th gradient information calculation unit is used to calculate the j-th gradient information of the j-th drag coefficient with respect to the j-th design variable.
[0149] The jth local optimization unit is used to perform local optimization on the jth reconstructed appearance control parameter based on the jth gradient information to obtain the jth optimized appearance control parameter.
[0150] The j+1th reconstruction parameter determination unit is used to determine the j+1th reconstruction appearance control parameter according to the jth optimized appearance control parameter in response to the failure of the local optimization process to converge.
[0151] The j+1th local optimization unit is used to perform local optimization on the j+1th reconstruction shape control parameter iteration.
[0152] According to an embodiment of the present disclosure, the j-th gradient information calculation unit includes a j-th distribution information obtaining subunit and a j-th gradient information calculation subunit.
[0153] The jth distribution information obtaining subunit is used to obtain the jth surface pressure distribution information and the jth surface shear force distribution information of the jth object to be generated based on feedforward calculation.
[0154] The jth gradient information calculation subunit is used to calculate the jth design variable, the jth surface pressure distribution information, the jth surface shear force distribution information, the jth drag coefficient and the jth surface mesh information of the jth object to be generated based on the chain rule to obtain the jth gradient information.
[0155] According to an embodiment of the present disclosure, the j+1th reconstruction parameter determination unit includes a jth modification subunit and a jth adjustment subunit.
[0156] The jth modification subunit is used to perform the j+1th parametric modification on some control parameters in the jth optimized appearance control parameter according to the jth group of variable information generated for the design variables, so as to obtain the jth intermediate appearance control parameter, wherein the jth intermediate appearance control parameter includes the third part of the control parameters that have been parametrically modified. And
[0157] The jth adjusting subunit is used to adjust the jth intermediate appearance control parameter according to the third part of the control parameters and take the jth optimized appearance control parameter as a constraint to obtain the j+1th reconstructed appearance control parameter.
[0158] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, a computer program product, and an object entity.
[0159] According to an embodiment of the present disclosure, an electronic device includes: at least one processor, and a memory connected to the at least one processor in communication, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the object generation method of the present disclosure.
[0160] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the object generation method of the present disclosure.
[0161] According to an embodiment of the present disclosure, a computer program product includes a computer program, wherein the computer program is stored in at least one of a readable storage medium and an electronic device, and when the computer program is executed by a processor, the object generation method of the present disclosure is implemented.
[0162] According to an embodiment of the present disclosure, an object entity is provided, wherein the appearance of the object entity is generated based on the object generation method of the present disclosure.
[0163] Figure 8A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0164] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0165] A number of components in the device 800 are connected to an input / output (I / O) interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0166] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the object generation method. For example, in some embodiments, the object generation method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the object generation method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the object generation method in any other appropriate manner (e.g., by means of firmware).
[0167] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0168] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0169] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 of the foregoing.
[0170] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0171] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0172] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.
[0173] 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 disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0174] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. 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 modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for generating an object, comprising: According to the initial shape control parameters of the object to be generated, feedforward calculation is performed on the surface mesh of the object to be generated to obtain surface pressure distribution information and surface shear force distribution information of the surface mesh; Obtaining a drag coefficient of the object to be generated according to the surface pressure distribution information and the surface shear force distribution information, wherein the drag coefficient has a mapping relationship with a design variable constructed for the object to be generated, and the design variable is used to control a change in a geometric structure of the object to be generated; as well as According to the mapping relationship, the initial shape control parameters are optimized to obtain the optimized shape of the object to be generated.
2. The method according to claim 1, wherein: The feedforward calculation is performed on the surface mesh of the object to be generated according to the initial shape control parameters of the object to be generated to obtain the surface pressure distribution information and the surface shear force distribution information of the surface mesh, including: Mapping the initial shape control parameters to a latent space to obtain a latent space array representation result of the initial shape control parameters; and Based on a proxy model with operator learning capability, the latent space array representation result is mapped into the surface pressure distribution information and the surface shear force distribution information.
3. The method according to claim 2, wherein: The step of performing feedforward calculation on the surface mesh of the object to be generated according to the initial shape control parameters of the object to be generated to obtain the surface pressure distribution information and the surface shear force distribution information of the surface mesh also includes: Fitting the frequency domain representation result of the latent space array representation result to obtain a frequency domain fitting result; and The frequency domain fitting result is processed to obtain a latent space array representation result.
4. The method according to claim 1, wherein: The optimizing the initial shape control parameters to obtain the optimized shape of the object to be generated comprises: Iteratively performing global optimization on the initial shape control parameters; In response to the global optimization process having converged, obtaining a globally optimized appearance control parameter representing that the global optimization process has converged; Iteratively performing local optimization on the appearance control parameters after the global optimization; In response to the local optimization process having converged, obtaining a local optimized appearance control parameter indicating that the local optimization process has converged; and The optimized appearance is determined according to the locally optimized appearance control parameters.
5. The method according to claim 4, wherein: The iterative global optimization of the initial shape control parameters comprises: Performing global optimization on the i-th reconstructed appearance control parameter to obtain the i-th optimized appearance control parameter, wherein i is a positive integer, i represents the number of iterations of global optimization, and when i is equal to 1, the i-th reconstructed appearance control parameter represents the initial appearance control parameter; In response to the global optimization process not converging, determining the (i+1)th reconstructed appearance control parameter according to the (i)th optimized appearance control parameter; and The i+1th reconstruction shape control parameter iteration is globally optimized.
6. The method according to claim 5, wherein: The determining the (i+1)th reconstructed appearance control parameter according to the i-th optimized appearance control parameter comprises: According to the i-th group of variable information generated for the design variables, performing an i-th parametric modification on some control parameters in the i-th optimized appearance control parameters to obtain an i-th intermediate appearance control parameter, wherein the i-th intermediate appearance control parameter includes a first part of control parameters that have been parametrically modified; and According to the first part of control parameters, the i-th optimized appearance control parameter is used as a constraint to adjust the i-th intermediate appearance control parameter to obtain the (i+1)th reconstructed appearance control parameter.
7. The method according to any one of claims 4 to 6, wherein: The iterative local optimization of the appearance control parameters after the global optimization comprises: Based on the feedforward calculation, a j-th drag coefficient of the j-th object to be generated represented by the j-th reconstructed appearance control parameter is obtained, wherein j is a positive integer, j represents the number of iteration rounds of local optimization, and when j is equal to 1, the j-th reconstructed appearance control parameter represents the globally optimized appearance control parameter; Calculating the jth gradient information of the jth drag coefficient with respect to the jth design variable; Performing local optimization on the j-th reconstructed appearance control parameter based on the j-th gradient information to obtain the j-th optimized appearance control parameter; In response to the local optimization process not converging, determining the j+1th reconstructed appearance control parameter according to the jth optimized appearance control parameter; and The j+1th reconstruction shape control parameter is iteratively optimized locally.
8. The method according to claim 7, wherein: The calculating of the jth gradient information of the jth drag coefficient with respect to the jth design variable comprises: Based on the feedforward calculation, obtaining the j-th surface pressure distribution information and the j-th surface shear force distribution information of the j-th object to be generated; and Based on the chain rule, the jth design variable, the jth surface pressure distribution information, the jth surface shear force distribution information, the jth drag coefficient and the jth surface mesh information of the jth object to be generated are calculated to obtain the jth gradient information.
9. The method according to claim 7, wherein: Determining the j+1th reconstructed appearance control parameter according to the jth optimized appearance control parameter comprises: According to the jth group of variable information generated for the design variables, performing a j+1th parametric modification on some control parameters in the jth optimized appearance control parameter to obtain a jth intermediate appearance control parameter, wherein the jth intermediate appearance control parameter includes a third part of control parameters that have been parametrically modified; and According to the third part of control parameters, the jth optimized appearance control parameter is taken as a constraint, and the jth intermediate appearance control parameter is adjusted to obtain the j+1th reconstructed appearance control parameter.
10. An object generation device, comprising: A feedforward calculation module, used to perform feedforward calculation on the surface mesh of the object to be generated according to the initial shape control parameters of the object to be generated, so as to obtain surface pressure distribution information and surface shear force distribution information of the surface mesh; a drag coefficient obtaining module, configured to obtain the drag coefficient of the object to be generated according to the surface pressure distribution information and the surface shear force distribution information, wherein the drag coefficient has a mapping relationship with a design variable constructed for the object to be generated, and the design variable is used to control the change of the geometric structure of the object to be generated; as well as The optimization module is used to optimize the initial appearance control parameters according to the mapping relationship to obtain the optimized appearance of the object to be generated.
11. The device according to claim 10, wherein: The feedforward calculation module comprises: a latent space mapping submodule, used for mapping the initial shape control parameters to a latent space to obtain a latent space array representation result of the initial shape control parameters; and The distribution information mapping submodule is used to map the latent space array representation result into the surface pressure distribution information and the surface shear force distribution information based on a proxy model with operator learning capability.
12. The device according to claim 11, wherein The feedforward calculation module also includes: A fitting submodule, used to fit the frequency domain representation result of the latent space array representation result to obtain a frequency domain fitting result; and The processing submodule is used to process the frequency domain fitting result to obtain a latent space array representation result.
13. The device according to claim 10, wherein: The optimization module includes: A global optimization submodule, used for iteratively performing global optimization on the initial appearance control parameters; A global optimized parameter acquisition submodule, for acquiring a global optimized appearance control parameter representing that the global optimization process has converged, in response to the global optimization process having converged; A local optimization submodule, used for iteratively performing local optimization on the appearance control parameters after the global optimization; A local optimized parameter acquisition submodule, for acquiring local optimized appearance control parameters indicating that the local optimization process has converged, in response to the local optimization process having converged; and The optimized appearance determination submodule is used to determine the optimized appearance according to the locally optimized appearance control parameters.
14. The device according to claim 13, wherein: The global optimization submodule includes: an i-th global optimization unit, used for performing global optimization on the i-th reconstructed appearance control parameter to obtain the i-th optimized appearance control parameter, wherein i is a positive integer, i represents the number of iteration rounds of global optimization, and when i is equal to 1, the i-th reconstructed appearance control parameter represents the initial appearance control parameter; an i+1th reconstruction parameter determination unit, configured to determine an i+1th reconstruction appearance control parameter according to the i-th optimized appearance control parameter in response to the global optimization process not converging; and The (i+1)th global optimization unit is used to iterate and globally optimize the (i+1)th reconstructed appearance control parameter.
15. The device according to claim 14, wherein: The i+1th reconstruction parameter determination unit comprises: an i-th modification subunit, configured to perform an i-th parametric modification on some control parameters in the i-th optimized appearance control parameters according to the i-th group of variable information generated for the design variables, to obtain an i-th intermediate appearance control parameter, wherein the i-th intermediate appearance control parameter includes a first part of control parameters that have been parametrically modified; and The i-th adjusting subunit is used to adjust the i-th intermediate appearance control parameter according to the first part of control parameters and take the i-th optimized appearance control parameter as a constraint to obtain the (i+1)-th reconstructed appearance control parameter.
16. The device according to any one of claims 13 to 15, wherein: The local optimization submodule includes: A j-th drag coefficient obtaining unit, configured to obtain, based on the feedforward calculation, a j-th drag coefficient of a j-th object to be generated represented by a j-th reconstructed appearance control parameter, wherein j is a positive integer and represents the number of iteration rounds of local optimization. When j is equal to 1, the j-th reconstructed appearance control parameter represents the globally optimized appearance control parameter; A j-th gradient information calculation unit, used for calculating the j-th gradient information of the j-th drag coefficient with respect to the j-th design variable; A j-th local optimization unit, configured to perform local optimization on the j-th reconstructed appearance control parameter based on the j-th gradient information to obtain a j-th optimized appearance control parameter; a j+1th reconstruction parameter determination unit, configured to determine a j+1th reconstruction appearance control parameter according to the jth optimized appearance control parameter in response to the local optimization process not converging; and The j+1th local optimization unit is used to iteratively perform local optimization on the j+1th reconstruction shape control parameter.
17. The device according to claim 18, wherein: The j-th gradient information calculation unit comprises: The jth distribution information obtaining subunit is configured to obtain the jth surface pressure distribution information and the jth surface shear force distribution information of the jth object to be generated based on the feedforward calculation; and The jth gradient information calculation subunit is used to calculate the jth design variable, the jth surface pressure distribution information, the jth surface shear force distribution information, the jth drag coefficient and the jth surface mesh information of the jth object to be generated based on the chain rule to obtain the jth gradient information.
18. The device according to claim 16, wherein: The j+1th reconstruction parameter determination unit comprises: a jth modification subunit, configured to perform a j+1th parametric modification on some control parameters in the jth optimized appearance control parameter according to the jth group of variable information generated for the design variables, to obtain a jth intermediate appearance control parameter, wherein the jth intermediate appearance control parameter includes a third part of control parameters that have been parametrically modified; and The jth adjusting subunit is used to adjust the jth intermediate appearance control parameter according to the third part of control parameters and take the jth optimized appearance control parameter as a constraint to obtain the j+1th reconstructed appearance control parameter.
19. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.
20. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-9.
21. A computer program product, comprising a computer program, wherein the computer program is stored on at least one of a readable storage medium and an electronic device, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
22. An object entity, wherein: The appearance of the object entity is generated based on the method described in any one of claims 1-9.
Citation Information
Cited By
Joint prediction method and system for drag coefficient and surface pressure field of automobile
CN120930561A
Combined prediction method and system for automobile wind resistance coefficient and surface pressure field
CN120930561B
