numgrids¶
Working with numerical grids made easy.
numgrids gives you a high-level, NumPy-friendly API for numerical grids, differentiation matrices, and coordinate transformations — so you can focus on the physics or mathematics of your problem instead of bookkeeping grid indices and scale factors.
Equidistant, Chebyshev, logarithmic, and periodic axes, and axes for unbounded domains. Tensor-product grids in any dimension.
FFT, Chebyshev, and finite-difference methods — selected automatically. Sparse matrix export for PDE solves.
Built-in spherical, cylindrical, and polar grids with gradient, divergence, curl, and Laplacian.
Dirichlet, Neumann, and Robin BCs at the array level or inside sparse linear systems.
Combine operators like formulas, then solve() boundary
value problems or eig() eigenvalue problems, with fast
direct solvers chosen automatically.
Newton’s method for nonlinear boundary value problems: just write down the residual. Continuation follows solution branches around folds.
Method-of-lines time stepping for heat, wave and Schrödinger equations, with Dirichlet, Neumann and Robin boundaries, time-dependent boundary values and an exponential integrator.