Manuscript Offprint
arXiv:2610.25484KernelPack-JAX: a meshless differentiable GPU framework for node generation and forward and inverse PDE problems
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Alberto Cattaneo , M. Keith Ballard , Robert M. Kirby , Grady B. Wright and Varun Shankar
Kahlert School of Computing, University of Utah, Salt Lake City, UT, 84112, USA
Materials and Manufacturing Directorate, Composite Performance, Air Force Research Laboratory, Wright-Patterson AFB, OH, 45324, USA
Scientific Computing and Imaging Institute, University of Utah, Salt Lake City, UT, 84112, USA
Department of Mathematics, Boise State University, Boise, ID, USA
ARTICLE INFO
Keywords:
radial basis functions
RBF-FD
node generation
partition of unity
differentiable programming
inverse problems
GPU
2020 MSC: 65D12
65M70
65M32
65N35
65N21
65Y05
Abstract
We present KernelPack-JAX, a meshless, differentiable, GPU framework in JAX for solving forward and inverse PDE problems in domains whose boundaries, including internal obstacles, are given only by samples of their smooth pieces. Our node generator is based on a new stacked representation of piecewise-smooth boundaries, in which a parametric partition of unity of each smooth piece induces the supports of a curl-free implicit partition of unity of the whole boundary. This representation keeps the edges and corners of the boundary and classifies every point of space without a global fit. Boundary and interior nodes are then selected by a parallel greedy independent-set algorithm that reproduces sequential Poisson-disk sampling exactly. We discretize elliptic and parabolic problems with radial basis function-generated finite differences (RBF-FD) on stencils selected by a new visibility heuristic to avoid crossing the boundary, with ghost nodes for the boundary conditions. In addition, our framework exposes a GPU sparse direct solver to JAX as a differentiable linear solve, so that Jacobians of time-dependent problems cost a small multiple of a forward solve. We derive error estimates that separate consistency from stability and bound the parameter error by the forward error. We demonstrate high-order convergence for Darcy flow, reaction–diffusion, and advection–diffusion in 2D and 3D domains, including one with an internal obstacle, and show that the recovered parameters largely follow the forward errors. We also present timings for every stage.
1. Introduction
Many applications require the solution of partial differential equations (PDEs) in domains whose geometry is known only through data, such as points sampled from medical images [2, 154] or from images of porous rock [19], scanned surfaces [14, 94], or the output of another computation. Many of these PDEs also contain parameters that must be recovered from measurements of the solution [151], such as the permeability of an aquifer or a reservoir [27, 119, 168], the rates of reactions in models of blood clotting [61, 97], or a velocity field. We consider such forward and inverse problems in two and three dimensions, in domains whose piecewise-smooth boundaries have edges and corners and may include internal obstacles. Our framework is designed to satisfy four criteria. First, the input should be only samples of the smooth pieces of the boundary, from which we generate node sets that respect a prescribed spacing h and keep the edges and corners. Second, the discretization should be of high order and stable near the boundary, even in nonconvex domains. Third, derivatives of the discrete solution with respect to the parameters should cost little more than the solution itself. Fourth, every stage should run in parallel on the GPU.
Meshless methods suit such problems, since they need only nodes in the domain and on its boundary. Radial basis function-generated finite differences (RBF-FD) approximate differential operators on scattered nodes by local interpolation on stencils [29, 144, 155, 166], and have matured into a high-order method for PDEs in complex domains [53, 60, 64, 65]. Flyer, Fornberg, Bayona, and Barnett showed that polyharmonic splines [46] augmented with polynomials converge at the order set by the polynomial degree, with no shape parameter to choose [10, 58]. Bayona [8] explained the roles of the two parts of the basis, and Bayona, Flyer, and Fornberg [9] analyzed the accuracy near domain boundaries. RBF-FD has been applied to nonlinear transport on the sphere [59] and to the Navier–Stokes
*Corresponding author
shankar@cs.utah.edu (V. Shankar)
ORCID(s):
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 1 of 45 equations [57, 135], has been run on multiple GPUs [21], and its parameters have been studied systematically [89, 99]. Our own work has contributed RBF-FD methods for PDEs on surfaces [51, 139, 141], overlapped stencils [136], hyperviscosity stabilization of advection-dominated problems [137, 142], building on [66], and methods for domains with moving boundaries [140]. In a complex domain, RBF-FD replaces the generation of a mesh [69, 124, 146] by two other tasks, the generation of nodes and the closure of the discretization at the boundary. When the PDE contains unknown parameters, a third task is the computation of derivatives of the discrete solution with respect to them.
Node generation for meshless methods has received much attention in the past decade, and Suchde, Jacquemin, and Davydov [152] give a recent survey. Advancing-front methods, which Löhner and Oñate [102, 103] introduced for filling space with points, were made fast and of variable density by Fornberg and collaborators [63, 133], with related algorithms in [158, 170]. Slak and Kosec [147] developed a dimension-independent generator of Poisson-disk type, which underlies the Medusa library [148] and has been parallelized [43] and extended to parametric surfaces [47] and to multi-patch NURBS models (including CAD models) [48]; Jacquemin, Suchde, and Bordas [88] generate and adapt point clouds directly from CAD descriptions. All of these methods take the boundary from an exact or CAD description. In contrast, our earlier node generator [138], on which the present work builds directly, starts from a small number of seed nodes on the boundary. It fits each smooth closed boundary and each embedded object with a parameter-free, high-order parametric model built from spherical RBF interpolants, which supplies the boundary nodes, the normals, and an inside test, and it fills the domain by Poisson-disk sampling in a single pass. The generator has complexity in two and three dimensions and modifies the node set locally when embedded objects move, which our high-order RBF-FD method for advection-diffusion on time-varying domains relies on [140].
A boundary given only by samples, however, may have edges and corners, which no single smooth interpolant represents [56], and classifying points then requires an implicit model of the whole boundary. Radial basis function implicits [26, 157], including Hermite interpolants of points and normals [107], partition-of-unity implicit surfaces [118], and in particular the curl-free partition of unity (CFPU) of Drake, Fuselier, and Wright [45], reconstruct accurate implicit models from oriented points. Our approach is to combine a parametric partition of unity on each smooth piece with a CFPU representation of the whole boundary that shares its supports. This extends the generator of [138] to piecewise-smooth boundaries, including internal obstacles, given by samples of their smooth pieces. Our node generator then samples on the GPU through greedy independent sets, computed by the parallel greedy algorithm of Blelloch, Fineman, and Shun [17, 55], and thus belongs to the literature on parallel Poisson-disk sampling [22, 49, 50, 68, 162].
The second task is the closure at the boundary, where one-sided stencils reduce the accuracy of RBF-FD and can destabilize it [9]. Ghost nodes outside the domain allow both the PDE and the boundary condition to be enforced at the boundary nodes [54, 62, 64, 138, 140]. In nonconvex domains, however, the Euclidean nearest neighbors of a node next to a thin wall can lie on the other side of it. We therefore select our stencils by visibility against the implicit model of the boundary, in the spirit of earlier stencil selection for meshless methods [12, 36–38, 120]. The closure also determines stability. Although the error and stability of nodal meshless methods have been analyzed extensively [39, 40, 134, 156], the stability of collocation on scattered nodes remains open, so we measure it empirically.
The third task, the computation of derivatives with respect to parameters, arises in inverse problems. Global or local RBF collocation and the method of fundamental solutions have been used for coefficient identification [41], inverse heat conduction and source problems [84, 90], Cauchy problems [30], and PDE-constrained optimal control [121]. However, global collocation [92] and the method of fundamental solutions lead to dense and often ill-conditioned systems, which limits them to small problems. Physics-informed neural networks [93, 130] and their Kolmogorov–Arnold variants [145] treat forward and inverse problems alike by training a network on the residual of the PDE and the data, and they do not require a mesh or a node set. In this paper, however, we seek parameters whose error decreases at a prescribed order under refinement and can be bounded by the forward error. We therefore follow the classical approach of PDE-constrained parameter estimation, which differentiates a discretization and solves the resulting nonlinear least-squares problem by Gauss–Newton or Levenberg–Marquardt iterations [73, 74, 81, 91, 153, 159].
Derivatives with respect to the parameters can come from adjoints [127], which dolfin-adjoint derives automatically for finite elements [52, 112], or from automatic differentiation. JAX [23] has led to differentiable solvers for finite differences and finite volumes [15, 82, 95], finite elements [28, 167], and RBF collocation [116], and to implicit differentiation [18] and differentiable linear solvers [101, 128]. For high-order RBF-FD in complex three-dimensional domains, the cost of the derivatives lies in sparse linear solves and long time loops. Reverse-mode differentiation stores every step of a time loop unless it is checkpointed [71, 72, 160], and automatic differentiation does not pass through
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 2 of 45
Table 1
Capabilities of related software, as reported in the cited papers and documentation. A bullet ( ) means yes, a circle ( ) partly, and a dash ( ) no or not documented. The column Geometry refers to domains given by samples or CAD descriptions of piecewise-smooth boundaries in two and three dimensions, which the finite element and neural network frameworks handle through meshes or constructive solid geometry. The column Inverse marks frameworks that support parameter recovery or optimal control.
| Geometry | Nodes | High-order meshless | GPU | Differentiable | ||
|---|---|---|---|---|---|---|
| solve | Inverse | |||||
| Medusa [148] | ● | ● | ● | - | - | - |
| RBF [80] | ○ | ● | ● | - | - | - |
| RadialBasisFunctions.jl [11] | ○ | ● | ● | ○ | ○ | - |
| Compadre [96] | - | - | ● | ● | - | - |
| OpenFPM [86] | - | - | ● | ● | - | - |
| Updes [116] | ○ | - | - | ● | ● | ● |
| DeepXDE [104] | ○ | - | - | ● | ○ | ● |
| PhysicsNeMo [125] | ● | - | - | ● | ○ | ● |
| JAX-FEM [167] | ○ | - | - | ● | ● | ● |
| fea-in-jax [6] | ○ | - | - | ● | ● | ● |
| JAX-Fluids [15] | ○ | - | - | ● | ● | ○ |
| Firedrake, pyadjoint [76, 112] | ○ | - | - | ○ | ● | ● |
| [83] | ○ | - | - | ● | ● | ● |
| KernelPack-JAX | ● | ● | ● | ● | ● | ● |
a sparse direct factorization. Our framework therefore exposes the factorization of a GPU sparse direct solver to JAX with its own derivative rules [70], so that derivatives reuse the factors of the forward solve.
To our knowledge, no existing framework goes from samples of the smooth boundary pieces to node sets, high-order meshless operators, sparse solves, and parameter recovery on the GPU, with derivatives through the operators, the solves, and the time loops (Table 1). We present KernelPack-JAX, a JAX framework that does this, with the following contributions.
-
A stacked boundary representation, in which a parametric partition of unity of local polyharmonic interpolants represents each smooth piece (the parametric layer) and a curl-free partition of unity represents the whole boundary implicitly (the implicit layer). Each parametric support induces exactly one implicit ball, so the two layers share one hierarchy of supports and are refined together. Internal obstacles are represented in the same way as the outer wall (Section 2), and an extension of the implicit layer into the volume classifies every point of space without a global fit (Section 2.5).
-
Parallel node generation, which treats boundary thinning and the dart throwing of interior nodes as greedy independent sets of conflict graphs, computed by the parallel greedy algorithm of [17] extended to sets that must contain given nodes; the result equals the sequential one (Section 2.7).
-
Stencil selection for nonconvex domains by the nearest nodes in a distance measured inside the domain, with visibility [120] decided against the implicit layer. This selection discourages coupling across walls and is Euclidean wherever the nearest nodes are visible (Section 3.2).
-
Differentiable sparse direct solves on the GPU through cuDSS [115], in forward or reverse mode. Time-dependent problems use the third-order semi-implicit backward differentiation formula (SBDF3) [4], with hyperviscosity for advection [66, 137] (Section 3).
-
Parameter recovery through the discretization, with Jacobians that cost a small multiple of a forward solve and memory independent of the number of time steps (Section 4).
-
Error estimates that specialize the stability–consistency framework of [134] to the ghost-node closure with Neumann and Dirichlet rows, the standard IMEX argument to SBDF3, and least-squares perturbation theory [16, 161] to the recovered parameters, which bound the parameter error by the forward error divided by the smallest singular value of the Jacobian (Section 5).
We demonstrate our framework in a curved channel in two dimensions (the H-channel) and in a box with a superelliptic cap in three dimensions (the treasure chest), for Darcy flow, reaction–diffusion, advection–diffusion, and the corresponding inverse problems, with RBF-FD of orders 2, 4, and 6. In a final example, we recover reaction laws
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 3 of 45 from solutions carried by a flow around an internal obstacle, a smaller, rotated copy of the box. The forward solutions converge at high order, and the recovered parameters largely follow the forward errors within the bound of our estimates, except for transport with p = 2 in the treasure chest.
Section 2 presents the stacked boundary representation and our node generator, Section 3 the forward discretization, our stencil selection, and the differentiable solves, and Section 4 the recovery of parameters. Section 5 derives error estimates, Section 6 presents the numerical results, and Section 7 concludes. The appendices contain the node generator parameters, code listings, proofs, and experimental details.
Our generator extends that of [138], in which one global interpolant maps parameters on the circle or the sphere to a smooth boundary of genus zero, the boundary is supersampled and thinned by sample elimination [169], and the domain is filled by Poisson-disk sampling with an inside test against the nearest boundary normal. However, a single global interpolant cannot represent edges and corners, and both sampling stages visit the samples one at a time. We therefore split the boundary into smooth pieces, each represented by a partition of unity of local interpolants, and build on the same supports an implicit layer that replaces the nearest-normal test. Internal obstacles enter as further pieces (Section 2.1), the thinning keeps the features by offering them first, and both sampling stages become greedy independent sets computed on the GPU.
A stacked representation of the boundary A node generator must know where the boundary and its normals lie, and whether a point lies in the domain. A parametric description answers the second question only by inverting the maps or through the nearest boundary normal, which is ambiguous at edges and corners. We therefore describe by three layers, each built from the one below.
-
The data layer consists of the seed nodes of each smooth piece of , with their parameter values, and the trimming loops of each piece, the closed curves in parameter space that bound its parameter region (Section 2.1).
-
The parametric layer consists of one map per smooth piece, a partition of unity of local interpolants of the data over rectangular supports in parameter space (Section 2.2). From its positions and normals we sample the boundary nodes and the ghost nodes (Section 2.3).
-
The implicit layer consists of a single function , a partition of unity of local curl-free fits over balls in (Sections 2.4 and 2.5). Its zero set approximates , its sign places the interior nodes (Section 2.6), and rays traced against it keep the RBF-FD stencils inside the domain (Section 3.2).
Figure 1 shows the three layers for the treasure chest of Section 6.1.
Every layer and both sampling stages run in JAX [23] on the GPU (Section 2.7), and Table 4 in Appendix A.1 lists the parameter values.
2.1. The data layer
We split into smooth pieces, faces of a surface or arcs of a curve, which meet along edges and at corners,
As in [138], a piece is given by seed nodes with parameter values. However, a piece is not closed, so its parameter values fill a region on which we assume has a smooth, injective parameterization. The boundary of consists of the trimming loops of the piece, which map to its edges. For a face, each loop is a polygon in the parameter plane given by its vertices, one for the outer boundary and one per hole; for an arc, is an interval whose endpoints are the vertices. Supersampling fills only the region inside the loops. We denote a parameter by and the outward unit normal of at by .
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 4 of 45
Algorithm 1 Node generation from samples of a piecewise-smooth boundary.
Require: for every smooth piece of every component of (outer wall and internal obstacles): seed nodes, with parameter values or with normals, and the trimming loops of its parameter region (or the exact map of a planar piece); target spacing
Ensure: boundary nodes with normals, ghost nodes , interior nodes , implicit layer
1: assign parameter values to the seed nodes of every piece that has none (Section 2.1, Appendix A.2)
2: fit the parametric layer : solve (11) on every support , refine the cells until all validation nodes pass (Section 2.2, Appendix A.3)
3: derive the feature sites, their normals, and their levels from the edges where the pieces meet (Section 2.3)
4: sample the pieces at spacing and thin the feature sites, then the samples, to by (20) as a parallel greedy independent set (Section 2.7.1)
5: assign the normals and place the ghost nodes by (22)
6: form one ball per support ; split the supports of balls that hold too many samples and repeat from step 2 on those pieces (Section 2.4, Appendix A.4)
7: fit the curl-free local functions (26) on all balls in groups of equal size and blend them to (Sections 2.4 and 2.7.2)
8: label the free cells of the background grid by min-label propagation, sign the components, and extend by (31) (Sections 2.5 and 2.7.3)
9: repeat
10: draw candidates in and accept a greedy independent set under (34) with fixed (Sections 2.6 and 2.7.1)
11: until a pass adds no node, or after four passes
Internal obstacles As in [138], the boundary may include internal obstacles; however, ours may be piecewise smooth and are given, like the outer wall, by the seed nodes of their pieces. The pieces of all components are numbered together, so may belong to different components, and on every piece the normal points out of , so on an obstacle it points into the obstacle. With this convention no step of Algorithm 1 depends on the number or shape of the components. The features of an obstacle come from its own loops, and its ghost nodes lie inside it (Section 2.3). Its balls join the cover, and the extension of assigns the sign -1 to the free cells inside it (Sections 2.4 and 2.5). Interior nodes avoid the obstacle, where (Section 2.6), and the stencil visibility test detects it (Section 3.2). Since the thinning (20) does not distinguish components, gaps between them must be wider than about , and an obstacle must be thicker than to hold its ghost nodes.
The data for a curved piece are seed nodes for the fit and separate seed nodes for validation,
The data for a planar piece are a point in its plane, a matrix with whose columns span the plane, and the trimming loops in the coordinates of . A planar piece may also be given by seed nodes like a curved one.
If the seed nodes of a piece come with normals but without parameter values, our generator assigns them by projecting the nodes onto their principal axis (an arc), onto their best-fit plane (a nearly flat face), or stereographically from a point below the piece (a dome-like face). Appendix A.2 gives the charts and the tests that select one; if none passes, we stop with an error.
2.2. The parametric layer
We now construct the maps . For a planar piece the map is exact,
For a curved piece, whose parameter region is bounded by trimming loops rather than being the circle or the sphere of [138], we construct from as a partition of unity [5, 109, 164] of local interpolants on overlapping rectangles,
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 5 of 45
(a) Cap parameters
(b) Parametric layer

(c) Implicit layer,

(d) Nodes,

Figure 1: The stacked representation of the treasure chest (58). (a) Cap parameter region with one cell (shaded) and its support (dashed). (b) The patch (orange), its ball , boundary nodes (dots), and ghost nodes in (crosses). (c) The cover (gray) and free cells in (blue), . (d) Interior (blue), boundary (black), and ghost (red) nodes, . (a), (c): ; (b), (d): .
blended by weights that sum to one [143]. We fix one curved piece, drop the index , and write and . With the bounding box of , , we normalize the parameters to by
and write .
Cells and supports We cover by axis-aligned cells with disjoint interiors,
with centers and half-widths . For an overlap factor we define the support of cell and its local coordinates by
so that if and only if . We write , for the components of . The parameter region of a planar piece is covered in the same way, but its supports only define balls of the implicit layer.
Local interpolants On the support we use the seed nodes with indices
their mean , and their local coordinates . The local interpolant is a cubic polyharmonic spline [46] with affine augmentation,
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 6 of 45
Let and have the entries and rows
and let and be the matrices with rows and . The interpolation conditions , , and the moment conditions form the system
Recall that this system is nonsingular if has full column rank [110, 164], which holds if and only if the points do not all lie in one hyperplane of . On every support that holds seed nodes we require this and for a prescribed integer , stop with an error otherwise, and solve (11) with a small diagonal shift of (Table 4).
The blended map With the tensor-product Wendland weights [163]
which are positive on and vanish outside it, we define
Supports without seed nodes lie outside and are dropped. The denominator is positive at every in a cell whose support holds seed nodes, in particular on , because lies in some closed cell and . The Jacobian
including the derivatives of the weights, is computed by forward-mode automatic differentiation [72]. The unit normal, with its sign chosen once per piece so that it points out of , is
Adaptive refinement Since fixed cells may be too coarse for strongly curved pieces, we accept the map only if, at every validation node , the position error , the normal error , and the inverse condition number meet prescribed tolerances. Starting from cells, we split every cell whose support contains a failing validation node into children and refit. After three unsuccessful refinements we stop with an error (Appendix A.3).
2.3. Boundary and ghost nodes from the parametric layer
We now sample the boundary nodes from the parametric layer. As in [138], we supersample each piece in parameter space and thin the mapped samples to spacing h. However, sample elimination [169] visits the samples in an arbitrary order, so a sample of a smooth piece may remove the node that would sit on an edge or a corner. We therefore offer the edges and corners first, much as Delaunay refinement of piecewise-smooth complexes protects vertices, edges, and faces in that order [31].
Parameter samples For a curved piece we bound the stretching of by
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 7 of 45 where is a fine grid in . Thus . For a surface piece, consists of points on the trimming loops at spacing , followed by an approximately maximal Poisson-disk sample [49] with separation (i.e., every point of lies within about of a sample), where
For a curve, consists of equispaced parameters, including both endpoints, with spacing at most . Every point of the piece therefore lies within roughly of , and the thinning sets the final spacing.
Features We sample every mapped loop at its vertices and at arc-length spacing at most along each side. For a sample let be the set of pieces whose mapped loops pass within of . The samples with at which the normals of the pieces in differ by more than are the feature sites ; a smooth seam thus carries none. The site receives the normalized sum of the normals of its pieces and a level,
where is the normal of at the nearest point of its loop. For generic arrangements is the codimension of the feature in , with at a corner of a curve or on a crease where two surface pieces meet, and at a vertex where three or more meet. Where two loops are tangent, they stay within of each other over a short stretch, and the sites along it count all pieces involved.
Ordering and thinning We order the feature sites by decreasing level, , with ties in the order of the pieces and of their loops, and form the sequence
We then keep and, for , keep if
The kept points form . To each we assign the unit normal
where is the normal of the parametric layer, and, as in the earlier method, place one ghost node along each normal [62],
2.4. The implicit layer
To decide whether a point lies in without inverting the maps , we construct a function that is positive in and negative outside , except within a distance of order from , and classify by the sign of , as for radial basis function and partition-of-unity implicit surfaces [26, 118, 157]. Near the boundary, is a partition of unity of local functions that vanish at the boundary samples in their supports and increase into , as in the curl-free partition of unity (CFPU) method of Drake, Fuselier, and Wright [45], but with supports taken from the parametric layer. We fit to points with outward unit normals , , namely the boundary nodes with their normals (Section 2.3) and a denser sample of the pieces near the feature sites (Appendix A.4).
One ball per parametric support Each support , on a piece with map , is mapped to a patch , which is covered by the ball whose center is the mean of the images of the Gauss–Legendre points in and whose radius is
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 8 of 45 with an enlargement factor and the median nearest-neighbor distance of the samples ; the maximum is evaluated at the same Gauss–Legendre points. Since the supports cover the parameter regions, the balls cover up to the resolution of the quadrature, and we check that every sample lies in some ball (Appendix A.4). Let index the samples in .
Local functions In we use the scaled coordinates and . We first seek a scalar potential whose gradient interpolates the normals [107], for . With the polyharmonic spline [46] we take
whose gradient is with the curl-free kernel [67, 113]
The interpolation and moment conditions form the saddle-point system
of size , which we also solve with a small diagonal shift (Table 4). Since is constant along only up to the error of this fit, we subtract the interpolant of its values , with , and define the local function
It vanishes at every sample in , and since only corrects the small variation of along the boundary, near the samples, so increases into . Finally, with the Wendland weights [163] , , we blend the local functions on the union of the balls,
2.5. The implicit layer away from the boundary
We now extend the implicit layer to all of space. Let
be the uncovered region, where every weight vanishes and is undefined. Since the balls cover (Section 2.4), up to the resolution of the quadrature, so a connected subset of lies either in or in . We assign each such region the sign of on the adjacent covered region, using a background grid.
Background grid Let be the bounding box of the samples , enlarged by 5% of its side lengths on each side, and let . We divide into cubic cells of width with centers . Since every radius satisfies , every ball contains a cell center. A cell is covered if , where
and free otherwise. Two cells are adjacent if they share a face.
Component signs We assign a sign to every cell in three steps.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 9 of 45
-
For a covered cell, .
-
We label the connected components of the free cells by min-label propagation.
-
For each component , let be the set of signs of the covered cells adjacent to . If contains exactly one sign, we set to that sign for every cell of .
If some contains both signs (i.e., the cover does not separate from its exterior) or is empty, we use instead the generalized winding number [7, 87] of the boundary, evaluated with the quadrature points of the pieces and their area-weighted normals.
The extended function Let be the diameter of the bounding box of , and let be the index of the cell that contains . The implicit layer is
Note that is discontinuous at the boundary of the cover. However, away from only its sign is used, and near , . Finally, we verify that for every .
2.6. Interior nodes from the implicit layer
We now place the interior nodes. In the earlier method, a bounding box is filled with nodes at spacing , the nodes outside are removed, and a refined layer is obtained by copying the boundary nodes inward. We keep this idea, but test inside by the sign of the implicit layer and sample the refined layer at a smaller spacing, as in variable-density node generators [63, 147]. For parameters and the spacing is
Since the ghost nodes lie at the distance from their boundary nodes, for every boundary and ghost node lies within of , and there.
Let be the bounding box of and . With (31), interior nodes are admissible in
Holding and fixed, we seek an approximately maximal set such that
Condition (34) sets the clearance from boundary and ghost nodes, while the threshold removes candidates near , where the sign of is least reliable. We do not impose the clearance through , since near convex edges and corners can be smaller than by more than , so a condition would remove candidates several inside the domain.
Instead of Bridson’s algorithm [24], which visits the candidates one at a time, our generator constructs by dart throwing [33, 44, 111], evaluating all candidates of a pass in parallel (Section 2.7.1). Let be a candidate density and the volume of , and start with the fixed set . Each pass proceeds as follows.
-
Draw candidates uniformly in , and discard those outside .
-
Visit the remaining candidates in random order, and accept a candidate if for every and every candidate accepted before it in this pass.
-
Add the accepted candidates to and to .
2.7. Parallel algorithms
We now describe the three parallel components of our generator: greedy independent sets for the boundary thinning and dart throwing, grouped local fits and evaluations, and the labeling of the free grid cells. Appendix A.5 lists the JAX kernels.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 10 of 45
2.7.1. Greedy independent sets
Let have radii and distinct priorities , where a smaller value means a higher priority, and let G be the conflict graph in which and are adjacent if . The sequential greedy algorithm first accepts a prescribed set of fixed points and then visits the remaining points in order of priority, accepting a point if none of its neighbors has been accepted. Since fixed points may be closer than their radii, the edges between them are removed from G. With constant radius and the order of the sequence of Section 2.3 as priority, this is the thinning (20); with random priorities, and with the boundary, ghost, and previously accepted interior nodes as fixed points, it is one pass of dart throwing.
In our parallel algorithm, every point is labeled undecided (U), in (I), or out (O), starting with the fixed points in I and all others in U. In each round all undecided points are updated at once; a point with a neighbor in I moves to O, and otherwise a point none of whose higher-priority neighbors is undecided moves to I. Neighbors are found in the surrounding cells of a uniform grid with cell width , and rounds run until no point is undecided (Appendix A.5, Listings 2, 3, and 4).
Proposition 2.1. The parallel algorithm terminates, and the points that end in I are exactly the points accepted by the sequential greedy algorithm.
Proof sketch. By induction along the priority order, every point is decided no later than the first round in which none of its higher-priority neighbors is undecided, and it then enters the state that the sequential algorithm gives it, since these neighbors already have their sequential states (Appendix C.1).
The number of rounds, the dependence length of the greedy algorithm, is at most the number of vertices on the longest priority-increasing path in G. For random priorities it is with high probability, where is the largest degree in G [17], and with high probability for every graph [55], so dart throwing takes few rounds. These bounds do not apply to the boundary thinning, whose priorities follow the sequence order, so its number of rounds can grow with the number of samples on a piece; by the proposition, however, it reproduces (20) exactly. Our algorithm is the parallel greedy algorithm of [17], which keeps the priorities fixed and so returns the sequential greedy set; Luby's algorithm [106] instead draws new priorities in every round. Wei [162] parallelizes Poisson-disk sampling on the GPU through a phase decomposition of the background grid, and Bowers et al. [22] extend it to surfaces.
2.7.2. Grouped evaluation and fitting
Both layers are weighted sums of local functions, with weights and maps in the parametric layer (where stands for ), and and in the implicit layer. Let be the number of supports whose weight is positive at . It equals one inside a single support and is largest near the corners of the cover, so padding every evaluation to the largest would waste much of the work. We therefore partition the query points into the groups , , and, for , sum over the supports with the largest weights at , selected by a partial sort. Since all omitted weights are zero, the grouped sum is exact, and the number of local evaluations, , is at most (Listing 5 in Appendix A.5).
The local fits are grouped in the same way, since the dense systems of a support, (11) or the two systems of Section 2.4, have sizes affine in the number of points of the support. We place support in the group with , and embed its system in one for points by the block , which leaves unchanged, and solve each group with one batched dense solve (Listing 6 in Appendix A.5).
2.7.3. Connected components
We label the components of Section 2.5 by min-label propagation [78], which needs no sequential graph search. Every free cell starts with its own index as label, and in each round takes the smallest label among itself and its free neighbors. After as many rounds as the largest diameter of a component, measured in cells along face-adjacent paths, every cell carries the smallest index of its component. Each round is one parallel update, implemented by shifting the label array along the grid axes (Listing 7 in Appendix A.5).
3. Forward problems
Having generated nodes in the domain and on its boundary, we now describe how our framework solves PDEs on them. We consider elliptic problems such as in and semilinear parabolic problems
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 11 of 45 in , each with Dirichlet or Neumann conditions on . The discretization is standard RBF-FD on the node sets of Section 2, with ghost nodes for the boundary conditions, SBDF3 in time (Section 3.3), and hyperviscosity for advection (Section 3.4). We add stencil selection inside the domain (Sections 3.1 and 3.2), the batched GPU implementation in JAX, and a GPU direct solver that JAX can differentiate (Section 3.5). Algorithm 2 lists the steps and marks the new ones.
Let , , and be the interior, boundary, and ghost nodes, with , , and elements. The interior and boundary nodes are the physical nodes; all nodes are ordered as interior, boundary, ghost, and indexed by I, B, P (physical), and G. A discrete function is a vector
and denotes its values at the physical nodes.
3.1. Differential operators
Our differential operators are RBF-FD approximations [65, 155, 166] with polyharmonic splines and polynomial augmentation [58]. For an even target order and a second-order operator, each stencil uses polynomials of total degree , the polyharmonic spline with , and the
nodes [10, 58] closest to the center in the distance of Section 3.2, ghost nodes included as in [138, 140]. With the same stencils for the gradient, this gives matrices
that approximate and at the physical nodes from values at all nodes. On quasi-uniform nodes with spacing , is accurate to and to on smooth functions. Variable-coefficient operators are assembled from these; for example, we discretize by
where K holds the coefficient at all nodes and its values at the physical nodes.
Algorithm 2 Forward solve on a node set.
Require: nodes , , and implicit layer from Algorithm 1; target order ; problem data
Ensure: discrete solution (elliptic) or at (parabolic)
1: select the stencil of every node: the nearest nodes in the distance (39), with visibility decided against (Section 3.2, Appendix B.1) new
2: compute the weights of and in batched dense solves and store them in COO form (Section 3.1)
3: assemble and , e.g. (38), and the ghost-node closure (40) or the SBDF3 matrix (44) (Section 3.3)
4: if the problem has advection then
5: compute by Arnoldi iteration and the hyperviscosity coefficients (46) (Section 3.4)
6: end if
7: check that the rightmost eigenvalue of the reduced operator (41) has nonpositive real part; otherwise stop (Section 3.5)
8: factor the matrix once with cuDSS, called as a differentiable JAX linear solve (Section 3.5) new
9: if the problem is elliptic then
10: solve (40)
11: else
12: choose by (45) and run the SBDF3 loop (43), one solve with the factors per step (Section 3.3)
13: end if
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 12 of 45
Parallel assembly The weights of each row of solve a dense saddle-point system of size on the nodes of its stencil [10, 58]. These systems are small and independent, so our implementation gathers the stencils of rows into an array of shape , forms the local systems with array operations along the leading axis, and calls one batched dense solve on the GPU (Listing 8 in Appendix B.2). The polynomial basis is evaluated in coordinates centered and scaled per stencil. A local system whose polynomial block has reciprocal condition number below , with the machine precision, is solved instead by column-pivoted QR [25] of the block, and we stop if the block is numerically rank deficient. The weights and stencil indices define the matrix in coordinate (COO) form, so a product with it is a gather followed by a scatter-add, differentiable in the weights and the vector (Listing 9 in Appendix B.2).
3.2. Stencil selection
RBF-FD stencils are usually the Euclidean nearest nodes of their center . However, next to a thin part of the domain, such as a wall of the H-channel of Section 6.1, some of these nodes can lie on the other side of the wall, where the solution need not be related to that at . Davydov and coworkers select stencils by geometric criteria aimed at accuracy rather than at the shape of the domain [36, 38, 117]. Instead, we take the nodes nearest to in a distance measured inside the domain. We call a segment visible if on it, where is the implicit layer of Section 2.4 and . For a physical node let , and for a ghost node let be the boundary node along whose normal was placed. A node is visible from if is visible. Among the Euclidean nearest nodes of we set
where runs over the candidates with such that is visible from and is visible from . Thus the minimum is taken over paths inside the domain that bend once near the boundary, a discrete analogue of the visibility and diffraction criteria for meshless methods in nonconvex bodies [12, 13, 120]. To bound the cost, each hidden is tested only from the 8 candidates with the smallest values of the bracket. Candidates without such a path rank after all others, in Euclidean order.
By the triangle inequality, . Hence, if the Euclidean nearest nodes of are all visible, the stencil is the Euclidean one. Our implementation exploits this in two steps. First, we test the segments from every node to its Euclidean nearest nodes. Segments whose ends lie deep in the domain are visible by the certificate (80) of Appendix B.1, which uses only at the two nodes; the rest are decided by sphere tracing [77] against . Second, only for the nodes with a hidden segment among the first (i.e., those that see across the boundary), we evaluate (39) for all candidates and take the smallest.
3.3. Ghost-node closure and time stepping
Without ghost nodes, a boundary node carries only the boundary condition, and the stencils near the boundary are one-sided. Ghost nodes [54, 62] add one unknown per boundary node, so that both the PDE and the boundary condition can be imposed there. For a problem in with a boundary condition on , let approximate at the physical nodes and approximate at the boundary nodes. We collocate the equation at every physical node and the boundary condition at the boundary nodes,
These are equations for unknowns. For the Dirichlet condition , selects . For the Neumann condition , the row of at holds the RBF-FD weights of on the stencil of , with the normal of Section 2.3. A flux condition is imposed as . For two of the index sets and , has the rows of at and the columns at , and and are the columns of and at . The ghost values are determined by the boundary rows of (Dirichlet) or by (Neumann) whenever the square block , respectively , is nonsingular, which we assume throughout. Eliminating them gives the reduced operator
of size and , whose spectrum governs the stability of the semi-discretization and which enters the error estimates of Section 5. Note that with Neumann conditions , since the stencils reproduce constants; a pure Neumann
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 13 of 45 elliptic problem thus determines the solution only up to a constant, and its data satisfy the discrete compatibility condition only approximately. Following [20], we add a multiplier to every equation of (40) and append the constraint over all nodes. Under the assumptions of Theorem 5.1, the resulting bordered system of size is nonsingular. Finally, we shift by the constant that makes its mean over the physical nodes equal to that of a reference (the manufactured solution in Section 6.2, the observations in Section 4); this changes neither (40) nor .
We now turn to time-dependent problems of the form
where the linear operator (e.g., ) is treated implicitly and (reaction, advection, forcing) explicitly. Let approximate as above, let approximate at the physical nodes, and let . The third-order semi-implicit backward differentiation formula (SBDF3) [4] with the closure (40) at the new time level reads
(43)
with . Each step is a linear system of the form (40) whose matrix,
does not change between steps; here selects the physical values of , and the ghost values are recomputed at every step. The starting states at , and are the exact solution in our tests (Section 6.2). The time step is
with constants and given in Section 6.2. The term is the CFL restriction of the explicit terms, and makes the error of SBDF3 match the spatial error . For , the second term is smaller only when ; for larger , and the time error is formally .
The integration is a single compiled JAX function whose time loop evaluates with sparse products and solves with the factors of (Section 3.5, Listing 10 in Appendix B.2); JAX differentiates the loop in the parameters of .
3.4. Hyperviscosity
For advection, contains with a velocity of maximum speed . Let apply the stencils of at all nodes, ghost nodes included. On scattered nodes these square matrices can have eigenvalues with small positive real parts that destabilize the discretized advection over long times [66, 126, 137]. Following [137], we damp these modes by adding to the implicit operator, , with the power , where is a direct RBF-FD approximation of whose stencils use polynomials of degree , the polyharmonic spline , and nodes. The rows of are set to zero at the boundary nodes, which keeps the physical equation in the rows that determine the ghost values, and at the interior nodes within distance of . There the advection is weak (our velocities vanish on the boundary), and the direct approximation of can move eigenvalues of the reduced operator into the right half-plane. We set , where balances the damping of the test mode defined below against its growth ,
and the sign makes dissipative. The constant is the real part of the rightmost eigenvalue of , and compares the error of on the oscillatory function , , with ,
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 14 of 45
We compute once per cloud and order by Arnoldi iteration on the GPU; is fixed in time. However, since its stencils reproduce polynomials of degree only, is not a consistent approximation of ; merely stays bounded as for smooth . If the stay bounded, then with , and the added term is , which for is of higher order than the truncation error .
3.5. Linear algebra and stability checks
Every time step of SBDF3, and every elliptic solve, requires a sparse solve with the same matrix, so the factorization should be computed once and reused for thousands of substitutions. On the GPU, sparse direct factorizations are provided by NVIDIA's cuDSS [115]. However, JAX offers little support for this task. Its sparse matrix formats are experimental, and it has no sparse direct solver that keeps a factorization between calls. Moreover, a call into an external library is opaque to JAX; it can be compiled into a jit-transformed program, batched by vmap, or differentiated by jvp and vjp only if each of these behaviors is supplied explicitly. A naive wrapper, such as a host callback, would copy every right-hand side to the host, serialize the time loop, and break differentiation. We therefore built the following three components.
Sparse storage Our operators remain in the coordinate (COO) form in which they are assembled (Section 3.1), and their products are gathers followed by scatter-adds that are differentiable in the weights and the vector (Listing 9 in Appendix B.2). For cuDSS, we convert the matrix of (40), or K in (44), to compressed sparse row (CSR) form on the GPU once per sparsity pattern, and for a nonsymmetric matrix we also form the CSR form of its transpose.
A native cuDSS primitive We wrote a C++ extension that registers cuDSS solves as foreign-function (FFI) targets of XLA, the compiler behind JAX [23]. At setup, once per cloud and order, the extension runs the analysis and factorization phases of cuDSS and keeps the factors in GPU memory, in a registry indexed by an integer handle; for a nonsymmetric matrix it factors as well. Inside a compiled program, a solve is an FFI call that receives the right-hand sides as a device buffer and the handle as an attribute, orders itself after the preceding work on JAX's CUDA stream through an event, and runs the cuDSS solve phase, so every time step costs one forward and one backward substitution and no data leave the GPU. Since the call reads shared native state, it is marked as having a side effect, so that the compiler neither removes nor reorders it. A matrix that depends on parameters, as (38) does through K, keeps its sparsity pattern; a second target then copies the new values into the factor and runs the refactorization phase of cuDSS, which reuses the symbolic analysis [34, 35]. A solution of is accepted only if its normwise backward error [79, 132] satisfies , and we stop otherwise.
Differentiation and batching The FFI call itself has neither a derivative nor a batching rule, and differentiating through the factorization would be both expensive and unnecessary. Two wrappers supply both rules (Listing 1). First, jax.lax.custom_linear_solve [23] declares the call a solution of , with the COO product as the matrix action and the cuDSS solve with as its transpose. JAX then differentiates implicitly, solving with the same factors in forward mode and with in reverse mode [70]; the factorization is never differentiated. Second, without a batching rule, vmap would call cuDSS once per tangent direction; our rule instead passes a batch of right-hand sides to cuDSS as the columns of a single solve. A forward-mode derivative in directions thus costs, per step, one substitution for the state and one with right-hand sides for the tangents.
Finally, we detect unstable discretizations before solving by checking the reduced operator (41) of every implicit operator A of Section 6.2; with Neumann conditions we use , whose eigenvalues are those of M with the zero eigenvalue of the constants replaced by -1. The matrix M is never formed; a product with it needs one solve with the factored block or . We compute its rightmost eigenvalues by a restarted Arnoldi iteration [3, 149, 150] on the GPU and stop if a converged one has a positive real part or the iteration does not converge. However, this check is necessary but not sufficient for stability; it ignores the explicit terms, and since BDF3 is -stable [165] with [75] but not A-stable, eigenvalues with negative real part close to the imaginary axis can still cause instability. Section 5 states the stability assumption of our error estimates.
4. Inverse problems
We now use our differentiable forward solvers to recover parameters of a PDE from values of its solution. Let be parameters of the problems of Section 3, such as the coefficients of a permeability, of a reaction law, or of a velocity field. We recover by minimizing the misfit of the discrete solution (Section 4.1). Since the discrete solution
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 15 of 45
Listing 1: A factored cuDSS system as a differentiable JAX solve with batched right-hand sides; handle refers to the cuDSS factors of K and matvec to Listing 9.
@custom_vmap def direct(b): return cudss_solve(handle, b)
b: (N_f, ) or (N_f, n_rhs)
jax.ffi call into cuDSS
@direct.def_vmap def direct_batched(axis_size, in_batched, b): cols = jnp.moveaxis(b, 0, -1) # batch axis -> extra columns return jnp.moveaxis(cudss_solve(handle, cols), -1, 0), True
direct_T: the same two definitions with cudss_solve_transposed
def solve(b): return jax.lax.custom_linear_solve( lambda u: matvec(vals, u), b, solve=lambda_, rhs: direct(rhs), transpose_solve=lambda_, rhs: direct_T(rhs))
is a JAX function of , we obtain its Jacobian by differentiating through the operators, sparse solves, and time loop of Section 3. We solve the least-squares problem by Gauss–Newton and Levenberg–Marquardt iterations, warm-started from one node set to the next (Section 4.2). Algorithm 3 lists the steps and marks the new ones.
4.1. Formulation
Let be the discrete solution, which for an elliptic problem solves (40) and for a parabolic problem is the SBDF3 state (43) at the final time . Given observations at the physical nodes, we minimize with the residual
The forcing and the boundary data are fixed. Note that for the pure Neumann Darcy problem, also enters the right-hand side of the boundary rows, and the constant of Section 3.3 is chosen so that and have the same mean. The parameters may enter the implicit operator, as a coefficient in (38) does, or the explicit terms
Algorithm 3 Parameter recovery across a sequence of node sets.
Require: node sets from coarsest to finest; observations on each Ensure: recovered parameters on each node set
1:
2: for each node set, from the coarsest to the finest do
3: set up the discretization once: stencils, weights, assembly, stability check, and factorization of Algorithm 2; when enters the operator, each evaluation of refactors numerically
4: define by (48), with formed in one forward-mode pass that solves the tangents together with the cuDSS factors and stores only (Section 4.2) new
5: if this is the coarsest node set then
6: minimize by Levenberg–Marquardt from
7: else
8: repeat Gauss–Newton from the previous
9: with the smallest that does not increase
10: until the step is below or no decreases ; fall back to Levenberg–Marquardt if needed
11: end if
12:
13: end for
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 16 of 45
of (42), as a reaction law or a velocity
with fixed divergence-free basis fields that vanish on . For a velocity, the hyperviscosity coefficients (46) are computed once, with the prescribed maximum speed of the true velocity, and kept fixed during the optimization, so that the implicit operator does not depend on .
4.2. Optimization and derivatives
On the coarsest cloud, and as a fallback, we minimize with the method of Levenberg and Marquardt [100, 108] in Optimistix [129], with the linear least-squares subproblems solved by Lineax [128]; on the finer clouds we use the warm-started Gauss–Newton iteration below. Both need the Jacobian . Since is small and is large, is computed in forward mode, with directional derivatives propagated together with the state [72].
Recall that each linear solve in the forward map is the primitive of Listing 1, whose tangents are solved with the factors of (Section 3.5) for all tangent right-hand sides together. When enters only , the matrix does not depend on , , and the derivative of the loop of Listing 10 in Appendix B.2 is the same loop with tangent states carried alongside the state.
In reverse mode, the same primitive uses the transpose solve with the factors of . The adjoint of is and on the nonzero pattern of . Reverse mode gives the gradient of with one adjoint solve per solve of the forward map, independent of , and thus pays off for gradient methods with many parameters. However, for a time loop it stores the trajectory unless it is checkpointed [71], and since our problems have , we use forward mode throughout.
Our warm start exploits the sequence of clouds. The iteration starts from on the coarsest cloud and, on every finer cloud, from the parameters recovered on the next coarser one. Their distance from the minimizer on the finer cloud is at most the sum of the parameter errors on the two clouds. We then take damped Gauss–Newton steps [42, 114] , where is the Moore–Penrose pseudoinverse [123] of , with the smallest for which decreases. The iteration stops when , or when no such exists. Since the residual at the minimizer is of the size of the discretization error, the Gauss–Newton iteration contracts by a factor of about per step [16], where is a Lipschitz constant of and . If the residual or is not finite, or after 30 steps, we continue with Levenberg–Marquardt.
Optimistix linearizes once per step and stores the intermediate values of the forward map for later products with , which for a time loop with steps takes memory proportional to . Our derivative rule avoids this by forming in a single forward pass (Listing 11 in Appendix B.2). Since the rule depends only on the primal value of , the linearization stores the matrix alone and applies it to tangent vectors, while the iterates are unchanged.
5. Error estimates
We now derive error estimates for our forward and inverse problems. Each bounds an error by a defect (the truncation error, or the forward error at the true parameters) times an amplification factor (a stability constant, or the inverse of the smallest singular value of the Jacobian). Polynomial reproduction bounds the truncation error [39, 40]. However, uniform stability of RBF-FD collocation on scattered nodes is open (Tominec, Larsson, and Heryudono [156] analyzed an oversampled least-squares variant), so we measure the stability constants as in [98, 134] (Section 6.2). Proofs are in Appendix C.
We write and for the values of a function at all nodes and at the physical nodes; since our manufactured solutions are defined on all of , includes ghost values. Norms are 2-norms unless marked otherwise.
5.1. Forward problems
Truncation error Suppose that a stencil at with weights reproduces an operator of order on polynomials of degree , and that is smooth on the ball of radius about . The stencil
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 17 of 45 then errs by at most the Taylor remainder of degree ,
(Lemma C.1 in Appendix C.2). Thus, if and the scaled stencil sums
stay bounded, then with the right-hand side is for and for and the normal derivative. Every row of the closure (40), including the variable-coefficient (38) and boundary rows, therefore has a truncation error of order or higher.
Elliptic problems Let be the truncation error, where is the right-hand side of the boundary rows , or for the flux condition), and the error. For our Darcy problem, with Neumann rows and the multiplier of Section 3.3, the error solves
The boundary rows give the ghost errors, , and eliminating them leaves
with the reduced operator of (41). The entries of are of order (Laplacian weights over normal-derivative weights), but compensates. Since , the equation is solvable only if its right-hand side lies in the range of [20]; this fixes , the defect of the discrete compatibility condition, and our choice of the mean removes the remaining constant.
Theorem 5.1 (error of the elliptic problem). Suppose that the boundary rows determine the ghost values ( nonsingular), that the constants are the only null vectors of , and that the compatibility defect can be removed ( , where spans the null space of ). Let be acting on vectors of mean zero, which it maps one-to-one onto . Then the multiplier is , and the error at the physical nodes satisfies
Proof sketch. Multiplying (52) by gives . The remaining right-hand side is the projection of onto along , whose norm is the middle factor, and maps it to the error, which has mean zero (Appendix C.3).
The factor is the discrete counterpart of the inverse of the smallest nonzero eigenvalue of the elliptic operator, and the second factor of equals 1 when is parallel to . If is bounded uniformly in , the error converges with order , since is of order and of order or higher. For the Dirichlet closure, gives , the boundary rows of determine through , and the error solves , where and are the interior and boundary rows of ; this is [134, Thm. 1] specialized to the ghost-node closure, with an elimination factor of order one. Note that our relative errors divide by , which cancels the factor between and (50). Since cannot be bounded a priori, Section 6.2 reports the effective stability constant
and the error converges with the order of as long as stays bounded (Appendix D.4).
Time-dependent problems The same elimination applies in every SBDF3 step, whose truncation error is (Lemma C.2 in Appendix C.4); the explicit terms add the usual exponential factor of the discrete Gronwall inequality [1, 32].
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 18 of 45
Theorem 5.2 (error of the time-dependent problem). Consider the closure with Neumann rows, as for our reaction–diffusion problem, and let M and G be formed from the implicit operator A of (42). Let be the truncation error of step n (Appendix C.4). Suppose that the SBDF3 recursion for with forcing, , is stable, i.e., for , with a constant independent of h and . Suppose further that the explicit terms depend only on the physical values , with Lipschitz constant . Then the error satisfies
Proof sketch. Eliminating the ghost errors gives SBDF3 for , forced by the truncation error (its boundary part passed through ) and by differences of the explicit terms, at most times earlier errors ( , the sum of the absolute extrapolation coefficients). Stability and the discrete Gronwall inequality give (55) (Appendix C.5).
The stability assumption holds, e.g., if is diagonalizable with eigenvector condition number bounded uniformly in and its spectrum lies in a sector [105] inside the -stability region of BDF3, [75]; the spectral check of Section 3.5 tests only a necessary condition. For our locally Lipschitz reaction terms, the theorem holds with the Lipschitz constant on a max-norm neighborhood of , which the discrete solution does not leave for small and , since its max-norm error is of order and . In contrast, the discretized advection depends on the ghost values with Lipschitz constant of order , so the theorem gives no uniform bound for advection–diffusion. However, for the Dirichlet closure an analogous bound without the exponential factor holds if the full recursion including advection is stable (with its stability constant), as the hyperviscosity is designed to ensure [66, 137].
5.2. Inverse problems
For the inverse problems, the forward error is the defect. With exact observations , the residual (48) at the true parameters is the relative forward error, , where the subscript marks the dependence of and the recovered parameters on the cloud. Let and . Linearizing, , and since at a minimizer, applying the pseudoinverse gives
To first order, only the component of the forward error in the range of (i.e., of the sensitivities) enters, amplified by at most . Adding the linearization remainder makes this precise [16, 161].
Theorem 5.3 (parameter error, a posteriori). Let be a stationary point of the least-squares problem, , at which the Jacobian has full rank, , and let be a Lipschitz constant of on the segment between and . Then
Proof sketch. With and the mean of on the segment from to , , and the stationarity condition gives , where (Appendix C.6).
In the spirit of a priori analyses of parameter identification with finite elements [131], our next theorem shows that the stationary point assumed in Theorem 5.3 exists near when the Jacobian at the truth has full rank and the forward error is small.
Theorem 5.4 (parameter error, a priori). Suppose that the Jacobian at the true parameters has full rank, . Let be a Lipschitz constant of on the ball of radius about . If , then the least-squares problem has a local minimizer in this ball, and every stationary point in the ball satisfies .
Proof sketch. On the boundary of the ball the residual exceeds , so the minimum of over the ball is an interior stationary point. At any stationary point in the ball, by Weyl's inequality [85], and (56) gives the bound (Appendix C.7).
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 19 of 45
For these stationary points, the parameter error is therefore if is bounded away from zero and is bounded, uniformly in . By Theorems 5.1 and 5.2, this rate is for the elliptic and reaction–diffusion problems if and are bounded uniformly; for transport, we rely on the measured forward errors. Since forward-mode differentiation discretizes the tangent equations in the same way, we expect to converge to the nodal values of the continuous sensitivities, and to a positive limit if the continuous parameter-to-observation map is injective to first order. We do not prove stability of the tangent scheme; however, changes little over our finest clouds (Section 6.3).
6. Numerical results
We first describe the node sets, then the convergence of the forward problems and of the recovered parameters under refinement. All computations run on one NVIDIA RTX 5090 in double precision.
6.1. Node generation
We now present results for our node generator on two domains. The first is the H-channel
which consists of two channels with curved outer walls joined by a slot of width 0.2. Its boundary consists of two curved and ten straight pieces and has four reentrant corners at the ends of the slot. The second, the treasure chest, is a box with a superelliptic cap,
with the box . Its boundary consists of five faces of the box, four planar pieces in the plane around the base of the cap, and the cap. The cap is given to the node generator only as seed nodes with normals, together with its rim. For each we generate one cloud with the parameters of Table 4 in Appendix A.1, giving to 1160 physical nodes in the H-channel and to 25636 in the treasure chest. Figure 2 shows examples, including the refined boundary layer and the ghost nodes at the slot corners. On every cloud, all interior nodes lie inside the exact domain and all ghost nodes outside it. Distinct nodes are at least apart, except in the H-channel at , where the walls between the two channels are thick and the ghost nodes of their upper and lower faces are apart. Figure 6 of Section 6.2 gives the generation times.
Geometric layers Figure 3 shows how the two layers of Section 2 converge to the exact boundary. The errors are measured at random points per curved piece, independent of the input data. The parametric layer is fit to the seed nodes, so its error depends on their spacing , and on only through refinements of the cover, which refit the cap of the treasure chest on smaller supports from the same seed nodes and thus increase its distance error (Appendix D.1). The error in the parametric layer decreases roughly like on the walls of the H-channel and like on the cap; its normals converge like and . Our clouds use 65 seed nodes per wall ( ) and 41 seed nodes per parameter direction on the cap ( ).
In contrast, the implicit layer is fit to boundary sites at spacing h, and away from edges and corners its distance error decreases like in the H-channel and in the treasure chest. At edges and corners, however, rounds the crease over a width proportional to h, and the largest error over all points decreases only like h. Note that this rounding does not move the boundary nodes, which lie on the parametric layer; it affects only points within a fraction of h of an edge, where the clearance condition (34) excludes interior nodes anyway.
Parallel algorithms Finally, we test the two parallel building blocks of our generator in isolation. On to uniformly random candidates in the unit square and the unit cube, with the common radius , the parallel greedy independent set of Section 2.7.1 equals the sequential greedy set after 5 to 9 rounds, a number that grows roughly like . Grouped evaluation of the implicit layer (Section 2.7.2) at the interior nodes costs 1.3 to 1.4 times the work of an exact sum over the balls containing each point, compared with 1.6 to 3.0 times with padding to the largest overlap count.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 20 of 45




Figure 2: Node clouds. Top: interior nodes (blue), boundary nodes (black), and ghost nodes (red crosses) of the H-channel at h = 0.08 (left) and of its slot at h = 0.04 (right). Bottom: the treasure chest at h = 0.08, with the interior nodes in front of the translucent boundary (left), shaded darker with distance from the viewer, and the boundary nodes on the visible part of the boundary (right).

H-channel
treasure chest ...O...all points
Implicit layer
site spacing h
Figure 3: Errors of the geometric layers against the exact boundaries. Left and middle: largest distance and normal angle of the parametric layer on the curved pieces (the walls of the H-channel and the cap of the treasure chest, with normals measured at least 0.02 from the rim of the cap) against the spacing of the seed nodes. Right: largest distance of the implicit layer at exact boundary points against the spacing of its sites, at least 2h from edges and corners (filled markers) and over all points (open markers). The dashed lines are least-squares fits, labeled with their slopes.
6.2. Forward problems
6.2.1. Test problems
We now test our forward solvers on three problems on the clouds of Section 6.1, with orders . Each problem has a manufactured solution that is smooth on all of (in order for us to be able to test high-order convergence rates). The forcing and the boundary data are computed from and the true parameters , with the normals of the boundary nodes, so that the difference between the discrete solution and is the discretization error, which should decrease at order (Section 5).
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 21 of 45
Table 2
Parameter families of the permeability and of the reaction law : feature vectors and true parameters . The cubic law is used only for .
| Family | |||
|---|---|---|---|
| constant | (1) | ||
| (1) | |||
| affine | |||
| quadratic | |||
| cross term | |||
| sine product | |||
| cubic |
Darcy flow The pressure solves
with the permeability
where is a vector of features and its coefficients, for the first five families of Table 2. Since the flux condition holds on all of , is determined only up to a constant, which we fix by matching the mean of over the physical nodes (Section 3.3). The manufactured solution is
Reaction-diffusion The concentration solves
with , for and for . The reaction law is either quadratic in with a spatially varying rate,
with the first five families of Table 2, or the cubic law , the sixth family of Table 2. The manufactured solution is , with given by (61).
Advection-diffusion The concentration solves
with and . The velocity grows from zero at to its full strength at . The field is the normalized curl of a stream function () or a vector potential () that vanishes quadratically on the boundary,
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 22 of 45

fit over
Figure 4: Relative errors of the forward problems against , where is the number of physical nodes. Each curve is the largest error over the parameter families. The dashed lines are least-squares fits over the three finest clouds, labeled with their slopes.

Figure 5: The advection–diffusion velocity 1.18 w of (65) at , colored by speed, with streamlines. In the treasure chest the panel shows the section and the components in it.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 23 of 45

node generation ● p = 2 ■ p = 4 ▲ p = 6
treasure chest ○ H-channel …… O(N)
Figure 6: Wall-clock times of the forward problems on one NVIDIA RTX 5090 against the number N of physical nodes (filled markers: treasure chest; open markers: H-channel). Top left: node generation, and the operator setup for one cloud and order (stencils, weights, assembly, factorization). Top right: one Darcy solve. Bottom: one SBDF3 step of reaction–diffusion and of advection–diffusion. Dashed lines: least-squares fits for the treasure chest; dotted lines: . All times include just-in-time compilation; those of the solves and steps are medians over the parameter families.
Here is the positive part of the implicit layer of the cloud with , is a quadratic about the center of the domain, and is a fixed uniform grid in (Appendix D.2). The field , shown in Figure 5, is divergence-free, has maximum speed one, vanishes on the zero set of (an approximation of ), and is the same on every cloud. The manufactured solution is
With a Péclet number of about 24 (based on the maximum speed and unit length), the problem is moderately advection dominated, and we add the hyperviscosity of Section 3.4.
Time stepping and error The time-dependent problems are integrated by SBDF3, which treats and the hyperviscosity implicitly and , , and explicitly, with starting values at , , and taken from . The constants of the step rule (45) are for reaction–diffusion and , for advection–diffusion. For advection–diffusion with , only for , so all our clouds use and the time error is formally . However, such an error would decrease with a slope of only about 3.6 against , below the observed slopes; thus, the spatial error dominates on our clouds. We report the relative error over the physical nodes at ,
\mathrm{err}=\frac{\left\|\bar{U}-u_{\star}\right\|_{\chi_{i}\cup\chi_{b}}\right\|_{2}}{\left\|u_{\star}\right\|_{\chi_{i}\cup\chi_{b}}\right\|_{2}}, \tag{67}and the least-squares slope of log err against log over the three finest clouds, .
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 24 of 45
6.2.2. Results
Convergence Figure 4 shows the forward errors (slopes of the individual families in Table 6 in Appendix D.3). We expect the errors to decrease as . For the slopes against lie between 4.5 and 8.3, and for between 6.0 and 9.0. These slopes exceed mainly because the boundary layer makes decrease more slowly than . From to , grows from 0.64 to 0.73 in the H-channel and from 0.76 to 0.85 in the treasure chest; an error of thus has a slope of about 1.2p against . Against , most problems converge at or faster; the exceptions are advection–diffusion in the H-channel with (roughly ) and reaction–diffusion in the treasure chest with (roughly ). For the slopes are close to two, except for Darcy and reaction–diffusion in the treasure chest, where they are only 1.1 to 1.6.
Recall that Theorems 5.1 and 5.2 predict these rates when the stability constants stay bounded; Table 8 in Appendix D.4 lists both factors of the Darcy bound. The truncation error converges at least at , and the effective stability constant of (54) shows no systematic growth in , except in the treasure chest with , where it grows by a factor of 1.6 from to and lowers the slope to 1.4. Reaction–diffusion shows the same reduction in this case (Table 6). In addition, advection–diffusion, which Theorem 5.2 does not cover, converges at the same rates.
Stencil selection We compare our stencil selection (step 1 of Algorithm 2) with the obvious alternative, the Euclidean nearest nodes, on the same clouds. At , 3%, 9%, and 26% of the Euclidean stencils in the H-channel contain a node hidden behind a wall, for , 4, and 6; in the treasure chest the fractions are 0.8%, 2.2%, and 4.0%, near the rim of the cap. With Euclidean stencils, the reduced operators of all three problems in the H-channel at with have an eigenvalue with positive real part, and so does the advection–diffusion generator at with . These cases therefore fail the stability check (step 7 of Algorithm 2), which every problem passes with our stencils (Section 3.2). Where both pass, the errors in the treasure chest are nearly the same. On the coarse H-channel clouds the Euclidean errors are smaller, likely because the manufactured solutions continue smoothly across the walls, so that values on the other side remain accurate data; on the finest cloud with , however, they are larger. Note that for a solution that is unrelated across a wall (e.g., in a channel with different inflows), Euclidean stencils would be inconsistent.
Cost In Figure 6, the time of node generation grows only like . In the treasure chest, most of it is spent in the fit of the implicit layer (steps 6–8 of Algorithm 1), whose size is set by the boundary data more than by h. The setup of the operators (steps 1–8 of Algorithm 2) grows like to and is the most expensive stage of our pipeline. A Darcy solve costs a numerical refactorization and one substitution; its time grows like to . The time of an SBDF3 step (step 12), one forward and one backward substitution with the cuDSS factors and a few sparse products, grows weakly with N, likely because fixed costs per step (e.g., launching the GPU kernels) dominate on these clouds.
6.3. Inverse problems
6.3.1. Test problems
We now test our inverse solver on the clouds, orders, and time steps of Section 6.2.1. For the time-dependent inverse tests, every forward solve in the iteration starts from the exact states at , , and . In each problem, is recovered from noise-free observations of the manufactured solution at the physical nodes, (at for the time-dependent problems). Thus, the residual of (48) is the relative forward error, and the error of the recovered parameters shows how the discretization error propagates to the parameters.
Darcy flow Here we recover the coefficients of the permeability (60) in (59), for the first five families of Table 2, from the pressure u. The forcing f and the flux g are fixed at their true values; note that then also enters the boundary rows (Section 4.1). The manufactured solution is (61).
Reaction–diffusion For this problem we recover the coefficients of the reaction law in (62), for the six families of Table 2, from . Again, and the Neumann data are fixed at their true values, and the manufactured solution is .
Transport In the transport problem, the unknowns are the coefficients of a steady velocity
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 25 of 45

Figure 7: The true transport velocities , colored by speed, with streamlines, for the smooth (left pair) and the (right pair) set of modes, each in the H-channel and the treasure chest. In the treasure chest the panels show the section y = 0 and the components in it; the speed includes the component normal to the section.
and the observations are , where solves (64) with , , and . The basis fields are built as in (65), with replaced by a mode and, for , by . Two sets of three modes are used, one smooth and one whose fields are only across the coordinate planes through the center of the domain (Table 5 in Appendix D.2). The true coefficients are multiples of (1.45, -0.90, 0.60) for and (1.20, -0.80, 0.50) for , scaled to a maximum speed of 1.18 as in the forward problem (Figure 7). The manufactured solution is (66), and and the Dirichlet data are computed with and fixed, as is the hyperviscosity (Section 4.1).
6.3.2. Results
We report the relative parameter error . The iteration starts from on the coarsest cloud and from the parameters of the next coarser cloud on the others (Section 4.2). From , Levenberg–Marquardt typically needs a few tens of iterations; from the warm starts, Gauss–Newton (step 8 of Algorithm 3) needs at most seven (Appendix D.5).
Convergence Figure 8 shows the parameter errors (slopes of the individual families in Table 7 in Appendix D.3). Since is the forward error, we expect the parameter errors to follow the forward errors of Figure 4. For this holds roughly, with slopes between 6.5 and 9.3 in the treasure chest and between 5.2 and 11.0 in the H-channel. For , however, the slopes scatter widely, and some families fall below , namely transport with in the H-channel (2.2 to 3.3), Darcy with in the treasure chest (down to 2.8), and Darcy and reaction–diffusion with in the treasure chest (down to 0.9 and 1.0). Transport with in the treasure chest is the one exception to the trend; its parameter error hardly decreases over the three finest clouds (0.4 to 0.9), although the forward error does.
Theorem 5.3 explains both the agreement with the forward errors and the scatter for . To first order, the parameter error is , the component of the forward error in the range of , amplified by at most . This amplification hardly changes with the cloud; for each problem, order, and family, varies by at most 19% over the three finest clouds. However, the component in the range of changes from cloud to cloud and need not decrease with the forward error as a whole. Cloud-to-cloud variation produces scatter when it is comparable to the decrease in the total forward error. For , that decrease is only about a factor of three over the three finest clouds. The stalled parameter error for transport with in the treasure chest is likely due to this variation dominating the trend. Finally, the efficiency index
which the theorem predicts to be at most one to first order, is below one in every inverse solve and typically well below it (Table 9 in Appendix D.4).
Cost Each iteration evaluates the residual and the Jacobian in one forward-mode pass (step 4 of Algorithm 3), in which the tangent directions are solved together with the cuDSS factors. For the time-dependent problems, an iteration thus costs a small multiple of one time integration, and since the warm starts need few iterations, an inverse solve costs a few forward solves (Figure 9). Darcy flow is the exception, since a Darcy forward solve is cheap and
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 26 of 45

Figure 8: Relative errors of the recovered parameters against . Each curve is the largest error over the parameter families (for transport, over the two velocity bases). The dashed lines are least-squares fits over the three finest clouds, labeled with their slopes.

Figure 9: Wall-clock time of one inverse solve against the number of physical nodes, median over the parameter families (filled markers: treasure chest; open markers: H-channel). The iteration on the coarsest cloud starts from , the others from the parameters of the next coarser cloud. Dashed lines: least-squares fits for the treasure chest over the warm-started inverse solves; dotted lines: . The setup of the operators is shared with the forward problems (Figure 6).
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 27 of 45
Table 3
Wall-clock seconds of the stages of Algorithms 1–3 on the finest clouds, , on one NVIDIA RTX 5090, including just-in-time compilation. Setup: stencils, weights, assembly, stability check, and factorization for one cloud and order. RD: reaction–diffusion, AD: advection–diffusion. Forward and inverse solves: medians over the parameter families. The forward solves of RD and AD integrate to . The inverse solves are warm-started from the next coarser cloud and share the setup.
| Geometry | Nodes | Setup | Forward solve | Inverse solve | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Darcy | RD | AD | Darcy | RD | Transport | |||||
| H-channel | 2 | 1160 | 5.89 | 26 | 0.01 | 0.71 | 1.06 | 1.92 | 1.50 | 3.26 |
| 4 | 1160 | 46 | 0.01 | 0.70 | 1.07 | 2.07 | 1.91 | 2.07 | ||
| 6 | 1160 | 68 | < 0.01 | 1.66 | 2.07 | 2.76 | 8.76 | 14 | ||
| Treasure chest | 2 | 25636 | 59 | 187 | 0.07 | 1.40 | 6.70 | 27 | 3.96 | 20 |
| 4 | 25636 | 377 | 0.16 | 2.70 | 11 | 21 | 13 | 32 | ||
| 6 | 25636 | 658 | 0.31 | 12 | 32 | 65 | 82 | 146 | ||
fixed costs (e.g., the compilation of the differentiated forward map) make a Darcy inverse solve much longer than a few forward solves (Table 3). The longest inverse solves are those of the time-dependent problems with , which take the most time steps. In the treasure chest, the time of an inverse solve grows roughly like to .
6.4. End-to-end cost
We now consider the cost of the whole computation, from the seed nodes to the recovered parameters. Table 3 lists the time of every stage of Algorithms 1–3 on the finest clouds. The setup of the operators dominates; stencil selection, weights, assembly, the stability check, and the factorization grow with the stencil size (and hence with ) and together cost more than all other stages. However, the setup is done once per cloud and order; further parameter families, observations, or right-hand sides on the same cloud cost only forward and inverse solves.
6.5. A domain with an internal obstacle
The boundaries of the H-channel and the treasure chest are connected. We now present a final example with a two-component boundary, in which an obstacle is placed inside the treasure chest and a reaction law is recovered from a solution carried around the obstacle by a flow. The method of [138] already handles smooth embedded objects. However, the obstacle here has curved and planar pieces, edges, vertices, and reentrant creases of the fluid domain. Our framework treats it with the same algorithms as the outer wall (Section 2.1); nothing in our node generator or solvers is specific to this obstacle, and further obstacles add pieces in the same way.
Domain The obstacle is a smaller, rotated copy of the treasure chest,
where is the center of the bounding box of , , and is the rotation by about the -axis followed by the rotation by about the -axis. None of the faces of the obstacle is parallel to a face of the outer chest. The boundary of consists of the ten pieces of the outer chest and the ten corresponding pieces of the obstacle. Every piece of the obstacle, including the planar ones, is given only by seed nodes with normals and the trimming loops of its parameter region, with the normals pointing into (i.e., out of the fluid domain). For each we generate one cloud with the parameters of the treasure chest, giving to 26586 physical nodes. All interior nodes lie inside the exact domain , and all ghost nodes lie outside it, those of the obstacle inside (Figure 10).
Problem The concentration solves
with , , the six reaction laws and true parameters of the reaction–diffusion problem (62), and the manufactured solution (66). The velocity is steady, with given by (65) for the implicit layer of the
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 28 of 45


Figure 10: The treasure chest with an internal obstacle. Left: the obstacle inside the translucent outer boundary, with its boundary nodes on the visible part of its surface, . Right: interior nodes (blue), boundary nodes (black), and ghost nodes (red crosses) with , .


Figure 11: The problem with an internal obstacle on the section . Top: the velocity , colored by speed, with streamlines, and the solution . Bottom: the reaction rate of the sine-product law recovered on the cloud with and , and its pointwise error.
cloud of with . Note that the zero set of approximates both boundary components and is negative inside the obstacle. Thus, the divergence-free field vanishes near the outer wall and on the obstacle surface, and the flow passes around the obstacle without slip (Figure 11). The hyperviscosity and the time steps are those of the advection–diffusion and transport problems, and, as in Section 6.3.1, we recover from at the physical nodes with and fixed at their true values. The forward error is the relative error of the solution with the true parameters.
Results Figure 12 shows the errors, and Figure 11 the recovered reaction rate of the sine-product law, whose error is small and nearly uniform across the section. Every cloud and order passes the stability check, and the warm-started inverse solves need at most six Gauss–Newton iterations. The forward error decreases with slopes 2.0, 4.7, and 8.4 for p = 2, 4, and 6, roughly as for advection–diffusion in the treasure chest in Figure 4. The parameter error decreases with slopes 1.5, 4.2, and 6.9; these are somewhat below the forward slopes, as for the problems of Section 6.3 (slopes of the individual laws in Tables 6 and 7 in Appendix D.3). Again, the efficiency index is below one in every inverse solve (Table 9 in Appendix D.4). These results show similar forward rates and a similar propagation of forward error into the recovered parameters with and without the obstacle.
7. Conclusions
We have presented KernelPack-JAX, a framework that takes samples of smooth boundary pieces through node generation, high-order RBF-FD solves, and parameter recovery on the GPU, with derivatives through the operators,
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 29 of 45

Figure 12: Advection–diffusion–reaction in the treasure chest with an internal obstacle. Left: relative forward error with the true parameters; right: relative error of the recovered parameters, both against . Each curve is the largest error over the six reaction laws. The dashed lines are least-squares fits over the three finest clouds, labeled with their slopes.
the solves, and the time loops. Our framework rests on the stacked boundary representation, in which the parametric and implicit layers share one hierarchy of supports. The implicit layer, extended into the volume through the components of the uncovered grid cells, classifies every point of space; it serves as the inside test of the interior sampling and guides stencil selection through a visibility heuristic. Internal obstacles are represented like the outer wall. Node selection by greedy independent sets makes the thinning and sampling stages parallel computations with a deterministic result. Finally, the differentiable sparse direct solves make derivatives through long time loops cost a small multiple of the loops themselves, with memory independent of the number of time steps.
In both test domains and in the domain with an internal obstacle, the forward errors converge at high order, and the recovered parameters largely follow them. The exception is transport with p = 2 in the treasure chest, where the part of the forward error that enters the parameters does not decrease over the finest clouds. In our implementation, the setup of the operators dominates the total cost.
Our error estimates in Section 5 separate consistency, of order p by polynomial reproduction, from stability. However, the stability of the ghost-node closure is assumed; we test a necessary spectral condition and measure the stability constants. The first-order bound of the parameter error by the forward error and the smallest singular value of the Jacobian held in all our experiments (Appendix D.4).
The main open question is a proof of uniform stability for RBF-FD collocation with a ghost-node closure on scattered nodes, including the advection-dominated case. We used forward-mode derivatives throughout, since our problems have at most six parameters. For problems with many parameters, we plan to add reverse mode through the same transpose solves, with checkpointing of the time loop. In addition, since a CAD model consists of trimmed parametric faces, it provides the input of our node generator directly, and we plan to apply our framework to CAD models with many faces, fillets, and features smaller than the node spacing.
CRediT authorship contribution statement
Alberto Cattaneo: conceptualization, methodology, writing, software.
M. Keith Ballard: funding acquisition, resources, supervision.
Robert M. Kirby: conceptualization, funding acquisition, project administration.
Grady B. Wright: conceptualization, methodology.
Varun Shankar: conceptualization, funding acquisition, methodology, project administration, resources, software, supervision, validation, visualization, writing.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 30 of 45
Table 4 Parameters of the node generator, fixed across geometries, resolutions, and random seeds.
| Stage | Parameter | Value |
|---|---|---|
| Charts | compression bounds | |
| Parametric layer | overlap factor | 1.5 |
| minimum seed nodes per support | 12 | |
| diagonal shift of | ||
| tolerances | ||
| Boundary nodes | maximum refinements, maximum cells | 3, 128 |
| feature site spacing, incidence distance | ||
| Implicit layer | smooth-seam angle | |
| ghost offset | ||
| feature enrichment | 2, 2 | |
| ball enlargement | 1.25 | |
| points per ball | 8, 512 | |
| maximum cover refinements | 3 | |
| quadrature points per axis | 48 | |
| relative diagonal shift in (26) | ||
| Interior nodes | boundary layer | 0.6, 1.5 |
| surface threshold | 0.2 | |
| candidate density | 6 | |
| maximum passes | 4 |
Data availability
The source code of KernelPack-JAX, including the scripts that generate every node set, result, table, and figure of this paper (scripts/paper/reproduce.sh), is publicly available at https://github.com/VarShankar/kernelpack-jax.
Acknowledgments
MKB was supported by the United States Air Force Research Laboratory (AFRL). AC, RMK, and VS were supported by the U.S. Air Force through ARCTOS Technology Solutions, LLC, under Task Order FA2394-25-F-B004, Prime Contract FA2394-25-D-B005, through Subcontract 25B005.01.00.0001.00.05-C1. RMK and VS were also supported by Air Force Office of Scientific Research (AFOSR) LRIR grant FA9550-25-1-0042. VS was also supported by the U.S. National Science Foundation (NSF), Division of Mathematical Sciences (DMS), under award 2505986. GBW was supported by NSF grants DMS-2309712 and DMS-2505987.
A. Node generation
A.1. Parameters
Table 4 lists the parameters of Section 2.
A.2. Parameters from points
A curved piece is often given only by seed nodes , unit normals, and the trimming loops in physical space. We then compute the parameters, for both the seed nodes and the loops, with one of the following charts, and stop with an error if none applies. We fix a piece, drop the index , and let be the mean of the seed nodes.
-
For a curve, , where is the principal axis [122] of the seed nodes. We require to increase along the curve.
-
For a surface, we first try the best-fit plane of the seed nodes, with orthonormal axes and normal , and set . We orient so that the mean of is positive, and accept this chart if for every normal of a seed node.
-
Otherwise we use a stereographic chart. Let be the centroid of the trimming loops, the unit normal of their best-fit plane, oriented towards the seed nodes, and its in-plane axes. With the scaled coordinates
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 31 of 45
the stereographic projection of the direction from the antipode of . This chart requires that the piece lies in one hemisphere about , for every seed node, and that every normal, expressed in the scaled coordinates, makes an angle with the direction whose cosine is at least .
An accepted chart must also not compress the seed nodes. With for the first two charts and for the stereographic chart, we require
with for the first two charts and for the stereographic chart. The cap of the treasure chest in Section 6.1 receives the stereographic chart. Its parameter region in Figure 1(a) is therefore a disk.
A.3. Adaptive refinement of the parametric layer
Let be the mean of all seed nodes and , let be tolerances, and let and denote the smallest and largest singular values of a matrix. We accept the map if every validation node satisfies
We measure the worst violation of (74) by
and build the cover as follows.
-
Start with the cells , .
-
Solve (11) on every support and evaluate (74) at every validation node. If all validation nodes satisfy it, stop.
-
Split every cell whose support contains for a failing validation node into its children, with centers , , and half-widths . Return to step 2.
We stop with an error if the map is not accepted after three refinements, if a refinement does not reduce , or if the cover exceeds 128 cells.
A.4. Oriented samples and the cover of balls
The oriented samples of Section 2.4 are
The set adds points near sharp features, where the normal field changes abruptly. For parameters and we obtain it as follows.
-
Sample every piece as in Section 2.3, with h replaced by .
-
Keep the samples that lie off the trimming loops and within the distance of some feature site, .
-
Thin the kept samples as in (20) with spacing , placing the boundary nodes first so that all of them are kept. Each remaining sample carries the normal .
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 32 of 45
Let be the tensor Gauss–Legendre rule with points per axis on the bounding box of each parameter region , restricted to . Let be an enlargement factor, and let be the median over of the distance from to its nearest neighbor among the other samples. Each support of the parametric layer, on a piece with map , defines the mapped set, its mean, and a radius,
and thereby the ball
The samples in have the indices . For prescribed bounds we adjust the cover by two rules.
-
If , let be the distance from to its -th nearest sample. We set , and stop with an error if this exceeds twice the original radius.
-
If , we split the cell into its children, refit the parametric layer on that piece, rebuild , and rebuild the balls.
We allow at most three refinements by the second rule. Finally, we check that every sample lies in at least one ball. To test that the boundary is closed and consistently oriented, we also check that the quadrature of with the rule of points per axis on all pieces has norm at most 0.1 times the quadrature of the area.
A.5. Implementation
We pad every array that enters a compiled kernel to a power of two and mask the padding, so that all kernels have fixed shapes. To find the neighbors of the points, we bin them into a uniform grid with cell width . Sorting the points by the index of their cell gives each cell a contiguous range of points, and we copy these ranges into a table with one row per cell and a fixed number of columns (Listing 2). For each point we then gather the rows of the cells around it, test the distances, and store the indices of the neighbors in an array of fixed width, padded with -1.
Listing 2: Binning points into a table of grid cells.
@partial(jax.jit, static_argnames="shape", "capacity")) def cell_table(x, lo, width, shape, capacity): # shape: cells per axis ijk = ((x - lo) // width).astype(int).T cell = jnp.ravel_multi_index(ijk, shape, mode="clip") # cell of each point order = jnp.argsort(cell, stable=True) # points sorted by cell count = jnp.bincount(cell, length=math.prod(shape)) start = jnp.cumsum(count) - count # first slot of each cell slot = jnp.arange(x.shape[0]) - start[cell[order]] # position in cell table = jnp.full((math.prod(shape), capacity), -1) return table.at[cell[order], slot].set(order, mode="drop")
Listing 3 shows the parallel greedy independent set of Section 2.7. Each round gathers the states of the neighbors and takes two reductions over the columns of the neighbor array, and the rounds continue until no point is undecided.
Listing 3: The parallel greedy independent set.
@jax.jit def greedy_set(nbr, rank, state): # state: 0 = U, 1 = I, 2 = 0 pad = nbr < 0 j = jnp.where(pad, 0, nbr) higher = ~pad & (rank[j] < rank[:, None]) def round_(s): sj = s[j] has_in = jnp.any((sj == 1) & ~pad, axis=1) blocked = jnp.any((sj == 0) & higher, axis=1) s = jnp.where((s == 0) & has_in, 2, s) return jnp.where((s == 0) & ~blocked, 1, s) return lax久而_loop(lambda s: jnp.any(s == 0), round_, state)
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 33 of 45
One pass of the interior sampling of Section 2.6 is a greedy independent set over the fixed points followed by the candidates (Listing 4). The fixed points come first in the priority order and start in I, and a random permutation orders the candidates. The accepted candidates are then those of sequential dart throwing in that random order.
Listing 4: One pass of dart throwing as a greedy independent set.
def dart_pass(fixed, r_fixed, cand, r_cand, rng): n0, n1 = len(fixed), len(cand) x = jnp.concatenate([fixed, cand]) r = jnp.concatenate([r_fixed, r_cand]) nbr = neighbor_lists(x, r) # /x_i - x_j / < max(r_i, r_j) rank = jnp.concatenate([jnp.arange(n0), n0 + rng.permutation(n1)]) state = jnp.concatenate([jnp.ones(n0, int), jnp.zeros(n1, int)]) state = greedy_set(nbr, rank, state) return cand[state[n0:] == 1]
Listing 5 evaluates group by group, as described in Section 2.7.2. The groups are formed on the host, and each width compiles one kernel.
Listing 5: Evaluation of grouped by the number of overlapping balls.
@partial(jax.jit, static_argnames="width") def f_loc_group(x, width, centers, radii, fits): # x: points of one group def one(xi): r = jnp.linalg.norm(xi - centers, axis=1) / radii w = jnp.maximum(1 - r, 0)**4 * (4*r + 1) # omega_j(xi) w_top, j = jax.lax.top_k(w, width) # contains all w_j > 0 f = local_values(xi, j, fits) # f_j(xi) for the selected j return jnp.sum(w_top * f) / jnp.sum(w_top) return jax.lax.map(one, x, batch_size=256)
m = overlap_counts(x, centers, radii) # m(x) e = np.ceil(np.log2(np.maximum(m, 1))).astype(int) for k in np.unique(e): # one kernel per width phi[e == k] = f_loc_group(x[e == k], 2**k, centers, radii, fits)
Listing 6 shows the curl-free system of Section 2.4 for a group of balls with at most n samples each. A mask marks the samples that are present, and the rows of the missing ones are replaced by rows of the identity.
Listing 6: The curl-free local fits for a group of balls.
@jax.jit def curl_free_fits(q, nrm, mask): B, n, d = q.shape D = q[:, :, None] - q[:, None, :] r = jnp.linalg.norm(D, axis=-1) rs = jnp.where(r > 0, r, 1.0) Phi = -3 * (r[..., None, None] * jnp.eye(d) + D[..., :, None] * D[..., None, :] / rs[..., None, None]) Phi = Phi * (mask[:, :, None] * mask[:, None, :])[..., None, None] G = Phi.transpose(0, 1, 3, 2, 4).reshape(B, n * d, n * d) md = jnp.repeat(mask, d, axis=1) G = G + jnp.eye(n * d) * (1 - md)[:, None, :] E = jnp.tile(jnp.eye(d), (n, 1)) * md[..., None] K = jnp.block([[G, E], [E.swapaxes(1, 2), jnp.zeros((B, d, d)])]) rhs = jnp.concatenate([[nrm * mask[..., None]).reshape(B, n * d), jnp.zeros((B, d)]], axis=1) sol = jnp.linalg.solve(K, rhs[..., None])[..., 0] return sol[:, :n * d].reshape(B, n, d), sol[:, n * d:] # lambda_jk, b_j
The min-label propagation of Section 2.5 acts on the whole background grid at once. We obtain the labels of the 2d face neighbors of all cells by shifting the array of labels by one cell along each axis (Listing 7). Covered cells and the cells beyond the edges of the grid carry the largest integer and never lower a label. The sign of each component then follows from one segment reduction over the labels.
Listing 7: Labels of the connected components of the free cells.
@jax.jit def label_components(free): # free: boolean array of grid cells big = jnp.iinfo(jnp.int32).max lab = jnp.where(free, jnp.arange(free.size).reshape(free.shape), big) def shift(1, axis, s): # neighbor label, big beyond the edge
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 34 of 45 n = l.shape[axis] edge = jnp.arange(n) == (0 if s == 1 else n - 1) edge = jnp.expand_dims(edge, [a for a in range(l.ndim) if a != axis]) return jnp.where(edge, big, jnp.roll(1, s, axis=axis)) def body(carry): l, _ = carry new = l for axis in range(l.ndim): for s in (1, -1): new = jnp.minimum(new, shift(1, axis, s)) new = jnp.where(free, new, big) return new, jnp.any(new != 1) return lax.while_loop(lambda c: c[1], body, (lab, True))[0]
B. Stencils and solvers
B.1. Visibility by ray tracing
The stencil selection of Section 3.2 needs to decide whether along a segment . If is Lipschitz continuous with constant , then
implies that is visible, since cannot fall below zero between the two cones of slope at the ends. The certificate settles most pairs from the values of at the nodes alone. For each remaining segment we start at and move toward by per step. We stop with the segment hidden when , and with the segment visible when reaches or when (80) holds with replaced by . We take , above the largest measured . Since is a measured bound and jumps at the edge of the cover, the test is a heuristic. We take and count a segment that is still undecided after 400 steps as hidden. Off the cover of the implicit layer, is the constant of (31), which we replace by . This is a lower bound of the distance to for uncovered points, since every boundary point lies in a ball within of its center, with . All rays of one step are evaluated together by the grouped evaluation of Section 2.7.2.
B.2. Implementation
Listing 8 computes the Laplacian weights of Section 3.1 for a batch of stencils.
Listing 8: Laplacian weights for a batch of stencils of nodes each, with the center first in each stencil, without the QR fallback of Section 3.1.
@partial(jax.jit, static_argnames="m") def laplacian_weights(X, m): nb, ns, d = X.shape r = jnp.linalg.norm(X[:, :, None] - X[:, None, :], axis=-1) # (nb, ns, ns) hc = r.max(axis=(1, 2)) # diameters h_c Z = (X - X.mean(axis=1, keepdims=True)) / hc[:, None, None] Pm = poly_basis(Z) # (nb, ns, nq) nq = Pm.shape[-1] A = jnp.concatenate([ jnp.concatenate([rm, Pm], axis=2), jnp.concatenate([Pm.swapaxes(1, 2), jnp.zeros((nb, nq, nq)]], axis=2)], axis=1) # (nb, ns+nq, ns+nq) rc = r[:, 0, :] # distances to the stencil center b = jnp.concatenate([m * (m + d - 2) * rc(m - 2), poly_laplacian(Z[:, 0]) / hc[:, None]**2], axis=1) return jnp.linalg.solve(A, b[..., None])[ :, :ns, 0] # (nb, ns)
Listing 9 is the COO product of Section 3.1.
Listing 9: A sparse matrix in COO form and its product with a vector; centers holds the row of each stencil and stencils its columns.
rows = jnp.repeat(centers, ns) # row of each weight cols = stencils.reshape(-1) # column of each weight vals = weights.reshape(-1)
def matvec(vals, u): return jnp.zeros(N).at[rows].add(vals * u[cols])
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 35 of 45
Listing 10 is the SBDF3 integration of Section 3.3.
Listing 10: SBDF3 integration with the ghost-node closure as one compiled loop.
@jax.jit def integrate(theta, U0, U1, U2): def step(j, state): Um2, Um1, Un = state t = (j + 1) * dt rhs = (3Un[:N] - 1.5Um1[:N] + Um2[:N]/3 + dt * (3Nh(t - dt, Un, theta) - 3Nh(t - 2dt, Um1, theta) + Nh(t - 3dt, Um2, theta))) return Um1, Un, solve(jnp.concatenate([rhs, g(t)])) return jax.lax.fori_loop(2, n_t, step, (U0, U1, U2))[-1]
Listing 11 shows the derivative rule of Section 4.2, which forms the Jacobian of a time-stepping residual in one forward-mode pass, and the Levenberg–Marquardt solve.
Listing 11: Residual with a dense forward-mode Jacobian, and the Levenberg–Marquardt solve; guarded replaces a non-finite residual by with zero derivative.
def dense_jvp(residual): @jax.custom_jvp def r(theta): return residual(theta)
@r.defjvp def r_jvp(primals, tangents): (theta,), (dtheta,) = primals, tangents def value_and_aux(th): v = residual(th) return v, v J, value = jax.jacfwd( # one rollout with n_theta tangents value_and_aux, has_aux=True)(theta) return value, J @ dtheta return r
r = dense_jvp(guarded(residual)) # non-finite r -> 1e6, zero derivative lm = optx.LevenbergMarquardt(rtol=1e-12, atol=1e-12, linear_solver=lx.AutoLinearSolver(well_posed=False)) sol = optx.least_squares(lambda th, _: r(th), lm, jnp.zeros(n_theta), # cold start options={"jac": "fwd"}, max_steps=200, throw=False)
C. Proofs
C.1. Proof of Proposition 2.1
Proof. In any round, the undecided point of highest priority has no undecided neighbor of higher priority, so it is decided in that round, and the algorithm terminates. We show by induction along the priority order that every point that is not fixed ends in the state that the sequential algorithm assigns to it. Since a point enters I only after all of its higher-priority neighbors are decided, no lower-priority neighbor of i enters I while i is undecided. If i moves to O, its neighbor in I has higher priority. By the induction hypothesis this neighbor is accepted sequentially, and so i is rejected sequentially. If i moves to I, all of its higher-priority neighbors are decided and none of them is in I. By the induction hypothesis none of them is accepted sequentially, and so i is accepted sequentially.
C.2. Truncation error of a stencil
Lemma C.1. If and on the closed ball of radius about , the bound (50) holds with the maximum of over this ball and over unit vectors .
Proof. Let be the Taylor polynomial of of degree about . Since , , and since the weights reproduce on polynomials of degree , the left-hand side of (50) equals . Taylor's theorem bounds by .
C.3. Proof of Theorem 5.1
Proof. Subtracting the bordered closure from and gives and , where . The boundary rows give , and inserting
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 36 of 45
into the first rows gives . Multiplying by gives , which is the expression for , and then . Since has mean zero by the shift, . The rank-one projector has norm , and so has its complement, which is neither 0 nor . Finally .
C.4. Truncation error of SBDF3
We define the local truncation error of (43) by inserting the exact solution ,
(81)
Lemma C.2. If u is four times and three times continuously differentiable in time, then
where depends only on bounds for and . The same bound holds if part of is evaluated at . If on the stencil balls, the spatial terms and the boundary part are bounded by (50).
Proof. Subtract . By Taylor expansion about , the backward difference equals , and the extrapolation equals . The remaining terms are the spatial truncation errors of at and of at three time levels, with coefficients of total magnitude 7.
The 2-norms in Theorem 5.2 are at most times these maximum norms, a factor that the relative errors cancel as in the elliptic case.
C.5. Proof of Theorem 5.2
Proof. Let , where is defined in Appendix C.4 and . Subtracting (43) gives and
with and . The boundary rows give , and the physical rows become
with . The differences enter only the physical rows, so by the Lipschitz condition, and the stability assumption gives
The discrete Gronwall inequality [32] yields (55).
C.6. Proof of Theorem 5.3
Proof. Let , so that , and let . Then . Stationarity reads , and multiplying by gives . With this gives (56).
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 37 of 45
Table 5
Modes of the transport velocity basis, with , , for the center of the bounding box of the boundary nodes of the cloud with , and .
| Set | |||
|---|---|---|---|
| smooth | 1 | ||
| 2 | |||
| 3 | |||
| 1 | |||
| 2 | |||
| 3 |
C.7. Proof of Theorem 5.4
Proof. Let . For , with , so . The minimum of over the closed ball is therefore attained in its interior, at a stationary point. For a stationary point in the ball, Weyl's inequality [85] gives , and (56) gives . Since , the factor in parentheses is at least .
D. Details of the numerical experiments
The stability check of Section 3.5 is satisfied for every cloud, order, problem, and parameter family.
D.1. Implicit layer of the treasure chest
For the treasure chest the cover of the implicit layer is refined by the second rule of Appendix A.4 once at and and twice at . Each refinement refits the cap on smaller supports from the same seed nodes, which raises the distance error of the cap from without refinement to at .
D.2. Velocity fields
The reference level set of (65) is the implicit layer of Section 2.4 for the cloud with . Its balls cover all of , so is smooth in . With the center of the bounding box of the boundary nodes of this cloud, the quadratic of the advection–diffusion velocity is
and for the field is , which lies in the planes . The field vanishes on the zero set of because and its gradient vanish there. The normalization set consists of the points of a uniform grid inside the exact domain, with spacing 0.005 for and 0.015 for , so the velocity is the same on every cloud.
The velocity basis (49) has fields , with for and for . With , , and , which is but not at , we use the two sets of modes in Table 5. The fields of the second set are but not across the coordinate planes through . The true coefficients are multiples of (1.45, -0.90, 0.60) for and (1.20, -0.80, 0.50) for , scaled so that . The velocity does not depend on . The hyperviscosity coefficients use , as in the forward problem.
D.3. Slopes of the individual families
Tables 6 and 7 list the least-squares slopes of the errors of every parameter family. Figures 4 and 8 show the largest error over the families.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 38 of 45
Table 6
Least-squares slopes of the forward error against over the three finest clouds (). Ranges are over the parameter families (for the obstacle, over the six reaction laws).
| Problem | Geometry | |||
|---|---|---|---|---|
| Darcy | H-channel | |||
| Darcy | treasure chest | |||
| Reaction-diffusion | H-channel | |||
| Reaction-diffusion | treasure chest | |||
| Advection-diffusion | H-channel | |||
| Advection-diffusion | treasure chest | |||
| Advection-diffusion-reaction | obstacle |
Table 7
Least-squares slopes of the relative parameter error against over the three finest clouds (). Ranges are over the parameter families (for transport, over the two velocity bases, and for the obstacle, over the six reaction laws).
| Problem | Geometry | |||
|---|---|---|---|---|
| Darcy | H-channel | |||
| Darcy | treasure chest | |||
| Reaction-diffusion | H-channel | |||
| Reaction-diffusion | treasure chest | |||
| Transport | H-channel | |||
| Transport | treasure chest | |||
| Advection-diffusion-reaction | obstacle |
Table 8
Quantities of the elliptic error estimate (53) for the Darcy problem over the three finest clouds (). The columns give the least-squares slope of the truncation error against (smallest and largest over the parameter families), the range of the effective stability constant of (54), and the largest scaled stencil sum of (51).
| Geometry | Slope of | ||||
|---|---|---|---|---|---|
| H-channel | 2 | ||||
| 4 | |||||
| 6 | |||||
| Treasure chest | 2 | ||||
| 4 | |||||
| 6 |
D.4. Error estimates
Tables 8 and 9 list the quantities discussed in Sections 6.2 and 6.3. The effective stability constant (54) divides by the truncation error of the physical rows, and differs from by less than on every cloud.
For the Darcy problem, the truncation error converges with slopes against between 2.1 and 2.5 for and 6.1 for , and 7.0 and 8.3 for . The effective stability constant lies between and in all cases and shows no systematic growth in , except in the treasure chest with , where its median over the families grows from 0.049 at to 0.076 at . In the treasure chest with it decreases, and with it does not grow. The scaled stencil sums stay below 390 and vary by at most a factor of 1.3 over the three finest clouds.
D.5. Iterations of the inverse solves
From , Levenberg–Marquardt needs 8 to 88 iterations, with medians of 18 to 28 for the three problems, except for a few inverse solves on the coarsest H-channel cloud, which stop at the limit of 200 iterations. From the
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 39 of 45
Table 9
The efficiency index of the first-order inverse error bound over all inverse solves.
| Problem | Geometry | Solves | min η | median η | max η |
|---|---|---|---|---|---|
| Darcy | H-channel | 75 | 0.007 | 0.424 | 0.841 |
| treasure chest | 75 | 0.014 | 0.090 | 0.976 | |
| Reaction-diffusion | H-channel | 90 | 0.002 | 0.107 | 0.966 |
| treasure chest | 90 | 0.005 | 0.143 | 0.998 | |
| Transport | H-channel | 30 | 0.021 | 0.143 | 0.298 |
| treasure chest | 30 | 0.011 | 0.039 | 0.149 | |
| Advection-diffusion-reaction | obstacle | 90 | 0.008 | 0.100 | 0.873 |
warm starts, Gauss–Newton needs one to seven iterations. Every recovered has a smaller residual than the true parameters, .
E. Declaration of generative AI and AI-assisted technologies in the manuscript preparation process
During the preparation of this work, the authors used Claude and Codex to assist drafting, running experiments, correctness checks, integration testing. After using this tool/service, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article.
References
[1] Akrivis, G., Crouzeix, M., Makridakis, C., 1999. Implicit-explicit multistep methods for quasilinear parabolic equations. Numerische Mathematik 82, 521–541. doi:10.1007/s002110050429.
[2] Antiga, L., Piccinelli, M., Botti, L., Ene-Iordache, B., Remuzzi, A., Steinman, D.A., 2008. An image-based modeling framework for patient-specific computational hemodynamics. Medical & Biological Engineering & Computing 46, 1097–1112. doi:10.1007/s11517-008-0420-1.
[3] Arnoldi, W.E., 1951. The principle of minimized iterations in the solution of the matrix eigenvalue problem. Quarterly of Applied Mathematics 9, 17–29. doi:10.1090/qam/42792.
[4] Ascher, U.M., Ruuth, S.J., Wetton, B.T.R., 1995. Implicit-explicit methods for time-dependent partial differential equations. SIAM Journal on Numerical Analysis 32, 797–823. doi:10.1137/0732037.
[5] Babuška, I., Melenk, J.M., 1997. The partition of unity method. International Journal for Numerical Methods in Engineering 40, 727–758.
[6] Ballard, M.K., 2025. fea-in-jax: The finite element method implemented within the JAX Python library. https://github.com/KeithBallard/fea-in-jax. Approved for public release, AFRL-2025-4644.
[7] Barill, G., Dickson, N.G., Schmidt, R., Levin, D.I.W., Jacobson, A., 2018. Fast winding numbers for soups and clouds. ACM Transactions on Graphics 37, 1–12. doi:10.1145/3197517.3201337.
[8] Bayona, V., 2019. An insight into RBF-FD approximations augmented with polynomials. Computers & Mathematics with Applications 77, 2337–2353. doi:10.1016/j.camwa.2018.12.029.
[9] Bayona, V., Flyer, N., Fornberg, B., 2019. On the role of polynomials in RBF-FD approximations: III. Behavior near domain boundaries. Journal of Computational Physics 380, 378–399. doi:10.1016/j.jcp.2018.12.013.
[10] Bayona, V., Flyer, N., Fornberg, B., Barnett, G.A., 2017. On the role of polynomials in RBF-FD approximations: II. Numerical solution of elliptic PDEs. Journal of Computational Physics 332, 257–273. doi:10.1016/j.jcp.2016.12.008.
[11] Beggs, K., Davide, Geoga, C., Y, S.A., 2026. RadialBasisFunctions.jl, version 0.7.1. Zenodo. doi:10.5281/zenodo.21893542.
[12] Belytschko, T., Krongauz, Y., Organ, D., Fleming, M., Krysl, P., 1996. Meshless methods: An overview and recent developments. Computer Methods in Applied Mechanics and Engineering 139, 3–47. doi:10.1016/S0045-7825(96)01078-X.
[13] Belytschko, T., Lu, Y.Y., Gu, L., 1995. Crack propagation by element-free Galerkin methods. Engineering Fracture Mechanics 51, 295–315. doi:10.1016/0013-7944(94)00153-9.
[14] Berger, M., Tagliasacchi, A., Seversky, L.M., Alliez, P., Guennebaud, G., Levine, J.A., Sharf, A., Silva, C.T., 2017. A survey of surface reconstruction from point clouds. Computer Graphics Forum 36, 301–329. doi:10.1111/cgf.12802.
[15] Bezgin, D.A., Buhendwa, A.B., Adams, N.A., 2023. JAX-Fluids: A fully-differentiable high-order computational fluid dynamics solver for compressible two-phase flows. Computer Physics Communications 282, 108527. doi:10.1016/j.cpc.2022.108527.
[16] Björck, Å., 1996. Numerical Methods for Least Squares Problems. SIAM, Philadelphia. doi:10.1137/1.9781611971484.
[17] Blelloch, G.E., Fineman, J.T., Shun, J., 2012. Greedy sequential maximal independent set and matching are parallel on average, in: Proceedings of the 24th Annual ACM Symposium on Parallelism in Algorithms and Architectures, pp. 308–317. doi:10.1145/2312005.2312058.
[18] Blondel, M., Berthet, Q., Cuturi, M., Frostig, R., Hoyer, S., Llinares-López, F., Pedregosa, F., Vert, J.P., 2022. Efficient and modular implicit differentiation, in: Advances in Neural Information Processing Systems 35 (NeurIPS 2022), pp. 5230–5242. doi:10.52202/068431-0378.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 40 of 45
[19] Blunt, M.J., Bijeljic, B., Dong, H., Gharbi, O., Iglauer, S., Mostaghimi, P., Paluszny, A., Pentland, C., 2013. Pore-scale imaging and modelling. Advances in Water Resources 51, 197–216. doi:10.1016/j.advwatres.2012.03.003.
[20] Bochev, P., Lehoucq, R.B., 2005. On the finite element solution of the pure Neumann problem. SIAM Review 47, 50–66. doi:10.1137/S0036144503426074.
[21] Bollig, E.F., Flyer, N., Erlebacher, G., 2012. Solution to PDEs using radial basis function finite-differences (RBF-FD) on multiple GPUs. Journal of Computational Physics 231, 7133–7151. doi:10.1016/j.jcp.2012.06.030.
[22] Bowers, J., Wang, R., Wei, L.Y., Maletz, D., 2010. Parallel Poisson disk sampling with spectrum analysis on surfaces. ACM Transactions on Graphics 29, 166:1–166:10. doi:10.1145/1882261.1866188.
[23] Bradbury, J., Frostig, R., Hawkins, P., Johnson, M.J., Leary, C., Maclaurin, D., Necula, G., Paszke, A., VanderPlas, J., Wanderman-Milne, S., Zhang, Q., 2018. JAX: composable transformations of Python+NumPy programs. URL: http://github.com/jax-ml/jax.
[24] Bridson, R., 2007. Fast Poisson disk sampling in arbitrary dimensions, in: ACM SIGGRAPH 2007 Sketches, p. 22. doi:10.1145/1278780.1278807.
[25] Businger, P., Golub, G.H., 1965. Linear least squares solutions by Householder transformations. Numerische Mathematik 7, 269–276. doi:10.1007/BF01436084.
[26] Carr, J.C., Beatson, R.K., Cherrie, J.B., Mitchell, T.J., Fright, W.R., McCallum, B.C., Evans, T.R., 2001. Reconstruction and representation of 3D objects with radial basis functions, in: Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH '01), pp. 67–76. doi:10.1145/383259.383266.
[27] Carrera, J., Neuman, S.P., 1986. Estimation of aquifer parameters under transient and steady state conditions: 1. maximum likelihood method incorporating prior information. Water Resources Research 22, 199–210. doi:10.1029/WR022i002p00199.
[28] Cattaneo, A., Ballard, M.K., Kirby, R.M., Shankar, V., 2026. JetSCI: A hybrid JAX-PETSc framework for scalable differentiable simulation. arXiv:2604.22087. arXiv:2604.22087.
[29] Cecil, T., Qian, J., Osher, S., 2004. Numerical methods for high dimensional Hamilton–Jacobi equations using radial basis functions. Journal of Computational Physics 196, 327–347. doi:10.1016/j.jcp.2003.11.010.
[30] Chan, H.F., Fan, C.M., 2013. The local radial basis function collocation method for solving two-dimensional inverse Cauchy problems. Numerical Heat Transfer, Part B: Fundamentals 63, 284–303. doi:10.1080/10407790.2013.772004.
[31] Cheng, S.W., Dey, T.K., Ramos, E.A., 2010. Delaunay refinement for piecewise smooth complexes. Discrete & Computational Geometry 43, 121–166. doi:10.1007/s00454-008-9109-3.
[32] Clark, D.S., 1987. Short proof of a discrete Gronwall inequality. Discrete Applied Mathematics 16, 279–281. doi:10.1016/0166-218X(87)90064-3.
[33] Cook, R.L., 1986. Stochastic sampling in computer graphics. ACM Transactions on Graphics 5, 51–72. doi:10.1145/7529.8927.
[34] Davis, T.A., 2006. Direct Methods for Sparse Linear Systems. SIAM, Philadelphia. doi:10.1137/1.9780898718881.
[35] Davis, T.A., Rajamanickam, S., Sid-Lakhdar, W.M., 2016. A survey of direct methods for sparse linear systems. Acta Numerica 25, 383–566. doi:10.1017/S0962492916000076.
[36] Davydov, O., Oanh, D.T., 2011. Adaptive meshless centres and RBF stencils for Poisson equation. Journal of Computational Physics 230, 287–304. doi:10.1016/j.jcp.2010.09.005.
[37] Davydov, O., Oanh, D.T., Tuong, N.M., 2020. Octant-based stencil selection for meshless finite difference methods in 3D. Vietnam Journal of Mathematics 48, 93–106. doi:10.1007/s10013-019-00364-4.
[38] Davydov, O., Oanh, D.T., Tuong, N.M., 2023. Improved stencil selection for meshless finite difference methods in 3D. Journal of Computational and Applied Mathematics 425, 115031. doi:10.1016/j.cam.2022.115031.
[39] Davydov, O., Schaback, R., 2016. Error bounds for kernel-based numerical differentiation. Numerische Mathematik 132, 243–269. doi:10.1007/s00211-015-0722-9.
[40] Davydov, O., Schaback, R., 2019. Optimal stencils in Sobolev spaces. IMA Journal of Numerical Analysis 39, 398–422. doi:10.1093/imanum/drx076.
[41] Dehghan, M., Tatari, M., 2007. The radial basis functions method for identifying an unknown parameter in a parabolic equation with overspecified data. Numerical Methods for Partial Differential Equations 23, 984–997. doi:10.1002/num.20204.
[42] Dennis, J.E., Schnabel, R.B., 1996. Numerical Methods for Unconstrained Optimization and Nonlinear Equations. SIAM, Philadelphia. doi:10.1137/1.9781611971200.
[43] Depolli, M., Slak, J., Kosec, G., 2022. Parallel domain discretization algorithm for RBF-FD and other meshless numerical methods for solving PDEs. Computers & Structures 264, 106773. doi:10.1016/j.compstruc.2022.106773.
[44] Dippé, M.A.Z., Wold, E.H., 1985. Antialiasing through stochastic sampling, in: Proceedings of the 12th Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH '85), pp. 69–78. doi:10.1145/325334.325182.
[45] Drake, K.P., Fuselier, E.J., Wright, G.B., 2022. Implicit surface reconstruction with a curl-free radial basis function partition of unity method. SIAM Journal on Scientific Computing 44, A3018–A3040. doi:10.1137/22M1474485.
[46] Duchon, J., 1977. Splines minimizing rotation-invariant semi-norms in Sobolev spaces, in: Constructive Theory of Functions of Several Variables. Springer. volume 571 of Lecture Notes in Mathematics, pp. 85–100. doi:10.1007/BFb0086566.
[47] Duh, U., Kosec, G., Slak, J., 2021. Fast variable density node generation on parametric surfaces with application to mesh-free methods. SIAM Journal on Scientific Computing 43, A980–A1000. doi:10.1137/20M1325642.
[48] Duh, U., Shankar, V., Kosec, G., 2024. Discretization of non-uniform rational B-spline (NURBS) models for meshless isogeometric analysis. Journal of Scientific Computing 100, 51. doi:10.1007/s10915-024-02597-z.
[49] Ebeida, M.S., Davidson, A.A., Patney, A., Knupp, P.M., Mitchell, S.A., Owens, J.D., 2011. Efficient maximal Poisson-disk sampling. ACM Transactions on Graphics 30, 49:1–49:12. doi:10.1145/2010324.1964944.
[50] Ebeida, M.S., Mitchell, S.A., Patney, A., Davidson, A.A., Owens, J.D., 2012. A simple algorithm for maximal Poisson-disk sampling in high dimensions. Computer Graphics Forum 31, 785–794. doi:10.1111/j.1467-8659.2012.03059.x.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 41 of 45
[51] Erik, L., Varun, S., B., W.G., 2017. A radial basis function (rbf) compact finite difference (fd) scheme for reaction-diffusion equations on surfaces. SIAM Journal on Scientific Computing 39, A2129–A2151. URL: https://doi.org/10.1137/16M1095457, doi:10.1137/16M1095457.
[52] Farrell, P.E., Ham, D.A., Funke, S.W., Rognes, M.E., 2013. Automated derivation of the adjoint of high-level transient finite element programs. SIAM Journal on Scientific Computing 35, C369–C393. doi:10.1137/120873558.
[53] Fasshauer, G.E., 2007. Meshfree Approximation Methods with MATLAB. volume 6 of Interdisciplinary Mathematical Sciences. World Scientific. doi:10.1142/6437.
[54] Fedoseyev, A.I., Friedman, M.J., Kansa, E.J., 2002. Improved multiquadric method for elliptic partial differential equations via PDE collocation on the boundary. Computers & Mathematics with Applications 43, 439–455. doi:10.1016/S0898-1221(01)00297-8.
[55] Fischer, M., Noever, A., 2018. Tight analysis of parallel randomized greedy MIS, in: Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 2152–2160. doi:10.1137/1.9781611975031.140.
[56] Fleishman, S., Cohen-Or, D., Silva, C.T., 2005. Robust moving least-squares fitting with sharp features. ACM Transactions on Graphics 24, 544–552. doi:10.1145/1073204.1073227.
[57] Flyer, N., Barnett, G.A., Wicker, L.J., 2016a. Enhancing finite differences with radial basis functions: Experiments on the Navier–Stokes equations. Journal of Computational Physics 316, 39–62. doi:10.1016/j.jcp.2016.02.078.
[58] Flyer, N., Fornberg, B., Bayona, V., Barnett, G.A., 2016b. On the role of polynomials in RBF-FD approximations: I. Interpolation and accuracy. Journal of Computational Physics 321, 21–38. doi:10.1016/j.jcp.2016.05.026.
[59] Flyer, N., Lehto, E., Blaise, S., Wright, G.B., St-Cyr, A., 2012. A guide to RBF-generated finite differences for nonlinear transport: Shallow water simulations on a sphere. Journal of Computational Physics 231, 4078–4095. doi:10.1016/j.jcp.2012.01.028.
[60] Flyer, N., Wright, G.B., Fornberg, B., 2015. Radial basis function-generated finite differences: A mesh-free method for computational geosciences, in: Handbook of Geomathematics. Springer, pp. 2635–2669. doi:10.1007/978-3-642-54551-1_61.
[61] Fogelson, A.L., Neeves, K.B., 2015. Fluid mechanics of blood clot formation. Annual Review of Fluid Mechanics 47, 377–403. doi:10.1146/annurev-fluid-010814-014513.
[62] Fornberg, B., Driscoll, T.A., Wright, G., Charles, R., 2002. Observations on the behavior of radial basis function approximations near boundaries. Computers & Mathematics with Applications 43, 473–490. doi:10.1016/S0898-1221(01)00299-1.
[63] Fornberg, B., Flyer, N., 2015a. Fast generation of 2-D node distributions for mesh-free PDE discretizations. Computers & Mathematics with Applications 69, 531–544. doi:10.1016/j.camwa.2015.01.009.
[64] Fornberg, B., Flyer, N., 2015b. A Primer on Radial Basis Functions with Applications to the Geosciences. volume 87 of CBMS-NSF Regional Conference Series in Applied Mathematics. SIAM, Philadelphia. doi:10.1137/1.9781611974041.
[65] Fornberg, B., Flyer, N., 2015c. Solving PDEs with radial basis functions. Acta Numerica 24, 215–258. doi:10.1017/S0962492914000130.
[66] Fornberg, B., Lehto, E., 2011. Stabilization of RBF-generated finite difference methods for convective PDEs. Journal of Computational Physics 230, 2270–2285. doi:10.1016/j.jcp.2010.12.014.
[67] Fuselier, E., 2008. Sobolev-type approximation rates for divergence-free and curl-free RBF interpolants. Mathematics of Computation 77, 1407–1423. doi:10.1090/S0025-5718-07-02096-0.
[68] Gamito, M.N., Maddock, S.C., 2009. Accurate multidimensional Poisson-disk sampling. ACM Transactions on Graphics 29, 8:1–8:19. doi:10.1145/1640443.1640451.
[69] Geuzaine, C., Remacle, J.F., 2009. Gmsh: A 3-D finite element mesh generator with built-in pre- and post-processing facilities. International Journal for Numerical Methods in Engineering 79, 1309–1331. doi:10.1002/nme.2579.
[70] Giles, M.B., 2008. Collected matrix derivative results for forward and reverse mode algorithmic differentiation, in: Advances in Automatic Differentiation. Springer. volume 64 of Lecture Notes in Computational Science and Engineering, pp. 35–44. doi:10.1007/978-3-540-68942-3_4.
[71] Griewank, A., Walther, A., 2000. Algorithm 799: revolve. ACM Transactions on Mathematical Software 26, 19–45. doi:10.1145/347837.347846.
[72] Griewank, A., Walther, A., 2008. Evaluating Derivatives. SIAM, Philadelphia. doi:10.1137/1.9780898717761.
[73] Gunzburger, M.D., 2002. Perspectives in Flow Control and Optimization. SIAM. doi:10.1137/1.9780898718720.
[74] Haber, E., Ascher, U.M., Oldenburg, D., 2000. On optimization techniques for solving nonlinear inverse problems. Inverse Problems 16, 1263–1280. doi:10.1088/0266-5611/16/5/309.
[75] Hairer, E., Wanner, G., 1996. Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems. volume 14 of Springer Series in Computational Mathematics. 2 ed., Springer, Berlin. doi:10.1007/978-3-642-05221-7.
[76] Ham, D.A., Kelly, P.H.J., Mitchell, L., Cotter, C.J., Kirby, R.C., Sagiyama, K., Bouziani, N., Vorderwuelbecke, S., Gregory, T.J., Betteridge, J., Shapero, D.R., Nixon-Hill, R.W., Ward, C.J., Farrell, P.E., Brubeck, P.D., Marsden, I., Gibson, T.H., Homolya, M., Sun, T., McRae, A.T.T., Luporini, F., Gregory, A., Lange, M., Funke, S.W., Rathgeber, F., Bercea, G.T., Markall, G.R., 2023. Firedrake user manual. Imperial College London and University of Oxford and Baylor University and University of Washington. doi:10.25561/104839.
[77] Hart, J.C., 1996. Sphere tracing: a geometric method for the antialiased ray tracing of implicit surfaces. The Visual Computer 12, 527–545. doi:10.1007/s003710050084.
[78] Hawick, K.A., Leist, A., Playne, D.P., 2010. Parallel graph component labelling with GPUs and CUDA. Parallel Computing 36, 655–678. doi:10.1016/j.parco.2010.07.002.
[79] Higham, N.J., 2002. Accuracy and Stability of Numerical Algorithms. 2 ed., SIAM, Philadelphia. doi:10.1137/1.9780898718027.
[80] Hines, T., 2025. RBF: Python package containing tools for radial basis function applications. https://github.com/treverhines/RBF. Version 2025.7.4.1.
[81] Hinze, M., Pinnau, R., Ulbrich, M., Ulbrich, S., 2009. Optimization with PDE Constraints. Springer, Dordrecht. doi:10.1007/978-1-4020-8839-1.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 42 of 45
[82] Holl, P., Koltun, V., Thuerey, N., 2020. Learning to control PDEs with differentiable physics. International Conference on Learning Representations (ICLR). ArXiv:2001.07457.
[83] Holl, P., Thuerey, N., 2024. : Differentiable simulations for PyTorch, TensorFlow and Jax, in: Proceedings of the 41st International Conference on Machine Learning, PMLR. pp. 18515–18546.
[84] Hon, Y.C., Wei, T., 2004. A fundamental solution method for inverse heat conduction problem. Engineering Analysis with Boundary Elements 28, 489–495. doi:10.1016/S0955-7997(03)00102-4.
[85] Horn, R.A., Johnson, C.R., 2012. Matrix Analysis. 2 ed., Cambridge University Press, Cambridge. doi:10.1017/CB09781139020411.
[86] Incardona, P., Leo, A., Zaluzhnyi, Y., Ramaswamy, R., Sbalzarini, I.F., 2019. OpenFPM: A scalable open framework for particle and particle-mesh codes on parallel computers. Computer Physics Communications 241, 155–177. doi:10.1016/j.cpc.2019.03.007.
[87] Jacobson, A., Kavan, L., Sorkine-Hornung, O., 2013. Robust inside-outside segmentation using generalized winding numbers. ACM Transactions on Graphics 32, 33:1–33:12. doi:10.1145/2461912.2461916.
[88] Jacquemin, T., Suchde, P., Bordas, S.P.A., 2023. Smart cloud collocation: Geometry-aware adaptivity directly from CAD. Computer-Aided Design 154, 103409. doi:10.1016/j.cad.2022.103409.
[89] Jančič, M., Slak, J., Kosec, G., 2021. Monomial augmentation guidelines for RBF-FD from accuracy versus computational time perspective. Journal of Scientific Computing 87, 9. doi:10.1007/s10915-020-01401-y.
[90] Jin, B., Marin, L., 2007. The method of fundamental solutions for inverse source problems associated with the steady-state heat conduction. International Journal for Numerical Methods in Engineering 69, 1570–1589. doi:10.1002/nme.1826.
[91] Kaltenbacher, B., Neubauer, A., Scherzer, O., 2008. Iterative Regularization Methods for Nonlinear Ill-Posed Problems. Walter de Gruyter, Berlin. doi:10.1515/9783110208276.
[92] Kansa, E.J., 1990. Multiquadrics—a scattered data approximation scheme with applications to computational fluid-dynamics—II. Solutions to parabolic, hyperbolic and elliptic partial differential equations. Computers & Mathematics with Applications 19, 147–161. doi:10.1016/0898-1221(90)90271-K.
[93] Karniadakis, G.E., Kevrekidis, I.G., Lu, L., Perdikaris, P., Wang, S., Yang, L., 2021. Physics-informed machine learning. Nature Reviews Physics 3, 422–440. doi:10.1038/s42254-021-00314-5.
[94] Kazhdan, M., Hoppe, H., 2013. Screened Poisson surface reconstruction. ACM Transactions on Graphics 32, 29:1–29:13. doi:10.1145/2487228.2487237.
[95] Kochkov, D., Smith, J.A., Alieva, A., Wang, Q., Brenner, M.P., Hoyer, S., 2021. Machine learning–accelerated computational fluid dynamics. Proceedings of the National Academy of Sciences 118, e2101784118. doi:10.1073/pnas.2101784118.
[96] Kuberry, P., Bosler, P., Trask, N., 2019. Compadre toolkit. Sandia National Laboratories. doi:10.11578/dc.20190411.1.
[97] Kuharsky, A.L., Fogelson, A.L., 2001. Surface-mediated control of blood coagulation: The role of binding site densities and platelet deposition. Biophysical Journal 80, 1050–1074. doi:10.1016/S0006-3495(01)76085-7.
[98] Larsson, E., Mavrič, B., Michael, A., Pooladi, F., 2022. A numerical investigation of some RBF-FD error estimates. Dolomites Research Notes on Approximation 15, 78–95. doi:10.14658/PUPJ-DRNA-2022-5-8.
[99] Le Borne, S., Leinen, W., 2023. Guidelines for RBF-FD discretization: Numerical experiments on the interplay of a multitude of parameter choices. Journal of Scientific Computing 95, 8. doi:10.1007/s10915-023-02123-7.
[100] Levenberg, K., 1944. A method for the solution of certain non-linear problems in least squares. Quarterly of Applied Mathematics 2, 164–168. doi:10.1090/qam/10666.
[101] Liu, Y., Fan, X., Wang, J.X., 2026. JAX-AMG: A GPU-accelerated differentiable sparse linear solver library for JAX. SoftwareX 35, 102966. doi:10.1016/j.softx.2026.102966.
[102] Löhner, R., Oñate, E., 1998. An advancing front point generation technique. Communications in Numerical Methods in Engineering 14, 1097–1108. doi:10.1002/(SICI)1099-0887(199812)14:12<1097::AID-CNMI83>3.0.C0;2-7.
[103] Löhner, R., Oñate, E., 2004. A general advancing front technique for filling space with arbitrary objects. International Journal for Numerical Methods in Engineering 61, 1977–1991. doi:10.1002/nme.1068.
[104] Lu, L., Meng, X., Mao, Z., Karniadakis, G.E., 2021. DeepXDE: A deep learning library for solving differential equations. SIAM Review 63, 208–228. doi:10.1137/19M1274067.
[105] Lubich, C., Nevanlinna, O., 1991. On resolvent conditions and stability estimates. BIT 31, 293–313. doi:10.1007/BF01931289.
[106] Luby, M., 1986. A simple parallel algorithm for the maximal independent set problem. SIAM Journal on Computing 15, 1036–1053. doi:10.1137/0215074.
[107] Macêdo, I., Gois, J.P., Velho, L., 2011. Hermite radial basis functions implicits. Computer Graphics Forum 30, 27–42. doi:10.1111/j.1467-8659.2010.01785.x.
[108] Marquardt, D.W., 1963. An algorithm for least-squares estimation of nonlinear parameters. Journal of the Society for Industrial and Applied Mathematics 11, 431–441. doi:10.1137/0111030.
[109] Melenk, J.M., Babuška, I., 1996. The partition of unity finite element method: Basic theory and applications. Computer Methods in Applied Mechanics and Engineering 139, 289–314. doi:10.1016/S0045-7825(96)01087-0.
[110] Micchelli, C.A., 1986. Interpolation of scattered data: Distance matrices and conditionally positive definite functions. Constructive Approximation 2, 11–22. doi:10.1007/BF01893414.
[111] Mitchell, D.P., 1987. Generating antialiased images at low sampling densities, in: Proceedings of the 14th Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH '87), pp. 65–72. doi:10.1145/37401.37410.
[112] Mitsusch, S.K., Funke, S.W., Dokken, J.S., 2019. dolfin-adjoint 2018.1: automated adjoints for FEniCS and Firedrake. Journal of Open Source Software 4, 1292. doi:10.21105/joss.01292.
[113] Narcowich, F.J., Ward, J.D., 1994. Generalized Hermite interpolation via matrix-valued conditionally positive definite functions. Mathematics of Computation 63, 661–687. doi:10.1090/S0025-5718-1994-1254147-6.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 43 of 45
[114] Nocedal, J., Wright, S.J., 2006. Numerical Optimization. Springer Series in Operations Research and Financial Engineering. 2 ed., Springer, New York. doi:10.1007/978-0-387-40065-5.
[115] NVIDIA Corporation, 2024. cuDSS: CUDA direct sparse solver library. URL: https://docs.nvidia.com/cuda/cudss/.
[116] Nzoyem Ngueguin, R.D., Barton, D.A.W., Deakin, T., 2023. A comparison of mesh-free differentiable programming and data-driven strategies for optimal control under PDE constraints, in: Proceedings of the SC '23 Workshops of the International Conference on High Performance Computing, Network, Storage, and Analysis, ACM. pp. 21–28. doi:10.1145/3624062.3626078.
[117] Oanh, D.T., Davydov, O., Phu, H.X., 2017. Adaptive RBF-FD method for elliptic problems with point singularities in 2D. Applied Mathematics and Computation 313, 474–497. doi:10.1016/j.amc.2017.06.006.
[118] Ohtake, Y., Belyaev, A., Alexa, M., Turk, G., Seidel, H.P., 2003. Multi-level partition of unity implicits. ACM Transactions on Graphics 22, 463–470. doi:10.1145/882262.882293.
[119] Oliver, D.S., Chen, Y., 2011. Recent progress on reservoir history matching: a review. Computational Geosciences 15, 185–221. doi:10.1007/s10596-010-9194-2.
[120] Organ, D., Fleming, M., Terry, T., Belytschko, T., 1996. Continuous meshless approximations for nonconvex bodies by diffraction and transparency. Computational Mechanics 18, 225–235. doi:10.1007/BF00369940.
[121] Pearson, J.W., 2013. A radial basis function method for solving PDE-constrained optimization problems. Numerical Algorithms 64, 481–506. doi:10.1007/s11075-012-9675-6.
[122] Pearson, K., 1901. On lines and planes of closest fit to systems of points in space. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science 2, 559–572. doi:10.1080/14786440109462720.
[123] Penrose, R., 1955. A generalized inverse for matrices. Mathematical Proceedings of the Cambridge Philosophical Society 51, 406–413. doi:10.1017/S0305004100030401.
[124] Persson, P.O., Strang, G., 2004. A simple mesh generator in MATLAB. SIAM Review 46, 329–345. doi:10.1137/S0036144503429121.
[125] PhysicsNeMo Contributors, 2023. NVIDIA PhysicsNeMo: An open-source framework for physics-based deep learning in science and engineering. https://github.com/NVIDIA/physicsnemo.
[126] Platte, R.B., Driscoll, T.A., 2006. Eigenvalue stability of radial basis function discretizations for time-dependent problems. Computers & Mathematics with Applications 51, 1251–1268. doi:10.1016/j.camwa.2006.04.007.
[127] Plessix, R.E., 2006. A review of the adjoint-state method for computing the gradient of a functional with geophysical applications. Geophysical Journal International 167, 495–503. doi:10.1111/j.1365-246X.2006.02978.x.
[128] Rader, J., Lyons, T., Kidger, P., 2023. Lineax: unified linear solves and linear least-squares in jax and equinox. AI for science workshop at Neural Information Processing Systems 2023, arXiv:2311.17283.
[129] Rader, J., Lyons, T., Kidger, P., 2024. Optimistix: modular optimisation in jax and equinox. arXiv:2402.09983.
[130] Raissi, M., Perdikaris, P., Karniadakis, G.E., 2019. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics 378, 686–707. doi:10.1016/j.jcp.2018.10.045.
[131] Rannacher, R., Vexler, B., 2005. A priori error estimates for the finite element discretization of elliptic parameter identification problems with pointwise measurements. SIAM Journal on Control and Optimization 44, 1844–1863. doi:10.1137/040611100.
[132] Rigal, J.L., Gaches, J., 1967. On the compatibility of a given solution with the data of a linear system. Journal of the ACM 14, 543–548. doi:10.1145/321406.321416.
[133] van der Sande, K., Fornberg, B., 2021. Fast variable density 3-D node generation. SIAM Journal on Scientific Computing 43, A242–A257. doi:10.1137/20M1337016.
[134] Schaback, R., 2017. Error analysis of nodal meshless methods, in: Meshfree Methods for Partial Differential Equations VIII. Springer, Cham. volume 115 of Lecture Notes in Computational Science and Engineering, pp. 117–143. doi:10.1007/978-3-319-51954-8_7.
[135] Shahane, S., Radhakrishnan, A., Vanka, S.P., 2021. A high-order accurate meshless method for solution of incompressible fluid flow problems. Journal of Computational Physics 445, 110623. doi:10.1016/j.jcp.2021.110623.
[136] Shankar, V., 2017. The overlapped radial basis function-finite difference (RBF-FD) method: A generalization of RBF-FD. Journal of Computational Physics 342, 211–228. doi:10.1016/j.jcp.2017.04.037.
[137] Shankar, V., Fogelson, A.L., 2018. Hyperviscosity-based stabilization for radial basis function-finite difference (RBF-FD) discretizations of advection-diffusion equations. Journal of Computational Physics 372, 616–639. doi:10.1016/j.jcp.2018.06.036.
[138] Shankar, V., Kirby, R.M., Fogelson, A.L., 2018a. Robust node generation for mesh-free discretizations on irregular domains and surfaces. SIAM Journal on Scientific Computing 40, A2584–A2608. doi:10.1137/17M114090X.
[139] Shankar, V., Narayan, A., Kirby, R.M., 2018b. RBF-LOI: Augmenting radial basis functions (RBFs) with least orthogonal interpolation (LOI) for solving PDEs on surfaces. Journal of Computational Physics 373, 722–735. doi:10.1016/j.jcp.2018.07.015.
[140] Shankar, V., Wright, G.B., Fogelson, A.L., 2021. An efficient high-order meshless method for advection-diffusion equations on time-varying irregular domains. Journal of Computational Physics 445, 110633. doi:10.1016/j.jcp.2021.110633.
[141] 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, 745–768. doi:10.1007/s10915-014-9914-1.
[142] Shankar, V., Wright, G.B., Narayan, A., 2020. A robust hyperviscosity formulation for stable rbf-fd discretizations of advection-diffusion-reaction equations on manifolds. SIAM Journal on Scientific Computing 42, A2371–A2401. URL: https://doi.org/10.1137/19M1288747, doi:10.1137/19M1288747, arXiv:https://doi.org/10.1137/19M1288747.
[143] Shepard, D., 1968. A two-dimensional interpolation function for irregularly-spaced data, in: Proceedings of the 1968 23rd ACM National Conference, pp. 517–524. doi:10.1145/800186.810616.
[144] Shu, C., Ding, H., Yeo, K.S., 2003. Local radial basis function-based differential quadrature method and its application to solve two-dimensional incompressible Navier–Stokes equations. Computer Methods in Applied Mechanics and Engineering 192, 941–954. doi:10.1016/S0045-7825(02)00618-7.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 44 of 45
[145] Shukla, K., Toscano, J.D., Wang, Z., Zou, Z., Karniadakis, G.E., 2024. A comprehensive and FAIR comparison between MLP and KAN representations for differential equations and operator networks. Computer Methods in Applied Mechanics and Engineering 431, 117290. doi:10.1016/j.cma.2024.117290.
[146] Si, H., 2015. TetGen, a Delaunay-based quality tetrahedral mesh generator. ACM Transactions on Mathematical Software 41, 11:1–11:36. doi:10.1145/2629697.
[147] Slak, J., Kosec, G., 2019. On generation of node distributions for meshless PDE discretizations. SIAM Journal on Scientific Computing 41, A3202–A3229. doi:10.1137/18M1231456.
[148] Slak, J., Kosec, G., 2021. Medusa: A C++ library for solving PDEs using strong form mesh-free methods. ACM Transactions on Mathematical Software 47, 1–25. doi:10.1145/3450966.
[149] Sorensen, D.C., 1992. Implicit application of polynomial filters in a k-step Arnoldi method. SIAM Journal on Matrix Analysis and Applications 13, 357–385. doi:10.1137/0613025.
[150] Stewart, G.W., 2002. A Krylov–Schur algorithm for large eigenproblems. SIAM Journal on Matrix Analysis and Applications 23, 601–614. doi:10.1137/S0895479800371529.
[151] Stuart, A.M., 2010. Inverse problems: A Bayesian perspective. Acta Numerica 19, 451–559. doi:10.1017/S0962492910000061.
[152] Suchde, P., Jacquemin, T., Davydov, O., 2023. Point cloud generation for meshfree methods: An overview. Archives of Computational Methods in Engineering 30, 889–915. doi:10.1007/s11831-022-09820-w.
[153] Tarantola, A., 2005. Inverse Problem Theory and Methods for Model Parameter Estimation. SIAM. doi:10.1137/1.9780898717921.
[154] Taylor, C.A., Figueroa, C.A., 2009. Patient-specific modeling of cardiovascular mechanics. Annual Review of Biomedical Engineering 11, 109–134. doi:10.1146/annurev.bioeng.10.061807.160521.
[155] Tolstykh, A.I., Shirobokov, D.A., 2003. On using radial basis functions in a “finite difference mode” with applications to elasticity problems. Computational Mechanics 33, 68–79. doi:10.1007/s00466-003-0501-9.
[156] Tominec, I., Larsson, E., Heryudono, A., 2021. A least squares radial basis function finite difference method with improved stability properties. SIAM Journal on Scientific Computing 43, A1441–A1471. doi:10.1137/20M1320079.
[157] Turk, G., O'Brien, J.F., 2002. Modelling with implicit surfaces that interpolate. ACM Transactions on Graphics 21, 855–873. doi:10.1145/571647.571650.
[158] Vlasiuk, O., Michaels, T., Flyer, N., Fornberg, B., 2018. Fast high-dimensional node generation with variable density. Computers & Mathematics with Applications 76, 1739–1757. doi:10.1016/j.camwa.2018.07.026.
[159] Vogel, C.R., 2002. Computational Methods for Inverse Problems. SIAM, Philadelphia. doi:10.1137/1.9780898717570.
[160] Wang, Q., Moin, P., Iaccarino, G., 2009. Minimal repetition dynamic checkpointing algorithm for unsteady adjoint calculation. SIAM Journal on Scientific Computing 31, 2549–2567. doi:10.1137/080727890.
[161] Wedin, P.Å., 1973. Perturbation theory for pseudo-inverses. BIT 13, 217–232. doi:10.1007/BF01933494.
[162] Wei, L.Y., 2008. Parallel Poisson disk sampling. ACM Transactions on Graphics 27, 20:1–20:9. doi:10.1145/1360612.1360619.
[163] Wendland, H., 1995. Piecewise polynomial, positive definite and compactly supported radial functions of minimal degree. Advances in Computational Mathematics 4, 389–396. doi:10.1007/BF02123482.
[164] Wendland, H., 2004. Scattered Data Approximation. volume 17 of Cambridge Monographs on Applied and Computational Mathematics. Cambridge University Press, Cambridge. doi:10.1017/CB09780511617539.
[165] Widlund, O.B., 1967. A note on unconditionally stable linear multistep methods. BIT 7, 65–70. doi:10.1007/BF01934126.
[166] Wright, G.B., Fornberg, B., 2006. Scattered node compact finite difference-type formulas generated from radial basis functions. Journal of Computational Physics 212, 99–123. doi:10.1016/j.jcp.2005.05.030.
[167] Xue, T., Liao, S., Gan, Z., Park, C., Xie, X., Liu, W.K., Cao, J., 2023. JAX-FEM: A differentiable GPU-accelerated 3D finite element solver for automatic inverse design and mechanistic data science. Computer Physics Communications 291, 108802. doi:10.1016/j.cpc.2023.108802.
[168] Yeh, W.W.G., 1986. Review of parameter identification procedures in groundwater hydrology: The inverse problem. Water Resources Research 22, 95–108. doi:10.1029/WR022i002p00095.
[169] Yuksel, C., 2015. Sample elimination for generating Poisson disk sample sets. Computer Graphics Forum 34, 25–32. doi:10.1111/cgf.12538.
[170] Zamolo, R., Nobile, E., 2018. Two algorithms for fast 2D node generation: Application to RBF meshless discretization of diffusion problems and image halftoning. Computers & Mathematics with Applications 75, 4305–4321. doi:10.1016/j.camwa.2018.03.031.
Cattaneo, Ballard, Kirby, Wright, and Shankar: Preprint submitted to Elsevier
Page 45 of 45