Production deterministic-transport MGXS (switch-free, real geometry + thermal in-kernel) - #117
Conversation
Off the transport-free base (#113). Single clean module routine: run one deterministic 1D transport on the model's REAL layered geometry with the free-gas thermal kernel folded into the transport -> per-region local flux at all energies -> collapse each material against its region's flux. NO switching (geometry gives near-source vs deep; thermal in-kernel). Distils the learnings from the #114/#115/#116 investigations. Plan in PR.
Plan: production switch-free deterministic-transport MGXSDistils the #114/#115/#116 investigations into one clean module routine, off the Why (what we learned)
Design (no switches)
Geometry1D slab in the model's layer coordinate is the right model for a fusion shield (thin shell ValidationFull 10-material stack (CCFE-709 + UKAEA-1102): total + scatter row-sum + shape, vs |
Full-stack transport + correct kernel scatter XS + thermal-NR at fixed free-gas threshold. CRACKS Fe-56 (total 0.32 / scatter 0.40 vs slab 1.41/1.47) and the deep/cross-talk materials (TOTAL 7/10). Near-source metals (tungsten 3.79/5.26) REGRESS -- verified vs both sphere AND slab1d refs, so NOT a geometry artifact: the innermost-shell (source-adjacent) flux is wrong (incident-boundary vs volumetric source). Next: volumetric source treatment, or NR-source- region + transport-deep division. See FINDING_production.md.
…ource form) Byte-identical to incident-boundary. Confirms near-source error is the transport's slowing-down physics, not the source (and not geometry, per slab1d). Root cause: ELASTIC-ONLY down-scatter source -- tungsten's strong inelastic missing -> source-region flux too hard. Fix = add inelastic/(n,2n) to the transport source, or NR for the source-adjacent region. Method already cracks Fe-56 + deep materials. See FINDING_production.md.
Transport down-scatter source was elastic-only; added inelastic + (n,xn) via a coarse per-material transfer matrix applied in an outer iteration (inel_source.py). Fixes steel (total 0.70->0.25, scatter 0.89->0.42, both now beat slab). Fe-56/ Zircaloy/deep materials all win -> 9/10 total. Tungsten unchanged: confirmed its inelastic matrix builds & is applied, so its error is source-region geometry (front wall under-sees the equilibrium 1/E spectrum), not slowing-down physics -- NR is the right tool for the first wall. Committed inel_source/sd_flux/scatter_det/mats so the prototype is self-contained.
Inelastic + (n,2n) down-scatter added → TOTAL 7/10 → 9/10The transport down-scatter source was elastic-only. Added inelastic + (n,xn) via a coarse Result (CCFE-709, vs converged stochastic_slab)
Inelastic fixed steel (the win) and took TOTAL to 9/10. Tungsten is the lone holdout. Why tungsten is immune — it's geometry, not physics
Clean switch-free rule (no arbitrary threshold)NR for the source layer (no upstream material → flux is the source spectrum → NR exact) Bottom line: #117 delivers the deep-penetration goal — 9/10 on total, the deep/cross-talk |
Cross-talk benchmarks refine where deterministic transport earns its placeCompanion to the cross-talk comment on #113. Controlled 2-material adjacency tests (W│H₂O, steel│Fe-56) vs 1. Transport's value is intra-region spatial-spectral resolution for resolved-resonance metals — not inter-material cross-talk. Fe-56: NR ~3% → transport ~0.8%, and this holds whether Fe-56 is behind steel (3.01 → 0.66) or at the front (3.25 → 0.90). The neighbour's identity barely moves it (≲ MC noise). What transport fixes is the depth-varying slowing-down spectrum through the thick resonant region that a single 0-D flux cannot represent. 2. Transport is WORSE than NR for tungsten — even when W is deep. W behind 12 cm of water: NR 1.06 vs transport 3.26 (and W at the front: 1.30 vs 2.91). So #117's tungsten regression is not merely the near-source artifact — the 1D slab transport is genuinely the wrong tool for W (URR-dominated; NR+URR is excellent at ~1%). This generalizes the source-layer-NR recommendation to "NR for URR-dominated metals (W), transport for resolved-resonance metals (Fe-56)." Net: #117's deterministic transport pays off on exactly the materials where the NR method (#113) has its only real gap — thick resolved-resonance metals (Fe-56-like). For moderators and URR metals, #113's NR+URR is as good or better, and transport should defer to it. |
How the four MGXS methods compare (reference, fusion shield, VITAMIN-J-175)A head to head of all four generation methods on one fusion shield, scored as the mean Geometry (point 14 MeV Muir source in the plasma, concentric shells): Methods: All numbers are % difference vs
(plasma scatter 100 % is near-void DT, physically meaningless; note it is the noisy one for How they compare
TakeawayOn this collapse vs |
Builds on #113. One clean module routine for a switch-free deterministic-transport weighting (real layered geometry + free-gas thermal folded into the transport). Distils #114/#115/#116. Plan in the first comment.