Next Article in Journal
Robust Short-Term Multivariate Water-Level Forecasting Using a Hybrid LSTM–EnKF Model Under White-Noise Disturbances
Previous Article in Journal
Scheduler-Boundary Observability in Shared Quantum Clouds: Compilation- and Backend-Conditioned Diagnostics
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Neural Signed Distance Surrogates for Cut-Cell Finite-Volume Solvers

Department of Technology, Bethlehem University, 5 Rue des Frères, Bethlehem P1520468, Palestine
*
Author to whom correspondence should be addressed.
Computation 2026, 14(9), 198; https://doi.org/10.3390/computation14090198
Submission received: 25 July 2026 / Revised: 17 August 2026 / Accepted: 20 August 2026 / Published: 25 August 2026
(This article belongs to the Section Computational Intelligence)

Abstract

Cut-cell and ghost-cell finite-volume methods require an accurate boundary distance field, available in closed form only for simple shapes and otherwise obtained through costly nearest-neighbor search. Prior work embeds learned distance fields as an auxiliary component inside a larger neural architecture; this study instead tests the numerical consequences of substituting the distance function alone within an otherwise unmodified classical discretization. We propose a compact trained neural network as a drop-in surrogate for this field, evaluated against exact and classical alternatives, including a KD-tree baseline, on four problems of increasing difficulty ending with a three-dimensional mechanical flange. A truncation analysis bounds the surrogate’s intercept error and identifies the training accuracy needed to preserve the scheme’s formal order. The surrogate matches second-order accuracy in every example, with fitted orders of 2.0 to 2.1 in two dimensions and, in three dimensions, a wider but still order-consistent 1.9 to 2.5, the extra width traced to identified, shared mesh- and timestep-resolution effects rather than to the surrogate itself. Query cost overtakes the KD-tree beyond roughly one hundred thousand points, with speedups up to 26.1 times, and gradient fields are substantially smoother than nearest-point construction throughout, tracking geometric severity in two dimensions and feature scale in three.

1. Introduction

Many problems in computational physics and engineering require solving partial differential equations on domains whose boundaries do not align with a simple structured grid. Embedded-boundary approaches address this mismatch by keeping the underlying computational grid Cartesian and modifying the discretization near the interface, avoiding the cost and fragility of repeated body-fitted remeshing. The earliest and most influential example is the immersed boundary method, introduced by Peskin [1,2] to simulate blood flow around heart valves and later formalized and reviewed at length [3,4]. Sharper and more local treatments of the interface followed by embedded-boundary finite-volume discretizations of the Poisson equation were presented in [5], the ghost-fluid method for multimaterial and multiphase flows was introduced by [6], and the second-order-accurate symmetric cut-cell and ghost-cell schemes for irregular domains on which the present work builds directly, proposed mainly by [7]. A closely related family of methods represents the interface itself as the zero level set of an auxiliary function evolved on the background grid [8,9,10,11], which again requires an accurate distance or implicit field defined throughout a neighborhood of the boundary.
Every method in this family shares a common numerical requirement, which is an accurate signed or unsigned distance field indicating how far a given point lies from the boundary and in which direction the boundary lies. When the domain is described by a closed-form expression, this distance field is available exactly, and the resulting solver achieves whatever accuracy the underlying stencil affords. However, real engineering and scientific geometry is rarely available in closed form. A digitized airfoil cross-section, a triangulated CAD part, or a laser-scanned physical object is described only by a discrete set of points or a polygon mesh, and the distance to such a set must be constructed algorithmically rather than evaluated analytically. The naive approach, brute-force search over every boundary point, scales linearly with the number of points and quickly dominates solver cost as geometric resolution increases. Spatial indexing structures, most notably the KD-tree [12,13], substantially reduce this cost through a one-time build followed by logarithmic-time queries, and this is the classical baseline a fair comparison must use rather than brute force alone. For raw scan data specifically, computer graphics has developed dedicated pipelines for turning unorganized point clouds into usable surface and distance representations, including volumetric range-image fusion into a cumulative signed distance field [14] and Poisson-equation-based surface reconstruction from oriented points [15]. All of these discrete constructions, spatial index or reconstructed mesh alike, inherit a property of the underlying point set that is often overlooked in this context, since the nearest-point direction is piecewise constant and changes discontinuously wherever the identity of the closest boundary point switches. The resulting distance field is continuous, but its gradient, which is defined as the outward normal direction used throughout an embedded-boundary stencil, is not.
This paper investigates the use of a compact trained neural network as a smooth, fixed-cost surrogate for the boundary distance function within an otherwise standard cut-cell finite-volume solver. The surrogate is evaluated against exact and classical discrete distance representations using three complementary criteria relevant to numerical discretization rather than shape reconstruction or operator learning. First, verification establishes whether replacing the exact or point-cloud-based distance function with the neural surrogate preserves the formal order of accuracy of the underlying finite-volume scheme. Second, computational cost scaling quantifies the efficiency of the surrogate relative to an optimized KD-tree nearest-neighbor search, the strongest classical baseline available for this task, identifying the problem sizes at which its constant per-query evaluation becomes computationally advantageous; because a trained network and a spatial search are different computational primitives—a fixed-cost forward pass set against a repeated, logarithmic-cost query—rather than two implementations of the same operation; the resulting crossover points are best read as a conservative bound specific to this search-based comparison, with the larger gains a trained surrogate typically offers realized instead against costlier direct calculations it might replace, such as a full field solve. Third, gradient smoothness assesses whether the differentiable neural representation provides a smoother normal-direction field than conventional nearest-point constructions and examines how this benefit varies with local boundary geometry.
These performance criteria are examined using four benchmark problems selected to represent progressively increasing geometric complexity and practical relevance. The first benchmark is a smooth five-lobed closed curve with an analytical signed-distance function, providing a fully controlled environment for verification. The second is a multiply connected domain containing two circular holes and a narrow reentrant slit, enabling a systematic assessment of gradient smoothness under varying levels of local geometric complexity. The third benchmark employs the digitized Selig S1223 airfoil cross-section, originally reported in a low-speed wind-tunnel study [16] and obtained directly from the UIUC Airfoil Coordinates Database [17]. In this case, no analytical geometry is available, and all reference distances are computed directly from the boundary point cloud, thereby evaluating the surrogate under realistic engineering conditions. The final benchmark is a three-dimensional mechanical mounting flange consisting of a circular plate with a central bore and six bolt holes, representing a practical engineering component. This example extends the investigation to a genuine three-dimensional cut-cell finite-volume problem, allowing verification, computational cost scaling, and gradient smoothness to be assessed beyond two dimensions while examining the robustness of the proposed surrogate in the presence of complex internal geometric features.
Throughout the study, all results are reported comprehensively, including scenarios in which the proposed neural surrogate does not outperform established methods. In particular, the KD-tree nearest-neighbor search remains computationally more efficient for small boundary point sets, and the corresponding crossover points are identified quantitatively rather than omitted. When the neural surrogate provides improved gradient smoothness, the magnitude of this benefit is shown to increase with local geometric complexity in the two-dimensional benchmarks. The three-dimensional study reveals a more nuanced behavior, where the improvement correlates more strongly with geometric feature scale than with concavity, thereby highlighting dimensional differences in the underlying mechanisms. Furthermore, the reported smoothness characteristics are demonstrated to be insensitive to the selected standoff distance, while the consistency of the neural surrogate is established through repeated training using multiple random initialization seeds rather than a single realization.
The remainder of the paper is organized as follows. Section 2 reviews the relevant literature and identifies the research gap addressed in this work. Section 3 presents the cut-cell finite-volume formulation, the five boundary closure schemes together with their truncation-error analysis, the origin of gradient non-smoothness in discrete nearest-point representations, and the proposed neural distance surrogate, including an analytical bound on the resulting intercept error. Section 4 describes the benchmark problems and evaluation methodology, Section 5 presents and discusses the numerical results, and Section 6 summarizes the main findings and conclusions.

2. Related Work

Neural representations of signed distance functions (SDFs) have become a well-established paradigm in computer graphics and geometric modeling. DeepSDF presented in [18] demonstrated that compact multilayer perceptrons can represent complex geometries through the zero level set of a learned continuous function, while Occupancy Networks introduced a closely related implicit occupancy representation for three-dimensional shape reconstruction in [19]. Subsequent developments in coordinate-based neural fields, including neural radiance fields (NeRFs), further established the effectiveness of continuous neural representations for geometric modeling and highlighted the spectral bias of standard coordinate networks toward low-frequency functions, motivating Fourier feature encodings and periodic activation functions to improve geometric fidelity [20,21,22,23]. Despite their success, these approaches have been developed primarily for geometry representation, compression, reconstruction, and rendering rather than as numerical components within classical PDE discretizations.
The integration of neural networks into numerical PDE solution methods has a much longer history, beginning with early feedforward-network approximations of ODE and PDE solutions [24,25] and evolving into physics-informed neural networks (PINNs), which incorporate the governing equations directly into the training objective [26]. Recent research has increasingly incorporated signed distance functions into this framework. Sukumar and Srivastava in [27] employed approximate distance functions to enforce Dirichlet boundary conditions exactly within PINNs. PhyGeoNet introduced a geometry-aware physics-informed architecture based on coordinate transformations rather than learned distance fields [28], while Oldenburg et al. combined variational autoencoder shape embeddings with PINNs to construct geometry-aware surrogates for Navier–Stokes flow over complex domains in [29]. More recently, geometry-informed neural operators have incorporated signed-distance representations to learn solution operators across families of geometries [30]; DeepONet-based approaches in [31] have integrated signed-distance and derivative-based constraints to improve boundary accuracy, and latent shape encodings based on signed distance functions have enabled mesh-free surrogate models for irregular domains in [32].
Beyond the coordinate-based multilayer perceptrons discussed above, other function-approximation paradigms have recently emerged for learning a smooth field from scattered samples. Kolmogorov–Arnold Networks replace the fixed node activations of a standard perceptron with learnable edge functions [33], and have been extended to a wavelet-based variant, Wav-KAN [34]; separately, higher-order Haar wavelet discretizations have been developed and applied to boundary value problems in structural mechanics, achieving high accuracy at reduced computational cost relative to the classical, first-order Haar wavelet method [35].
Collectively, these studies demonstrate that learned distance representations provide an effective mechanism for incorporating geometric information into neural PDE solvers and operator-learning frameworks. However, the learned distance field is consistently treated as an auxiliary component of a larger neural architecture rather than as an independent replacement for the geometric information required by a conventional numerical solver. Consequently, the numerical implications of substituting the distance function alone within an otherwise unchanged finite-volume discretization have not been systematically investigated. In particular, previous studies have not examined whether such a substitution preserves the formal accuracy of the underlying discretization, how its computational cost compares with optimized classical spatial-search structures such as KD-trees, or whether the resulting continuous representation provides measurably smoother normal-direction fields than discrete nearest-point constructions. Addressing these three aspects constitutes the primary contribution of the present work.

3. Mathematical Formulation and Numerical Framework

This section establishes the mathematical and numerical foundations of the proposed framework. It begins by formulating the continuous problem (Section 3.1) and defining the properties of the signed distance function required by the solver (Section 3.2). The cut-cell finite-volume discretization is then presented, together with the five boundary closure treatments and their local truncation error analysis (Section 3.3 and Section 3.4). The discussion subsequently reviews classical discrete signed-distance constructions and analyzes the structural non-smoothness of their gradients (Section 3.5). The section concludes by introducing the neural surrogate, characterizing the error it induces in the boundary closure, and detailing the training procedure and reproducibility protocol (Section 3.6).

3.1. Continuous Problem

Let Ω R d ( d = 2 or 3) be an open, bounded domain with piecewise-smooth boundary Ω , embedded in a rectangular computational box B Ω ¯ . We consider the linear advection–diffusion initial–boundary-value problem: find u : B ¯ × [ 0 , T ] R satisfying the governing equation
t u + a · u = α Δ u + f ( x , t ) , x Ω , t ( 0 , T ] ,
subject to the Dirichlet boundary condition
u ( x , t ) = g ( x , t ) , x Ω , t ( 0 , T ] ,
and the initial condition
u ( x , 0 ) = u 0 ( x ) , x Ω ,
with constant velocity a = ( a , b ) = ( 0.3 , 0.2 ) in two dimensions, a = ( a , b , c ) = ( 0.3 , 0.2 , 0.15 ) in three, and diffusivity α = 0.1 throughout. Verification follows the method of manufactured solutions [36,37], and the source term is constructed so that a prescribed smooth field satisfies Equation (1) exactly, with the boundary and initial data of Equations (2) and (3) taken as the corresponding traces of that field (so that Equations (2) and (3) hold by construction rather than by cancellation). In two dimensions the manufactured field is
u e ( x , y , t ) = 2 + e t sin ( π x ) cos ( π y ) ,
and substituting Equation (4) into Equation (1) gives, in closed form,
f ( x , y , t ) = e t [ 2 α π 2 1 sin ( π x ) cos ( π y ) + a π cos ( π x ) cos ( π y ) b π sin ( π x ) sin ( π y ) ] .
In three dimensions (Example 4), the manufactured field is the direct extension
u e ( x , y , z , t ) = 2 + e t sin ( π x ) cos ( π y ) sin ( π z ) ,
with the corresponding source term
f ( x , y , z , t ) = e t [ 3 α π 2 1 sin ( π x ) cos ( π y ) sin ( π z ) + a π cos ( π x ) cos ( π y ) sin ( π z ) b π sin ( π x ) sin ( π y ) sin ( π z ) + c π sin ( π x ) cos ( π y ) cos ( π z ) ] ,
the diffusive coefficient changes from 2 α π 2 to 3 α π 2 because the Laplacian gains a third second-derivative term. In both cases, the Dirichlet and initial data are the traces g = u e | Ω and u 0 = u e ( · , 0 ) . Because u e C ( B ¯ × [ 0 , T ] ) , the discretization error is measurable pointwise and the convergence rates reported in Section 5 are accurate and free of reference-solution ambiguity.

3.2. The Signed Distance Function

The signed distance function of Ω is defined as
ϕ ( x ) = dist ( x , Ω ) , x Ω , dist ( x , Ω ) , x Ω , dist ( x , Ω ) = inf y Ω x y 2 .
The function ϕ is Lipschitz continuous with constant 1, satisfies the eikonal equation ϕ 2 = 1 wherever it is differentiable, and in a tubular neighborhood of a C k boundary ( k 2 ) is itself C k , with ϕ restricted to Ω equal to the outward unit normal under the sign convention of Equation (8), which takes ϕ negative inside Ω ; some computer-graphics implementations adopt the opposite convention, which simply reverses the sign of ϕ and hence of the normal, and every quantity used downstream in this work—the intercept θ , the closure formulas of Section 3.4, and the smoothness metric of Section 3.5—depends only on the zero level set and on | ϕ | , not on which sign is chosen. The interested reader is directed to [38] for a detailed review of level set methods. Two consequences drive everything that follows. First, the zero level set { ϕ = 0 } = Ω locates the boundary implicitly, so any sufficiently accurate approximation of ϕ near Ω locates the boundary to the same accuracy. Second, the normal field a sharp embedded-boundary method uses is exactly ϕ evaluated near the interface, so the smoothness of an approximation to ϕ —not merely its accuracy—is inherited directly by the normal field the solver consumes.

3.3. Cut-Cell Finite-Volume Discretization

The box B is discretized by a uniform Cartesian grid of cell centers with spacing h ( N c × N c centers in two dimensions; N c × N y × N z in three, with N y ,   N z set by the box aspect ratio), and the active index set I collects the multi-indices of the cell centers lying in Ω ; only active cells carry unknowns. Away from the boundary, the diffusion operator is the standard five-point (two-dimensional) or seven-point (three-dimensional) Laplacian L h with truncation error O ( h 2 ) , and the advective derivative is approximated by centered differences.
Time integration uses an implicit–explicit (IMEX) splitting presented in [39,40] where the stiff diffusive term is advanced by backward Euler, which is unconditionally stable, while the non-stiff advective term is advanced by the classical fourth-order Runge–Kutta scheme with boundary-adjacent stencil values supplied by ghost values interpolated from the Dirichlet data. Each step solves one sparse linear system
I α Δ t L h u n + 1 = u n + Δ t A RK 4 ( u n , t n ) + Δ t f n + 1 ,
where L h is modified near Ω as described in Section 3.4, with Δ t = 5 × 10 4 , T = 0.3 , and the grid ranges of Section 4. The advective Courant number max i | a i | Δ t / h remains below 3 × 10 2 on every grid of every example. On the two-dimensional grids, the temporal error of the splitting is far below the spatial error, so the measured convergence rates there isolate the spatial error and, more specifically, the boundary-treatment error. On the finest three-dimensional grids of Example 4 this margin narrows—the backward-Euler diffusion step is only first-order in time, and at the finest grid h 2 and Δ t are of comparable magnitude—a point returned to when interpreting that example’s convergence data (Example 4).

3.4. Boundary Closures

Let x 0 be an active cell center with a neighbor x 1 = x 0 + h e (grid direction e ) lying outside Ω , so that the link crosses Ω . The boundary intercept fraction is the unique root
θ ( 0 , 1 ] : ϕ x 0 + θ ( x 1 x 0 ) = 0 , x b = x 0 + θ ( x 1 x 0 ) .
Assuming a single transversal intersection of each grid link with the immersed boundary, an assumption satisfied for all meshes considered once the geometry is adequately resolved, each boundary closure is constructed independently on a one-dimensional cut link. Consequently, the formulation is identical in two and three spatial dimensions, differing only in the number of coordinate directions associated with each control volume. Figure 1 illustrates the three fundamental closure families considered in this work: the naive boundary-aligned closure, the linear-intercept (Shortley–Weller) closure, and the quadratic ghost-cell closure. The five boundary treatments investigated in this paper are obtained from these families by varying the source of the boundary intercept or the interpolation order, as detailed below.
1.
Naive ( θ = 1 ). The Dirichlet value is imposed at the exterior cell center itself, i.e., the boundary is snapped to the grid. The interface is thereby displaced by an O ( h ) distance that does not vanish relative to the stencil, producing an O ( 1 ) relative error in the boundary condition placement; no convergence beyond order zero should be expected. This closure is retained purely as a negative control.
2.
Exact-SDF (linear intercept). The classical Shortley–Weller-type dimension-by-dimension closure presented in [7,41] where a linear interpolant through ( x 0 , u 0 ) and ( x b , g b ) defines the ghost value at x 1 ,
u G = ( θ 1 ) u 0 + g b θ ,
which, substituted into the standard second difference, yields the modified row
1 h 2 u 1 1 + 1 θ u 0 + g b θ h 2 ,
with u 1 the interior neighbor opposite the cut. Taylor expansion about x 0 shows the local truncation error of Equation (12) is O ( h ) at cut cells, but since these form a codimension-one set, global second-order accuracy in the discrete L 2 norm is retained [7]; the convergence studies of Section 5 confirm this. Here θ = θ is computed from the exact geometry (analytically or by bisection on the inside/outside predicate).
3.
Neural-SDF. Identical to closure 2, except that θ is obtained from the trained surrogate ϕ net by linear inversion of the predicted level set along the link,
θ net = min 1 , max 0.05 , | ϕ net ( x 0 ) | | ϕ net ( x 0 ) ϕ net ( x 1 ) | + ε , ε = 10 7 ,
where the lower clip excludes the ill-conditioned limit θ 0 (the standard remedy in ghost-cell methods, where vanishing θ makes the row coefficient 1 / θ unbounded [7]). Equation (13) is the only point at which the network enters the solver; everything downstream is unchanged classical numerics (illustrated schematically in Section 3.6 below). The error this substitution introduces is quantified in Proposition 1 below.
4.
Cut-cell (conservative). Closure 2 combined with a finite-volume weighting of the temporal term by the cell volume fraction Λ i j = | C i j Ω | / h 2 , estimated by 6 × 6 subcell sampling of the inside/outside predicate, so that the update approximates d d t C i j Ω u d x rather than the pointwise derivative; this is the standard conservation-oriented cut-cell variant. Interested reader is referred to [5,42,43,44] for a detailed construction mechanism.
5.
Ghost-cell quadratic. The quadratic extrapolation of Gibou et al. [7], in which the ghost value is the quadratic Lagrange interpolant through ( x 1 , u 1 ) , ( x 0 , u 0 ) , ( x b , g b ) , evaluated at x 1 ,
u G = L 0 u 1 + L 1 u 0 + L 2 g b ,
with weights
L 0 = 1 θ 1 + θ , L 1 = 2 ( 1 θ ) θ , L 2 = 2 θ ( 1 + θ ) ,
satisfying L 0 + L 1 + L 2 = 1 and, at θ = 1 , u G = g b as required, giving an O ( h 2 ) local truncation error at cut cells. Wherever the second interior neighbor x 1 is unavailable—e.g., in thin regions of the domain—the scheme falls back to Equation (11).
Each closure plays a distinct role in the study. The naive closure establishes that the test problems are genuinely sensitive to boundary accuracy; the exact-SDF closure establishes the attainable ceiling of the linear intercept family and the remaining three probe whether that ceiling is reached by, respectively, a learned θ , a conservative variant, and a formally higher-order completion. The accuracy cost of replacing θ by θ net admits a sharp elementary bound.
Proposition 1 (Intercept error of the neural closure).
Let ϕ C 2 in a neighborhood of the cut link { x 0 + θ ( x 1 x 0 ) : θ [ 0 , 1 ] } , and suppose the crossing is transversal in the sense that | ϕ ( x ) · e | γ for all x on the link and some γ > 0 (the interface is not tangent to the grid direction e ). Suppose further ϕ net ϕ L ( link ) ε ϕ . Then the intercept of Equation (13) (before clipping and neglecting the fixed regularization ε = 10 7 , which is negligible whenever γ h ε ) satisfies
θ net θ 1 8 ϕ γ h + ε ϕ γ h ,
where ϕ denotes the supremum on the link of the second directional derivative of ϕ along e , and consequently the boundary-placement error in the Dirichlet data obeys
u e ( x b net ) u e ( x b ) u e h θ net θ = O h 2 + O ε ϕ / γ .
Proof. 
Write ψ ( θ ) = ϕ ( x 0 + θ h e ) for θ [ 0 , 1 ] , so ψ ( θ ) = 0 . By the chain rule, ψ ( θ ) = h ϕ ( x 0 + θ h e ) · e , so the transversality hypothesis gives | ψ ( θ ) | γ h for every θ [ 0 , 1 ] ; in particular ψ is strictly monotonic on [ 0 , 1 ] ; so θ is its unique root, and by the mean value theorem | ψ ( 1 ) ψ ( 0 ) | = | ψ ( ξ 0 ) | γ h for some ξ 0 ( 0 , 1 ) .
Let L ( θ ) = ψ ( 0 ) + θ ( ψ ( 1 ) ψ ( 0 ) ) be the linear interpolant of the exact values ψ ( 0 ) , ψ ( 1 ) , and let θ lin be its root. Standard linear-interpolation theory gives sup θ [ 0 , 1 ] | L ( θ ) ψ ( θ ) | 1 8 ψ = 1 8 h 2 ϕ , so | ψ ( θ lin ) | = | L ( θ lin ) ψ ( θ lin ) | 1 8 h 2 ϕ . By the mean value theorem applied between θ lin and θ , together with | ψ |     γ h ,
| θ lin θ | | ψ ( θ lin ) | γ h 1 8 ϕ γ h .
Now let L net ( θ ) = ϕ net ( x 0 ) + θ ϕ net ( x 1 ) ϕ net ( x 0 ) be the linear model built from the surrogate’s endpoint values, whose root (before clipping) is θ net . For every θ [ 0 , 1 ] ,
L net ( θ ) L ( θ ) = ( 1 θ ) ϕ net ( x 0 ) ϕ ( x 0 ) + θ ϕ net ( x 1 ) ϕ ( x 1 ) ε ϕ ,
since θ [ 0 , 1 ] and each term is bounded by ε ϕ . Because L is linear with | L ( 1 ) L ( 0 ) | = | ψ ( 1 ) ψ ( 0 ) | γ h , and L ( θ net ) = L ( θ net ) L net ( θ net ) has magnitude at most ε ϕ by Equation (19) while L ( θ lin ) = 0 ,
| θ net θ lin | = | L ( θ net ) L ( θ lin ) | | L ( 1 ) L ( 0 ) | ε ϕ γ h .
The triangle inequality applied to Equations (18) and (20) gives Equation (16) exactly (with C 1 = 1 8 , C 2 = 1 ), and Equation (17) follows from the mean value theorem applied to u e along the link. □
Remark 1. 
Equation (17) establishes the accuracy requirement that the neural surrogate must satisfy to preserve the second-order convergence of the corrected solver. Specifically, it is sufficient that the signed-distance approximation error obeys ε ϕ = O ( h 2 ) in the vicinity of the immersed boundary as the mesh is refined. In the present framework, the surrogate is retrained independently on each grid using cell-center samples from that grid. Consequently, the density of the near-boundary training data increases naturally with mesh refinement, allowing the attainable approximation error to decrease consistently with h. Whether this asymptotic scaling is achieved is verified numerically in Section 5.1. The observed global convergence rates of approximately 2.0 2.1 , together with their narrow confidence intervals, confirm that the required accuracy is attained across all resolutions considered. Under this condition, the induced intercept error in the neural boundary closure is O ( h ) , matching the truncation error already tolerated by the exact-SDF cut-cell discretization (Section 3.4). Consequently, the surrogate is required only to resolve the geometry at the accuracy dictated by the mesh, rather than to achieve uniform O ( h 2 ) accuracy throughout the computational domain. The clip at θ = 0.05 in Equation (13) lies outside the scope of the bound in Equation (16), which is stated for the unclipped root of the linear model; it engages only when that root would otherwise fall below 0.05 , which by the same bound requires θ itself to lie within O ( h ) + O ( ε ϕ / γ h ) of the clip boundary, since the neural and exact roots cannot differ by more than this amount. Such near-boundary links form a shrinking, codimension-one subset of the cut cells as h 0 —the same class already responsible for the O ( h ) local truncation error tolerated by the exact-SDF closure without affecting its global second-order rate—so the clip is expected, and observed (Section 5.1), to leave the global convergence rate unaffected.

3.5. Classical Discrete Distance Constructions and Their Gradient

When Ω is known only through a finite sample P = { p j } j = 1 N b Ω , the computable object is the point-set distance
d P ( x ) = min 1 j N b x p j 2 .
Two exact algorithms for Equation (21) serve as classical baselines. Brute-force search costs O ( N b ) per query with no setup. The KD-tree [12,13], whose practical performance and modern variants continue to be benchmarked and revisited [45,46], costs O ( N b log N b ) to build once and O ( log N b ) expected time per query thereafter, and is the appropriate classical baseline for any comparison that accounts for the setup-versus-query overhead asymmetry. Both algorithms compute the same function d P , and d P has a structural property independent of the search algorithm. Let V j = { x : x p j     x p k k } denote the Voronoi cells of P [47]. In the interior of each V j ,
d P ( x ) = x p j x p j 2 ,
a unit vector pointing along the line to the single nearest sample; d P itself is Lipschitz and continuous everywhere, but Equation (22) shows its gradient is piecewise constant in direction along any query path within one Voronoi cell and jumps discontinuously across every Voronoi face, where the identity of the nearest sample switches, exactly as seen in the direction arrows of Figure 2a, each pointing to a different sample once the query crosses a dotted bisector. At a point on the face between V j and V j + 1 at distance δ from two consecutive samples spaced s apart, the jump angle is 2 arctan s / ( 2 δ ) , i.e., O ( s / δ ) ; the resulting discontinuities are the step jumps in the nearest-point angle trace of Figure 2b, plotted against the smooth surrogate-gradient curve it oscillates about. Refining the sample (smaller s) shrinks each individual jump but proportionally multiplies their number, while querying closer to the boundary (smaller δ ) makes every jump larger.
Remark 2. 
The total-variation metric of Section 4.4 does not automatically favor a smooth field. If the direction angle of the true normal is monotone along the query path—as it is outside a convex boundary component at small offset—the nearest-point staircase and the smooth field accumulate the same total variation, and the ratio between them approaches one. Excess variation arises precisely where concave or reentrant geometry makes the nearest-sample identity oscillate between distinct boundary sub-arcs, each reversal contributing jumps that the smooth field does not make. The theory, therefore, predicts a smoothness ratio near unity on convex components and growing with local concavity—a prediction tested, and confirmed, by the per-component measurements of Section 5.3.

3.6. Neural Distance Surrogate

The surrogate is a fully connected multilayer perceptron ϕ net : R d R ,
ϕ net ( x ) = W 3 σ W 2 σ ( W 1 x + b 1 ) + b 2 + b 3 , σ = tanh ,
where W 1 R H 1 × d , W 2 R H 2 × H 1 , and W 3 R 1 × H 2 are the weight matrices of the first hidden layer, the second hidden layer, and the linear output layer; b 1 R H 1 and b 2 R H 2 are the corresponding bias vectors; b 3 R is the scalar output bias and H 1 , H 2 are the hidden-layer widths (30 or 40, per example, Table 1). Because every network in this study uses exactly two hidden layers, Equation (23) is written directly in terms of these three weight matrices, mapping raw coordinates to a scalar distance, as shown in Figure 3a. Such networks are dense in the continuous functions on compact sets [48,49,50], so the representation itself imposes no accuracy floor; the practical floor is set by optimization and by the well-documented spectral bias of coordinate networks toward low-frequency functions [21,22,23]. Deliberately, no Fourier feature encoding, periodic activation, or other specialized machinery is used, since part of the purpose of the study is to establish what an off-the-shelf regression network achieves in this role, in preference to architectures such as radial-basis-function networks or, more recently, Kolmogorov–Arnold Networks and their wavelet variant Wav-KAN [33,34], whose basis- or edge-function counts typically scale with the size of the training set; this would be an unwelcome property here, since the surrogate is retrained from scratch, on training sets spanning three orders of magnitude, at every grid level and in both two and three dimensions. A systematic comparison against such alternatives is left to future work (Section 6).
Training minimizes the mean-squared error
L ( w ) = 1 N n = 1 N ϕ net ( x n ; w ) ϕ n 2
over sample–target pairs ( x n , ϕ n ) . For the two-dimensional examples the network has two hidden layers of 30 units (Examples 1 and 3) or 40 units (Example 2, whose multiply-connected boundary requires more capacity), the width in each case set by a preliminary sweep over 15–60 units per layer at the finest grid, retaining the smallest width beyond which doubling it reduced the training-set signed-distance error by less than ten percent, a pragmatic capacity-selection procedure consistent with that adopted in other recent design-optimization studies using compact feedforward networks [51]. Training runs for 100 epochs by the Levenberg–Marquardt method [52,53,54], whose update solves
J J + μ I δ w = J r ,
with J the Jacobian of the residual vector r and the damping parameter μ adjusted adaptively at every step—decreased by a factor of ten after an epoch that reduces the loss, increased by the same factor, with the step recomputed, otherwise, from an initial μ 0 = 10 3 up to a ceiling of 10 10 beyond which training would be judged to have diverged, though no run in this study approaches that ceiling—the method of choice for small dense least-squares networks of this size. The training set is the set of cell centers of the current grid, with signed-distance targets computed exactly from a dense polyline representation of the boundary; consistent with standard practice for this training routine, the sample set is further partitioned at random into 70% training, 15% validation, and 15% test subsets, and training is halted early should the validation error fail to improve over six consecutive epochs, the only regularization applied beyond the network’s modest capacity, since the deterministic, noise-free geometric targets leave comparatively little for a validation split to guard against beyond monitoring convergence itself; at the finest grid of every example, the held-out validation error exceeds the training error by a factor of only 1.0 1.6 , with the test error tracking the validation error just as closely, confirming that this split finds no meaningful generalization gap to guard against. The network is retrained from scratch at every grid level (cf. Remark 1), so no network is ever reused across resolutions and training cost is charged at every level.
The three-dimensional example (Example 4) follows the same recipe, with two hidden layers of 40 units, again the width set by the capacity sweep described above and required here by the bore-and-bolt-hole geometry, grid-center training data, and signed-distance targets computed from a dense surface point cloud together with the domain’s exact containment predicate. The only change is the optimizer at the two finest grids, since Levenberg–Marquardt’s Jacobian-based update of Equation (25) scales with the product of training-set size and parameter count, and at these grids’ 69,360 and 134,064 training points it becomes the dominant cost, so those two networks are trained for 1000 epochs by scaled conjugate gradient [55], which avoids forming J J ; every coarser grid retains the 100-epoch Levenberg–Marquardt setup used in two dimensions.
Three reproducibility safeguards apply to every experiment. First, all training runs are seeded, with a distinct documented seed per grid level, making every reported number exactly regenerable. Second, because one random initialization yields one draw of the trained network, the finest-grid configuration of each PDE example is retrained five times from independent seeds and the spread of both the final solution error and the training time is reported as an explicit uncertainty; across every example this spread is two to three orders of magnitude smaller than the error itself, indicating that the trained result does not hinge on a favorable initialization—a conclusion reinforced wherever the network is queried away from its own training locations elsewhere in the study, whether by the smoothness and cost-scaling benchmarks of Section 4.4 and Section 4.3, which sample points off the training grid, or by the solver itself, whose boundary intercept θ net of Equation (13) coincides with a training point only in the non-generic case θ = 1 , so that the second-order convergence of Section 5.1 is itself measured off the training set. This repeated-seed check is deliberately concentrated at the finest grid of each example, where the accuracy floor required by Remark 1 is tightest and any seed sensitivity would be most exposed; it establishes that the finest-grid result is not a favorable draw, but it does not by itself characterize how the seed-to-seed spread scales with h, since every coarser grid in the convergence study is trained from a single documented seed rather than repeated. Third, one-time costs are accounted symmetrically, with the network’s training time always reported alongside the KD-tree’s build time as the analogous setup investment, so the fixed-query-cost advantage claimed for the surrogate is never obtained by silently amortizing its training away.

4. Test Problems and Evaluation Protocol

4.1. Test Problems

The numerical assessment comprises four benchmark problems spanning a broad range of geometric complexity, from smooth analytical geometries to raw digitized data, and from two- to three-dimensional domains. The examples are arranged in increasing geometric and practical complexity, beginning with a smooth analytical benchmark that admits an exact reference solution and progressing toward realistic engineering geometries.
Example 1 (flower).
The boundary is the smooth closed curve r ( ϑ ) = 0.65 + 0.18 cos ( 5 ϑ ) , producing five shallow concave lobes. A dense polyline of 1500 vertices represents the boundary for the distance targets and all point-cloud baselines, while the analytical description provides the exact intercepts θ of Equation (10). The convergence study employs ten grids, N c { 15 , 20 , 25 , 30 , 35 , 40 , 50 , 60 , 70 , 80 } .
Example 2 (multiply-connected domain).
The domain consists of a mildly irregular disk, r ( ϑ ) = 0.9 + 0.05 cos ( 3 ϑ ) , containing two circular holes and a narrow reentrant slit extending inward to r = 0.25 , thereby introducing two sharp reentrant corners. This geometry combines smooth and non-smooth boundary components within a single controlled benchmark, enabling the component-wise assessment discussed in Remark 2. The grid sequence and PDE configuration are identical to those of Example 1, with exact intercepts computed by bisection on the analytical inside/outside predicate.
Example 3 (digitized airfoil).
The Selig S1223 airfoil cross-section [16], obtained directly from the UIUC Airfoil Coordinates Database [17], consists of 81 digitized ( x , y ) points at unit chord. Since no analytical representation is available, the reference geometry is defined by a fine spline interpolant through the raw data, parameterized by cumulative arc length. Owing to the thin airfoil profile, the convergence study employs N c { 40 , 50 , 60 , 80 , 100 , 130 , 160 , 200 } , with formal convergence measured only on sufficiently resolved grids (Section 4.2). The cut-cell and quadratic ghost-cell closures are omitted here because their extra machinery—respectively, subcell sampling of an inside/outside predicate for the volume fraction, and a reliable second interior neighbor near a thin, curved boundary—is a separate implementation burden from the one this study is built to isolate. The comparison this paper is designed around, exact geometry against the trained surrogate on an otherwise identical closure, is the linear-intercept pair (closures 2 and 3) and is present in every example, including this one; only the cut-cell and quadratic completions are narrowed to the examples with an available exact predicate, where they were already exercised in Examples 1 and 2. Only the naive, exact (point-cloud), and neural-SDF closures are compared.
Example 4 (mechanical mounting flange).
The final benchmark is a three-dimensional mechanical mounting flange consisting of a circular plate with a central bore and six equally spaced bolt holes (a three-dimensional rendering appears later in Section 5, Figure 13). Unlike Example 3, the geometry is defined analytically through constructive solid geometry, permitting an exact inside/outside predicate, exact boundary intercepts, and a manufactured-solution verification in three dimensions. As in Example 3, only the naive, exact, and neural-SDF closures are compared, so that the same three-way comparison is reported uniformly across all four benchmarks; extending the cut-cell and quadratic completions to three dimensions is a nontrivial implementation exercise in its own right and is left outside the present scope. The convergence study uses the grid sequence N c { 18 , 24 , 32 , 42 , 54 , 68 , 84 } , with formal convergence evaluated on the four finest grids to ensure adequate resolution of the bore and bolt holes.
Table 1 summarizes the configuration of all four benchmark problems.
Table 1. Configuration summary. All examples share the settings of Equation (1): a = 0.3 , b = 0.2 , α = 0.1 , Δ t = 5 × 10 4 , T = 0.3 (Example 4 additionally has a third velocity component c = 0.15 ). LM = Levenberg–Marquardt; SCG = scaled conjugate gradient.
Table 1. Configuration summary. All examples share the settings of Equation (1): a = 0.3 , b = 0.2 , α = 0.1 , Δ t = 5 × 10 4 , T = 0.3 (Example 4 additionally has a third velocity component c = 0.15 ). LM = Levenberg–Marquardt; SCG = scaled conjugate gradient.
Ex. 1Ex. 2Ex. 3Ex. 4
Geometry sourceclosed formclosed form81 digitized ptsclosed form (CSG), three-dimensional
PDE solveyesyesyesyes
Distance typesignedsignedsignedsigned
Grids ( N c )15–80 (10)15–80 (10)40–200 (8)18–84 (7)
Hidden layers 30 × 30 40 × 40 30 × 30 40 × 40
Optimizer/epochsLM/100LM/100LM/100LM/100 ( N c 54 ); SCG/1000 ( N c 68 )
Training datagrid centersgrid centersgrid centersgrid centers
Repeated seeds5555

4.2. Verification Metrics

For each grid and closure, the discrete error norms against the manufactured solution (Equation (4) in two dimensions, Equation (6) in three) are recorded at T = 0.3 over the active set, indexed by the multi-index ι ( ( i , j ) in two dimensions, ( i , j , k ) in three),
e L 2 = 1 | I | ι I u ι u e ( x ι , T ) 2 1 / 2 ,
e L = max ι I u ι u e ( x ι , T ) .
The order of accuracy p is estimated by ordinary least squares on the model
log 10 e L 2 = p log 10 h + c
across the grid sequence, reported as p ^ ± t 0.975 , ν SE ( p ^ ) with SE the regression standard error and t 0.975 , ν the Student-t quantile at ν degrees of freedom. Reporting the interval rather than a bare slope matters particularly for Examples 3 and 4, where limited feature resolution (the airfoil’s thin trailing edge; the flange’s bore and bolt-hole diameters in three dimensions) restricts the usable asymptotic range to the finest grids and the intervals are correspondingly wider. The naive closure is carried through every fit as a negative control, since a test problem insensitive to boundary accuracy would let even the naive closure converge, so its stalled order near zero confirms that the comparisons are meaningful.

4.3. Cost-Scaling Protocol

Query cost is measured by evaluating a fixed batch of query points against boundary point sets of increasing size—for Example 1, densified samplings of the closed-form curve with N b { 10 2 , 3 × 10 2 , , 10 6 } vertices and 500 query points; Examples 2–4 follow the same protocol on their own geometries, resampling the surface (in three dimensions for Example 4) rather than being capped at any native point count. Three approaches are timed at every density—brute-force search; KD-tree build and batched query, timed separately and batched evaluation of the trained network, whose cost is independent of N b by construction. All timings follow one discipline. An untimed warm-up call absorbs first-call and just-in-time compilation overhead; every measurement is repeated R = 7 times, and the median together with the observed range is reported, so single-run scheduling noise can neither manufacture nor mask a crossover. One-time costs (KD-tree build, network training) are reported side by side as discussed in Section 3.6.

4.4. Gradient-Smoothness Metric

The smoothness comparison targets the quantity an embedded-boundary stencil actually consumes: the boundary-normal direction near the interface. Query points are placed on an offset curve a fixed standoff distance δ outside the boundary (for Example 1, δ = 0.04 with 720 samples around the circumference; the other examples use analogous offsets and sample counts scaled to their geometry). Two direction fields are compared at identical query points, the normalized gradient of ϕ net , computed by central differences with step 10 4 , and the unit vector toward the nearest sample of the discrete boundary cloud, Equation (22), which is what any exact nearest-point algorithm—brute force or KD-tree alike—reports. Smoothness is quantified by the total angular variation of the direction angle ϑ i along the path,
TV [ ϑ ] = i wrap ϑ i + 1 ϑ i ,
with wrap the principal-value angle difference; lower is smoother, and the ratio TV nearest / TV neural is reported as the smoothness advantage. Per Remark 2, this ratio is expected near unity on convex components and above unity near concave ones. Because a fixed standoff could in principle favor either field, every smoothness result is accompanied by a sensitivity sweep repeating the measurement at 0.5 × , 1 × , and 2 × the nominal δ , and Examples 2 and 4 additionally report the metric per boundary component—for Example 2, holes, outer rim, slit tip, and slit flanks; for Example 4, outer wall, bore wall, and each of six bolt holes—so the advantage can be read as a function of local geometric severity. For Example 4’s ring-shaped features (outer wall, bore, bolt holes) this is not an approximation but the exact same one-dimensional construction applied to the cross-section of a surface of revolution at fixed height; its two flat annular faces have no single natural parameter, so smoothness there is instead quantified by the mean angular difference between the neural and nearest-point normal directions at k = 6 nearest in-plane neighbors, evaluated at the same sensitivity-swept offsets. This metric quantifies smoothness, the absence of discontinuous jumps in the reported direction, rather than accuracy against the true normal; a smooth field could in principle be smoothly wrong. Where the boundary is known analytically (Examples 1, 2, and 4), the true normal is available in closed form, so a direct check of the neural field’s angular error against it is a natural companion measurement not pursued here, complementary to the intercept-error bound of Proposition 1, which already controls how far θ net can drift from θ in terms of the surrogate’s L error but does not itself report a per-point angular accuracy number.

5. Results and Discussion

The proposed neural-SDF correction is evaluated using the four benchmark problems introduced in Section 4.1. Across all examples, including the three-dimensional mounting flange of Example 4, the assessment is structured around three complementary questions: (i) verification —whether the neural-corrected solver preserves the formal order of accuracy of the underlying discretization; (ii) cost scaling—whether the fixed-cost neural evaluation outperforms the strongest classical baseline based on spatial indexing as the boundary representation becomes increasingly dense and (iii) gradient smoothness—whether the neural surrogate provides a smoother, differentiable normal field than discrete nearest-point constructions. Rather than presenting each benchmark independently, the results are organized according to these three themes, allowing common trends across geometries and spatial dimensions to be identified directly.

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 ( N c = 15 to 80, h = 0.1286 down to 0.0228 ). Figure 4 shows the pointwise error magnitude of all five boundary closures on the finest grid. The naive closure produces an O ( 1 ) error that does not shrink with refinement, visible directly in Figure 5 as an L 2 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 0.086 (95% CI [ 0.111 , 0.061 ] , R 2 = 0.885 ), 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 2.038 (95% CI [ 1.993 , 2.083 ] ), neural-SDF at 2.012 (95% CI [ 1.946 , 2.078 ] ), cut-cell at 2.025 (95% CI [ 1.973 , 2.077 ] ), and quadratic ghost-cell at 2.109 (95% CI [ 2.029 , 2.188 ] ), all with R 2 > 0.997 . 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 L 2 = 1.4745 × 10 4 ± 1.48 × 10 6 (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 ( N c = 15 to 80). Because the reentrant slit is only 1–2 cells wide until N c 30 , the regression-based order of accuracy is computed using only the seven grid levels with N c 30 ; 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 0.074 (95% CI [ 0.091 , 0.056 ] , R 2 = 0.958 ). All four geometry-aware closures recover order 2.0 2.1 (Table 4), with exact-SDF at 2.046 (95% CI [ 1.836 , 2.256 ] ), neural-SDF at 2.035 (95% CI [ 1.829 , 2.242 ] ), cut-cell at 1.999 (95% CI [ 1.594 , 2.404 ] ), and quadratic ghost-cell at 2.070 (95% CI [ 1.917 , 2.223 ] ). 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 L 2 = 1.9033 × 10 4 ± 7.06 × 10 7 , 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 40 × 10 grid ( h = 0.0282 ) to a fine 200 × 46 grid ( h = 0.0055 ). 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 ( N c 100 ; full data in Table 5).
The naive closure is again a negative control, as in Examples 1 and 2, at order 0.002 (95% CI [ 0.003 , 0.001 ] , R 2 = 0.940 ), with the L 2 error rising sharply and plateauing near 2.5 without approaching zero. The exact (point-cloud) and neural-SDF closures both recover second-order accuracy, with exact at 2.095 (95% CI [ 1.631 , 2.559 ] , R 2 = 0.993 ) and neural at 2.057 (95% CI [ 1.570 , 2.544 ] , R 2 = 0.993 ); see Table 6. These intervals are wider than in Examples 1 and 2, a direct consequence of the regression using only n = 4 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 L 2 = 1.0334 × 10 5 ± 2.91 × 10 8 , roughly three orders of magnitude tighter than the error itself. At this finest grid, neural-SDF training takes 23.63 s, against solve-loop costs of 2.83 , 2.82 , and 2.81 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 ( N c = 18 to 84, h = 0.1271 down to 0.0260 ), each roughly an order of magnitude fewer active cells than the two-dimensional examples’ finest grids because active-cell count grows as N c 3 . Figure 11 shows a z = 0 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 0.024 (95% CI [ 0.043 , 0.005 ] , R 2 = 0.921 ). The exact-CSG and neural-SDF closures both fit close to second order, with exact at 1.909 (95% CI [ 0.429 , 3.389 ] , R 2 = 0.925 ) and neural at 2.511 (95% CI [ 1.152 , 3.870 ] , R 2 = 0.962 ); 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 1.909 , neural 2.511 ) and interval widths are comparable, and both fits exceed R 2 = 0.92 . 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 N c = 24 and N c = 32 before resuming their decrease, most plausibly because the bolt holes (diameter 2 R bolt = 0.18 ) are only 1.3 2.6 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 N c = 42 ( 2 R bolt / h 3.4 ); this is why the regression fit of Table 7 restricts to N c 42 , 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 N c = 68 to N c = 84 ( 1.099 × 10 4 to 1.035 × 10 4 , per-step order 0.28 ). Unlike the mid-sequence bump, this is not obviously a geometry-resolution artifact, since the bolt holes are comparatively well resolved by N c = 68 . 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 Δ t = 5 × 10 4 inherited unchanged from the two-dimensional examples: the ratio Δ t / h 2 rises from approximately 0.03 at N c = 18 to 0.48 at N c = 68 and 0.74 at N c = 84 , growing by roughly the factor of 1.6 1.8 expected of a fixed Δ t against a shrinking h 2 at every step, but only at these two finest grids does the ratio approach order unity, indicating that Δ t no longer shrinks fast enough relative to h 2 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 L 2 = 7.511 × 10 5 ± 1.748 × 10 6 , 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 ( log L 2 vs. log h , N c 42 only, n = 4 grid levels).
Table 7. Example 4: regression-based order of accuracy ( log L 2 vs. log h , N c 42 only, n = 4 grid levels).
ClosureOrder95% CI R 2
naive 0.024 [ 0.043 , 0.005 ] 0.921
exact-CSG 1.909 [ 0.429 , 3.389 ] 0.925
neural-SDF 2.511 [ 1.152 , 3.870 ] 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 0 throughout, per Table 7) and is omitted here for brevity. The regression fit of Table 7 uses only N c 42 .
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 0 throughout, per Table 7) and is omitted here for brevity. The regression fit of Table 7 uses only N c 42 .
N c hActive/Total CellsExact/Neural L 2
180.12706320/16205.797 × 10 4 /8.874 × 10−4 (–)
240.093911216/34564.674 × 10−4/7.770 × 10−4 (0.71/0.44)
320.069682160/81928.301 × 10−4/7.881 × 10−4 ( 1.92 / 0.05 )
420.052685568/17,6403.516 × 10−4/3.804 × 10−4 (3.07/2.61)
540.0407512,480/34,9922.444 × 10−4/2.409 × 10−4 (1.42/1.78)
680.0322422,428/69,3601.099 × 10−4/9.458 × 10−5 (3.41/3.99)
840.0260242,372/134,0641.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 ( 84 × 84 × 19 ), shown on the z = 0 cross-section.
Figure 11. Example 4: manufactured solution and the naive/exact (CSG) / neural-SDF closures on the finest grid ( 84 × 84 × 19 ), shown on the z = 0 cross-section.
Computation 14 00198 g011
Figure 12. Example 4: pointwise absolute error, finest grid, z = 0 cross-section.
Figure 12. Example 4: pointwise absolute error, finest grid, z = 0 cross-section.
Computation 14 00198 g012
Figure 13. Example 4: three-dimensional cut-away solid rendering of the mechanical flange domain at the finest grid ( N c = 84 ), built directly from the solver’s own inside/outside mask rather than a separate idealized drawing. The domain is cut along y = 0 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 ( N c = 84 ), built directly from the solver’s own inside/outside mask rather than a separate idealized drawing. The domain is cut along y = 0 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.
Computation 14 00198 g013
Figure 14. Example 4: finest-grid ( N c = 84 ) numerical solution rendered over the full three-dimensional active-cell set, not a single cross-sectional slice. Left: the manufactured/exact solution u e . Right: the pointwise | u neural u exact | 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 ( N c = 84 ) numerical solution rendered over the full three-dimensional active-cell set, not a single cross-sectional slice. Left: the manufactured/exact solution u e . Right: the pointwise | u neural u exact | error. Points are drawn with partial transparency so interior structure—the bore and the six bolt holes—remains visible through the outer wall.
Computation 14 00198 g014

5.2. Cost-Scaling

Distance queries against N discrete boundary points are compared across three methods—brute-force linear search ( O ( N ) per query), a KD-tree spatial index ( O ( N log N ) one-time build, O ( log N ) per query), and the trained neural surrogate (fixed network size, O ( 1 ) 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 N = 10 2 to N = 10 6 were tested (7 repeats per count). At the largest count, brute-force query cost is 1.277 × 10 3 s/query, KD-tree query (after a one-time 1.190 s build) is 1.565 × 10 4 s/query, and the trained network’s batched query cost is 2.411 × 10 5 s/query, independent of N by construction. The network is thus 6.5 × faster than the KD-tree query and 53 × faster than brute force at N = 10 6 (Figure 15). The crossover at which the network overtakes the KD-tree query falls in the 10 5 3 × 10 5 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 ( N c = 80 ), neural-SDF training takes 19.157 s, versus effectively zero setup cost for the other four closures; per-timestep solve cost is nearly identical across all five ( 3.1 3.4 × 10 3 s/step, 600 steps), so the network’s total cost of 21.024 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 1 × ( N = 3611 points across the outer rim, two holes, and slit) up to 625 × ( N = 2,256,944 points), with 7 repeats per density. At maximum density, brute-force query cost is 2.778 × 10 3 s/query, KD-tree query (after a one-time 1.696 s build) is 3.089 × 10 4 s/query, and the network’s batched query cost is 1.185 × 10 5 s/query, independent of density. The network is thus 26.1 × faster than the KD-tree query and 234.3 × 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 65.893 s (more than 3 × Example 1’s training time, consistent with the added geometric complexity), against near-identical per-step solve costs across all five closures ( 4.39 4.46 × 10 3 s/step, 600 steps), giving a total neural cost of 68.570 s at this problem size.
Example 3 (digitized airfoil). Point-cloud density (resampled from the digitized data) was scaled from N = 10 2 to N = 10 6 , with 7 repeats per count. At N = 10 6 , brute-force query cost is 9.538 × 10 4 s/query, KD-tree query (after a one-time 0.702 s build) is 7.718 × 10 5 s/query, and the network’s batched query cost is 9.720 × 10 6 s/query, independent of N. The network is thus 7.9 × faster than the KD-tree query and 98.1 × faster than brute force at N = 10 6 (Figure 18), consistent with the crossover behavior of Example 1; the constant neural line again crosses the KD-tree curve near 10 4 10 5 points.
Example 4 (mechanical flange). Point-cloud density was scaled by resampling the flange’s surface (Section 4.1) from N = 10 2 to N = 10 6 points (7 repeats per count, as in every other example). At N = 10 6 , brute-force query cost is 2.029 × 10 3 s/query, KD-tree query (after a one-time 2.229 s build) is 7.507 × 10 5 s/query, and the network’s batched query cost is 1.950 × 10 5 s/query, independent of N. The network is thus 104.0 × faster than brute force and 3.9 × faster than the KD-tree query at this density (Figure 19). The crossover at which the network overtakes the KD-tree query falls between N = 10 5 , where the KD-tree remains faster ( 7.9 × 10 6 vs. 1.95 × 10 5 s/query), and N = 3 × 10 5 , where the two are already comparable ( 1.98 × 10 5 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 0.5 × / 1 × / 2 × standoff sensitivity sweep of Section 4.4.
Example 1 (flower). At the base offset, the total angular variation of the normal-direction field is 22.53 rad for the neural surrogate versus 183.60 rad for the nearest-point construction, so the nearest-point field carries 8.15 × 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 15.37 × at 0.5 × the base offset, 8.15 × at 1 × , and 4.40 × at 2 × —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 ( 1.02 1.03 × ), the outer rim a moderate advantage ( 2.53 × ), and the reentrant slit the largest advantage among this domain’s boundary components (flanks 6.6 6.8 × ; tip 4.98 × ), giving a clean monotone ordering by local geometric severity within a single controlled domain, exactly as predicted by Remark 2. The combined total is 2.62 × ( 25.80 rad neural vs. 67.65 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 4.56 × at 0.5 × the base offset, 2.62 × at 1 × , and 1.66 × at 2 × .
Example 3 (digitized airfoil). Total angular variation at the base offset is 7.981 rad for the neural surrogate versus 19.637 rad for the nearest-point construction, a 2.46 × ratio—between Example 2’s smooth-hole (≈1×) and reentrant-slit (≈5– 7 × ) 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 s 0.55 ), where the identity of the nearest digitized point switches rapidly. The ratio is offset-stable, at 4.18 × at 0.5 × the base offset, 2.46 × at 1 × , and 1.60 × at 2 × .
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 z = 0 (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 ( 43.77 × ), the bore a substantial one ( 25.20 × ), and all six bolt holes a smaller, mutually consistent one ( 6.6 6.9 × )—and the top face falls in between ( 8.35 × ). 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 14.28 × ( 51.24 rad neural vs. 731.71 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 23.93 × at 0.5 × the base offset, 14.28 × at 1 × , and 7.39 × at 2 × ; the top face likewise falls from 11.58 × to 8.39 × to 5.80 × (the sweep’s 1 × face value differs slightly from Table 10’s 8.35 × 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 ( 1.02 1.03 × ) and the sharp reentrant slit showed the most (5– 7 × ). Here, the bore—a smooth round hole, geometrically the same kind of feature as Example 2’s holes—shows a much larger advantage ( 25.20 × ) than the bolt holes ( 6.6 6.9 × ), which are the tightest-curvature, most concave features on this part. The ordering instead tracks feature radius, with the outer wall ( R = 1.0 ) showing the largest ratio, the bore ( R = 0.35 ) an intermediate one, and the bolt holes ( R = 0.09 , 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.

6. Conclusions

This work investigated whether a compact neural network can serve as an accurate and efficient surrogate for the signed distance function within an otherwise unchanged cut-cell finite-volume framework, a question distinct from the growing literature on learned distance fields as an auxiliary component of a larger neural architecture (Section 2): here the distance function alone is substituted into a conventional, unmodified solver, and the numerical consequences of that substitution—rather than end-to-end model accuracy—are what is assessed. The proposed approach was evaluated on four benchmark problems spanning analytical and digitized geometries in both two and three spatial dimensions, with the assessment structured around three complementary questions: numerical accuracy, computational cost, and gradient smoothness.
The verification studies demonstrate that replacing the exact signed distance function with the neural surrogate preserves the formal second-order accuracy of the underlying discretization. Across all benchmark problems, the measured convergence rates are statistically consistent with the theoretical prediction established in Proposition 1, confirming that the surrogate satisfies the near-boundary accuracy requirement identified in Remark 1. The wider confidence interval observed for the three-dimensional benchmark is explained by mesh-resolution and temporal discretization effects that influence both the exact and neural closures, rather than by limitations of the surrogate itself.
From a computational perspective, the neural surrogate exhibits the expected constant-cost evaluation independent of boundary complexity. While classical KD-tree searches remain more efficient for modest point-cloud sizes, the surrogate becomes increasingly advantageous as the geometric representation is refined, ultimately providing substantial speedups for large-scale boundary datasets. These results indicate that the proposed approach is most beneficial in applications where highly resolved or repeatedly queried geometries make distance evaluation a significant computational bottleneck.
The study also demonstrates a consistent qualitative advantage of the neural representation over discrete nearest-point constructions. In every benchmark, the learned signed distance field produces a smoother and continuously differentiable gradient field, yielding more regular boundary normals without compromising numerical accuracy. Although the magnitude of this advantage depends on local geometric characteristics, the improvement is observed consistently across all geometries and spatial dimensions considered.
Overall, the results show that a compact, grid-specific neural signed distance surrogate can replace exact geometric distance evaluations in cut-cell finite-volume discretizations without sacrificing accuracy, while offering improved gradient smoothness and favorable computational scaling for sufficiently complex geometries. More broadly, the work demonstrates that learning the geometric representation, rather than modifying the numerical discretization itself, provides an effective pathway for integrating machine learning into established PDE solvers while preserving their theoretical properties.
Several directions remain for future work. These include extending the three-dimensional verification to scan-derived geometries lacking analytical descriptions, investigating the influence of feature scale and sampling density on gradient smoothness, comparing alternative neural representations such as periodic-activation or encoded networks, KAN and Wav-KAN, or higher-order wavelet-network surrogates [33,34,35] within the same evaluation framework, and applying the approach to nonlinear or moving-boundary problems, where the availability of smooth, differentiable geometric information may be more valuable than reductions in query cost alone, though a genuinely moving boundary raises a difficulty not addressed by the present study: every result reported here retrains the network from scratch at a fixed geometry, amortizing that one-time cost across many subsequent queries, and a moving boundary would need an online or incremental update scheme rather than full retraining at every time step for the approach to remain computationally viable.

Author Contributions

Conceptualization, A.Q. and S.O.; methodology, A.Q. and S.O.; software, A.Q. and S.O.; validation, A.Q. and S.O.; formal analysis, A.Q. and S.O.; investigation, A.Q. and S.O.; resources, A.Q. and S.O.; data curation, A.Q. and S.O.; writing—original draft preparation, A.Q. and S.O.; writing—review and editing, A.Q. and S.O.; visualization, A.Q. and S.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

The authors gratefully acknowledge the support and valuable discussions provided by the members of the Engineering Model and Design (E-MoDe) Research Group (RG-BU008) and the Engineering Computation and Intelligence (ECI) Research Group (RG-BU006), both supported by the Deanship of Graduate Studies and Scientific Research at Bethlehem University. During the preparation of this manuscript, the authors used Claude (Anthropic) for the purposes of improving the language, wording, and clarity of the manuscript. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Peskin, C.S. Flow patterns around heart valves: A numerical method. J. Comput. Phys. 1972, 10, 252–271. [Google Scholar] [CrossRef] [Scilit]
  2. Peskin, C.S. Numerical analysis of blood flow in the heart. J. Comput. Phys. 1977, 25, 220–252. [Google Scholar] [CrossRef] [Scilit]
  3. Peskin, C.S. The immersed boundary method. Acta Numer. 2002, 11, 479–517. [Google Scholar] [CrossRef] [Scilit]
  4. Mittal, R.; Iaccarino, G. Immersed boundary methods. Annu. Rev. Fluid Mech. 2005, 37, 239–261. [Google Scholar] [CrossRef] [Scilit]
  5. Johansen, H.; Colella, P. A Cartesian grid embedded boundary method for Poisson’s equation on irregular domains. J. Comput. Phys. 1998, 147, 60–85. [Google Scholar] [CrossRef] [Scilit]
  6. Fedkiw, R.P.; Aslam, T.; Merriman, B.; Osher, S. A non-oscillatory Eulerian approach to interfaces in multimaterial flows (the ghost fluid method). J. Comput. Phys. 1999, 152, 457–492. [Google Scholar] [CrossRef] [Scilit]
  7. Gibou, F.; Fedkiw, R.P.; Cheng, L.T.; Kang, M. A second-order-accurate symmetric discretization of the Poisson equation on irregular domains. J. Comput. Phys. 2002, 176, 205–227. [Google Scholar] [CrossRef] [Scilit]
  8. Yang, T.; Qarariyah, A.; Deng, J. Spline R-function and applications in FEM. Numer. Math. Theory Methods Appl. 2020, 13, 150–175. [Google Scholar] [CrossRef] [Scilit]
  9. Qarariyah, A.; Yang, T.; Deng, F. A Solution-Structure B-Spline-Based Framework for Hybrid Boundary Problems on Implicit Domains. Mathematics 2024, 12, 3973. [Google Scholar] [CrossRef] [Scilit]
  10. Sethian, J.A. Level Set Methods and Fast Marching Methods: Evolving Interfaces in Computational Geometry, Fluid Mechanics, Computer Vision, and Materials Science; Cambridge University Press: Cambridge, UK, 1999. [Google Scholar]
  11. Belyaev, A.G.; Fayolle, P.A. On variational and PDE-based distance function approximations. Proc. Comput. Graph. Forum 2015, 34, 104–118. [Google Scholar] [CrossRef] [Scilit]
  12. Bentley, J.L. Multidimensional binary search trees used for associative searching. Commun. ACM 1975, 18, 509–517. [Google Scholar] [CrossRef] [Scilit]
  13. Friedman, J.H.; Bentley, J.L.; Finkel, R.A. An algorithm for finding best matches in logarithmic expected time. ACM Trans. Math. Softw. 1977, 3, 209–226. [Google Scholar] [CrossRef] [Scilit]
  14. Curless, B.; Levoy, M. A volumetric method for building complex models from range images. In Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH), New Orleans, LA, USA, 4–9 August 1996; pp. 303–312. [Google Scholar]
  15. Kazhdan, M.; Bolitho, M.; Hoppe, H. Poisson surface reconstruction. In Proceedings of the Fourth Eurographics Symposium on Geometry Processing, Cagliari, Sardinia, Italy, 26–28 June 2006; pp. 61–70. [Google Scholar]
  16. Selig, M.S.; Guglielmo, J.J.; Broeren, A.P.; Giguère, P. Summary of Low-Speed Airfoil Data; SoarTech Publications: Virginia Beach, VA, USA, 1995; Volume 1. [Google Scholar]
  17. Selig, M.S. UIUC Airfoil Coordinates Database. 1996. Available online: https://m-selig.ae.illinois.edu/ads/coord_database.html (accessed on 19 August 2026).
  18. Park, J.J.; Florence, P.; Straub, J.; Newcombe, R.; Lovegrove, S. DeepSDF: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–19 June 2019; pp. 165–174. [Google Scholar]
  19. Mescheder, L.; Oechsle, M.; Niemeyer, M.; Nowozin, S.; Geiger, A. Occupancy networks: Learning 3D reconstruction in function space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–19 June 2019; pp. 4460–4470. [Google Scholar]
  20. Mildenhall, B.; Srinivasan, P.P.; Tancik, M.; Barron, J.T.; Ramamoorthi, R.; Ng, R. NeRF: Representing scenes as neural radiance fields for view synthesis. In Proceedings of the European Conference on Computer Vision (ECCV), Glasgow, UK, 23–28 August 2020; pp. 405–421. [Google Scholar]
  21. Rahaman, N.; Baratin, A.; Arpit, D.; Draxler, F.; Lin, M.; Hamprecht, F.; Bengio, Y.; Courville, A. On the spectral bias of neural networks. In Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, USA, 9–15 June 2019; Volume 97, pp. 5301–5310, Proceedings of Machine Learning Research. [Google Scholar]
  22. Tancik, M.; Srinivasan, P.; Mildenhall, B.; Fridovich-Keil, S.; Raghavan, N.; Singhal, U.; Ramamoorthi, R.; Barron, J.; Ng, R. Fourier features let networks learn high frequency functions in low dimensional domains. Proc. Adv. Neural Inf. Process. Syst. 2020, 33, 7537–7547. [Google Scholar]
  23. Sitzmann, V.; Martel, J.; Bergman, A.; Lindell, D.; Wetzstein, G. Implicit neural representations with periodic activation functions. Proc. Adv. Neural Inf. Process. Syst. 2020, 33, 7462–7473. [Google Scholar]
  24. Lagaris, I.E.; Likas, A.; Fotiadis, D.I. Artificial neural networks for solving ordinary and partial differential equations. IEEE Trans. Neural Netw. 1998, 9, 987–1000. [Google Scholar] [CrossRef] [Scilit]
  25. Qarariyah, A.; Yang, T.; Deng, F. An Intelligent SPH Framework Based on Machine-Learned Residual Correction for Elliptic PDEs. Algorithms 2025, 18, 803. [Google Scholar] [CrossRef] [Scilit]
  26. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef] [Scilit]
  27. Sukumar, N.; Srivastava, A. Exact imposition of boundary conditions with distance functions in physics-informed deep neural networks. Comput. Methods Appl. Mech. Eng. 2022, 389, 114333. [Google Scholar] [CrossRef] [Scilit]
  28. Gao, H.; Sun, L.; Wang, J.X. PhyGeoNet: Physics-informed geometry-adaptive convolutional neural networks for solving parameterized steady-state PDEs on irregular domain. J. Comput. Phys. 2021, 428, 110079. [Google Scholar] [CrossRef] [Scilit]
  29. Oldenburg, J.; Borowski, F.; Öner, A.; Schmitz, K.P.; Stiehm, M. Geometry aware physics informed neural network surrogate for solving Navier–Stokes equation (GAPINN). Adv. Model. Simul. Eng. Sci. 2022, 9, 8. [Google Scholar] [CrossRef] [Scilit]
  30. Li, Z.; Kovachki, N.B.; Choy, C.; Li, B.; Kossaifi, J.; Otta, S.P.; Nabian, M.A.; Stadler, M.; Hundt, C.; Azizzadenesheli, K.; et al. Geometry-informed neural operator for large-scale 3D PDEs. Proc. Adv. Neural Inf. Process. Syst. 2023, 36, 35836–35854. [Google Scholar] [CrossRef] [Scilit]
  31. Rabeh, A.; Krishnamurthy, A.; Ganapathysubramanian, B. 3D neural operator-based flow surrogates around 3D geometries: Signed distance functions and derivative constraints. arXiv 2025, arXiv:2503.17289. [Google Scholar]
  32. Zhang, L.; Pagani, S.; Zhang, J.; Regazzoni, F. Shape-informed surrogate models based on signed distance function domain encoding. J. Comput. Phys. 2025, 538, 114178. [Google Scholar] [CrossRef] [Scilit]
  33. Liu, Z.; Wang, Y.; Vaidya, S.; Ruehle, F.; Halverson, J.; Soljačić, M.; Hou, T.Y.; Tegmark, M. KAN: Kolmogorov–Arnold Networks. arXiv 2024, arXiv:2404.19756. [Google Scholar]
  34. Bozorgasl, Z.; Chen, H. Wav-KAN: Wavelet Kolmogorov–Arnold Networks. arXiv 2024, arXiv:2405.12832. [Google Scholar]
  35. Majak, J.; Pohlak, M.; Karjust, K.; Eerme, M.; Kurnitski, J.; Shvartsman, B. New Higher Order Haar Wavelet Method: Application to FGM Structures. Compos. Struct. 2018, 201, 72–78. [Google Scholar] [CrossRef] [Scilit]
  36. Roache, P.J. Code verification by the method of manufactured solutions. J. Fluids Eng. 2002, 124, 4–10. [Google Scholar] [CrossRef] [Scilit]
  37. Aycock, K.I.; Rebelo, N.; Craven, B.A. Method of Manufactured Solutions Code Verification of Elastostatic Solid Mechanics Problems in a Commercial Finite Element Solver. Comput. Math. Appl. 2021, 93, 178–198. [Google Scholar]
  38. Gibou, F.; Fedkiw, R.; Osher, S. A review of level-set methods and some recent applications. J. Comput. Phys. 2018, 353, 82–109. [Google Scholar] [CrossRef] [Scilit]
  39. Ascher, U.M.; Ruuth, S.J.; Wetton, B.T.R. Implicit-explicit methods for time-dependent partial differential equations. SIAM J. Numer. Anal. 1995, 32, 797–823. [Google Scholar] [CrossRef] [Scilit]
  40. Hu, J.; Shu, R. Uniform Accuracy of Implicit-Explicit Runge–Kutta (IMEX-RK) Schemes for Hyperbolic Systems with Relaxation. Math. Comput. 2024, 94, 209–240. [Google Scholar] [CrossRef] [Scilit]
  41. Shortley, G.H.; Weller, R. The numerical solution of Laplace’s equation. J. Appl. Phys. 1938, 9, 334–348. [Google Scholar] [CrossRef] [Scilit]
  42. Berger, M. Cut cells: Meshes and solvers. In Handbook of Numerical Methods for Hyperbolic Problems; Handbook of Numerical Analysis; Elsevier: Amsterdam, The Netherlands, 2017; Volume 18, pp. 1–22. [Google Scholar]
  43. Gulizzi, V.; Almgren, A.S.; Bell, J.B. A Coupled Discontinuous Galerkin-Finite Volume Framework for Solving Gas Dynamics over Embedded Geometries. J. Comput. Phys. 2022, 450, 110861. [Google Scholar] [CrossRef] [Scilit]
  44. Berger, M.; Giuliani, A. A State Redistribution Algorithm for Finite Volume Schemes on Cut Cell Meshes. J. Comput. Phys. 2021, 428, 109820. [Google Scholar] [CrossRef] [Scilit]
  45. Ram, P.; Sinha, K. Revisiting kd-tree for Nearest Neighbor Search. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (KDD), Anchorage, AK, USA, 4–8 August 2019; pp. 1378–1388. [Google Scholar]
  46. Aumüller, M.; Ceccarello, M. Recent Approaches and Trends in Approximate Nearest Neighbor Search, with Remarks on Benchmarking. IEEE Data Eng. Bull. 2023, 46, 89–105. [Google Scholar]
  47. Aurenhammer, F. Voronoi diagrams—A survey of a fundamental geometric data structure. ACM Comput. Surv. 1991, 23, 345–405. [Google Scholar] [CrossRef] [Scilit]
  48. Cybenko, G. Approximation by superpositions of a sigmoidal function. Math. Control Signals Syst. 1989, 2, 303–314. [Google Scholar] [CrossRef] [Scilit]
  49. Hornik, K. Approximation capabilities of multilayer feedforward networks. Neural Netw. 1991, 4, 251–257. [Google Scholar] [CrossRef] [Scilit]
  50. Augustine, M.T. A Survey on Universal Approximation Theorems. arXiv 2024, arXiv:2407.12895. [Google Scholar]
  51. Worth, K.; Plamus, T.; Majak, J. Design optimization of nonwovens made from mechanically recycled textile fibres. Compos. Struct. 2026, 387, 120330. [Google Scholar] [CrossRef] [Scilit]
  52. Levenberg, K. A method for the solution of certain non-linear problems in least squares. Q. Appl. Math. 1944, 2, 164–168. [Google Scholar] [CrossRef] [Scilit]
  53. Marquardt, D.W. An algorithm for least-squares estimation of nonlinear parameters. J. Soc. Ind. Appl. Math. 1963, 11, 431–441. [Google Scholar] [CrossRef] [Scilit]
  54. Hagan, M.T.; Menhaj, M.B. Training feedforward networks with the Marquardt algorithm. IEEE Trans. Neural Netw. 1994, 5, 989–993. [Google Scholar] [CrossRef] [Scilit]
  55. Møller, M.F. A scaled conjugate gradient algorithm for fast supervised learning. Neural Netw. 1993, 6, 525–533. [Google Scholar] [CrossRef] [Scilit]
Figure 1. The three families of boundary closures along one cut grid link. (a) Naive: the Dirichlet value g is imposed at the exterior cell center, displacing the boundary by O ( h ) ; this is the negative control. (b) Linear intercept: the boundary crossing x b at fraction θ of the link defines a ghost value by linear extrapolation, Equation (11). (c) Quadratic ghost cell: the second interior neighbor enters with the Lagrange weights L 0 ,   L 1 ,   L 2 of Equation (15).
Figure 1. The three families of boundary closures along one cut grid link. (a) Naive: the Dirichlet value g is imposed at the exterior cell center, displacing the boundary by O ( h ) ; this is the negative control. (b) Linear intercept: the boundary crossing x b at fraction θ of the link defines a ghost value by linear extrapolation, Equation (11). (c) Quadratic ghost cell: the second interior neighbor enters with the Lagrange weights L 0 ,   L 1 ,   L 2 of Equation (15).
Computation 14 00198 g001
Figure 2. Structural non-smoothness of the discrete nearest-point normal. (a) The gradient of the point-set distance d P , Equation (22); arrows show its direction, which points toward whichever sample is currently nearest, so the direction is constant within each Voronoi cell (dotted lines mark the Voronoi cell boundaries) and jumps by 2 arctan ( s / 2 δ ) across each face. (b) Direction angle along an offset query path, where the nearest-point field is a staircase and a smooth surrogate gradient follows the continuous normal. Where the underlying angle is monotone, the two have equal total variation; excess variation, Equation (29), appears where concave geometry makes the staircase non-monotone.
Figure 2. Structural non-smoothness of the discrete nearest-point normal. (a) The gradient of the point-set distance d P , Equation (22); arrows show its direction, which points toward whichever sample is currently nearest, so the direction is constant within each Voronoi cell (dotted lines mark the Voronoi cell boundaries) and jumps by 2 arctan ( s / 2 δ ) across each face. (b) Direction angle along an offset query path, where the nearest-point field is a staircase and a smooth surrogate gradient follows the continuous normal. Where the underlying angle is monotone, the two have equal total variation; excess variation, Equation (29), appears where concave geometry makes the staircase non-monotone.
Computation 14 00198 g002
Figure 3. The neural distance surrogate and its single point of entry into the solver. (a) Architecture for the two-dimensional examples: raw coordinates in, scalar distance out, Equation (23); no positional encoding. (b) Schematic level sets of a signed-distance field for the Example-1 geometry, colored by the value of ϕ (level-set contours), illustrating the construction the trained surrogate is meant to reproduce; on a cut grid link (interior center filled, exterior open), the two field values determine the intercept θ net of Equation (13) (star), the only quantity the network supplies to the otherwise classical scheme. The star lies on the straight segment between the two nodes rather than on the curved boundary itself, illustrating the small intercept error quantified in Proposition 1.
Figure 3. The neural distance surrogate and its single point of entry into the solver. (a) Architecture for the two-dimensional examples: raw coordinates in, scalar distance out, Equation (23); no positional encoding. (b) Schematic level sets of a signed-distance field for the Example-1 geometry, colored by the value of ϕ (level-set contours), illustrating the construction the trained surrogate is meant to reproduce; on a cut grid link (interior center filled, exterior open), the two field values determine the intercept θ net of Equation (13) (star), the only quantity the network supplies to the otherwise classical scheme. The star lies on the straight segment between the two nodes rather than on the curved boundary itself, illustrating the small intercept error quantified in Proposition 1.
Computation 14 00198 g003
Figure 4. Example 1: pointwise absolute error, finest grid ( N c = 80 ). The naive error is O ( 1 ) ; the four geometry-aware closures are O ( 10 4 ) .
Figure 4. Example 1: pointwise absolute error, finest grid ( N c = 80 ). The naive error is O ( 1 ) ; the four geometry-aware closures are O ( 10 4 ) .
Computation 14 00198 g004
Figure 5. Example 1: L 2 error evolution over the simulated time window at N c = 40 . The naive error grows without bound; all four geometry-aware closures remain visually indistinguishable from zero on this scale. Examples 2 and 3 exhibit the same qualitative behavior.
Figure 5. Example 1: L 2 error evolution over the simulated time window at N c = 40 . The naive error grows without bound; all four geometry-aware closures remain visually indistinguishable from zero on this scale. Examples 2 and 3 exhibit the same qualitative behavior.
Computation 14 00198 g005
Figure 6. Example 1: analytic signed-distance surface (left) vs. the trained neural-SDF surrogate (right), same domain.
Figure 6. Example 1: analytic signed-distance surface (left) vs. the trained neural-SDF surrogate (right), same domain.
Computation 14 00198 g006
Figure 7. Example 2: pointwise absolute error, finest grid ( N c = 80 ); error concentrates along the hole rims and slit for every geometry-aware closure.
Figure 7. Example 2: pointwise absolute error, finest grid ( N c = 80 ); error concentrates along the hole rims and slit for every geometry-aware closure.
Computation 14 00198 g007
Figure 8. Example 2: domain boundary (outer rim, two holes, reentrant slit) and the corresponding trained neural-SDF surface.
Figure 8. Example 2: domain boundary (outer rim, two holes, reentrant slit) and the corresponding trained neural-SDF surface.
Computation 14 00198 g008
Figure 9. Example 3: raw digitized Selig S1223 airfoil coordinates (81 points, UIUC database) and the fine spline reference curve used as the point-cloud-based exact distance function throughout this example.
Figure 9. Example 3: raw digitized Selig S1223 airfoil coordinates (81 points, UIUC database) and the fine spline reference curve used as the point-cloud-based exact distance function throughout this example.
Computation 14 00198 g009
Figure 10. Example 3: pointwise absolute error, finest grid ( 200 × 46 ); largest for every closure near the thin trailing edge.
Figure 10. Example 3: pointwise absolute error, finest grid ( 200 × 46 ); largest for every closure near the thin trailing edge.
Computation 14 00198 g010
Figure 15. Example 1: query cost vs. boundary point count; brute force vs. KD-tree vs. trained network (fixed cost).
Figure 15. Example 1: query cost vs. boundary point count; brute force vs. KD-tree vs. trained network (fixed cost).
Computation 14 00198 g015
Figure 16. Example 1: CPU cost breakdown at the finest grid ( N c = 80 , 600 timesteps). Per-step solve cost is nearly identical across all five boundary closures; only the neural closure carries a one-time training cost.
Figure 16. Example 1: CPU cost breakdown at the finest grid ( N c = 80 , 600 timesteps). Per-step solve cost is nearly identical across all five boundary closures; only the neural closure carries a one-time training cost.
Computation 14 00198 g016
Figure 17. Example 2: query cost vs. boundary point count (outer rim, holes, and slit combined); brute force vs. KD-tree vs. trained network.
Figure 17. Example 2: query cost vs. boundary point count (outer rim, holes, and slit combined); brute force vs. KD-tree vs. trained network.
Computation 14 00198 g017
Figure 18. Example 3: query cost vs. point-cloud density (resampled from the digitized airfoil data); brute force vs. KD-tree vs. trained network.
Figure 18. Example 3: query cost vs. point-cloud density (resampled from the digitized airfoil data); brute force vs. KD-tree vs. trained network.
Computation 14 00198 g018
Figure 19. Example 4: query cost vs. resampled three-dimensional surface point count; brute force vs. KD-tree vs. trained network.
Figure 19. Example 4: query cost vs. resampled three-dimensional surface point count; brute force vs. KD-tree vs. trained network.
Computation 14 00198 g019
Figure 20. Example 1: normal-direction field just outside the boundary; neural SDF (left, smooth) vs. nearest-point construction (right, discontinuous near concave notches).
Figure 20. Example 1: normal-direction field just outside the boundary; neural SDF (left, smooth) vs. nearest-point construction (right, discontinuous near concave notches).
Computation 14 00198 g020
Figure 21. Example 2: normal-direction field around the multiply-connected boundary; neural SDF (left) vs. nearest-point construction (right, discontinuous at the slit).
Figure 21. Example 2: normal-direction field around the multiply-connected boundary; neural SDF (left) vs. nearest-point construction (right, discontinuous at the slit).
Computation 14 00198 g021
Figure 22. Example 3: normal-direction field along the airfoil surface; neural SDF (left, smooth) vs. nearest-point construction (right, discontinuous near the trailing edge).
Figure 22. Example 3: normal-direction field along the airfoil surface; neural SDF (left, smooth) vs. nearest-point construction (right, discontinuous near the trailing edge).
Computation 14 00198 g022
Figure 23. Example 4: normal-direction field on the outer wall ring; neural SDF (left, smooth) vs. nearest-point construction (right, discontinuous).
Figure 23. Example 4: normal-direction field on the outer wall ring; neural SDF (left, smooth) vs. nearest-point construction (right, discontinuous).
Computation 14 00198 g023
Figure 24. Example 4: smoothness ratio (nearest-point TV/neural TV) by feature, showing the ordering by radius (outer wall > bore > bolt holes) rather than by concavity.
Figure 24. Example 4: smoothness ratio (nearest-point TV/neural TV) by feature, showing the ordering by radius (outer wall > bore > bolt holes) rather than by concavity.
Computation 14 00198 g024
Table 2. Example 1: regression-based order of accuracy ( log L 2 vs. log h , 10 grid levels, N c = 15 –80).
Table 2. Example 1: regression-based order of accuracy ( log L 2 vs. log h , 10 grid levels, N c = 15 –80).
ClosureOrder95% CI R 2
naive 0.086 [ 0.111 , 0.061 ] 0.885
exact-SDF 2.038 [ 1.993 , 2.083 ] 0.999
neural-SDF 2.012 [ 1.946 , 2.078 ] 0.998
cut-cell 2.025 [ 1.973 , 2.077 ] 0.999
ghost-cell quad 2.109 [ 2.029 , 2.188 ] 0.998
Table 3. Example 2: full grid-convergence data, all 10 levels (geometry-aware closures only; per-step orders shown in parentheses). The naive closure does not converge at any level (order 0.07 throughout, per Table 4) and is omitted here for brevity. The regression fit of Table 4 uses only N c 30 . Here and in Table 5 and Table 8, “–” marks the coarsest grid level, where no preceding level exists from which to compute a per-step order.
Table 3. Example 2: full grid-convergence data, all 10 levels (geometry-aware closures only; per-step orders shown in parentheses). The naive closure does not converge at any level (order 0.07 throughout, per Table 4) and is omitted here for brevity. The regression fit of Table 4 uses only N c 30 . Here and in Table 5 and Table 8, “–” marks the coarsest grid level, where no preceding level exists from which to compute a per-step order.
N c hExact L 2 Neural L 2 Cut-Cell L 2 Ghost-Quad L 2
150.14295.944 × 10−3 (–)7.127 × 10−3 (–)4.609 × 10−3 (–)4.046 × 10−3 (–)
200.10534.136 × 10−3 (1.19)4.347 × 10−3 (1.62)2.695 × 10−3 (1.76)2.544 × 10−3 (1.52)
250.08332.180 × 10−3 (2.74)2.131 × 10−3 (3.05)1.315 × 10−3 (3.07)1.365 × 10−3 (2.66)
300.06901.570 × 10−3 (1.73)1.550 × 10−3 (1.68)1.165 × 10−3 (0.64)9.833 × 10−4 (1.73)
350.05881.223 × 10−3 (1.57)1.234 × 10−3 (1.43)5.939 × 10−4 (4.24)7.052 × 10−4 (2.09)
400.05137.900 × 10−4 (3.19)7.860 × 10−4 (3.29)5.144 × 10−4 (1.05)5.123 × 10−4 (2.33)
500.04085.513 × 10−4 (1.58)5.393 × 10−4 (1.65)3.111 × 10−4 (2.20)3.420 × 10−4 (1.77)
600.03394.096 × 10−4 (1.60)4.059 × 10−4 (1.53)2.698 × 10−4 (0.77)2.435 × 10−4 (1.83)
700.02902.787 × 10−4 (2.46)2.784 × 10−4 (2.41)1.879 × 10−4 (2.31)1.697 × 10−4 (2.30)
800.02531.904 × 10−4 (2.81)1.930 × 10−4 (2.71)1.217 × 10−4 (3.21)1.144 × 10−4 (2.92)
Table 4. Example 2: regression-based order of accuracy ( log L 2 vs. log h , N c 30 only, n = 7 grid levels).
Table 4. Example 2: regression-based order of accuracy ( log L 2 vs. log h , N c 30 only, n = 7 grid levels).
ClosureOrder95% CI R 2
naive 0.074 [ 0.091 , 0.056 ] 0.958
exact-SDF 2.046 [ 1.836 , 2.256 ] 0.992
neural-SDF 2.035 [ 1.829 , 2.242 ] 0.992
cut-cell 1.999 [ 1.594 , 2.404 ] 0.969
ghost-cell quad 2.070 [ 1.917 , 2.223 ] 0.996
Table 5. Example 3: full grid-convergence data, all 8 levels (geometry-aware closures only; per-step orders in parentheses). The naive closure does not converge at any level (order 0 throughout, per Table 6) and is omitted here for brevity. The regression fit of Table 6 uses only N c 100 .
Table 5. Example 3: full grid-convergence data, all 8 levels (geometry-aware closures only; per-step orders in parentheses). The naive closure does not converge at any level (order 0 throughout, per Table 6) and is omitted here for brevity. The regression fit of Table 6 uses only N c 100 .
GridhExact/Neural L 2
40 × 10 0.028212.743 × 10−4/2.774 × 10−4 (–)
50 × 12 0.022451.938 × 10−4/1.966 × 10−4 (1.52/1.51)
60 × 14 0.018641.376 × 10−4/1.378 × 10−4 (1.84/1.92)
80 × 19 0.013927.057 × 10−5/7.001 × 10−5 (2.29/2.32)
100 × 24 0.011114.294 × 10−5/4.212 × 10−5 (2.20/2.25)
130 × 30 0.008532.680 × 10−5/2.664 × 10−5 (1.78/1.73)
160 × 37 0.006921.536 × 10−5/1.530 × 10−5 (2.66/2.65)
200 × 46 0.005531.031 × 10−5/1.040 × 10−5 (1.78/1.72)
Table 6. Example 3: regression-based order of accuracy ( log L 2 vs. log h , N c 100 only, n = 4 grid levels).
Table 6. Example 3: regression-based order of accuracy ( log L 2 vs. log h , N c 100 only, n = 4 grid levels).
ClosureOrder95% CI R 2
naive 0.002 [ 0.003 , 0.001 ] 0.940
exact 2.095 [ 1.631 , 2.559 ] 0.993
neural-SDF 2.057 [ 1.570 , 2.544 ] 0.993
Table 9. Example 2: total angular variation (TV) of the normal-direction field, per boundary component, at base offset.
Table 9. Example 2: total angular variation (TV) of the normal-direction field, per boundary component, at base offset.
ComponentNeural TV (Rad)Nearest-Point TV (Rad)Ratio
outer rim7.38218.705 2.53 ×
hole 16.2836.484 1.03 ×
hole 26.2836.433 1.02 ×
slit flank A1.99013.613 6.84 ×
slit flank B1.95212.908 6.61 ×
slit tip1.9099.512 4.98 ×
Total25.80067.654 2.62 ×
Table 10. Example 4: total angular variation (TV) of the normal-direction field, per boundary feature, at base offset. Ring features (outer wall, bore, bolt holes) use the angle-unwrap TV construction; the top face uses the mean neighbor-angular-difference construction (units rad, not directly comparable in scale to the TV rows).
Table 10. Example 4: total angular variation (TV) of the normal-direction field, per boundary feature, at base offset. Ring features (outer wall, bore, bolt holes) use the angle-unwrap TV construction; the top face uses the mean neighbor-angular-difference construction (units rad, not directly comparable in scale to the TV rows).
FeatureNeuralNearest-PointRatio
outer wall7.258317.635 43.77 ×
bore wall6.283158.311 25.20 ×
bolt hole 16.28342.919 6.83 ×
bolt hole 26.28342.452 6.76 ×
bolt hole 36.28343.588 6.94 ×
bolt hole 46.28341.776 6.65 ×
bolt hole 56.28343.732 6.96 ×
bolt hole 66.28341.301 6.57 ×
Total (rings)51.240731.713 14.28 ×
top face (mean nbr. angle)0.0740.618 8.35 ×
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Qarariyah, A.; Odeh, S. Neural Signed Distance Surrogates for Cut-Cell Finite-Volume Solvers. Computation 2026, 14, 198. https://doi.org/10.3390/computation14090198

AMA Style

Qarariyah A, Odeh S. Neural Signed Distance Surrogates for Cut-Cell Finite-Volume Solvers. Computation. 2026; 14(9):198. https://doi.org/10.3390/computation14090198

Chicago/Turabian Style

Qarariyah, Ammar, and Suhail Odeh. 2026. "Neural Signed Distance Surrogates for Cut-Cell Finite-Volume Solvers" Computation 14, no. 9: 198. https://doi.org/10.3390/computation14090198

APA Style

Qarariyah, A., & Odeh, S. (2026). Neural Signed Distance Surrogates for Cut-Cell Finite-Volume Solvers. Computation, 14(9), 198. https://doi.org/10.3390/computation14090198

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop