pinns-and-ipinns-pytorch
This repository hosts my PyTorch implementations of PINN (Physics-Informed Neural Network) and iPINN (inverse Physics-Informed Neural Network) from the tutorial https://towardsdatascience.com/inverse-physics-informed-neural-net-3b636efeb37e
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.4%) to scientific vocabulary
Repository
This repository hosts my PyTorch implementations of PINN (Physics-Informed Neural Network) and iPINN (inverse Physics-Informed Neural Network) from the tutorial https://towardsdatascience.com/inverse-physics-informed-neural-net-3b636efeb37e
Basic Info
Statistics
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
PINNS and iPINNS in Pytorch
This repository hosts my PyTorch implementations of PINN (Physics-Informed Neural Network) and iPINN (inverse Physics-Informed Neural Network) from the tutorial https://towardsdatascience.com/inverse-physics-informed-neural-net-3b636efeb37e
The original implementations were crafted using TensorFlow and can be accessed at https://github.com/jmorrow1000/PINN-iPINN
Python 3.10.12
PyTorch Version: 2.1.0+cu121
NumPy Version: 1.25.2
Matplotlib Version: 3.7.1
The current implementation concentrates on a PINN and iPINN for the second-order differential equation governing an RLC circuit:
$$ L \frac{d^2 i}{dt^2} + R \frac{di}{dt} + \frac{1}{C} i = 0. $$
Here, $R$, $L$, and $C$ denote the circuit's resistance, inductance, and capacitance, respectively. The variable $i$ represents the current in the circuit, while $t$ signifies time.
PINN results
Below are the results from training a PINN on three test cases: under-damped, critically-damped, and over-damped. For definitions of each scenario, please refer to the original tutorial. Each plot presents a comparison between the analytical solution and the response output from the trained PINN.
iPINN results
Below are the results of applying an iPINN to determine three unknown parameters—R, L, and C—in three different scenarios: under-damped, critically-damped, and over-damped. The tables juxtapose the parameters used to generate the test responses with those inferred by the iPINN. The plots provide a comparison of the analytical solutions and the predictions made by the trained iPINN.
Under-damped scenario:
| Circuit Parameter | Generating Value | iPINN Value | |-------------------|------------------|-------------| | R (ohms) | 1.20 | 1.201 | | L (henries) | 1.50 | 1.499 | | C (farads) | 0.30 | 0.300 |
Critically-damped scenario:
| Circuit Parameter | Generating Value | iPINN Value | |-------------------|------------------|-------------| | R (ohms) | 4.47 | 4.472 | | L (henries) | 1.50 | 1.503 | | C (farads) | 0.30 | 0.299 |
Over-damped scenario:
| Circuit Parameter | Generating Value | iPINN Value | |-------------------|------------------|-------------| | R (ohms) | 6.00 | 6.005 | | L (henries) | 1.50 | 1.500 | | C (farads) | 0.30 | 0.299 |
@software{wojtakpinnipinn_2024,
title = {PINN and iPINN for RLC Circuit Equation in Pytorch},
author = {Weronika Wojtak},
month = feb,
year = 2024,
version = {1.0},
publisher = {GitHub},
repository = {https://github.com/w-wojtak/PINNs-and-iPINNs-Pytorch},
}
Owner
- Name: Weronika Wojtak
- Login: w-wojtak
- Kind: user
- Location: Portugal
- Website: https://w-wojtak.github.io/site/
- Repositories: 1
- Profile: https://github.com/w-wojtak
Postdoc at University of Minho 🧠 🤖
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: PINN and iPINN for RLC Circuit Equation in Pytorch
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Weronika
family-names: Wojtak
email: w.wojtak@gmail.com
repository-code: 'https://github.com/w-wojtak/PINNs-and-iPINNs-Pytorch'
abstract: >-
This repository hosts my PyTorch implementations of PINN
(Physics-Informed Neural Network) and iPINN (inverse
Physics-Informed Neural Network) from the tutorial
https://towardsdatascience.com/inverse-physics-informed-neural-net-3b636efeb37e
version: '1.0'
date-released: '2024-02-22'
GitHub Events
Total
- Watch event: 4
Last Year
- Watch event: 4