Skip to main content

RBFLAB

RBFLAB is a Python library for radial basis function interpolation and PDEs on point clouds. It supports global collocation, local Hermite interpolation (LHI), RBF-FD, symbolic linear operators and boundary conditions, and divergence-free velocity spaces. Scalar operators work in 2D and 3D.

Source and examples: https://github.com/LDBreton/RBFLAB

Install the Python core with:

python -m pip install rbflab

Optional extras include rbflab[examples] for Matplotlib plots and GIFs, rbflab[mesh] for Gmsh, and rbflab[torch] for the documented CPU Float64 tensor backend. The C++ double/MPFR backends are source-build options.

RBFMeshGen is integrated in version 0.2: labeled planar domains, holes, 3D regions and explicit 2D staggered layouts share the solver PointCloud contract. Shapely is a core dependency; Matplotlib, Gmsh and PyTorch remain optional.

from rbflab import geometry, meshgen
cloud = meshgen.generate(geometry.Annulus(), interior=240, boundary=144, seed=42)

Explore curved-domain tutorials for annular Laplace and Stokes, flower-shaped heat diffusion, mixed ellipse boundaries and Poisson inside a 3D ball.

Here is a symbolic Poisson problem:

import sympy as sp
import rbflab as rbf

model = rbf.SymbolicScalar(2)
u = model.field
x, y = model.coordinates
exact = sp.sin(sp.pi*x) * sp.sin(sp.pi*y)
lhs = -model.laplacian(u)
problem = model.stationary(
    sp.Eq(lhs, lhs.subs(u, exact).doit()),
    boundary=[model.bc("boundary", sp.Eq(u, 0))],
)
cloud = rbf.unit_box_grid(5)
solution = problem.solve(
    cloud, rbf.GlobalCollocation(rbf.IMQ(2), scheme="asymmetric")
)
print(solution.evaluate([[0.3, 0.4]]))

The source repository also contains short heat, Stokes, 3D operator, custom kernel, and Re=100 lid-driven cavity examples. The cavity example is a showcase with a documented nonzero discrete divergence defect; it does not validate a general Navier–Stokes solver. LHI off-node reconstruction has its own accuracy limitations, and MPFR local weights do not automatically make a global sparse solve extended precision.

The documentation site includes a getting-started guide and generated API reference.

RBFLAB is licensed under MIT.

Metadata

Release files for rbflab 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rbflab 0.2.0
File Size Uploaded Provenance Actions
rbflab-0.2.0.tar.gz 5.4 MB With provenance Details for rbflab-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rbflab 0.2.0
File Interpreter ABI Platform Actions
rbflab-0.2.0-py3-none-any.whl Python 3 none any Details for rbflab-0.2.0-py3-none-any.whl

Total release size: 5.6 MB

Release files / rbflab-0.2.0.tar.gz

Download URL rbflab-0.2.0.tar.gz
Size 5.4 MB
Tags Source
SHA-256 checksum
How to use checksums
bbcbec1c2cbc348fdb295401a3d3030c637fcfd6f1ba20bfc0f3011ff092ff1c
BLAKE2b-256 checksum
How to use checksums
11a6b072818174aa1ae4f01f2d675dc4a37bf2d0c4068195fa0e2b6f272478ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / rbflab-0.2.0-py3-none-any.whl

Download URL rbflab-0.2.0-py3-none-any.whl
Size 174.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c48fa2a1d7cc96cfa9edcf8699070e74ae42a21cb398adbd3c24a1b3d06ea682
BLAKE2b-256 checksum
How to use checksums
72a7088f79d6f6458ca13e89f1a4df66c5a38e2c1f653f7c02ba8f85b65195f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Security for rbflab 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rbflab-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page