METHOD FOR NUMERICAL SIMULATION BY MACHINE LEARNING
20230014067 · 2023-01-19
Inventors
Cpc classification
G06F30/28
PHYSICS
International classification
Abstract
A computer-implemented numerical simulation method for studying a physical system governed by at least one differential equation such as a fluid in motion. The simulation is launched, making it possible to define a simulation domain. In the computation step, a machine learning algorithm is implemented to predict a global solution to the equation in the simulation domain. The computation step includes n consecutive sequences, each sequence includes cutting a piece in the simulation domain followed by predicting a local solution in the piece on the basis of local boundary conditions, n being an integer strictly greater than 1. The prediction step being carried out by a machine learning model, as input, global boundary conditions on the simulation domain.
Claims
1-9. (canceled)
10. A computer-implemented numerical simulation method for predicting a motion of a fluid governed by at least one differential equation, comprising: launching a simulation, making it possible to define a simulation domain, and computation, implementing a machine learning algorithm to predict a global solution to said at least one differential equation in the simulation domain, wherein the computation comprises n consecutive sequences, each sequence comprising cutting a piece in the simulation domain followed by predicting a local solution in the piece on a basis of local boundary conditions, n being an integer strictly greater than 1, n cut pieces covering an entire simulation domain, wherein the predicting step is carried out by a machine learning model taking, as input, global boundary conditions on the simulation domain, and wherein the global solution is reconstructed on a basis of the local solutions.
11. The numerical simulation method of claim 10, wherein the machine learning model is a physics-informed local deep learning network trained by means of existing numerical simulations.
12. The numerical simulation method of claim 10, wherein the local boundary conditions are extracted by the machine learning model from existing numerical simulations cut into samples, each sample being associated with the local boundary conditions so as to form learning data.
13. The numerical simulation method of claim 10, wherein each piece cut in the simulation domain overlaps with at least one other piece so as to allow the local boundary conditions to be updated.
14. The numerical simulation method of claim 10, wherein the simulation domain is cut from left to right and from top to bottom of the simulation domain.
15. The numerical simulation method of claim 10, wherein the computation step is iterative, the iteration being conditioned by a convergence of the global solution.
16. The numerical simulation method of claim 10, wherein said at least one differential equation is used to define a loss function.
17. The numerical simulation method of claim 10, wherein said at least one differential equation is a partial differential equation.
18. A computer program comprising a set of program code instructions executable by a processor to implement the numerical simulation method of claim 10.
Description
BRIEF DESCRIPTION OF THE FIGURES
[0028] The figures are provided purely as an illustration for comprehension of the invention and do not limit the scope thereof. In all of the figures, identical or equivalent elements are designated by the same reference sign.
[0029] It is thus illustrated, in:
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
DETAILED DESCRIPTION OF EMBODIMENTS
[0039] In the embodiment described below, reference is made to a method for numerical simulation by machine learning intended primarily for studying the motion of fluids, for example motion illustrated by the flow of air around an airfoil.
[0040] This non-limiting example is provided for better comprehension of the invention and does not rule out the use of the method to simulate other physical or economic phenomena or other phenomena governed by differential equations.
[0041] It should first be noted that the invention is based on the fundamental property according to which any differential equation is verified locally, and can therefore be solved with the boundary conditions, in which case it is a question of multi-scale modeling.
[0042] In the description below, we will be concerned with context of fluid mechanics, for the simulation of fluid flows around obstacles such as aircraft airfoils. The acronym CFD is used to designate what pertains to computational fluid mechanics and related methods. Fluids in motion obey the known Navier-Stokes equations and, according to the physical variable considered, verify laws of conservation and/or transport (advection, diffusion). These are nonlinear partial differential equations (abbreviated PDE).
[0043]
[0044] In reference to
[0045] The network 100 is supplied with CFD solutions, such as the solution of
[0046] In addition, the physics equations are used to force the neural network 100 to improve its prediction as well as the efficiency of its learning, as is standard practice in the field.
[0047] According to an advantageous aspect of the invention, the network 100 takes, as input, boundary conditions BC extracted from CFD solutions, and other input variables (initial conditions, geometric parameters, and other pre-processing variables), and makes it possible to obtain, as output, the global solution 200, restored from predicted local solutions, and other output variables including the other physical variables of the equation.
[0048] For example, the boundary conditions include a Dirichlet boundary condition, a Neumann boundary condition, or a combination of the two.
[0049] In fact, the network 100 carries out a construction of the global solution 200 based on local solutions 210 that have been “patched together”, each of the local solutions resulting from a prediction of the behavior of the fluid within the boundary conditions of a sample extracted from the network training CFD solutions.
[0050]
[0051] Thus, from a single CFD solution, the network 100 can extract a predetermined number of samples S in order to create local target functions corresponding to the local solutions 210. This allows the network 100 to base its learning on basic geometric patterns, such as profile portions having a simple curvature, in order to predict the behavior of the fluid around a complete shape in other simulations.
[0052]
[0053] Thus, the physics-informed local deep learning network 100 carries out a piecewise numerical simulation according to a precise cutting of the simulation domain.
[0054]
[0055]
[0056] The cutting of the domain in the context of the piecewise implementation of the simulation can be performed in different ways provided that the overlap between pieces is respected, and more specifically the overlap between each piece and a piece cut before, which is necessary for updating the boundary conditions during cutting. For example, the cutting can be linear from left to right, from top to bottom, or the reverse, diagonal or in a spiral converging at the center of the simulation domain, or even random. Other ways of segmenting the domain may be used provided that the overlap is respected.
[0057]
[0063] The step 510 of launching the simulation comprises, for example, the pre-processing, the adjustment of boundary conditions and initial conditions (initial field and boundary conditions, for example), the adjustment of physical properties, and time control (adjustment of the time step), according to the nature of the phenomenon studied. The boundary conditions will make it possible to define the input of the neural network 100, which carries out the computation step 520.
[0064] The local piecewise computation step 520, shown diagrammatically in
[0065] The global solution (over the entire simulation domain) is then reconstructed in the reconstruction step 530, which may be implicit.
[0066] The steps of piecewise computation 520 and reconstruction 530 are reiterated until convergence of the global solution.
[0067] The computation constitutes the step requiring the most computation resources and time.
[0068] Various techniques make it possible to optimize the use of the computation resources, such as parallel computation.
[0069] The post-processing step 550 finally makes it possible to use the results of the numerical simulation via physical and/or statistical analyses and corresponds, for example, to the visualization of different variable fields (velocity, pressure, etc.).
[0070]
[0071] The method has also been extrapolated to other geometries of obstacles with satisfactory results. An example of a simulation of the air flow around a motor vehicle is provided in
[0072] To train the network 100, any CFD solution may be used and cut into pieces of different sizes so as to obtain the learning samples, the pieces being used as supervised classifiers.
[0073] The physical equations of the theoretical model are used in loss functions in both supervised learning and unsupervised learning, using residuals of said equations in the latter case.
[0074] In fact, if it is considered that V is the unknown vector of the equation of the system, a cost function can be constructed as follows:
C=a.sub.math.Math.M(V.sub.pred,V.sub.targ,a.sub.sup)+a.sub.phys.Math.(H(V.sub.pred)−a.sub.supH(V.sub.targ))
wherein the indices targ and pred correspond respectively to the target solution and the solution predicted by the network, a.sub.sup is a coefficient between 0 and 1 for activating the supervised learning, a.sub.math is a coefficient between 0 and 1 for adding a typical machine learning loss (L2 or L3 norm, for example), a.sub.phys is a coefficient between 0 and 1 for activating the physical loss (i.e. the residual of the equation of the system), and M is a linear operator making it possible to couple the different machine learning losses.
[0075] The numerical simulation method according to the present invention has been found to be thirty times faster than a classic CFD method, with 98% precision compared to the CFD method on 128×128-pixel images.
[0076] In view of the description, the machine learning simulation method can be modified and/or adapted slightly without going beyond the scope of the invention. This method has direct, non-limiting applications in technological industries such as the aeronautics, space, automobile, energy, naval and multimedia (video games, special effects, etc.) industries.