Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

madagra/basic-pinn

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic implementation of physics-informed neural networks (PINNs)

⚠️ This repository implements PINNs for educational purposes only and it is not ready for production uses. For this, please refer to other open-sources PINN libraries such as DeepXDE or PINA.

Basic implementation of physics-informed neural networks (PINNs) for solving ordinary and partial differential equations. There are few self-contained scripts in this repository:

  • basic_pinn/logistic_equation_1d.py: Solve the logistic equation, a 1D first order ordinary differential equation.
  • basic_pinn/wave_equation_1d.py: Solve the wave equation for a vibrating string attached on both ends. This is a 2-dimensional problem with one spatial dimension and one time dimension.

The utility module basic_pinn/pinn.py includes some common routines needed to setup a PINN.

These scripts are self-contained and they will train the PINN and plot the results. Check the code for more details on the differential equation solved. To execute any of these scripts, we recommend to use the uv package manager:

# execute the 1D logistic equation
uv run python basic_pinn/logistic_equation_1d.py

# execute the 1D wave equation
uv run python basic_pinn/wave_equation_1d.py --batch-size 50 --learning-rate 0.0075 --num-epochs 1500

About

Basic implementation of physics-informed neural networks for solving differential equations

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.