jayroxis / PINNs

PyTorch Implementation of Physics-informed Neural Networks
515 stars 128 forks source link

Data Creating Method #1

Closed amirgholami closed 3 years ago

amirgholami commented 3 years ago

Hey Jay,

Thanks so much for creating this repository. It is quite helpful. I was wondering how you created the "burgers_shock.mat" data? Is this data computed by analytically solving the Burgers equation? Would it be possible to have the code you used to generate that?

Best, -Amir

jayroxis commented 3 years ago

Hi Amir,

The code in this repository is just the exact translation of the original PINN from TensorFlow v1 to PyTorch. All the data are directly copied from the original work. Actually, I've tried to wrote an implementation myself that samples points from ICs and BCs and it worked perfectly. Practically, you don't need a stored data like the original work, you can generate those points in your Python training code.

amirgholami commented 3 years ago

That makes sense, thanks for converting the code to pytorch, it is very userful