Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,57 @@ workspace crates from tags.

## [Unreleased]

### Added

- Activation-to-transport handoff. `nucleide.openmc.normalize_flux` converts
raw OpenMC tally arrays into physical group flux only after an explicit
normalization declaration. It distinguishes volume-integrated from
volume-averaged data and per-source-particle from source-rate-scaled data
(OpenMC 0.16 scales fixed-source tallies by the configured total source
strength), rejects double scaling, preserves relative errors and records
units, source rate and the input state. The CSV interchange moves to v2 with
normalization/units metadata while v1 files still read as `unknown`.
- Regular-mesh photon-source contract in `nucleide-r2s`: ascending eV edges,
integrated photons/s per voxel and group, C-order voxel identity, density
conversion applying volume once, joint voxel/group probabilities, sparse
exported-group restoration with explicit dense indices, checked totals,
exact cooling-offset selection and a bounded structured validation report
with stable issue codes and explicit uniform-bin/uniform-voxel assumptions.
- Optional OpenMC 0.16 `MeshSource` adapter (`nucleide.openmc.mesh_source`)
with explicit structured-mesh index mapping, per-element histogram energy
densities, absolute photons/s strengths, self-contained `settings.xml`
export and a real pinned-OpenMC validation probe.
- Exact cooling-time batch export with deterministic collision-free names,
all-or-nothing prevalidation, atomic per-file replacement, zero-source skip
policy, partial-failure reporting and a batch manifest; compact
reproducibility manifests record measured input/output SHA-256 hashes, the
energy-grid identity, voxel order and validation summary. Verification is
offline and detects tampered or missing outputs.
- Executable activation-to-transport tutorial covering normalization,
source validation, sparse grids, cooling batches, manifests and the
optional OpenMC export path.
- FESTIM F6 trapped-plus-recombination validation leg with explicit
molar/atomic conversion, a checked two-identical-reactant surface factor,
mobile and trapped inventory histories, bracketed output sampling and
independent space/time refinement with a mobile-plus-trapped mass
balance; F1–F5 checks and pins are unchanged.
- Pinned OpenMC 0.16.0 handoff probe (`validation/openmc_handoff_probe.py`)
recording the observed tally normalization, C-order/Fortran-order mesh
mapping, differential histogram density, XML roundtrip, seeded joint-source
sampling and a vacuum track-length tally at two source strengths that pins
the integrated/rate-scaled convention; no interacting transport. An optional
caller-data companion (`validation/openmc_transport_probe.py`) runs bounded
OpenMC 0.16 photon and neutron transport checks with caller-mounted NNDC
HDF5 files and verifies source-strength scaling, per-source vs rate-scaled
flux agreement and the package `normalize_flux` path.

### Fixed

- The OpenMC tally bridge documents and tests the observed 0.16 normalization
convention (per-source-particle denominator, source-strength tally scale,
volume-integrated track-length flux by default) instead of implying that a
field named `flux` is already physical.

## [0.18.1] - 2026-11-14

### Fixed
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ Nucleide is a modern Rust toolkit for nuclear-engineering data, measurement, and
workflow glue: legacy transport-code I/O, nuclide identification, materials,
CRAM depletion, enrichment analytics, point kinetics, gamma-ray spectroscopy,
tritium transport, TBR/blanket bookkeeping, equilibrium data readers,
an OpenMC statepoint tally bridge, fusion neutron sources, spectrum
unfolding, conservative spectral regrouping, volume-aware source splitting, variance
an OpenMC statepoint tally bridge with explicit physical-flux normalization
and photon-source export, fusion neutron sources, spectrum unfolding,
conservative spectral regrouping, volume-aware source splitting, variance
reduction, UQ sampling, CSG translation, and code-card emission — exposed
through a typed Python API.

Expand Down Expand Up @@ -54,13 +55,13 @@ rebuilds the high-value subset in memory-safe Rust with one-command
| Spectroscopy (`nucleide-spectroscopy`) | Spectrum smoothing, gross/net counting, energy/efficiency calibration, X-ray lines, SPE parsing, decay-line SDEF source cards (E9) fed from caller lists or the runtime decay-lines TSV interchange |
| Spectrum unfolding (`nucleide-unfold`) | SAND-II, STAYSL-class least-squares, GRAVEL chi-square-weighted, and MAXED maximum-entropy adjustment of a guess neutron spectrum against measured activation rates (caller-supplied response matrix, or the IRDFF-II runtime pack), with convergence diagnostics; non-convergence is a hard error |
| Equilibrium data (`nucleide-equilib-io`) | Classic-netCDF VMEC `wout` reader (CDF-1/CDF-2 only; netCDF-4/CDF-5 convert facade-side) plus the `&INDATA` input-text grammar, with flux-surface Jacobian helpers for volume weighting and wall-load mapping in flux coordinates (reads data, never solves equilibria) |
| OpenMC tally bridge (`nucleide.openmc`, pure Python) | Statepoint mesh/cell tally extraction through the caller-side OpenMC API into plain arrays the damage folds accept, plus a CSV interchange for the same dict |
| OpenMC tally bridge (`nucleide.openmc`, pure Python) | Statepoint mesh/cell tally extraction through the caller-side OpenMC API into plain arrays the damage folds accept, v1/v2 CSV interchange, explicit raw-to-physical flux normalization, optional `MeshSource` export, exact cooling-time batches and reproducibility manifests |
| Variance reduction (`nucleide-vr-tools`) | MAGIC weight-window generation, OpenMC/Serpent weight-window emission, mesh source sampling with alias tables, Gaussian KDE source resampling (Silverman, fixed, and adaptive kNN bandwidths) |
| UQ sampling (`nucleide-linalg`) | Seeded MVN + log-normal + LHS draws over caller-supplied covariance blocks, SANDY-compatible estimators, decay-data and fission-yield perturbation consumers |
| CCCC I/O (`nucleide-cccc-io`) | ISOTXS/RTFLUX text-subset parsers + PARTISN deck writer (no solver) |
| FISPACT I/O (`nucleide-fispact-io`) | FISPACT-II inventory output parser reusing the ALARA response frame, plus the clearance-bearing wide inventory table printed with the `HAZARDS` + `CLEAR` keywords (output-only) |
| ORIGEN I/O (`nucleide-origen-io`) | Scoped ORIGEN 2.2 TAPE5 input-echo, TAPE6 inventory, and TAPE9 decay readers |
| R2S (`nucleide-r2s`) | Scoped R2S workflow builder: zone-to-flux linking, schedule expansion, photon assembly (uniform-split placeholder plus per-voxel source tags with count- or volume-weighted integrated splitting and `.photonSrc` group spectra), ARMI database-snapshot adapter |
| R2S (`nucleide-r2s`) | Scoped R2S workflow builder: zone-to-flux linking, schedule expansion, photon assembly (uniform-split placeholder plus per-voxel source tags with count- or volume-weighted integrated splitting and `.photonSrc` group spectra), an explicit regular-mesh photon-source contract with joint voxel/group probabilities, sparse-grid restoration and structured validation reports, ARMI database-snapshot adapter |
| Emit (`nucleide-emit`) | Single-material emission to MCNP/Serpent/FLUKA/ALARA/PARTISN cards with mass-drift report, plus an ARMI blueprint-key bridge |
| Python bindings | PyO3 extension module behind a typed pure-Python facade (`nucleide._internal`, `.pyi` stubs, `py.typed`) |

Expand All @@ -85,7 +86,7 @@ nucleide/
│ ├── cccc-io/ # ISOTXS/RTFLUX text-subset parsers + PARTISN writer (no solver)
│ ├── fispact-io/ # FISPACT-II inventory output + CLEAR-keyword clearance table (output-only)
│ ├── origen-io/ # scoped ORIGEN TAPE5/6/9 readers
│ ├── r2s/ # scoped R2S workflows (volume-aware photon tags + spectra)
│ ├── r2s/ # scoped R2S workflows, photon-source contract, flux handoff
│ ├── vr-tools/ # MAGIC weight windows + OpenMC/Serpent emission, source sampling, KDE
│ ├── enrichment/ # cascades, SWU
│ ├── depletion/ # CRAM + chain files
Expand Down
Loading
Loading