Here is a gallery of tutorials and examples to get you started with ScimBa.
Tutorials¶
Each tutorial is a single Jupyter notebook that helps you get started with Scimba.
Solve 2D Laplacian problems with Dirichlet boundary conditions.
Setup an equation for applying preconditioners.
Learn how to define and work with computational domains.
Learn how to define physical models and PDEs in Scimba for different problem types.
Learn how to approximate a function given as an evaluation procedure with a network based approximation space.
Save and load PINNs.
Implementation of strong boundary conditions in 2D problems.
Handling mixed boundary conditions.
Explore time discretization methods for temporal PDEs.
Scimba optimizers how to.
How to define and tune losses and losses weights.
Examples¶
Each example is a single Jupyter notebook.
Solves the viscous Burgers advection equation in 1D using a PINN.
Solves an inhomogeneous Helmholtz equation using a PINN and a MLP with multi-scale Fourier features.
Solves the linearized Euler system using a PINN.
Solves a 2D grad div system with PINNs.
Solves a 2D div A grad u system with the deep Ritz method.
Solves a 2D Navier Stokes system with PINNs.
Solves a 2D laplacian on a disk with the deep Ritz method.
Learns the flow of a pendulum ODE with different training strategies.
Solves a kinetic Vlasov equation in 1D with neural Semi-Lagrangian approach.
Solves a rotating transport equation in 2D with neural Galerkin approach.
Solves a 2D heat equation with discrete pinns using implicit scheme.
Solves a transport equation in a cylinder with neural Semi-Lagrangian approach.
Solves the advection of a 3D level-set function with neural Semi-Lagrangian approach.
Learns the Signed Distance Function of a shape given as a file of points on its contour.
A complete list of PyTorch script examples is available in the examples/examples_torch/
directory of the repository.
Scimba API documentation¶
Basic configuration¶
Please refer to the basic configuration page for an overview
of scimba_torch global parameters.
Available Packages¶
Defines the approximation space and its components. |
|
Defines mesh-based and meshless domains. |
|
Various numerical integrators for ODEs. |
|
Integration methods for volumetric and surfacic domains. |
|
A module implementing tools for geometry learning. |
|
Defines neural networks. |
|
Defines numerical solvers. |
|
Scimba optimizers and losses. |
|
Defines physical models. |
|
Plot utilities. |
|
Utility functions and classes. |