More than 95% of external source sites sampled were rejected

why when i use source setting like this

    bounds = [-6.3, -6.3, -6.3, 6.3, 6.3, 6.3]
    uniform_dist = openmc.stats.Box(bounds[:3], bounds[3:], only_fissionable=True)
    settings_file.source = openmc.Source(space=uniform_dist)

in 0.13.0,openmc gives correct Eigenvalue calculation results
but when use source setting like this:

    bounds = [-6.3, -6.3, -6.3, 6.3, 6.3, 6.3]
    spatial_dist=openmc.stats.Box(bounds[:3], bounds[3:])
    source=openmc.IndependentSource(space=spatial_dist,constraints={'fissionable':True})  
    settings_file.source = source

in0.15.0,openmc throws “ERROR: More than 95% of external source sites sampled were rejected. PleaseMore than 95% of external source sites sampled were rejected. Please check your external source’s spatial definition.”?
quite annoying…
is there any help? many thx!

this problem have been solved

1 Like