HW 3: Physics Informed Neural Network (PINN)


Reproduce Appendix A.1 of this paper using a physics informed neural net (PINN) to solve Burgers’ equation.

Create a figure similar to Fig A6: the top contour plot (but you don’t need all the x’s marking data locations) and the rightmost graph that shows a slice through the data at t=0.75 (you just need your prediction, don’t need to plot “exact”). I used \(N_u = 100\) and \(N_f = 10,000\). You’ll likely find that you get pretty good prediction but the shock wave isn’t captured as well (rounded instead of sharp). That’s sufficient for the purpose of this assignment, but if you’re interested in improving that, see the advanced tips below the regular tips.

In this case the problem is very small, so the number of data and collocation points provides super high coverage everywhere we are making predictions at. So while creating separate train/test datasets is still, in general, very important, in this particular problem a separate testing set won’t be needed (again for larger problems you should definitely have a test set).

A few tips:

Optional advanced tips if you want to really capture that shock: