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.
Computed with Scimba
A few of the Scimba examples, with their code.
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.
One code, JAX or PyTorch
Every module is written once through the scimba
backend layer. The Code page gives more details.
JAX
Fast automatic differentiation, jit compiled
programs and vmapped (batched) classical solvers: a batch
of problems is one compiled program.
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.