Published 2025 | Version v1
Software Open

Physics-Informed Neural Networks: Python Codes for Solving ODEs, ODEs systems, PDEs, and St. Venant Equations (Beta version)

Authors/Creators

Description

This repository contains Python implementations of Physics-Informed Neural Networks (PINNs) and traditional numerical methods for solving a variety of differential equations commonly found in physical modeling. The codes are designed as a computational framework for experimentation and leaning.

The collection includes:

  • Neural network approximations of univariate functions and parametric functions.

  • PINN solutions for ordinary differential equations (ODEs), for ODE systems and for partial differential equations (PDEs).

  • PINN and Finite Difference solutions of the St. Venant equations, to compare the performance of both methods.

  • Visualization of activation functions: logistic, tanh and relu.

These codes are intended for people interested in computational modeling, scientific machine learning, and the application of neural networks to physical problems. Users can adapt the scripts to different equations, boundary/initial conditions, or neural network architectures.

Files

StVenant-PINN.ipynb

Files (4.2 MB)

Name Size Download all
md5:4b6d0789c1d10a5b90fa6cce4c3e333a
143.1 kB Preview Download
md5:f724a00da2df2fafebd44742d74b3b89
210.7 kB Preview Download
md5:25addd6bc0db4f6fa12e4ad80367e899
223.7 kB Preview Download
md5:a15acf1c52ccda291247185dd5dd8a36
742.3 kB Preview Download
md5:218442291a650e52f22b43f9f82325a4
423.1 kB Preview Download
md5:fe7ad057e041b1f09932847814bda2f3
35.2 kB Preview Download
md5:3c4e9af0e2c3746e714898e639e735b3
988.2 kB Preview Download
md5:e6cc9ee73e2c2e2253e1cc6f6e6ae3f0
1.5 MB Preview Download

Additional details

Software

Programming language
Python