Techniqueadvanced
Shannon entropy of the fission source
Also called source entropy diagnostic.
Diagnoses source convergence in Monte Carlo criticality runs by tracking the entropy of the binned fission sites over generations.
The fission source entropy is a number that a Monte Carlo criticality code computes once per cycle to see whether the distribution of the fission sites has stopped changing. The code lays a mesh of bins over the fissile region, counts the fraction of the banked sites in each bin, and computes the Shannon entropy . Plotted against the cycle number, moves from the value of the first guess toward the value of the fundamental mode and then stays in a band of noise. The cycles before reaches that band should be inactive. The value of often settles much earlier than the source, so a plot of catches problems that a plot of misses. Ueki and Brown introduced the diagnostic around 2003, and Brown (2006) described its use in MCNP. It is a diagnostic: a flat entropy is necessary for convergence, but it does not prove it.
In plain words
A criticality run starts with a guess of where the fissions are, and each cycle improves the guess. The run should only start to count once the guess has stopped changing. But a whole map of fissions is hard to watch, cycle by cycle.
The entropy turns the map into one number. If all fissions are in one small spot, the number is small. If they are spread evenly over all bins, the number is at its largest. While the map is still changing, the number usually goes up or down; once the map is stable, the number only shakes a little. So you watch one curve, and you start counting when it is flat.
When it applies
- A power iteration over generations, such as Monte Carlo criticality, where the source of each cycle comes from the bank of the previous one.
- The question is when to end the inactive cycles, or whether a run has converged at all.
- The system is large or loosely coupled, so the dominance ratio is close to 1 and the source converges much more slowly than .
- The idea works for any Markov chain whose state is a set of points: the entropy of their histogram is a cheap summary of the state.
The template
FISSION-SOURCE-ENTROPY(bank of cycle g)- 1
c_b ← the number of sites of the bank in bin b, for b = 1, ..., B ▷ hole: the mesh, B bins over the fissile region - 2
p_b ← c_b / (c_1 + ... + c_B) - 3
H_g ← -Σ_{b : p_b > 0} p_b log2 p_b - 4
add H_g to the series H_1, ..., H_g, and plot it - 5
if the series stays in one band of noise from some cycle on, end the inactive cycles there ▷ hole: the test for the band
The range. This is a theorem. , with when all sites are in one bin and exactly when they are spread uniformly. Also , the Kullback-Leibler divergence of from the uniform distribution on the bins. So measures how far the source is from uniform. It does not measure how far the source is from the fundamental mode.
The noise floor. This is an asymptotic theorem (the Miller-Madow correction for the plug-in entropy). With sites drawn independently from a fixed with nonzero bins, the expected value of is about bits for large , and its standard deviation is of order . With and the shift is bits. Sites of one bank are not independent, so in a real run the noise band is a measurement.
Classic examples
The entropy by hand. A bank of 8 sites has the counts in 4 bins. Then and
below the maximum . The divergence from uniform is bits.
A point source in a bare slab. In the 20 cm slab of the criticality page (, , ), all first neutrons start at , and the mesh has 20 bins of 1 cm (random.Random(3)):
| cycle | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| 0.734 | 0.835 | 0.956 | 0.994 | 1.078 | 1.093 | 1.141 | 1.102 | 1.134 | 1.142 | |
| 2.512 | 3.118 | 3.387 | 3.663 | 3.801 | 3.869 | 3.951 | 3.989 | 4.058 | 4.117 |
The fission source of the fundamental mode, from the discrete ordinates flux of the k-eigenvalue page binned on the same mesh, has , below because the cosine shape is not uniform. The run reaches at cycle 18 and then stays between and , with the mean , over cycles 21 to 60. From cycle 7 on, is within the noise of the converged values, but shows that the source is still moving until about cycle 15. These are measurements for this seed.
A thick slab: converges long before the source. In a 100 cm slab of the same material, from discrete ordinates, the dominance ratio is about in diffusion theory, and the fundamental mode has on 20 bins of 5 cm. A run with neutrons per cycle started at (random.Random(6)) gives, with the mean over the last 5 cycles:
| cycle | 1 | 10 | 25 | 50 | 100 | 150 | 200 | 250 | 300 |
|---|---|---|---|---|---|---|---|---|---|
| 1.207 | 2.107 | 2.582 | 3.013 | 3.580 | 3.625 | 3.901 | 3.958 | 3.644 | |
| 1.160 | 1.127 | 1.175 | 1.194 | 1.186 | 1.209 | 1.172 | 1.186 | 1.176 |
By cycle 50 the values of are near the answer, but is still far below 4.136 after 300 cycles. With few neutrons in a large system the source also clusters: it falls back from 3.958 to 3.644 between cycles 250 and 300. A run that used the plot of alone would have counted a source that had not converged. This is a measurement for one seed, and it agrees with the slow power iteration that the power iteration page predicts for a dominance ratio near 1.
A source that the entropy cannot see. In the same 20 cm slab, start one run at and another at . By symmetry the two entropy series have the same law, and their first value is the same, but the sources are mirror images. The entropy is unchanged under any permutation of the bins, so a source that has the right spread in the wrong place can have the right . In a symmetric core with two loosely coupled halves, the share of the two halves can drift for many cycles while stays almost flat.
Variations
- Relative entropy. Ueki and Brown (2005) compare the source of each cycle with a reference, for example the mean source of the later cycles, by the Kullback-Leibler divergence, which does see a permutation of the bins.
- The center of mass. The mean position of the sites, in each coordinate, is a cheap second diagnostic that sees a drift between the halves of a symmetric system.
- Tests for stationarity. Instead of a look at the plot, a code can compare the mean and the spread of over two windows of cycles, or use the data compression criterion of Ueki and Brown (2005).
- Mesh choice. A coarse mesh averages out small details of the shape; a fine mesh with few sites per bin has a large noise floor. Codes choose the mesh from the number of neutrons per cycle, so that each bin gets some sites on average.
- Other quantities. The same series can be computed for local tallies, such as the power in each fuel assembly, which are often the slowest to converge.
Pitfalls
- Taking a flat curve as a proof (line L5). A flat is necessary, not sufficient. The thick slab and the mirror examples show sources that are wrong while looks settled or has the right value.
- A mesh that is too fine (line L1). With many bins and few sites, the noise band is wide and its level is shifted down, so it hides the trend. Keep the number of bins well below the number of sites per cycle.
- A mesh that covers non-fissile regions (line L1). Bins with no fuel are always empty. They do not change , but they make the scale of the plot and the maximum misleading.
- Too few cycles to see the band (line L5). In a system with a dominance ratio near 1, the source can change so slowly that looks flat over a short window. Look at the whole series, and at more than one diagnostic.
- Watching only . is a global average and is often near its final value while the shape is still wrong, as both examples show. The entropy plot is there because the plot is not enough.
Exercises
- Compute for the counts in 4 bins, and the divergence from uniform.
- Prove that , with equality on the right exactly for the uniform distribution, and that is the divergence from the uniform distribution.
- Show that does not change under a permutation of the bins, and give a source in the 20 cm slab that has the entropy of the fundamental mode but is not the fundamental mode.
- For independent sites with the true probabilities on bins, derive the first-order bias of the plug-in entropy from a second-order Taylor expansion.
- Explain why, in power iteration, can be close to its limit while the source is still far from the fundamental mode. Use an expansion of the source in eigenfunctions and the fact that the second eigenfunction of the slab is odd.
References
- Taro Ueki and Forrest B. Brown, Stationarity and source convergence diagnostics in Monte Carlo criticality calculation, Proceedings of M&C 2003, ANS Topical Meeting, Gatlinburg, Tennessee, April 2003, the Shannon entropy of the binned fission source as a diagnostic of stationarity
- Taro Ueki and Forrest B. Brown, Stationarity modeling and informatics-based diagnostics in Monte Carlo criticality calculations, Nuclear Science and Engineering 149(1), 2005, 38-50, the relative entropy diagnostics, the test on a two-component problem with a dominance ratio of 0.993, and the criterion from the data compression limit
- Forrest B. Brown, On the use of Shannon entropy of the fission distribution for assessing convergence of Monte Carlo criticality calculations, PHYSOR-2006, Vancouver, Los Alamos report LA-UR-06-3737, 2006, the entropy of the source on a mesh in MCNP, its plot over the cycles, and the choice of the inactive cycles from it
- Forrest B. Brown, K-effective of the world and other concerns for Monte Carlo eigenvalue calculations, Progress in Nuclear Science and Technology 2, 2011, 738-742, the cases where the source converges slowly, and the need to check the source as well as k
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag TND134 Edit this page History Report an error Markdown