RBFLAB · Scientific computing in Python

Radial basis functions.
From equations to solutions.

A Python library for interpolation and PDEs on scattered nodes. Start with an equation and a curved domain, or build local weights and sparse operators for your own algorithm. The tutorials connect each mathematical choice to the Python object that represents it.

pip install rbflabPython 3.11+ · Open source · Source version 0.9.0
Generated nodes on domains with obstacles, curved holes, concave edges and a 3D volume
Named boundaries, curved holes, concave polygons and 3D volumes. Build your geometry →

Explore the manual

Getting started

Install the library and solve a Poisson problem. Connect the equation, point cloud, discretization, and solution.

Tutorials

Follow the mathematics into code: interpolate data, solve PDEs on curved domains, and assemble your own sparse algorithm.

Mathematical foundations

Understand kernel conventions, polynomial constraints, local Hermite systems, conditioning, and error measures.

Python API reference

Inspect operators, local weights, sparse matrices, spaces, precision settings, and the available backends.

From approximation to your algorithm

RBFLAB 0.5 makes ordinary RBF-FD and Hermite constructions explicit through LocalApproximation. Declare source functionals and target operators, then assemble LHI and a heat time loop with sparse matrices. Install or upgrade to rbflab>=0.5 to use these interfaces.

Source version 0.9.0 builds mixed polynomial blocks in C++, sends indexed observations to workers, and supports native factor reuse. Existing Python/C++ LU Stokes LHI obtains its weights from the same engine. See the Stokes weight adapter and source installation instructions.

Spaces and sampled functionals become local systems, named sparse blocks and user-written algorithms

One problem, several numerical methods

Keep the equation and cloud, then change the approximation. The manual explains what each system solves for and how to assess its result.

MethodGlobal unknownsMatrix
Global collocationKernel expansion coefficientsDense
Local Hermite interpolationInterior solution-center valuesSparse
RBF finite differencesNodal valuesSparse
Divergence-free StokesVelocity and pressure-space coefficientsCoupled

Choose a problem and see how it works

For a guided learning sequence, choose interpolation, PDEs, or custom algorithms. Instructors can use the teaching guide and modification exercises.

Computed heat diffusion on a flower-shaped domain

Heat on a flower

Solve a forced transient equation with nonzero boundary data on a curved domain.

Each tutorial states its equations, numerical recipe and limitations. The cavity image illustrates an experimental coarse-cloud demonstration with a measured divergence defect; it is not a benchmark result. Explore the full learning route →

Tutorial module commands run from a source checkout. Some tutorials use a shared helper in the examples folder; keep that folder together. The cavity chapter shows the maintained solver itself, including assembly and the time loop.