draft: weld-line and air-trap targets from the arrival field

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-11-23 08:10:04 +00:00
1 parent 6f1792d967
commit 4361d183ef
1 file changed
+39
@@ -0,0 +1,39 @@
# 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":
1. Front direction per node: d_i = unit grad t at node i (least-squares gradient over 1-ring neighbours).
2. 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).
3. 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.