Skip to main content

Module sampling

Module sampling 

Source
Expand description

Walker/Vose alias-table source sampling.

AliasTable implements Walker’s method with Vose’s construction (Wuttke 2013), including the reverted small/large index ordering and the prob == 1 drain for numerically degenerate leftovers. MeshSourceSampler applies it to MeshTallyData: ANALOG samples the (volume-weighted) tally totals, UNIFORM samples space uniformly, and USER consumes an external density array. Only voxel-level sampling is provided; subvoxel/cell-fraction modes are out of scope.

Structs§

AliasTable
Walker/Vose alias table over a discrete PDF.
MeshSourceSampler
Mesh source sampler over MeshTallyData energy-integrated totals.
SampledVoxel
One sampled particle birth site (voxel resolution).

Enums§

Mode
Source-sampling bias mode (values 0–2 at voxel level).