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

Using Vised for Live Particle Tracking

On this page

Chapter 6 · 5 / 66 min readPDF page 202

Worked examples

Up to this point, we have used the Visual Editor Program to plot the geometry of our model in MCNP. VISED has many other features that are useful for visualizing the working MCNP model. One of those is the plotting of tracks and particles. A couple of steps are necessary to make VISED work with MCNP6.2 beyond just plotting. For VISED to run MCNP input files, it must be able to reference the appropriate cross section directory file, xsdir. When a user starts MCNP, he or she will open the MCNP command prompt. When properly installed, this prompt will open the environmental batch file which is normally located in the same directory as the mcnp6.exe file. The environmental batch file tells the program where the various files needed for MCNP calculations are located on the computer. When VISED is opened as a plotter only, the environmental batch file is not run, and it cannot execute MCNP files.

Therefore, in order to plot particles, VISED should be opened from the MCNP command prompt instead of using the desktop icon. This can be done by opening the MCNP command prompt and navigating to the directory where the executable visedX_24.exe is located on the computer and then entering the executable name. Remember, you cannot use the regular command prompt as it will not run the appropriate environmental batch file when opened. To streamline the process, you can copy the MCNP command prompt shortcut and modify it. Go to the properties for the copied shortcut and change the “start in” location to where the visedX_24.exe executable is located. To avoid confusion between the original and the copied prompt, you can rename the copied prompt and even give it its own icon such as:

Screenshot 1

Once you run the executable, visedX_24E.exe, the Visual Editor will open as it normally does. The difference is that it will now execute and run MCNP files just like MCNP6.2.

To plot MCNP particle information, you can open a file like you normally would for plotting and then adjust the scale and origin to the area of interest in one of the windows. Next click on “Particle Display” from the top menu and then select either “Plot Particle Tracks” for a fixed source problem or “Plot KCODE Source Generation Points” for a KCODE problem. For a fixed source problem, you will get the following pop-up window:

Screenshot 2

You can navigate through the options to optimize the plot for the number of particles, how to color the points, whether to plot tracks etc. The options are well-designed as you can focus your plotting on the specifics for your problem. For instance, if you are only interested in scatters, you can filter out absorptions or vice versa. You can also bin the tracks by energy so you can get a visual representation for how the particles are transmitting through the material.

For the KCODE model, you get a different pop-up window that allows you to select the number of cycles to plot the source points and you can plot the points as a cumulative or an animated plot where the points for fission sources pop up as the fissions occur. Example 6.6 shows the use of plotting for the pig detector model for both the isotropic point source and the conical source while Example 6.7 shows the VISED plotting for our Westinghouse 17 x 17 assembly we made in Example 6.5.

Example 6.6

Use the VISED program to plot the source particles for the pig detector model made in Example 6.1 for the isotropic point source from the XY view. Compare to the same plot for the conical source from the XY view.

Solution: Start VISED from the VISED command prompt to activate the particle plotting capability. Load the MCNP model for the isotropic point source and select the Particle Display/Plot Particle Tracks from the menu. Change the Number of Particles to Track to 10000 so you can get more resolution in the plot. Click on Plot_Tracks on the menu at the top of the Plot Particle Tracks window and you will see the plot develop. When it is done running it should look like:

Example 6.6, listing 1

Repeat the process for the conical source and it should look like:

Example 6.6, listing 2

The two plots are exactly what we would expect to see. The first shows the source particles in an isotropic distribution and the second is a conical source directed along the positive x-axis toward the detector.

It should also be noted that there are very few particles making it to the edge of the pig without collision. That is a good thing because it is a shield. It also emphasizes why we had such a low count rate on our tally that was one meter from the source and why we had to use variance reduction to get good statistics from such a small problem set.

Example 6.7

Use the VISED program to plot the KCODE source points for the Westinghouse 17 x 17 assembly in example 6.5 from the XZ viewpoint and comment on the results.

Solution: Once again, load VISED from the command prompt. Load the MCNP model for the assembly and select Particle Display/Plot KCODE Source Generation Points from the menu. Select cycles 50-55 on the range to plot and then select Run_To_Generate_Plot_Data from the menu at the top of the KCODE Source Generation window. The model will run in the window. When it is complete, click on Plot_Saved_Data. The plots for the entire length and only the top half of the assembly side by side look like.

Example 6.7, listing 1

Notice how the points are concentrated in the center of the assembly and do not reach the ends of the assembly in significant numbers. This is a potential problem with the model. This means that our fissions are only occurring in the middle of the assembly for the most part. We can do one of two things to help out. We can run more active cycles to get saturation in the model or we can add more source points along the length of the fuel. We will go ahead and add source point by changing the KSRC card to:

MCNP input — Example 6.7, listing 2 — mcnp, hover a line
KSRC 1.254 0.0 0.0
1.254 0.0 -100.0
1.254 0.0 100.0

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

Recall that the x coordinate must be outside of the center cell because it needs to be in a fueled region and the center cell is water. We now have points roughly halfway up and down from the centerline. We run it again and the following plots:

Example 6.7, listing 3

For the second set of plots, the source particles are more evenly distributed along the length of the assembly. Note that the final k∞_\infty value is very similar between the two models. This is because the fuel is all the same axially and the assembly has a reflected boundary. It really does not matter how long the fuel assembly is in this model beyond a length of a few mean free paths of the neutron. It would matter if we were doing a burnup model and looking at how the entire fuel changed with respect to time. For a more realistic model, we would look at adding an axial blanket of low enriched or natural uranium fuel to serve as a reflector blanket.

Video for this sectionRunning VISED from Command Prompt

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