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 9 · Attila4MC®

Variance Reduction Using CADIS

On this page

Chapter 9 · 6 / 911 min readPDF page 349

Worked examples

We first examined variance reduction in MCNP in Chapter 6. Recall that shielding problems, by their very nature, cause poor statistics in Monte Carlo simulations. The standard error in Monte Carlo is inversely proportional to the square root of the number of particles striking the tally. For a thick shield, few particles will transport to the tally region resulting in a large standard error. To obtain better statistical results, we can either increase the number of source particles or we can employ variance reduction techniques or both. The cost of more source particles is always increased computational time. Therefore, adequate use of variance reduction techniques is often necessary to achieve statistically relevant results in a reasonable time.

For our original purposes, we limited our variance reduction techniques to changing the importance of particles throughout the depth of layers of our shield. This method can be incorporated in Attila4MC using the MCNP importance panel in the calculation, however there are more powerful and automated ways to achieve better statistics within Attila. The method we will incorporate for variance reduction in Attila will be the use of the built-in Consistent Adjoint-Driven Implementation Sampling, or CADIS, deterministic code. The CADIS code is a deterministic transport solver. This is like the solver we used in SCALE to calculate particle transport. It consists of a discrete ordinates solver with ordered Legendre polynomials for the discretization of the angular quadrature.

The variance reduction methodology using CADIS creates Weight Windows within our MCNP model. Weight Windows can be applied on a rectangular mesh across the three-dimensional space in an MCNP model. Each voxel is given a weight which corresponds to the importance of the particle in that region of the problem. The user can specify regions of interest and the window will have higher importance in those areas. This is like when we specified higher importance for particles on the outside of the thick shield in Example 6.1. In this case, rather than the user specifically dividing the geometry of the shield into smaller regions and manually adjusting the IMP card, the entire body of the problem is broken into voxels and the IMP is adjusted from regions of low to high importance.

The Forward CADIS, or FW-CADIS, calculation is like a CADIS calculation, but it will work to calculate the weight windows isotopically away from the source and will give a region-wise reduction of variance away from the source. It does not require a motivating tally, although one is normally applied. The FW-CADIS is useful in reducing the variance across a region on the outside of a thick shield.

The use of CADIS to reduce the variance on a tally is presented in Example 9.6. For this example, the tank with berm problem is modified by removing the tank and a model is generated with and without the CADIS variance reduction applied. The results are apparent in both the final tally to the solider protected by the berm and the overall TecPlot of the variance across the model.

There are several considerations that must be considered when specifying the mesh grid size for the weight windows for a CADIS problem. These recommendations are based on the half-value layer (HVL) thickness for the radiation in the material. The HVL is defined as the thickness of material that will reduce the uncollided flux by one-half. These values are tabulated or they can be easily calculated using the method described in Chapter 4 and Equation 4.11. The tetrahedral mesh for a CADIS problem has a recommended edge length of 4-10 HVLs while the Weight Window grid is recommended to have a size of 2-8 HVLs. Figure 9.10 shows the approximate HVLs for typical material an source combinations to obtain optimal mesh and weight windows generation.

Figure 9.10. Approximate HVLs for typical material and source combinations to support optimal mesh and weight window generation.
Figure 9.10. Approximate HVLs for typical material and source combinations to support optimal mesh and weight window generation. (SilverFir; 2023)

The use of CADIS to reduce the variance on a tally is presented in Example 9.6. For this example, the tank with berm problem is modified by removing the tank and a model is generated with and without the CADIS variance reduction applied. The results are apparent in both the final tally to the solider protected by the berm and the overall TecPlot of the variance across the model.

Example 9.6

Modify the geometry of the problem in Figure 9.8 by removing the tank and set up and run two shielding calculations, one analog MCNP and one CADIS. Compare the results for the variance on the soldier in the open and the solider behind the berm for both cases and plot the standard error as a countour map in TecPlot.

Solution: Modify the tank and berm example assembly by removing the tank. This will greatly simplify the problem and allow for easier calculations for demonstration purposes. Save the assembly as a Parasolid.

Example 9.6, listing 1

Download the Cask in Room Zip problem from the Silverfir tutorial location. Save and unzip the files. This will allow us to make use of the problem to include the cross sections required for CADIS and the entire PNNL materials. Copy the Parasolid for the model without the berm into the folder and open the Attila project. You will see two calculations that include the PNNL databases. One is isotopic and one is exact. The folder also includes a response function and a cobalt source. Import the Parasolid we created with the berm into the project. You can remove the cask in room solid model if you wish.

Right-click on the solid body imported and select Generate Mesh. CADIS needs a contiguous mesh so we will select Attila non-manifold and keep identify empty regions selected. This will provide CAD regions for any areas not defined in our model. For example, the air that is inside the box region on the outside down to the surface of the soldiers, soil and berm, will be filled and we can specify the material as air. We will change the region name source from assembly to part as our assembly was constructed from parts.

Example 9.6, listing 2

In the mesh generator, select max mesh size – 2 m as this is still 1/10 to 1/20 the maximum dimension of the problem. Note that there is an Empty Region created. This is the air that filled in the area between the outside air box we defined in Solidworks down to the surface of the soil not including the berm and the soldiers. We can view this region by hiding the outside air. We will double-click under the Attila Region column and rename it “air” to match the other air region. Under the advanced option, select Curvature Refinement and Refine Anisotropically. Set to 0.2 for 10 cm and set size transition factor to zero.

Example 9.6, listing 3

Look at problem and examine where we want to resolve the regions. The soil is inconsequential, however the berm is important. The problem requires resolution through any thick shields. Referencing the weight window grid size (FIGURE 9.10), the grid needs to be smaller than the tetrahedral mesh. Using the approximate settings in Figure 9.10 for cobalt gammas in concrete, which is close to soil, the result is 2-9 HVLs. We can approximate our soil berm as concrete. Set the mesh size for the berm to 30 cm for Co-60. We can change the refinement in the vertical direction to make a courser region. Leave to max edge length to match the model in the vertical dimension. For this example, the model was loaded with the y-axis as vertical. Return to the advanced features and set the Attila Region Pattern to “berm” and change the direction to Y and set the Edge Length to 2.

Example 9.6, listing 4

Generate the mesh. Resolution on air and outside should be 2 m and the berm should have a narrower edge length in the horizontal plane.

Example 9.6, listing 5

Import mesh into project and save the project. The next step is to set up analog calculation. Close mesh generation window as it is no longer needed. Right-click on the exact calculation in the tree and select duplicate. This will copy the calculation and allow us to rename and use it. Edit the duplicate copy and give it a name for "run1noWW". Select the calculation type as either Fixed Source, CADIS or FW CADIS. For the first problem, we will do an analog MCNP problem and use the Fixed Source. This is the same as the problem performed in Example 9.3 with a different solid body. It will set the base parameters for variance with no reduction techniques applied.

Example 9.6, listing 6

Go through the panels and open the "Mesh Geometry" to select mesh and "Region Attributes" to assign materials. Note that all the air is one now because we renamed the empty region “air” when we generated the mesh. For this problem, we will set the source as air as well.

Example 9.6, listing 7

In the "MCNP Controls" panel, change to a Photon problem, Set 1E7 particles. Write summary tally increment as 1E6.

Example 9.6, listing 8

Set the source and spectrum and the tallies on both people and one for elemental edits as done in Example 9.3. Save and run the MCNP problem. View the output file to see the tally results and variance. Note that the “Dose in Soldier 1” results pass the 10 statistical checks and the results are:

Program output — Example 9.6, listing 9
1tally        4        nps =    10000000
+                                   tally "Dose in Soldier 1"
           tally type 4    track length estimate of particle flux.
           particle(s): photons
           this tally is modified by dose function DE4 and DF4.

           volumes
                   cell:       4
                         7.97977E+04

 cell  4
                 2.34612E-14 0.0212

The results in Solder 2 are presented below and it failed at least one statistical check:

Program output — Example 9.6, listing 10
1tally       14        nps =    10000000
+                                   tally "Dose in Soldier 2"
           tally type 4    track length estimate of particle flux.
           particle(s): photons
           this tally is modified by dose function DE14 and DF14.

           volumes
                   cell:       3
                         7.97977E+04

 cell  3
                 7.23890E-16 0.0844

This exactly confirms what we expected to see. The dose for the soldier 2, behind the berm, is much less than the soldier in the open and the uncertainty is much higher for this tally because fewer particles transmit through the shield. Plot the variance from our TecPlot file and see that the areas of higher uncertainty exist behind the berm.

Example 9.6, listing 11

To setup and run CADIS problem, first right-click on run1 and duplicate and edit it. Rename it to run2-CADIS. Change calculation type to CADIS. This will provide a couple of new panels in the program. Go to the "Energy Group Attributes" panel and select the recommended group collapse. Attila will try to balance the run time vs. the FOM in MCNP. Set the degree of 0 for scattering options. This will prevent negative flux results. This is the Legendre order. Default angular quad is the Sn. If the problem has significant scattering the Sn order should be higher. For this problem, 10 is sufficient. In the "Custom Reports" panel, the problem requires a specification of a CADIS motivating tally. This requires a valid tally. For our problem, we have tallies on Soldier 1 and Soldier 2. We want the motivating tally to be Soldier 2 becuse it is the one behind the thick shield. The drop down will not initially show either tally as an option. When there is a valid tally but it cannot be selected, double-click the tally and open and close and then it will show. Select soldier 2 for motivating tally as this is the soldier behind the berm where the variance is too high.

Example 9.6, listing 12Example 9.6, listing 13Example 9.6, listing 14

Select the "Weight Windows Settings" panel and select the default grid size. The user can specify a smaller grid size than the minimum grid for the tetrahedral grid element. We will use the size needed in the horizontal region. If we had a region of iron or something with much smaller level, we would need a smaller mesh and we can use local grid requirements to obtain the area where that is needed. We will set the weight windows grid for 10 cm in all directions.

Example 9.6, listing 15

Select preview weight windows grid. This option launches TecPlot. The result is a weight windows grid on top of the tetrahedral mesh. The user can inspect the grid to see that it matches the requirements. The user can choose to have regions of higher and lower concentration within the weight windows mesh which would be visible. This would allow for faster calculations and achieve better results if used properly. For our problem, there is a uniform rectangular mesh applied throughout and it is visible.

Example 9.6, listing 16

To run the problem, select the down-arrow next to "Run CADIS" and select "Run CADIS + MCNP". The program will run the CADIS deterministic solver, generate the WW and then run MCNP with those variance reduction techniques applied. When complete, examine at the output file for the results for the dose in solider 1 and soldier 2 again. The results are:

Program output — Example 9.6, listing 17
1tally        4        nps =    10000000
+                                   tally "Dose in Soldier 1"
           tally type 4    track length estimate of particle flux.
           particle(s): photons
           this tally is modified by dose function DE4 and DF4.

           volumes
                   cell:       4
                         7.97977E+04

 cell  4
                 2.38013E-14 0.0194
Program output — Example 9.6, listing 18
1tally       14        nps =    10000000
+                                   tally "Dose in Soldier 2"
           tally type 4    track length estimate of particle flux.
           particle(s): photons
           this tally is modified by dose function DE14 and DF14.

           volumes
                   cell:       3
                         7.97977E+04

 cell  3
                 7.25842E-16 0.0435

Note that the values for the tally are similar for both the analog and CADIS calculations, however the variance for the soldier 2 CADIS calculation goes down from 0.0844 to 0.0435 and, if we plot the Standard Error for the CADIS results, we will see the visualization of the effect where the standard error is significantly reduced behind the berm. We could refine our problem with greater NPS if we wanted better statistics as well.

Example 9.6, listing 19
Video for this sectionCADIS Example Part 1
Video for this sectionCADIS Example Part 2

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