Implemented in: support.py — SupportDomain, compute_support_radii()
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:
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.
The support radius of node I is:
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):
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).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.
The dilation factor α (default 2.5) controls the ratio of support radius to local nodal spacing:
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:
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.