Allen CDNE

Computational Design in Nuclear Engineering · Allen

Download the PDF

Computational Design in Nuclear Engineering, second edition, by Kenneth S. Allen, Ph.D., P.E.

Download the PDF

Chapter 6 · Advanced MCNP Topics

Stochastic Volume Calculation

On this page

Chapter 6 · 2 / 68 min readPDF page 182

Worked examples

When we are working with simple geometries, we can easily calculate the volumes of cells and, for most cases, MCNP can also calculate the volumes. However, MCNP cannot calculate the volumes and areas of asymmetric, non-polyhedral, or infinite cells. (Kulesza et al.; 2022) When we begin working with complex geometries and repeated lattice structures, it is important that we have a good calculation of the cell volumes and calculation by hand can be very difficult. Fortunately, there is a simple way to use MCNP to calculate the volume for us using what is known as a stochastic volume calculation.

Figure 6.3. A stochastic volume calculation uses a bounding sphere as a source around the model with inwardly directed particles and an F4 volume tally to determine the volume of each cell.
Figure 6.3. A stochastic volume calculation uses a bounding sphere as a source around the model with inwardly directed particles and an F4 volume tally to determine the volume of each cell.

For a stochastic volume calculation, we are going to take our entire model and place it inside a bounding sphere that serves as an inwardly directed source. We will set the source weight equal to the cross-sectional area of the sphere, πr2\pi r^2. We will also include a VOID card that will void out all the materials so the particles will pass right through all the cells without collision. Finally, we will set all the volumes for the cells in the model equal to 1 and perform a F4 volume tally. The results of the volume tally will be equal to the volume in the model. Example 6.2 is a stochastic volume tally for the pig – detector problem from Example 6.1 with three cells in the shield region.

In Example 6.2, we will add a generic block at the end of the data card sections that we can use with little modification for all our future models for volume calculations.

Example 6.2

Perform a stochastic volume calculation on the pig detector model from Example 6.1 that had three cells in the lead shielded region.

Solution: Use sphere 999 as the source surface and add the stochastic volume tally operation to the end of the Data Card section and comment out the appropriate cards. The complete input file is below:

MCNP input — Example 6.2, listing 1 — mcnp, hover a line
NE361 Pig - Detector Model - Importance Variance Reduction VOLUME CAL
C -------------------------------------------------------------------
C | This is a model of a shielded container, a "pig" with a Cs-137 |
C | point source located inside. The container is a cylinder |
C | 20 cm high and has an overall radius of 5.2 cm. The wall is |
C | 4 cm thick lead with 0.2 cm copper. The detector is 100 cm away.|
C -------------------------------------------------------------------
C ************************CELL CARD BLOCK****************************
1 1 -0.001297 -1 $air in middle of container
2 2 -1.135E+01 1 -21 $Lead inner cylinder
22 2 -1.135E+01 21 -22 $Lead layer 2
23 2 -1.135E+01 22 -23 $Lead layer 3
3 3 -1.135E+01 23 -3 $Copper outside lead
4 1 -0.001297 3 -999 $air outside the copper
99 0 999 $Outside sphere void graveyard
 
C *****************************SUFACE CARD BLOCK*********************
C Right cylinder on origin filled with air
1 RCC 0 -10 0 0 20 0 1
C Right cylinder on origin filled with lead (layer 1)
21 RCC 0 -10 0 0 20 0 2.333333333
C Right cylinder on origin filled with lead (layer 2)
22 RCC 0 -10 0 0 20 0 3.666666666
C Right cylinder on origin filled with lead (layer 3)
23 RCC 0 -10 0 0 20 0 5
C Right cylinder on origin filled with copper
3 RCC 0 -10 0 0 20 0 5.2
C Sphere outside of the problem for boundary to kill off particles
999 so 105
 
C ****************************DATA CARD BLOCK************************
MODE P
C XXXXXXXXXX COMMENT OUT IMP, VOL, SDEF, AND TALLY XXXXXXXXXXXXXX
C importance for cells 1 2 22 23 3 4 and 99
C IMP:P 1.0 2m 2m 2m 1.0 1.0 0.0
C VOL 62.83185307
C 279.2526705
C 502.6545272
C 726.057276
C 128.1769803
C 4847349.288
C volumes cells 1 2 22 23 3 and 4
C point source at the origin uniformly emitting
C 0.662 MeV photons isotropically
C SDEF POS=0 0 0 PAR=2 ERG=0.662
C Point Tally at 100 cm along the x axis
C F5:P 100 0 0 2 $a point tally with a 2 cm radius exclusion zone
C Fm5 3.7E9 $Multiply tally by 0.1 Cu in decays/sec to get real flux
C E5 0.661 10 T $3 energy bins – collided, uncollided, and total
C Material Dry Air at STP (w/o Taken from Attix PG 532)
C XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Hover a line

Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.

  • ●Cell cards
  • ●Surface cards
  • ●Data cards
MCNP input — Example 6.2, listing 2 — mcnp, hover a line
M1 6000 -0.0124 7014 -75.5267 8016 -23.1781 GAS=1
C Lead at nominal density from NIST at 1.135E+01 gm/cm^3
C Use the stable isotopes and abundances for natural lead from
C The Chart of the Nuclides online
M2 82204 -0.014 82206 -0.241 82207 -0.221 82208 -0.524
C Copper at nominal density from NIST at 8.960E+00 gm/cm^3
C Use the stable isotopes and abundances for natural copper from
C The Chart of the Nuclides online
M3 29063 -0.6915 29065 -0.3085
NPS 1E7
PRINT
C *******************************************************************
C Uncomment these cards to do the stochastic volume tally.
C Note you must comment out the IMP, VOL, SDEF and TALLY cards above.
C If present, comment out KCODE, KSRC and BURN cards as well.
C Remove reflected boundary conditions if present
C Set all IMP for tally cells to 1 and VOL to 1
C Wgt calculated as area of xs of plotting sphere (pi R^2)
C
IMP:P 1 1 1 1 1 1 0
Vol 1 1 1 1 1 1
F4:P 1 2 22 23 3 4 $cell names for volume tally
VOID $ Voids out all materials
SDEF SUR=999 NRM=-1 DIR=D1 WGT= 34636.05901 PAR=2
SP1 -21 1
C NPS 10000000

Hover a line

Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.

  • ●Cell cards
  • ●Surface cards
  • ●Data cards

The result of the tally is:

Program output — Example 6.2, listing 3
cell  1    6.27335E+01 0.0116
cell  2    2.80016E+02 0.0073
cell  22   5.02768E+02 0.0057
cell  23   7.29121E+02 0.0048
cell  3    1.29519E+02 0.0055
cell  4    4.84638E+06 0.0001

The values are nearly identical to the hand calculations we performed earlier for the volumes. Now we can use the block-select mode in TextPad® to quickly copy and paste the values into the VOL block for the model and comment out the stochastic volume calculation cards and uncomment the original cards.

The stochastic volume calculation can be performed with either photons or neutrons as the source. The only requirement is that the mode of the problem is consistent with the tally type.

Temperature Effects in MCNP

As we previously discussed in Chapter 1, the cross sections for many isotopes significantly change with temperature. In section 1.6, we discussed how NJOY99 can be used to generate cross section libraries at various temperatures which we were able to view. In Example 3.3, we changed the fuel temperature within our unit cell model in NEWT to calculate the fuel temperature coefficient, α\alpha, for our infinite reactor model. If the user has access to NJOY, they can use it to create user-defined cross sections to add to the cross-section library in our MCNP code. Care will have to be maintained modifying some files that are integral to how MCNP calls data and operates.

The MCNP code uses a few different files to link the working program with the data and other information it needs to calculate the problem. One file, “xsdir” is a file located in the MCNP_DATA directory. The xsdir file is a library index. It lists the cross-section file names which point to the file where the cross-section data files are located and their place on the computer. When we make new cross sections using NJOY99, we will have to add the cross-section file to the data library and add information to the xsdir file so MCNP can find our new cross-sections. Often, a user-defined cross-section will be named using a file extension that is unique, like .90c, so it does not overwrite an integral library in the program. Once completed, the new cross-section libraries can be accessed by adding the library extension to the isotope ZAID nomenclature.

Because MCNP has some temperature-specific cross sections already, can look at the effect of fuel temperature on reactivity without generating our own cross sections. We did this calculation using the NEWT module in SCALE in Example 3.3. For Example 6.3, we will model the same unit cell pin in MCNP. This pin will have the same dimensions, material compositions and boundary conditions as the NEWT model. We will run the problem 5 times. For the sake of simplicity and to get a broader range of temperatures, we will use the ENDF7 libraries of *.70C, *.71C, *.72C, *.73C and *.74C, instead of the libraries we generate using a program like NJOY99. These libraries are already in the MCNP database and correspond to 293.6, 600, 900, 1200 and 2500 K. Once complete, we will plot the k∞_\infty as a function of temperature and use the slope of the line to estimate the fuel temperature coefficient. Finally, we will compare the results from our MCNP model to those we calculated in SCALE.

Example 6.3

Use MCNP to model the same unit fuel pin used in Example 3.1. Perform a series of KCODE calculations changing the neutron cross section libraries for the fuel from *.70C to *.71C to *.72C to *.73C and to *.74C. Report the results for the k∞_\infty and variance at each temperature. Plot the results and use the same technique used in Example 3.3 to calculate the fuel temperature coefficient. Compare the results to those in Example 3.3.

Solution: First make a unit cell model for MCNP. Include a stochastic volume calculation that can be commented in and performed.

We can plot our unit cell model using either the MCNP plotter or VISED:

Example 6.3, listing 1

The plot allows us to check for errors and ensures it is consistent with the model we made in SCALE. In this case, the fuel is green, cladding is red, and the moderator is blue. The zoomed in view on the right shows the gap is present in yellow.

MCNP input — Example 6.3, listing 2 — mcnp, hover a line
NE361 Single PWR Unit Cell
C -------------------------------------------------------------------
C | This is a KCODE calculation for a single PWR unit cell pin. |
C | The cell has a pitch of 1.331 cm, length of 320 cm. The fuel |
C | radius is 0.385 cm. It is fueled with UO2 at 4.5 w/o enriched |
C | U-235. The cladding is zirconium and the gap is He |
C -------------------------------------------------------------------
C ************************CELL CARD BLOCK****************************
1 2 -10.2 -2 -91 90 $UO2 FUEL PELLET
2 3 -6.407 2 -3 -91 90 $FUEL PIN CLAD
3 4 -0.001297 3 -4 -91 90 $He IN GAP
4 1 -0.715 -1 #1 #2 #3 $UNIT CELL WATER
199 0 1 -999 $Void Outside of pin
999 0 999 $Graveyard
 
C OUTSIDE OF UNIT CELL (1.311 cm PITCH)
C REFLECTED BOUNDARY ON ALL SIDES
*1 RPP -0.6555 0.6555 -0.6555 0.6555 -160 160
C CYLINDER OUTER RADIUS OF FUEL PELLET 0.385 cm
2 CZ 0.385
C CYLINDER OUTER RADIUS OF GAP 0.390 cm
3 CZ 0.390
C CYLINDER OUTER RADIUS OF CLADDING 0.461 cm
4 CZ 0.461
C PLANES FOR THE TOP AND BOTTOM OF FUEL ROD
90 PZ -159
91 PZ 159
c
999 so 600 $sphere for graveyard

Hover a line

Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.

  • ●Cell cards
  • ●Surface cards
  • ●Data cards
MCNP input — Example 6.3, listing 3 — mcnp, hover a line
c ************************ Data Cards ****************************
c
IMP:n 1 1 1 1 0 0
VOL 1.52396E+02
3.85329E+00
6.27137E+01
3.31355E+02
c
c ****************** Criticality and Burn Control Cards **********
MODE N
KCODE 2000 1.45 55 100 500
KSRC 0.0 0.0 0.0
M1 8016.71C -8.88100E+01
1001.71C -1.11900E+01
MT1 LWTR.04T $H20 AT 600 K
M2 92234.74C -4.69781E-05
92235.74C -0.039186291
92238.74C -0.842188828
8016.74C -0.118577903
$UO2 4.5% at 293K
M3 40000.58C 1.0 $ZIRCONIUM (APPROX. FOR ZIRCALLOY)
M4 2004.70C 1.0 $ Helium
PRINT -128
C
C *******************************************************************
C Uncomment these cards to do the stochastic volume tally.
C Note you must comment out the kcode, ksrc, and vol cards above.
C You must change the importance from 1 1 1 1 0 0 to 1 1 1 1 1 0.
C Also, remove reflected boundary conditions on surfaces 1
C
C Wgt calculated as area of xs of plotting sphere (pi R^2)
C
C Vol 1 1 1 1
C F4:N 1 2 3 3
C VOID
C SDEF SUR=999 NRM=-1 DIR=D1 Wgt= 1130973.35529
C SP1 -21 1
C nps 10000000

Hover a line

Each line is read as a cell, a surface, or a data card. Tap a line on a small screen.

  • ●Cell cards
  • ●Surface cards
  • ●Data cards

We will leave the problem the same for all five runs except we will change the neutron library identifier from *70c - *.74c for the isotopes in the fuel. After we run the simulation at each temperature we get:

Fuel
Temperature
(kelvin)k∞_\inftyVariance
293.61.475890.00203
6001.463120.00172
9001.453070.00236
12001.444840.00187
25001.412260.00209

As with all MCNP results, we include the variance in the reported value. We also use this variance for the error bars in the following plot:

Example 6.3, listing 4

When we look at the results for the KCODE calculation and compare them to the NEWT calculation for the same unit fuel pin we can make some observations. First, the MCNP values are higher for k∞_\infty. At room temperature, the value for MCNP is about 2% greater. In fact, all of the MCNP values are about 2% higher at the same or similar temperatures. The result is a fuel temperature coefficient that is nearly the same at −3×10−5{-3 \times 10^{-5}} Δ\Deltak/ degree K. What this implies is there is a systematic difference between the two models. Perhaps the order of quadrature in the deterministic model has some effect. More likely is a difference in the way the fuel enrichment was calculated when we specified the enrichment in NEWT. If we were using the two models to validate each other or if we had some experimental data we were trying to match, it would be essential for us to determine the exact cause for the systemic differences and account for them.

  • Kulesza, J. A., Adams, T. R., Armstrong, J. C., Bolding, S. R., Brown, F. B., Bull, J. S., Burke, T. P., Clark, A. R., Forster III, R. A., Giron, J. F., Grieve, T. S., Josey, C. J., Martz, R. L., McKinney, G. W., Pearson, E. J., Rising, M. E., Solomon Jr., C. J., Swaminarayan, S., Trahan, T. J., Wilson, S. C. and Zukaitis, A. J. (2022). MCNP Code Version 6.3.0 Theory & User Manual. https://www.osti.gov/biblio/1889957

Computational Design in Nuclear Engineering, second edition, by Kenneth S. Allen, Ph.D., P.E. — the complete book as a 394-page PDF.

Download the PDF