GithubHelp home page GithubHelp logo

kimy-de / pinns Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 2.0 902 KB

Physics-informed neural networks (PINNs)

Python 4.39% Jupyter Notebook 95.61%
pytorch burgers-equation pdes pinns physics-informed-neural-networks allen-cahn deep-learning neural-networks

pinns's Introduction

Physics-informed neural networks (Pytorch)

Continuous time models: Burgers' equation / Allen-Cahn equation

This repository provides basic PINNs to solve continuous time models without reference data for model training. That is, this approach does not use any observation data except for initial and boundary condition data.

  • This repository provides easy codes for educational purposes.
  • The purpose of the repository is to set a baseline using Pytorch for our PINN project.
  • Our model and the reference are not exactly the same.

[Reference] M.Raissi, P.Perdikaris, G.E.Karniadakis (2019) Physics-informed neural networks - A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations, Journal of Computational Physics Vol 378 (2019) pages 686โ€“707, https://doi.org/10.1016/j.jcp.2018.10.045

1. Execution examples

Use the pinns.ipynb file

1.1. Default setting

num_t = 100 # the number of t-grids
num_x = 256 # the number of x-grids
num_epochs = 200000 # the number of epochs
num_hidden = 4 # the number of hidden layers
num_nodes = 128 # the number of nodes in each hidden layer
lr = 1e-3 # a learning rate 
eq='bg' #'bg': Burgers' equation, 'ac': Allen-Cahn equation

1.2. Outputs

L2 relative error, a training loss graph, and two result figures

2. Results

2.1. Burgers' equation

r1 r

2.2. Allen-Cahn equation

r1 r

3. Reference Datasets

Source: https://github.com/maziarraissi/PINNs

pinns's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.