Skip to main content

License CI PyPI version

Folax: Solution and Optimization of parameterized PDEs

Finite Operator Learning (FOL) with JAX constitutes a unified numerical framework that seamlessly integrates established numerical methods with advanced scientific machine learning techniques for solving and optimizing parametrized partial differential equations (PDEs). In constructing a physics-informed operator learning approach, FOL formulates a purely physics-based loss function derived from the Method of Weighted Residuals, allowing discrete residuals—computed using classical PDE solution techniques—to be directly incorporated into backpropagation during network training. This approach ensures that the learned operators rigorously satisfy the underlying governing equations while maintaining consistency with established numerical discretizations. Importantly, this loss formulation is agnostic to the network architecture and has been successfully applied to architectures such as Conditional Neural Fields, Fourier Neural Operators (FNO), and DeepONets.

FOL has been applied in the following scientific studies:

  • A Physics-Informed Meta-Learning Framework for the Continuous Solution of Parametric PDEs on Arbitrary Geometries [arXiv].
  • Finite Operator Learning: Bridging Neural Operators and Numerical Methods for Efficient Parametric Solution and Optimization of PDEs [arXiv].
  • Digitalizing metallic materials from image segmentation to multiscale solutions via physics informed operator learning [npj Computational Materials].
  • A Finite Operator Learning Technique for Mapping the Elastic Properties of Microstructures to Their Mechanical Deformations [Numerical Methods in Eng.].
  • SPiFOL: A Spectral-based physics-informed finite operator learning for prediction of mechanical behavior of microstructures [J. Mechanics and Physics of Solids].

We built upon several widely adopted Python packages, including JAX for high-performance array computations on CPUs and GPUs, PETSc for the efficient solution of large-scale linear systems, Metis for mesh partitioning (integration forthcoming), Flax for constructing modular and flexible neural networks, Optax for applying state-of-the-art gradient-based optimization algorithms, and Orbax for efficient checkpointing and serialization. This foundation ensures scalability, computational efficiency, and ease of use in large-scale training and simulation workflows.

Installation

CPU installation

To install folax using pip (recommended) for CPU usage you can type the following command

pip install folax[cpu]

GPU installation

To install folax using pip (recommended) for GPU usage you can type the following command

pip install folax[cuda]

Developer installation

If you would like to do development in folax, please first clone the repo and in the folax folder, run the following command

pip install -e .[cuda,dev]

Contributing

If you would like to contribute to the project, please open a pull request with small changes. If you would like to see big changes in the source code, please open an issue or discussion so we can start a conversation.

Metadata

Release files for folax 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for folax 0.0.2
File Interpreter ABI Platform Actions
folax-0.0.2-py3-none-any.whl Python 3 none any Details for folax-0.0.2-py3-none-any.whl

Release files / folax-0.0.2-py3-none-any.whl

Download URL folax-0.0.2-py3-none-any.whl
Size 94.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67d8b382900196ab52ad6a815592f3cf68f1aeedf0ad078880d2c8f5e722347d
BLAKE2b-256 checksum
How to use checksums
093c145f5e940f657b9f89b80c3664483df57c7d862ab1e93e4afb2299112380
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for folax 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page