Coder Social home page Coder Social logo

314arhaam / burger-pinn Goto Github PK

View Code? Open in Web Editor NEW
22.0 1.0 6.0 1.21 MB

A Physics-Informed Neural Network for solving Burgers' equation.

License: MIT License

Jupyter Notebook 93.40% HTML 6.60%
machine-learning physics-informed-neural-networks burgers-equation deep-learning neural-network

burger-pinn's Introduction

๐Ÿ” $\textbf{Burger-PINN}$ โš›๏ธ

A Physics-Informed Neural Network to solve Burgers' equation.

Reference: Physics Informed Deep Learning (Part I): Data-driven Solutions of Nonlinear Partial Differential Equations
Author's Github page: https://maziarraissi.github.io/PINNs/

Check out my other PINN project: heat-pinn

Introduction

This work is an implementation of the reference paper above. In this work, a neural network is trained to solve Burgers' equation, a well-known PDE, for a given set of BCs and an IC.

To train this model, certain number of points on the both boundaries and on the initial timestep were sampled, as input data, called data points, to compute MSE loss function, in addition to another set of points on the main domain of the problem, or collocation points to penalize the network in case the prediction on this set is not consistent with the governing PDE.

Problem details

The governing PDE is:

$\partial_{t}{u}+u\partial_{x}{u}-(\frac{0.01}{\pi})\partial_{xx}{u} = 0$

Which is solved in the following spatial and temporal domain:

$D = \{ (t, x)\ |\ 0\le t \le +1 \land -1\le x \le +1 \}$

Regarding the following initial and boundary conditions:

$$ \begin{equation} \begin{cases} u(0, x) = -\sin({\pi x})\\ u(t, +1) = 0.0 \\ u(t, -1) = 0.0 \\ \end{cases} \end{equation} $$

Results

$u(t, x)$ profile (Figure 1. in reference or author's Github page)
profile

$u(t, x)$ in Cartesian coordinates for $t \in \{0.25,0.5,0.75\}$ (Figure 1. in reference or author's Github page)
plots

$u(t, x)$ in Cartesian coordinates for more t values

u-constant-time.png

Note

This implementation is based on Tensorflow 2.0 package and made possible by Google Colabratory GPU.

burger-pinn's People

Contributors

314arhaam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.