Kernels and geometry¶
Kernel shape parameters use the conventions in their docstrings. Polynomial
augmentation is selected on the approximation space: None omits polynomial
columns, an integer requests that exact degree, and "auto" selects the
kernel's minimum degree. An integer below the conventional CPD minimum is
accepted, though solvability and accuracy can be affected; see
equations and spaces.
rbflab.IMQ(c=1.0)
¶
Legacy convention: (1 + c*r2)(-1/2).
rbflab.Gaussian(c=1.0)
¶
Return the Gaussian scalar kernel exp(-c*r**2).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
c
|
float
|
Positive coefficient of squared physical distance. |
1.0
|
rbflab.PHS
dataclass
¶
Signed odd polyharmonic spline, conditionally positive definite.
phi(r)=(-1)((power+1)//2) * rpower, power in {3,5,7,9}. Requires polynomial degree >= (power-1)//2. No shape parameter.
rbflab.Hybrid
dataclass
¶
smooth(r) + weight * signed_PHS(r); requires PHS polynomial augmentation.
Negative weights require explicit allow_indefinite=True for historical experiments; positive-definiteness guarantees do not apply to that sum. Distances are physical coordinates; weight is dimensional and must be chosen consistently when rescaling geometry.
rbflab.DivergenceFree
dataclass
¶
2D Hessian(psi) - I*Laplacian(psi); output (Nx, Ny, 2, 2).
rbflab.Kernel
dataclass
¶
Symbolic radial kernel family with runtime-bound parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
expression
|
object
|
SymPy formula in |
required |
radial_variable
|
object
|
SymPy symbol representing squared radius |
required |
parameters
|
tuple
|
Tuple of runtime SymPy parameter symbols. |
()
|
minimum_degree
|
int
|
Required minimum polynomial degree, or |
-1
|
dimension
|
int | None
|
Optional restriction to 2D or 3D. |
None
|
Call the family with named parameter values to obtain a bound kernel.
compile(...) caches a validated native implementation when available.
rbflab.Wendland(*, smoothness=6, dimension=2, radius=1)
¶
Normalized Wendland C0/C2/C4/C6 kernels for dimension 2 or 3.
radius is the physical support radius, a runtime parameter in generated C++.
rbflab.PointCloud
dataclass
¶
Validated 2D or 3D coordinates with tagged boundary nodes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
ndarray
|
Finite, unique coordinates with shape |
required |
boundary
|
dict
|
Mapping from boundary label to arrays of point indices. |
required |
normals
|
dict
|
Mapping from labels to unit-normal arrays matching their nodes. |
required |
triangles
|
ndarray
|
Optional |
(lambda: empty((0, 3), dtype=int))()
|
interfaces
|
dict
|
Named internal-interface node indices (remain interior). |
dict()
|
regions
|
dict
|
Named region node indices, which may overlap. |
dict()
|
rbflab.geometry
¶
Geometry containers and domains, independent of numerical PDE methods.
rbflab.meshgen
¶
Point generation; imports no plotting library or PDE solver.
Use generate() for an array PointCloud. RBFMesh and RBFMesh3D retain the object-list APIs, including FreeFEM-inspired Border(n) geometry construction.