Support Domain — Radius Computation and cKDTree

Implemented in: support.py — SupportDomain, compute_support_radii()

1. Role of the Support Domain

In MLS, each weight function wI(x) is compactly supported: it is nonzero only within a sphere of radius rsupp,I centred at node I. Node I contributes to the approximation at x only when:

||x − xI|| < rsupp,I

This means the moment matrix A(x) is built from only a small local subset of nodes — the support domain of x. The support radius must be large enough to always include at least m nodes (the number of basis terms) so that A is always non-singular.

2. Support Radius Computation: Directional-Maximum Heuristic

The support radius of node I is:

rsupp,I = α × hI

where α is the dilation factor (default 2.5) and hI is the local nodal spacing. The spacing is estimated by a directional-maximum heuristic to handle anisotropic distributions (e.g. a structured grid with different spacing in x and y):

Directional-Maximum Spacing Algorithm (compute_support_radii)

  1. Query the k = \min(12, N-1) nearest neighbours of each node using a cKDTree.
  2. For each coordinate axis d ∈ {x, y}:
    • Find neighbours where |Δxd| ≥ 0.3 × r (significant displacement along axis d).
    • Compute hd = distance to the nearest such neighbour.
  3. Set hI = max(hx, hy) — maximum over axes ensures coverage in all directions.
  4. Apply minimum floor: hI = max(hI, ρ × median(h)) with ρ = solver setting support_min_ratio (default 0.2; 0.5 before 2026-10) — prevents anomalously small radii on clustered boundary nodes. A large ρ makes the support of locally refined nodes much larger than their spacing (e.g. 3.5×R0 at a weld toe refined to 0.1 mm in a 1 mm cloud) and, with MLPG5 on refined clouds, produced a corrupted solution; ρ ≤ 0.3 was robust in the validation campaign (see below).
  5. rsupp,I = α × hI.

The directional-maximum approach avoids underestimating the support radius on structured grids where all nearest neighbours may lie along a single axis. For example, on a grid with hx = 2hy, a naive nearest-neighbour estimate would give h \approx hy, which may be insufficient to reach horizontal neighbours; the directional-maximum correctly gives h = hx.

3. Alpha Parameter

The dilation factor α (default 2.5) controls the ratio of support radius to local nodal spacing:

4. SupportDomain Class and cKDTree

The SupportDomain object wraps a scipy.spatial.cKDTree for efficient radius queries. At each Gauss point, the candidate nodes (those whose support may include the Gauss point) are found by:

candidates = cKDTree.query_ball_point(xg, rmax)

where rmax = maxI(rsupp,I) is used as a conservative bounding radius. This "opt-1" candidate pre-query reduces the number of full MLS evaluations from O(N) to O(k) where k is the average number of nodes within rmax.

Neighbor-count check: After building the support domain, the solver checks that every node has at least m neighbours within its support radius (linear: 3, quadratic: 6). Nodes with fewer neighbours are reported as "deficient" and the recommended threshold is 2m. A warning is logged if any deficient nodes are found.

5. References