Radial Basis Functions Theory
Radial Basis Functions (RBF) use only a distance (typically Euclidean) when constructing the basis. For example, an interpolator for
where
There are several types of RBFs to choose from, some with a tunable shape parameter,
| Type | Function |
|---|---|
| Polyharmonic Spline | |
| Multiquadric | |
| Inverse Multiquadric | |
| Gaussian |
Augmenting with Monomials
The interpolant may be augmented with a polynomial:
where
For instance, in 2D with
When we require the interpolation to be exact on a set of data points
where
and
and
Polynomial augmentation of the system has two benefits:
Increases accuracy, especially for polynomial fields and near boundaries.
Ensures the linear system has a unique solution for certain types of RBFs (conditionally positive definite).
See (Flyer, et al. - On the role of polynomials in RBF-FD approximations: I. Interpolation and accuracy) for more information on this.
Local Collocation
The traditional Kansa approach used in most RBF methods is based on constructing a unique interpolant for all the nodes in the domain. This involves coupling all nodes in the domain simultaneously and therefore makes it a global method. Such a global approach, while theoretically exact, scales poorly: the resulting dense system becomes prohibitively expensive and increasingly ill-conditioned as the number of nodes grows, particularly in 3D, due to the curse of dimensionality. Instead, RadialBasisFunctions.jl employs a local approach, where each node is influenced only by its
Boundary Conditions
Radial Basis Functions can also be used to solve PDEs with various types of boundary conditions (Dirichlet, Neumann, Robin, etc.), when this is done in a meshless context, special considerations must be made to ensure that all local systems, including those near boundaries, remain well-posed. This package enables different approaches for handling boundary conditions, among them, the Hermite approach is suggested when the PDE is to be solved only at interior nodes. Furthermore, it can also be used to interpolate data near the boundary while including boundary conditions where these are known.
Hermite Approach for Boundary Stencils
When a stencil is centered around an internal node but includes boundary nodes, standard RBF collocation can lead to ill-conditioning and singularity issues. This occurs because applying boundary operators
The RBF-HFD (Hermite Finite Difference) method resolves this issue by modifying the basis functions only for stencils near boundaries. Instead of keeping the same basis regardless of boundary conditions and applying the operator to the interpolation conditions (which creates asymmetry), the Hermite approach modifies the basis itself.
For a stencil with
where
The local system becomes:
where subscripts
We remark that the Hermite approach is only applied to stencils that include boundary nodes. For internal stencils far from boundaries, the standard RBF formulation remains unchanged, maintaining computational efficiency where boundary effects are not present.
Constructing an Operator
In the Radial Basis Function - Finite Difference method (RBF-FD), a stencil is built to approximate derivatives using the same neighborhoods/subdomains of
We can find
for each basis function
which leads to an overdetermined problem
which is practically solved as a linear system for the weights
where
where
Hermite Operator Construction
When constructing operators for stencils near boundaries using the Hermite approach, the system is modified to:
where
where
Constructing an Operator Treating Boundary Nodes as Unknowns
In some applications, particularly multi-region or coupled problems, it may be advantageous to solve the governing equation at boundary nodes as well, treating all nodes (interior and boundary) as unknowns in the global system. When this strategy is adopted, an alternative implementation to the Hermite approach becomes available and the usual interpolation scheme can be preserved.
Rather than modifying the basis functions for boundary nodes, this approach maintains the standard RBF basis
When the stencil includes boundary nodes but the evaluation point is interior: Apply the standard RBF-FD method unchanged. Boundary neighbors contribute as regular unknowns with no special treatment.
When the evaluation point itself is on the boundary: Instead of modifying basis functions, modify the right-hand side of the local system. For a boundary point
(the stencil center) with operator , construct the RHS as and rather than using the standard differential operator.
This means the collocation matrix
maintaining symmetry trivially. The local system for a boundary evaluation point becomes:
This approach is significantly simpler than the Hermite method and stencil classification depends only on the evaluation point type, the same RBF basis is used everywhere, and interior stencils with boundary neighbors require no special treatment.
References
Fasshauer, G. E., & McCourt, M. (2015). Kernel-based Approximation Methods using MATLAB. World Scientific. https://doi.org/10.1142/9335
Flyer, N., Fornberg, B., Bayona, V., & Barnett, G. A. (2016). On the role of polynomials in RBF-FD approximations: I. Interpolation and accuracy. Journal of Computational Physics, 321, 21-38. https://doi.org/10.1016/j.jcp.2016.05.026
Shankar, V., Wright, G. B., Kirby, R. M., & Fogelson, A. L. (2015). A radial basis function (RBF)-finite difference (FD) method for diffusion and reaction-diffusion equations on surfaces. Journal of Scientific Computing, 63(3), 745-768. https://doi.org/10.1007/s10915-014-9914-1
Wendland, H. (2004). Scattered Data Approximation. Cambridge University Press. https://doi.org/10.1017/CBO9780511617539
Wright, G. B., & Fornberg, B. (2006). Scattered node compact finite difference-type formulas generated from radial basis functions. Journal of Computational Physics, 212(1), 99-123. https://doi.org/10.1016/j.jcp.2005.05.030