Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
59cc6c9
Add saving and module for hard constraint
Jan 27, 2025
d850296
New functionspace
Jan 30, 2025
74cdcfe
First idea for new functionsets
Feb 14, 2025
af55249
Update functionsets
Feb 28, 2025
ef519d0
Add new domains
Feb 28, 2025
36a3001
Add small dataset for FNO 2d example
Mar 4, 2025
8114b57
Rename FunctionSamplers and clean up folders
Mar 12, 2025
0c54bab
update init
Mar 13, 2025
b9369b6
faster random point sampling (avoid warnings)
nheilenkoetter Mar 13, 2025
5c6f44d
Add test and documentation
Mar 19, 2025
e24874f
Merge branch 'main' of https://github.com/TomF98/torchphysics into main
Mar 19, 2025
c1c76c7
Add safety stop when sampling does not work
Mar 19, 2025
24ff73c
Fix animation for python version 3.10
Mar 19, 2025
6480b05
typo
Mar 20, 2025
5e58eb6
add subsampling behaviour for discrete grids
nheilenkoetter Mar 20, 2025
0d67f7b
fix error
nheilenkoetter Mar 20, 2025
9b9c813
Update FNO examples
Mar 31, 2025
3184b99
Add PINO (difference schemes)
Mar 31, 2025
fdafbb9
Clean Up and more tests
Mar 31, 2025
ed08b97
Merge branch 'main' of https://github.com/TomF98/torchphysics into main
Mar 31, 2025
3bdbd1b
Improve and generalize BranchNets in DeepONets
nheilenkoetter Apr 3, 2025
49027dd
fix imports
nheilenkoetter Apr 3, 2025
a7e97a4
fix DeepONet tests
Apr 3, 2025
e79d0da
fix BranchNet tests
nheilenkoetter Apr 4, 2025
462dc8c
Add PCANN
Apr 4, 2025
c5ae0a3
Merge branch 'main' of https://github.com/TomF98/torchphysics into main
Apr 4, 2025
18d88c8
Update examples and better structure
Apr 9, 2025
a014f73
Fix typo
Apr 9, 2025
2ef1860
Improve/Fix DeepONets
Apr 10, 2025
f3c3cac
Add tests for PCANN
Apr 10, 2025
c837808
typo
Apr 15, 2025
26fabcd
Merge branch 'main' of https://github.com/TomF98/torchphysics into main
Apr 15, 2025
76ecab3
Update readme and changelog
May 7, 2025
1055143
Merge branch 'main' of https://github.com/TomF98/torchphysics into main
May 7, 2025
cee9262
Fix typo
May 7, 2025
7a3c9a2
Add Janek
May 7, 2025
89ee908
Fix readme link
May 7, 2025
32cd91e
typo left_boundary
May 8, 2025
27d3d8d
test notebook visualization issue github
May 8, 2025
9c71897
test visualization github
May 8, 2025
48eb319
delete test file
May 8, 2025
5edcc1c
repair remaining github visualization issues
May 8, 2025
cf40165
Remove doc building from forks
May 8, 2025
6d8af44
Tutorial PIDeepONet with new syntax
May 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/docs-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ concurrency:

jobs:
build-docs:
if: github.repository == 'boschresearch/torchphysics'
runs-on: [ubuntu-latest]
container: python:3.10-bookworm
steps:
Expand All @@ -41,6 +42,7 @@ jobs:

# Deployment job
deploy-docs:
if: github.repository == 'boschresearch/torchphysics'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Contributors
* Nick Heilenkötter, nheilenkoetter <nick7@uni-bremen.de>
* Tom Freudenberg, TomF98 <tomfre@uni-bremen.de>
* Daniel Kreuter, dkreuter <danielChristopher.Kreuter@de.bosch.com>
* Janek Gödeke, kenaj123 <janek-goedeke@uni-bremen.de>
14 changes: 14 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,17 @@ Version 1.0.1
Version 1.0.2
=============
- Test for python versions up to 3.10


Version 1.1.0
=============
- Rework of operator learning functionalities:
- Simplification of function spaces
- Restructuring of function set class (distinguishing between continuous and discrete functions)
- Addition of function samplers
- Generalization of operator training conditions
- Rework of DeepONet and FNO implementation, to make them compatible with the above changes
- Added PCANN and corresponding data analysis tools (PCA)
- Simplified saving and loading of neural networks
- Added discrete differential operators
- Updated operator learning examples
23 changes: 13 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ You can use TorchPhysics e.g. to
- solve ordinary and partial differential equations
- train a neural network to approximate solutions for different parameters
- solve inverse problems and interpolate external data
- learn function operators mapping functional parameters to solutions

The following approaches are implemented using high-level concepts to make their usage as easy
as possible:

- physics-informed neural networks (PINN) [1]_
- QRes [2]_
- the Deep Ritz method [3]_
- DeepONets [4]_ and Physics-Informed DeepONets [5]_
- Physics-informed neural networks (PINN) [1]_
- The Deep Ritz method [2]_
- DeepONets [3]_ and physics-informed DeepONets [4]_
- Fourier Neural Operators (FNO) [6]_ and physics-informed FNO
- Model order reduction networks (PCANN) [7]_

We aim to also include further implementations in the future.

Expand Down Expand Up @@ -50,7 +52,7 @@ Some built-in features are:
- pre implemented fully connected neural network and easy implementation
of additional model structures
- sequentially or parallel evaluation/training of different neural networks
- normalization layers and adaptive weights [6]_ to speed up the training process
- normalization layers and adaptive weights [5]_ to speed up the training process
- powerful and versatile training thanks to `PyTorch Lightning`_

- many options for optimizers and learning rate control
Expand Down Expand Up @@ -154,8 +156,9 @@ TorchPhysics uses an Apache License, see the LICENSE_ file.
Bibliography
============
.. [1] Raissi, Perdikaris und Karniadakis, “Physics-informed neuralnetworks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations”, 2019.
.. [2] Bu and Karpatne, “Quadratic Residual Networks: A New Class of Neural Networks for Solving Forward and Inverse Problems in Physics Involving PDEs”, 2021
.. [3] E and Yu, "The Deep Ritz method: A deep learning-based numerical algorithm for solving variational problems", 2017
.. [4] Lu, Jin and Karniadakis, “DeepONet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operators”, 2020
.. [5] Wang, Wang and Perdikaris, “Learning the solution operator of parametric partial differential equations with physics-informed DeepOnets”, 2021
.. [6] McClenny und Braga-Neto, “Self-Adaptive Physics-Informed NeuralNetworks using a Soft Attention Mechanism”, 2020
.. [2] E and Yu, "The Deep Ritz method: A deep learning-based numerical algorithm for solving variational problems", 2017
.. [3] Lu, Jin and Karniadakis, “DeepONet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operators”, 2020
.. [4] Wang, Wang and Perdikaris, “Learning the solution operator of parametric partial differential equations with physics-informed DeepOnets”, 2021
.. [5] McClenny und Braga-Neto, “Self-Adaptive Physics-Informed NeuralNetworks using a Soft Attention Mechanism”, 2020
.. [6] Zong-Yi Li et al., "Fourier Neural Operator for Parametric Partial Differential Equations", 2020
.. [7] Kaushik Bhattacharya et al., "Model Reduction And Neural Networks For Parametric PDEs", 2021
Loading