Variance reduction
Generate MAGIC weight windows and sample source voxels with alias tables.
The vr-tools crate provides two variance-reduction primitives used with MCNP
mesh tallies: MAGIC weight-window generation and Walker/Vose alias-table source
sampling.
MAGIC weight windows
Given a mesh tally, MAGIC produces lower weight-window bounds:
You can run it on energy-integrated totals or per energy group. After generating bounds, the energy upper-bound structure is plotted as a step line.
Alias-table sampling
AliasTable implements Walker’s method with Vose’s construction. Given a
non-negative PDF and two uniform random numbers in , it returns a bin
index in time. MeshSourceSampler applies this to a mesh tally,
supporting analog, uniform, and user-biased modes (the browser demo below
exposes the analog and uniform modes).
Loading Nucleide WASM…
See also
- Theory: Variance reduction
- Crate docs:
crates/vr-tools/src/lib.rs