Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.27 KB

File metadata and controls

37 lines (26 loc) · 1.27 KB

Physics-Informed Neural Networks with PyTorch

This repository explores Physics-Informed Neural Networks (PINNs) using PyTorch.
PINNs integrate physical laws, expressed as partial differential equations (PDEs), into the training of neural networks.
This approach is especially useful when data is scarce but the governing physics is well-understood.

Overview

This project demonstrates how to implement PINNs to solve PDEs by embedding physical constraints directly into the loss function of a neural network.

📝 For a detailed tutorial, check out the accompanying Medium article.

Installation

Clone the Repository

git clone https://github.com/TheodoreWolf/pinns.git
cd pinns

Install the requirements

It is recommended to use a virtual environment.

python -m venv .venv           # Create a virtual environment
source .venv/bin/activate      # activate the virtual environment

Install the dependencies listed in pyproject.toml.

pip install -e .               

Acknowledgments

Inspired by the foundational work by Raissi et al.
This repo aims to provide an approachable and practical introduction to PINNs with PyTorch.