Open source · JAX or PyTorch

Scientific Machine Learning for PDEs

Scimba composes classical numerical methods (finite elements, finite volumes, discontinuous Galerkin) with nonlinear ones (PINNs, neural operators, reduced models). One code base runs on JAX or PyTorch.

Goal of Scimba

Scimba is a library for hybrid numerical methods

It includes classical methods, like finite elements, finite volumes or discontinuous Galerkin, as well as nonlinear ones, like PINNs or neural operators. Scimba's end goal is to provide hybrid numerical methods, which compose classical and nonlinear ones, to help high-dimensional simulations achieve greater efficiency and accuracy by combining the best of both worlds.

Nonlinear approximation

PINNs

Physics-informed networks trained directly on the PDE residual.

Optimizers

Adam, L-BFGS, SS-BFGS, SS-Broyden and natural-gradient methods for neural models.

Neural operators

Operator-learning architectures for parametric solution maps.

Linear approximation

DG / FEM / FV

Finite element, discontinuous Galerkin and finite volume schemes on structured, unstructured and multipatch meshes, with Lagrange, B-spline, Hermite-Bezier and de Rham spaces, and multigrid, Schwarz and sparse direct solvers.

Kernel methods

RBF and kernel-based approximation spaces.

ROMs

Linear and nonlinear reduced-order models built from snapshots, with hyper-reduction.

Hybrid methods

Hybrid approximation spaces

Combine network-based and classical linear spaces within the same least-squares training loop.

Hybrid ROMs

Reduced-order models enriched with nonlinear manifold corrections.

Backends

One code, JAX or PyTorch

Every module is written once through the scimba backend layer. The Code page gives more details.

Default

JAX

Fast automatic differentiation, jit compiled programs and vmapped (batched) classical solvers: a batch of problems is one compiled program.

Discover the code →
Same code

PyTorch

SCIMBA_BACKEND=torch runs the same code on PyTorch, tested in CI on both backends. For now the PyTorch backend is slower than JAX.

How the backend layer works →

Installation instructions

Install Scimba with uv add "scimba[jax]" (add the torch extra, uv add "scimba[jax,torch]", to run on PyTorch) and follow the tutorials.

Get started →