AI4XDE is a library for scientific machine learning and physics-informed learning
Project description
AI4XDE
Description
AI4XDE is a comprehensive library for scientific machine learning and physical information networks. AI4XDE aims to decouple specific algorithms from specific examples, using examples as input parameters for neural networks, so that all examples can be calculated in one programming operation. Writing neural network algorithms and examples according to the interface paradigm used in the AI4XDE library can quickly test the stability of algorithms on different examples and accelerate experimental progress; At the same time, it can also enable the completion of calculation examples, which can be tested and compared on different neural network algorithms.
Currently, AI4XDE supports the following algorithms:
- PINN
- Uniform
- Random_ R
- RAR_ D
- RAR_ G
- RAD
- R3Sampling
- HPO
- gPINN
- FI-PINN
- FBPINN
Currently, AI4XDE supports the following examples:
- Formula based approximate function calculation example
- Data based formula approximation examples
- A simple ODE calculation example
- Lotka Volterra equation
- Second Order ODE
- Poisson equation in 1D with Dirichlet boundary conditions
- Poisson equation in 1D with Dirichlet/Neumann boundary conditions
- Poisson equation in 1D with Dirichlet/Robin boundary conditions
- Poisson equation in 1D with Dirichlet/Periodic boundary conditions
- Poisson equation in 1D with Dirichlet/PointSetOperator boundary conditions
- Poisson equation in 1D with hard boundary conditions
- Poisson equation in 1D with Multi-scale Fourier feature networks
- Poisson equation over L-shaped domain
- Inverse problem for the Poisson equation with unknown forcing field
- Inverse problem for the fractional Poisson equation in 1D
- Inverse problem for the fractional Poisson equation in 2D
- Poisson equation in 2D peak problem
- Laplace equation on a disk
- Euler Beam
- Helmholtz equation over a 2D square domain
- Helmholtz equation over a 2D square domain with a hole
- Helmholtz sound-hard scattering problem with absorbing boundary conditions
- Kovasznay Flow
- Burgers equation
- Heat equation
- Diffusion equation
- Diffusion-reaction equation
- Allen Cahn equation
- Klein-Gordon equation
- Beltrami flow
- Schrodinger equation
- Wave propagation with spatio-temporal multi-scale Fourier feature architecture
- Wave equation
- Integro-differential equation
- Volterra IDE
- Fractional Poisson equation in 1D
- Fractional Poisson equation in 2D
- Fractional Poisson equation in 3D
- Fractional_Diffusion_1D
- Inverse problem for the Lorenz system
- Inverse problem for the Lorenz system with exogenous input
- Inverse problem for Brinkman-Forchheimer model
- Inverse problem for the diffusion equation
- Inverse problem for the Diffusion-reaction equation
- Inverse problem for the Navier-Stokes equation of incompressible flow around cylinder
- Bimodal in 2D
- Flow in a Lid-Driven Cavity
- Convection equation in 1D with Periodic boundary conditions
- Harmonic Oscillator 1D
Installation
Since AI4XDE is based on the DeepXDE library, you need to first install the DeepXDE library.
DeepXDE requires one of the following dependencies to be installed:
- TensorFlow 1.x: TensorFlow>=2.7.0
- TensorFlow 2.x: TensorFlow>=2.2.0, TensorFlow Probability>=0.10.0
- PyTorch: PyTorch>=1.9.0
- JAX: JAX, Flax, Optax
- PaddlePaddle: PaddlePaddle (develop version)
Please install the above dependencies as a baseline before installing DeepXDE
Subsequently, you can use the following method to install AI4XDE
- Install using 'pip':
$ pip install ai4xde
- Install using 'conda':
$ conda install -c xuelanghanbao ai4xde
- For developers, you should clone the folder to your local machine and put it along with your project scripts:
$ git clone https://gitee.com/xuelanghanbao/AI4XDE.git
Instructions
AI4XDE separates algorithms from examples, where algorithm templates are stored in the solver
folder, and specific algorithms implemented based on algorithm templates (such as PINN, R3Sampling, etc.) are stored in the algorithms
folder. The calculation template and specific calculation examples (such as Burgers, AllenCahn, etc.) are stored in the cases
folder.
Contribution
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ai4xde-0.4.1.tar.gz
.
File metadata
- Download URL: ai4xde-0.4.1.tar.gz
- Upload date:
- Size: 24.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8897d15ee358499ba109d7e13333f9343a7550c7cd02acf2dcd66347c802a482 |
|
MD5 | d759b52502fd5354ac1aabde9a3d36bb |
|
BLAKE2b-256 | d1b45231e2e49745edaabe94f2d492807ca419b9cc4bfa8c64e9ed7fc09cc256 |
File details
Details for the file ai4xde-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: ai4xde-0.4.1-py3-none-any.whl
- Upload date:
- Size: 24.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5d8c16b349c946b7aa9052b155ab771fc83447999af2dab493e479c6c69e4c8 |
|
MD5 | afd385dd089986b86f96cc274a69b57b |
|
BLAKE2b-256 | 5cb04cba1426730ab682fb4f3281ae5c938ece408d1771327ab831b2a158e107 |