Introduction

It was while reading this article that I felt that I still did not understand how these neural network-based simulators work and how deep learning would improve the numerical physics-based simulations. In the same article a link was given to the NVIDIA SimNet guide. However, in the week that I wrote this article, its name was changed to NVIDIA modulus. Reading a few pages of this guide, I can say that I just understood what they mean by using neural networks in physics based simulations.

The main points about these networks

  • The use of neural networks in these problems is as a solver and is not intended to replace experimental formulas such as the Navier-Stokes equations or the mass conservation equations. If they were to do so, they would have to give these networks a lot of real-world experimental testing and training. But this is not the approach at all. These are only supposed to be more efficient solvers than current solvers for the same equations.
  • The error function for teaching these networks is the comparison of the network output with the output of the differential equations of the physics. In other words, because there are physical equations (ordinary or partial differential equations), the training error is the error between estimation of the neural network and the differential equations output. As a result, ideally, the network should give output at the same point as the governing physical equations. So if the physics equations have simplifications, the network answer will also have these simplifications.
  • The advantage of these methods over conventional numerical solvers lies in several points. First, in normal solvers, the problem must be resolved again by changing the configuration of the problem (for example, the length of a tube in a fluid dynamics example). But in neural network-based solvers, different configurations can also be given as input to the network and are solved all together. This can greatly speed up the process. Second, training neural networks can be done much faster and more efficiently because of their development on GPUs. As a result, the speed of solving problems will increase. Third, neural network solvers are not as dependent on mesh size for accuracy as other methods. Actually the third note is not clear for me and I only see this in this article.
  • In this type of use of neural networks, there is also the issue of overfitting and etc. This means that if the network becomes too deep, it is possible that the answers will be very accurate in the points tested, but in other places the problem will be far from the correct answer.

A Simple Example

The following is a simple example of using these networks to see how it is used in practice. The examples are from that SimNet user guide. Consider the problem of the following differential equations.

The error formula considered here is a combination of the error of the differential equations themselves and the boundary condition error.

Which

Note that in the above equations are arbitrary points in the range of 0 and 1. As I said before, this is not aد external training issue, and given the explicit equations, any point in the domain can be selected for training. This equation has an explicit answer for . So, the network is trained for this function and in the following figure, a comparison of the explicit answer and the network answer can be seen.

Another example with adding study of a paramater change to the problem

We can add study of a parameter change and use this solver. Consider the problem as follows: this time the length of the pipe is also considered as a parameter in the design.

In this case, it can be assumed that the function that the neural network must estimate is . The error function is also as follows.

The results after training the network.

Other Notes

Implementation of these solvers has more complicated notes that you can find in the SimNet user guide. For example, somewhere in this guide, it is mentioned that they have come to the conclusion that in solving fluid problems, in addition to the Navier-Stokes equations, they must also consider the continuity equations, and the more they add continuity equations in different places , the higher the accuracy is.


<
Previous Post
Turing Bletchley: A Universal Image Language Representation model by Microsoft
>
Blog Archive
Archive of all previous blog posts