5.1. Verification
For each example, the relevant boundary closures of
Section 3.4 (all five for Examples 1 and 2; naive, exact, and neural-SDF only for Examples 3 and 4) are compared inside an otherwise identical cut-cell solver for the manufactured problem of Equations (
1)–(
5) (extended to three velocity components and three spatial dimensions for Example 4). The order of accuracy is estimated by the regression of Equation (
28) with 95% confidence intervals on the fitted slope.
Example 1 (flower). Ten grid levels were tested (
to 80,
down to
).
Figure 4 shows the pointwise error magnitude of all five boundary closures on the finest grid. The naive closure produces an
error that does not shrink with refinement, visible directly in
Figure 5 as an
error that grows over the time integration rather than settling near zero. The regression-based order of accuracy (
Table 2) confirms this quantitatively, with the naive closure fitting to order
(95% CI
,
), a clean negative control confirming that the manufactured problem is genuinely sensitive to boundary accuracy. All four geometry-aware closures recover second order, with exact-SDF at
(95% CI
), neural-SDF at
(95% CI
), cut-cell at
(95% CI
), and quadratic ghost-cell at
(95% CI
), all with
. The neural-SDF confidence interval overlaps the exact-SDF interval almost entirely, so the trained surrogate is statistically indistinguishable from the closed-form distance function in achieved order.
As a direct check on the surrogate itself, not only its downstream effect on the PDE solve,
Figure 6 compares the analytic signed-distance surface against the trained neural-SDF surface over the same domain; the comparison is visual, meant to convey the surrogate’s overall shape fidelity, rather than a substitute for a quantitative accuracy measurement, which is instead established by the intercept-error bound of Proposition 1 and by the pointwise solution-error maps and convergence rates already reported in
Figure 4 and
Table 2. The two surfaces agree closely away from the sharp concave notches between lobes, where the analytic field’s corners are mildly smoothed by the network, consistent with the gradient-smoothness result of
Section 5.3. Repeating neural training at the finest grid over five random seeds gives
(mean ± std), so run-to-run variability of the trained surrogate is roughly two orders of magnitude smaller than the error itself and the neural result in
Table 2 does not depend on a favorable seed.
Example 2 (multiply-connected domain). Ten grid levels were tested (
to 80). Because the reentrant slit is only 1–2 cells wide until
, the regression-based order of accuracy is computed using only the seven grid levels with
; coarser levels are retained in
Table 3 for completeness but excluded from the fit.
Figure 7 shows the error maps on the finest grid, where the largest errors for every geometry-aware closure concentrate along the slit and hole boundaries.
As in Example 1, the naive closure again fails to converge, at order
(95% CI
,
). All four geometry-aware closures recover order
–
(
Table 4), with exact-SDF at
(95% CI
), neural-SDF at
(95% CI
), cut-cell at
(95% CI
), and quadratic ghost-cell at
(95% CI
). The confidence intervals are visibly wider than in Example 1, with the cut-cell interval the widest; this reflects the added difficulty of resolving the slit’s two sharp reentrant corners on coarse-to-moderate grids rather than any specific weakness of the neural correction, whose interval again overlaps the exact-SDF interval almost entirely.
Figure 8 shows the domain boundary alongside the trained neural-SDF surface; the surrogate correctly learns the sign change and shape around both holes and the slit, including the two reentrant corners. Repeating neural training at the finest grid over five seeds gives
, again roughly two orders of magnitude tighter than the error itself.
Example 3 (digitized airfoil). The raw geometry is the 81 digitized Selig S1223 points (unit chord, UIUC database);
Figure 9 shows the raw points together with the fine spline reference curve used as the point-cloud-based exact distance throughout this example. Eight grid levels were tested, from a coarse
grid (
) to a fine
grid (
). Formal order of accuracy is meaningful only once the grid adequately resolves the airfoil’s thin cross-section in the thickness direction, so the regression fit uses only the four finest levels (
; full data in
Table 5).
The naive closure is again a negative control, as in Examples 1 and 2, at order
(95% CI
,
), with the
error rising sharply and plateauing near
without approaching zero. The exact (point-cloud) and neural-SDF closures both recover second-order accuracy, with exact at
(95% CI
,
) and neural at
(95% CI
,
); see
Table 6. These intervals are wider than in Examples 1 and 2, a direct consequence of the regression using only
points (the thin trailing edge caps how coarse a usable grid can be), not a weakness specific to the neural surrogate, whose fitted order and interval track the point-cloud-based exact reference closely at every level tested.
Figure 10 shows the error maps, largest near the thin trailing edge for every closure, exact and neural alike.
Repeating neural training at the finest grid over five seeds gives , roughly three orders of magnitude tighter than the error itself. At this finest grid, neural-SDF training takes s, against solve-loop costs of , , and s (600 steps) for the naive, exact, and neural closures, respectively, so per-step cost is essentially identical across all three and the training time is the entire one-time premium paid for the surrogate.
Example 4 (mechanical flange). Seven grid levels were tested (
to 84,
down to
), each roughly an order of magnitude fewer active cells than the two-dimensional examples’ finest grids because active-cell count grows as
.
Figure 11 shows a
cross-section of the manufactured solution and all three closures on the finest grid, and
Figure 12 shows the corresponding pointwise error. As in every other example, the naive closure is a clean negative control, at order
(95% CI
,
). The exact-CSG and neural-SDF closures both fit close to second order, with exact at
(95% CI
,
) and neural at
(95% CI
,
); see
Table 7.
These intervals are visibly wider than any two-dimensional examples’, and the full per-grid data (
Table 8) shows why. Critically, both identified causes below affect the exact-CSG closure—the classical, non-neural gold standard—as much as the neural-SDF closure: their fitted orders (exact
, neural
) and interval widths are comparable, and both fits exceed
. The width is, therefore, a property of this test problem’s grid and timestep resolution, not a weakness specific to the trained surrogate; at no grid tested does neural-SDF underperform exact-CSG by a meaningful margin. The exact and neural errors both rise between
and
before resuming their decrease, most plausibly because the bolt holes (diameter
) are only
–
cells across at these coarser grids, a genuinely different discretization of that feature between successive grids rather than a smooth refinement of it: when a curved feature’s diameter spans only a handful of cells, successive grids can differ not merely in the accuracy of the intercepts assigned near that feature but in the topology of the cut-cell mask itself—how many cells the hole’s boundary intersects, and in what pattern—so refinement locally re-discretizes the feature rather than shrinking
h around a fixed discrete representation of it. The bump subsides once the bolt holes are resolved by roughly three or more cells, which is reached at
(
); this is why the regression fit of
Table 7 restricts to
, beyond which the expected monotone decrease resumes. A second, distinct effect appears at the two finest grids, where the exact closure’s error changes little from
to
(
to
, per-step order
). Unlike the mid-sequence bump, this is not obviously a geometry-resolution artifact, since the bolt holes are comparatively well resolved by
. A more likely explanation is temporal error catching up with spatial error, since the diffusion term is advanced by backward Euler, which is only first-order in time, at a fixed
inherited unchanged from the two-dimensional examples: the ratio
rises from approximately
at
to
at
and
at
, growing by roughly the factor of
–
expected of a fixed
against a shrinking
at every step, but only at these two finest grids does the ratio approach order unity, indicating that
no longer shrinks fast enough relative to
for the temporal truncation error to remain subdominant to the shrinking spatial error there; the condition the two-dimensional grids were explicitly checked to satisfy (
Section 3.3) but that this finer, three-dimensional grid range was not re-verified against. This is reported rather than smoothed over. The regression fit, including this plateau, still gives an order consistent with two within a wide interval, but the interval’s width is attributable to specific, checkable mechanisms shared by both closures rather than unexplained noise or a surrogate-specific weakness.
Figure 13 shows the finest-grid discretized domain as a three-dimensional cut-away solid, and
Figure 14 shows the corresponding manufactured solution and the neural-SDF pointwise error over the complete three-dimensional active-cell set, rather than a single cross-sectional slice. Repeating neural training at the finest grid over five seeds gives
, so run-to-run variability is roughly two orders of magnitude smaller than the error itself, so, exactly as in every two-dimensional example, the neural result does not depend on a favorable seed.
Table 7.
Example 4: regression-based order of accuracy ( vs. , only, grid levels).
Table 7.
Example 4: regression-based order of accuracy ( vs. , only, grid levels).
| Closure | Order | 95% CI | |
|---|
| naive | | | 0.921 |
| exact-CSG | | | 0.925 |
| neural-SDF | | | 0.962 |
Table 8.
Example 4: full grid-convergence data, all 7 levels (geometry-aware closures only; per-step orders in parentheses). The naive closure does not converge at any level (order
throughout, per
Table 7) and is omitted here for brevity. The regression fit of
Table 7 uses only
.
Table 8.
Example 4: full grid-convergence data, all 7 levels (geometry-aware closures only; per-step orders in parentheses). The naive closure does not converge at any level (order
throughout, per
Table 7) and is omitted here for brevity. The regression fit of
Table 7 uses only
.
| h | Active/Total Cells | Exact/Neural |
|---|
| 18 | 0.12706 | 320/1620 | 5.797 × /8.874 × 10−4 (–) |
| 24 | 0.09391 | 1216/3456 | 4.674 × 10−4/7.770 × 10−4 (0.71/0.44) |
| 32 | 0.06968 | 2160/8192 | 8.301 × 10−4/7.881 × 10−4 (/) |
| 42 | 0.05268 | 5568/17,640 | 3.516 × 10−4/3.804 × 10−4 (3.07/2.61) |
| 54 | 0.04075 | 12,480/34,992 | 2.444 × 10−4/2.409 × 10−4 (1.42/1.78) |
| 68 | 0.03224 | 22,428/69,360 | 1.099 × 10−4/9.458 × 10−5 (3.41/3.99) |
| 84 | 0.02602 | 42,372/134,064 | 1.035 × 10−4/7.283 × 10−5 (0.28/1.22) |
Figure 11.
Example 4: manufactured solution and the naive/exact (CSG) / neural-SDF closures on the finest grid (), shown on the cross-section.
Figure 11.
Example 4: manufactured solution and the naive/exact (CSG) / neural-SDF closures on the finest grid (), shown on the cross-section.
Figure 12.
Example 4: pointwise absolute error, finest grid, cross-section.
Figure 12.
Example 4: pointwise absolute error, finest grid, cross-section.
Figure 13.
Example 4: three-dimensional cut-away solid rendering of the mechanical flange domain at the finest grid (), built directly from the solver’s own inside/outside mask rather than a separate idealized drawing. The domain is cut along so the central bore and the near-side bolt holes are visible simultaneously; a faint translucent surface shows the complete, uncut outer envelope for context.
Figure 13.
Example 4: three-dimensional cut-away solid rendering of the mechanical flange domain at the finest grid (), built directly from the solver’s own inside/outside mask rather than a separate idealized drawing. The domain is cut along so the central bore and the near-side bolt holes are visible simultaneously; a faint translucent surface shows the complete, uncut outer envelope for context.
Figure 14.
Example 4: finest-grid () numerical solution rendered over the full three-dimensional active-cell set, not a single cross-sectional slice. Left: the manufactured/exact solution . Right: the pointwise error. Points are drawn with partial transparency so interior structure—the bore and the six bolt holes—remains visible through the outer wall.
Figure 14.
Example 4: finest-grid () numerical solution rendered over the full three-dimensional active-cell set, not a single cross-sectional slice. Left: the manufactured/exact solution . Right: the pointwise error. Points are drawn with partial transparency so interior structure—the bore and the six bolt holes—remains visible through the outer wall.
5.2. Cost-Scaling
Distance queries against N discrete boundary points are compared across three methods—brute-force linear search ( per query), a KD-tree spatial index ( one-time build, per query), and the trained neural surrogate (fixed network size, per query, independent of N). KD-tree build time is reported as the classical analogue of one-time neural training cost, and KD-tree query time as the analogue of amortized neural query cost; both sides of the ledger are reported, including the regimes where the network does not prevail, and, as elsewhere in this comparison, the resulting crossover points bound the surrogate’s advantage for this specific search-based task rather than for the larger class of costlier calculations it might replace.
Example 1 (flower). Boundary point counts from
to
were tested (7 repeats per count). At the largest count, brute-force query cost is
s/query, KD-tree query (after a one-time
s build) is
s/query, and the trained network’s batched query cost is
s/query, independent of
N by construction. The network is thus
faster than the KD-tree query and
faster than brute force at
(
Figure 15). The crossover at which the network overtakes the KD-tree query falls in the
–
point range, visible directly where the constant neural line crosses the KD-tree curve in
Figure 15.
The one-time costs are reported side by side (
Figure 16). At the finest grid (
), neural-SDF training takes
s, versus effectively zero setup cost for the other four closures; per-timestep solve cost is nearly identical across all five (
–
s/step, 600 steps), so the network’s total cost of
s at this problem size is dominated entirely by the one-time training cost. This one-time cost is directly analogous to a KD-tree build and is amortized over however many boundary queries the surrogate subsequently serves, which is precisely why the crossover in
Figure 15 favors the network only once
N is high enough that this fixed cost is worth paying.
Example 2 (multiply-connected domain). Boundary density was scaled by a multiplier from
(
points across the outer rim, two holes, and slit) up to
(
points), with 7 repeats per density. At maximum density, brute-force query cost is
s/query, KD-tree query (after a one-time
s build) is
s/query, and the network’s batched query cost is
s/query, independent of density. The network is thus
faster than the KD-tree query and
faster than brute force at maximum density (
Figure 17). The larger margin relative to Example 1 reflects the larger effective point count needed to resolve six separate boundary components (outer rim, two holes, two slit flanks, slit tip) at comparable per-component resolution. On the one-time side, neural-SDF training at the finest grid takes
s (more than
Example 1’s training time, consistent with the added geometric complexity), against near-identical per-step solve costs across all five closures (
–
s/step, 600 steps), giving a total neural cost of
s at this problem size.
Example 3 (digitized airfoil). Point-cloud density (resampled from the digitized data) was scaled from
to
, with 7 repeats per count. At
, brute-force query cost is
s/query, KD-tree query (after a one-time
s build) is
s/query, and the network’s batched query cost is
s/query, independent of
N. The network is thus
faster than the KD-tree query and
faster than brute force at
(
Figure 18), consistent with the crossover behavior of Example 1; the constant neural line again crosses the KD-tree curve near
–
points.
Example 4 (mechanical flange). Point-cloud density was scaled by resampling the flange’s surface (
Section 4.1) from
to
points (7 repeats per count, as in every other example). At
, brute-force query cost is
s/query, KD-tree query (after a one-time
s build) is
s/query, and the network’s batched query cost is
s/query, independent of
N. The network is thus
faster than brute force and
faster than the KD-tree query at this density (
Figure 19). The crossover at which the network overtakes the KD-tree query falls between
, where the KD-tree remains faster (
vs.
s/query), and
, where the two are already comparable (
s/query)—a somewhat later crossover than the two-dimensional examples’, consistent with three-dimensional KD-tree queries themselves remaining cheap up to higher point counts before the network’s fixed cost wins out.
5.3. Gradient Smoothness
For each example, the outward normal-direction field obtained by finite-differencing the trained neural distance surrogate is compared against the direction to the discrete nearest boundary point (the natural output of a brute-force or KD-tree query), using the total-angular-variation metric of Equation (
29) on offset query paths, with the
/
/
standoff sensitivity sweep of
Section 4.4.
Example 1 (flower). At the base offset, the total angular variation of the normal-direction field is
rad for the neural surrogate versus
rad for the nearest-point construction, so the nearest-point field carries
the variation. This is visible directly in
Figure 20, where the neural field’s arrows rotate smoothly along the boundary while the nearest-point field’s arrows flip abruptly near the concave notches between lobes. The ratio is offset-stable, at
at
the base offset,
at
, and
at
—as expected, since moving farther from a fixed set of discrete boundary points reduces how often the nearest-point identity switches, while the neural field remains smooth throughout the entire range tested.
Example 2 (multiply-connected domain). Table 9 breaks the total angular variation down per boundary component. The two smooth circular holes show almost no advantage (
–
), the outer rim a moderate advantage (
), and the reentrant slit the largest advantage among this domain’s boundary components (flanks
–
; tip
), giving a clean monotone ordering by local geometric severity within a single controlled domain, exactly as predicted by Remark 2. The combined total is
(
rad neural vs.
rad nearest-point).
Figure 21 shows this directly, with the neural normal field rotating smoothly around both holes and along the slit flanks while the nearest-point field is visibly discontinuous entering and exiting the slit. The total ratio is offset-stable, at
at
the base offset,
at
, and
at
.
Example 3 (digitized airfoil). Total angular variation at the base offset is
rad for the neural surrogate versus
rad for the nearest-point construction, a
ratio—between Example 2’s smooth-hole (≈1×) and reentrant-slit (≈5–
) extremes, consistent with a domain that is mostly convex, with no sharp reentrant features but a thin, sharply-curved trailing edge.
Figure 22 shows the neural normal field rotating smoothly along the whole airfoil surface, while the nearest-point field flips abruptly near the trailing edge (arc length
), where the identity of the nearest digitized point switches rapidly. The ratio is offset-stable, at
at
the base offset,
at
, and
at
.
Example 4 (mechanical flange). The bore and each bolt hole are surfaces of revolution, so the same one-dimensional angle-unwrap TV construction used in Examples 1 and 2 applies directly at fixed height
(
Section 4.4); the two flat annular faces use the neighbor mean-angular-difference construction instead.
Table 10 breaks the total angular variation down per feature. The outer wall shows the largest advantage of any single feature in this paper (
), the bore a substantial one (
), and all six bolt holes a smaller, mutually consistent one (
–
)—and the top face falls in between (
).
Figure 23 shows this directly for the outer wall and bore, where the neural normal field rotates smoothly while the nearest-point field is visibly discontinuous. The combined ring total is
(
rad neural vs.
rad nearest-point). The ratio is offset-stable in the same decreasing-with-standoff direction as Examples 1 and 2, with the ring total at
at
the base offset,
at
, and
at
; the top face likewise falls from
to
to
(the sweep’s
face value differs slightly from
Table 10’s
because the face sample points are drawn independently at random for each measurement).
This ordering is worth stating plainly, because it does not match Example 2’s pattern. There, smoothness advantage tracked concavity, and the smooth round holes showed almost no advantage (
–
) and the sharp reentrant slit showed the most (5–
). Here, the bore—a smooth round hole, geometrically the same kind of feature as Example 2’s holes—shows a much larger advantage (
) than the bolt holes (
–
), which are the tightest-curvature, most concave features on this part. The ordering instead tracks feature radius, with the outer wall (
) showing the largest ratio, the bore (
) an intermediate one, and the bolt holes (
, the smallest) the smallest and most mutually consistent ratios, as summarized directly by the per-feature smoothness ratios of
Figure 24. The most likely explanation is a point-cloud-density effect rather than a concavity effect, since the reference cloud used throughout this example is allocated in proportion to patch area, giving every ring the same areal point density regardless of radius, but a fixed areal density still yields more absolute points, and finer angular resolution at a fixed offset, on a larger ring than a smaller one. A clean separation of the concavity effect documented in Example 2 from this radius/density effect would require matching linear (arc-length) rather than areal point density across features of different size, which this experiment did not control for and is left as an open question rather than folded into a single explanation. It does not change the paper’s central smoothness claim—the neural field is smoother than the nearest-point construction at every feature and every offset tested, here as in every other example—only the specific claim that the advantage is driven by concavity alone. Formalizing this distinction–isolating the sampling-density contribution from the concavity contribution to the smoothness ratio, and establishing whether an arc-length-proportional point allocation removes the radius dependence observed here–constitutes a natural open question for future gradient-smoothness studies of this kind, distinct from the concavity mechanism established analytically in Remark 2 and confirmed in two dimensions.