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®

Analog Model Creation and Execution

On this page

Chapter 9 · 3 / 910 min readPDF page 324

Worked examples

The Atilla4MC code is particularly effective for setting up and modeling shielding problems using MCNP. In the previous section, we discussed creating a shielding problem geometry in Soldworks and importing that model as a Parasolid into a new project in Attila4MC. Our imported geometry mesh for the tank example contains parts associated with each of the structures to include the air, soil, each solider, the source and the tank itself. Example 9.3 continues the example problem setup and execution. In the end, the final values for the effective dose in mrem per source particle.

The setup and execution of the problem requires the user to assign materials to the various regions associated with the parts in the Parasolid. In Example 9.3, the user builds materials using isotopic concentrations through the GUI. These materials are later assigned to the regions in the problem. In later exercises, we will import the material library from the Pacific Northwest Laboratory Compendium of materials. This will greatly speed up the model creation time as most materials needed are in that library.

After material creation, the user will assign MCNP controls to include the MODE and NPS controls. As stated previously, the user should have a good understanding of MCNP to accurately use Attila4MC. The model will not give valid results if the MODE does not match the type of particles transported and tallied and the number of source particles greatly affects the overall variance in the final answer as well as the computational time for the problem.

The user continues to build the input file by specifying the source information. The initial example uses the cobalt 60 source provided from the Attila4MC tutorial example problem. In a later example, we will create a neutron source and change the problem from a gamma to neuron problem.

The final step in the problem setup is to create tallies. The Attila4MC program allows the user to apply tallies to individual regions as wells as creating a tally known as “elemental edits” which will create a tally across the entire problem mesh. This tally will allow the user to visualize dose changes as a surface contour plot. The tallies allow the user to include a tally multiplier as well as a response function. As explained in Section 5.6, MCNP has no sense of time, and all tallies are reported per source particle. To achieve actual values of flux, the user must include a tally multiplier of particles per second, otherwise the result for flux or associated dose equivalent will be normalized per source particle.

To obtain dose equivalent in Attila4MC, the user only needs to specify either a built-in or user-defined response function. We downloaded the ICRU57 response function from the example problem. Opening the response function in Textpad reveals that it modifies the flux tally from either gammas or neutrons based on energy and reports an output in mrem per source particle. When combined with an appropriate tally multiplier, the result will be in mrem per second or hour (depending on whether the FM is in particles per second or hour). The training materials available to the user on the Attila4MC website contains instructions on creating a response function, however that is beyond the scope of this text.

Execution of the problem requires the user to save the file and then select the appropriate execution method. Attila4MC has the option to run the analog MCNP file within the Attila GUI, run a CADIS variance reduction model, or package the file for the user to run in MCNP. For our analog problem, the GUI will write the input file, run the problem in a pop-up window, and write the output file along with providing appropriate TecPlot files that can be opened to visualize the results.

Example 9.3

Complete the example problem from Example 9.1 and 9.2 for a cobalt 60 source and read the results.

Solution: Right-click the project name on the project tree and select Create Object – Calculation to bring up the Calculation window and enter a name “run1” Select fixed source for calculation type.

Example 9.3, listing 1

Select Next

Use the drop-down menu to select the mesh file saved from Example 9.2. Once loaded, information about the mesh will be visible. The Cell Flags section in the bottom right of the window provides the user with the % Mesh Cells associated with each (Attila) Region Name. This metric is a useful tool for performing a quality check on a mesh.

Example 9.3, listing 2

Select Next

Right-click in the Materials region and select a new material. Name the material “earth”. Using the PNLL Compendium of Materials to find compositions. From the Compendium, go to Earth, U.S. Average. Enter the density in the appropriate units “g/cc”. Next, select each isotope listed to add and then modify the weight percent or atom percent. Right-click to add next material, source (Co-59 for mat which is close to Co-60 for self-shielding) Repeat for air (Air (Dry, Near Sea Level) and tissue (Tissue, Soft (ICRU Four Component).

Example 9.3, listing 3

Select Next

The next window will allow the user to select the region attributes. It displays a model of the problem in the lower window and the different parts are listed in a table at the top. In the top table, double-click each material column and use the drop-down menu to select the appropriate material to assign to that region.

Example 9.3, listing 4

Select Next

After setting up the materials and assigning them to regions, the next page will set up the MCNP controls. This process is the same as specifying the MODE and the NPS when writing the MCNP input file. The user inputs the number of histories to run (nps in the MCNP input deck), particle types to transport (mode in the MCNP input deck), and Tecplot options are all specified in the MCNP Controls panel. If the user wishes to add more inputs.

  • Under Calculation Limit, change the Number of Histories to 1e6.

  • Under Particle Types to Transport, uncheck Neutron and select Photon.

Example 9.3, listing 5

Select Next

The program proceeds to the source setup. The Fixed Source panel is used to create a source definition for the radiation transport problem. Options in the Atilla4MC GUI include an isotropic volume source, in which an Attila Region is assigned as a uniformly distributed volume source, or an isotropic point source. Selection of a volume source requires a scaling specification (none or an integer normalization in particles per source term). Both the volume and point source specification need to be assigned a source Spectrum. The point source location is based off of a 3D Cartesian coordinate system associated with the imported solid geometry. Because a volume source is desired for the radiation transport problem, a point source will not be created in this exercise.

  • Select Volume Source Specification

  • Select Region-wise Constant

  • For Scaling options, select Normalize and enter a value of 1.0

  • Right-click in the white region underneath Region-wise Constant and select Add Source Region

  • Double-click on Fluid under User Region and select sourcesphere from the dropdown menu

  • Double-click on <none> underneath Spectrum and select [γ\gamma] GammaSpectra: Co60 from the dropdown menu

A volume source normalized to 1.0 has now been created in the Attila Region Src using the Cobalt 60 gamma spectrum that was imported into the Project tree. The correct source definition can be seen below. Note: if you desired to add a mulitplier to convert tally results from per source particle to particles per second or per hour, you would change the Normalize value from 1.0 to the source strength on this page.

Example 9.3, listing 6

Select Next

The GUI now pages to the tally page. On this page the user can select F4, F6, and F8 tallies, and the Elemental Edits tally. The Elemental Edits tally is required if the user wishes to visualize the solution using Tecplot. A point or ring detector (MCNP F5 tally) is also an option; however, this tally has not been adequately tested and verified within MCNP, and it is recommended to not be used until this has occurred. Before a MCNP tally can be created, a Spatial Set, the volume in which the user wishes the tally to occur, must be designated.

  • Select User Defined

  • Right-click in the white region under Spatial and Energy Sets and select Add Region Sets

The Define the Regions Report Set window will appear, showing all Attila Regions that had been defined earlier.

  • For Name, enter Soldier 1

  • Select Solider 1 [walking man 1] in the Regions table

Repeat for each soldier and the tank

Example 9.3, listing 7

Select Next

The Operator Spatial Set now populates the Spatial and Energy Sets group. Now that a Spatial Set exists, a tally can be created.

  • Right-click in the white region under MCNP Tallies and select Add Cell/Region Tally (F4, F6, F7, F8)

The Set the Attributes of the Cell/Region Tally window will appear. The options in this window allow the user to customize the output of the tally being created. For example, the Type of tally, the Region Set in which the tally will occur, the particle type, and Response Function (dose conversion factor) are all chosen here.

  • For the Tally Name, enter DoseInSoldier1

  • Click on <none> in the Type section,

  • Select F4: Flux → F4: Average Particle Flux

  • Click on <none> in the Region Set section, select Soldier 1 from the drop-down menu

  • Click on <none> in the Particle section, select Photon from the drop-down-menu

  • Click the box next to Additional Tally Options

  • Click the box next to User Defined and select [γ\gamma]ICRU57 : Photon point-wise

Select OK and repeat for each soldier and the tank

Example 9.3, listing 8

The Elemental Edits tally does not require a spatial set, as the tally is taken over the entire unstructured mesh.

  • Right-click in the white region under MCNP Tallies and select Add Elemental Edits

  • For the Tally Name, enter DoseForVisualization

  • Click on <none > in the Type section, select F4: Flux → F4: Average Particle Flux

  • Click on <none > in the Particle section, select Photon from the down-menu

  • Click the box next to Include Relative Errors

  • Select [γ\gamma] ICRU57 : Photon constant in the Response Function section

  • Select OK

Elemental edits tallies require a multigroup response function, and only multigroup response functions will be shown in the pull-down menu. Again, this response function must already be created or imported into the Project tree. Creation of this tally will enable the dose solution, and corresponding uncertainties, to be displayed in Tecplot. It should be noted that the response function is only appropriate for an Attila Region that has been assigned the material Air. The Spatial and Energy Sets should contain Soldier1, 2 and 3, and the MCNP Tallies should contain DoseInSoldier1, 2 and the tank and DoseForVisualization.

Example 9.3, listing 9

The user can manually assign importances to specific Attila Regions, or elect to have Attila automatically assign importances to a collection of Regions to approximately maintain a constant number of particles through those Regions. If the Enable Importances for MCNP remains unselected, all Regions will be assigned an importance of 1.

  • Select Finish

Run1 can now be seen in the Project tree, and the calculation is ready to run. To run the calculation:

  • Right-click on Run1 in the Project tree and

  • Select Edit

  • Select Run MCNP in the bottom left corner of the window

The MCNP Run Log will appear. Once the run has completed, the user will need to import the Tecplot file generated by the calculation into the Project tree using the same technique presented earlier in this exercise. The file is located inside of the Run1_mcnp file folder.

A calculation can also be ran using the Pack for MCNP option, which punches an MCNP input deck that can be ran on any machine that has MCNP6.2 installed.

Example 9.3, listing 10

Attila creates a file folder in the working directory where you stored the Parasolid and other files. Within this folder, you will find the several files that include the input, output and files used by Tecplot to read the tally results and mesh.

Example 9.3, listing 11

We can open the output file which is designated with a ∗\ast.o extension “m1tank.mcnp.o” and find the tally results for the dose in the soldiers and the tank. If we look at the Dose in Solider 1, we will see the results are 1.976E-13 with a variance of 0.7884 mrem per source particle.

Program output — Example 9.3, listing 12
1tally        4        nps =     1000000
+                                   tally "DoseInSoldier1"
           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
                         8.42938E+04

 cell  4
                 1.97606E-13 0.7884


 ============================================================================
Video for this sectionSetup Attila Calculation M1 Tank Example

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