3.9 KiB
Draft: weld lines and air traps derived from the arrival field (2026-11-23)
Status: DRAFT for MeltSol/MoldSol. Purpose: test H2 fill-time predictions on the quantities engineers use, without new data or GPU. Evaluate only on the used fold-0 holdout (121 parts / 37 families), labelled as such. Truth and prediction go through the SAME derivation; nothing is tuned on fold-0 test.
Inputs (per part)
- Tet mesh nodes/edges (H2 message CSR, symmetric), node volumes (mass weights), boundary-node flag.
- Arrival time t(x): truth (Greif fill-time field) and H2 prediction (frozen fold-0 single-head s0).
Weld lines (meeting fronts)
For each mesh edge (i, j), the flow fronts meet where arrival is a local "ridge":
- Front direction per node: d_i = unit grad t at node i (least-squares gradient over 1-ring neighbours).
- A node i is a WELD CANDIDATE if it has a neighbour j with
- |t_i − t_j| ≤ τ_t · (t_max − t_min) (fronts arrive at nearly the same time), and
- d_i · d_j ≤ cos(θ_w) (fronts come from opposing directions).
- Keep connected components of candidates with total volume ≥ V_min (drops single-node noise). Fixed constants (pre-declared, not tuned): τ_t = 0.01, θ_w = 120°, V_min = 0.1 % of part volume.
Air traps (last-to-fill pockets)
A node is an AIR-TRAP node if it is a local maximum of t over its 1-ring (strict, ties broken by node ID). Keep maxima whose basin — nodes reachable by descending t within Δ = 0.02 · (t_max − t_min) — has volume ≥ V_min. (The existing k4 / last-1 % support metric covers the GLOBAL last-fill point; this adds the secondary pockets.)
Scores (per part, then family-equal mean; family-paired bootstrap 2,000, PCG64 2026111408)
- Weld lines: symmetric Chamfer distance between true and predicted weld-node sets, normalised by the part's bounding-box diagonal; plus precision/recall at radius r = 2 % of the diagonal (volume-weighted).
- Air traps: count error |N_pred − N_true|; recall of true traps within r; false traps per part.
- Empty-set rules: both empty → distance 0 and recall undefined (counted); one empty → distance = 1 (diagonal), counted separately.
Comparison
H2 vs GBRT-19 arrival predictions on the same parts (descriptive, both frozen). No gate: this is a first look at whether arrival-field accuracy (~6.7 % relative L2) is enough for usable weld-line / air-trap locations.
Open choices for review
- Whether constants should be checked first on fold-0 LEARNING parts (truth only, no prediction) for plausibility (e.g. visual check of 5 parts) — recommended, before any test read.
- Whether Greif data marks gates/vents (vents change air-trap meaning) — check metadata.
Revision r2 after the learning-side plausibility check (receipt d136d72e, 5 fold-0 learning parts, truth only)
Findings: weld candidates 0/0/102/54/6314 nodes, the last a broad edge band (14 % of volume); air-trap proxy kept 13–28 maxima per part, clustered on one last-fill boundary, earliest at 35 % of the fill span. Both definitions are too noisy. Likely cause for the weld band: in 3-D tets, arrival gradients through a thin wall point in opposite directions across the thickness, so "opposing fronts" fires without any real meeting of fronts. Changes (method, not threshold-chasing):
- Weld lines: evaluate on BOUNDARY-SURFACE nodes only, with the gradient projected onto the local surface tangent plane (area-weighted vertex normal); same τ_t = 1 %, θ_w = 120°, V_min → surface area ≥ 0.1 % of part surface.
- Air traps: topological persistence instead of raw local maxima — merge maxima through the superlevel-set union-find of t on the mesh graph; keep a pocket if its persistence (peak t − merge saddle t) ≥ 5 % of the span and its basin volume ≥ 0.1 %. Check again on the same 5 learning parts PLUS 5 new fold-0 learning parts (same quantile rule, next ranks), truth only. Constants are then frozen before any test read; no further changes after the prebinding.