Finite Operator Learning (FOL) combines neural operators, physics-informed machine learning, and classical numerical methods to solve and optimize parametrically defined partial differential equations (PDEs). In essence, FOL directly utilizes the discretized residuals of governing equations during the backpropagation step of training, enabling the integration of traditional numerical methods—such as finite element methods (FEM). The advantages of this approach are thoroughly studied and detailed in FOL's publication.
- Python-based framework built on JAX, leveraging key features like auto-vectorization with jax.vmap(), just-in-time compilation with jax.jit(), and automatic differentiation with jax.grad() for high-efficiency computations on CPUs, GPUs, and TPUs. This framework integrates seamlessly with Flax for building modular and flexible neural networks, Optax for applying state-of-the-art gradient-based optimization algorithms, and Orbax for efficient checkpointing and serialization, ensuring scalability and ease of use in large-scale training processes.
- Easily implement the weak form of desired PDEs in Python; the framework handles the rest for highly efficient neural operator learning, PINNs, and finite element simulations.
- FOL utilizes the mesh_io library for seamless mesh and result file handling, and PETSc4py for efficiently solving large-scale linear systems.
To install FOL, follow these steps:
git clone https://github.com/RezaNajian/FOL.git
cd FOL
python3 setup.py sdist bdist_wheel
pip install -e .
To run the tests:
pytest -s tests/
To run the examples:
cd examples
python3 examples_runner.py
Please, use the following references when citing FOL in your work.
- Shahed Rezaei, Reza Najian Asl, Kianoosh Taghikhani, Ahmad Moeineddin, Michael Kaliske, and Markus Apel. "Finite Operator Learning: Bridging Neural Operators and Numerical Methods for Efficient Parametric Solution and Optimization of PDEs." arXiv preprint arXiv:2407.04157 (2024).
- Shahed Rezaei, Reza Najian Asl, Shirko Faroughi, Mahdi Asgharzadeh, Ali Harandi, Rasoul Najafi Koopas, Gottfried Laschet, Stefanie Reese, Markus Apel. "A finite operator learning technique for mapping the elastic properties of microstructures to their mechanical deformations." arXiv preprint arXiv:2404.00074 (2024)