Code Monkey home page Code Monkey logo

pinn-tutorial's Introduction

PINN Tutorial

Overview

This repository contains a minimal implementation of Physics-Informed Neural Networks (PINNs) in PyTorch. PINNs combine neural networks with physics-based constraints, making them particularly useful for solving problems described by ordinary/partial differential equations.

Files

  1. DataDrivenSolutionODE.ipynb
    • Demonstrates the application of PINNs for finding solutions to ordinary differential equations (ODEs).
  2. DataDrivenDiscoveryODE.ipynb
    • This notebook explores the data-driven discovery of solutions to ordinary differential equations (ODEs) using PINNs.
  3. DataDrivenSolutionPDE.ipynb
    • Extends the application of PINNs to partial differential equations (PDEs).
  4. LaneEmdenDifferentialEquation.ipynb
    • Solving the well-known Lane-Emden differential equation using PINNs.
  5. ODE-NAS.ipynb
    • Running a Neural Architecture Search (NAS) on PINNs for solving an ODE.
  6. PDE-LBFGS.ipynb
    • Using Quasi-Newton LBFGS algorithm for faster convergence.
  7. PDE-LBFGS-CUDA.ipynb
    • Add CUDA support to speedup the learning process.

Getting Started

To run these notebooks, ensure you have Python and PyTorch (preferably with CUDA support) installed. You can install the required packages using:

pip install -r requirements.txt

Clone the repository:

git clone https://github.com/your-username/PINN-tutorial.git cd PINN-tutorial

Open the desired notebook using Jupyter:

jupyter notebook DataDrivenDiscoveryODE.ipynb

Feel free to explore and modify the code to suit your needs.

References

For a deeper understanding of Physics-Informed Neural Networks and their applications, refer to the following resources:

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

pinn-tutorial's People

Contributors

alirezaafzalaghaei avatar

Stargazers

 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.