Professional Documents
Culture Documents
Table of Contents
1.0 INTRODUCTION.........................................................................................................................................1
1.1 THE MCNP/MCNPX VISUAL EDITOR ........................................................................................................1
1.2 INSTALLATION NOTES .................................................................................................................................1
1.3 OPERATING SYSTEM REQUIREMENTS ..........................................................................................................2
2.0 A BRIEF OVERVIEW .................................................................................................................................3
2.1 USER RESOURCES........................................................................................................................................3
2.1.1 Utilizing this Manual ............................................................................................................................3
2.1.2 Online Help ..........................................................................................................................................4
2.1.3 The LANL MCNP Manual ....................................................................................................................4
2.1.4 The LANL MCNPX Manual..................................................................................................................5
2.1.5 The Visual Editor Website ....................................................................................................................5
2.2 CREATING GEOMETRIES ..............................................................................................................................5
2.3 THE INPUT WINDOW ...................................................................................................................................6
2.4 MODIFYING THE INPUT FILE USING AN EXTERNAL EDITOR ........................................................................6
2.5 READING AND WRITING INPUT FILES ..........................................................................................................7
2.6 SAVING FILES ..............................................................................................................................................8
2.7 AUTOMATIC BACKUPS AND ERROR HANDLING ...........................................................................................8
2.8 IMPORTANT FILES IN THE VISUAL EDITOR ..................................................................................................8
3.0 GETTING STARTED WITH TWO SIMPLE EXAMPLES ..................................................................10
3.1 EXAMPLE: DISPLAYING AND PLOTTING AN EXISTING FILE .......................................................................10
3.2 EXAMPLE: CREATE SIMPLE GEOMETRIES USING THE VISUAL EDITOR ......................................................22
4.0 THE VISUAL EDITOR PLOT WINDOWS ............................................................................................37
4.1 UPDATE .....................................................................................................................................................38
4.2 NEXT AND LAST BUTTON ..........................................................................................................................39
4.3 ZOOM CHECK BOX ....................................................................................................................................39
4.4 ORIGIN CHECK BOX ..................................................................................................................................40
4.5 CHANGING THE EXTENTS ..........................................................................................................................43
4.6 REFRESH CHECK BOX ...............................................................................................................................44
4.7 THE SURFACE AND CELL CHECK BOX .......................................................................................................44
4.8 UNUSED ....................................................................................................................................................45
4.9 COLOR CHECK BOX ..................................................................................................................................45
4.10 FACETS CHECK BOX..................................................................................................................................45
4.11 WW MESH CHECK BOX ............................................................................................................................45
4.12 RECT CHECK BOX .....................................................................................................................................45
4.13 TAL MESH CHECK BOX .............................................................................................................................46
4.14 PLOT ROTATION OPTIONS .........................................................................................................................46
4.15 SCALES CHECK BOX..................................................................................................................................46
4.16 RES TEXT BOX ..........................................................................................................................................46
4.17 PSCRIPT CHECK BOX .................................................................................................................................46
4.18 CHANGING THE BASIS ...............................................................................................................................46
4.19 VIEWING GLOBAL/LOCAL COORDINATES .................................................................................................47
4.20 SETTING CELL LABELS ..............................................................................................................................47
4.21 LEVEL PULLDOWN MENU .........................................................................................................................47
5.0 THE MAIN MENU .....................................................................................................................................48
6.0 THE FILE MENU OPTION ......................................................................................................................50
7.0 THE INPUT WINDOW..............................................................................................................................51
8.0 THE SURFACE WINDOW .......................................................................................................................51
8.1 CREATING A SURFACE ...............................................................................................................................52
i
MCNP Visual Editor Manual
ii
MCNP Visual Editor Manual
iii
MCNP Visual Editor Manual
iv
MCNP Visual Editor Manual
List of Figures
FIGURE 2-1 THE INPUT WINDOW ...................................................................................................................................6
FIGURE 3-1 FINAL RESULT OF THE DISPLAY AND PLOTTING EXERCISE .......................................................................10
FIGURE 3-2 UNEXPECTED EOF MCNP FATAL ERROR .................................................................................................11
FIGURE 3-3 STARTUP CONFIGURATION FOR THE VISUAL EDITOR................................................................................12
FIGURE 3-4 USING ZOOM TO MAGNIFY THE IMAGE .....................................................................................................13
FIGURE 3-5 RESULT AFTER USING ZOOM.....................................................................................................................13
FIGURE 3-6 RESULT AFTER USING ZOOM TWICE ON BOTH WINDOWS .........................................................................14
FIGURE 3-7 RESULT AFTER ADJUSTING EXTENTS ........................................................................................................15
FIGURE 3-8 MODIFY THE ORIGIN TO CENTER THE PLOT ..............................................................................................16
FIGURE 3-9 MODIFY THE LEFT ORIGIN BASED ON THE RIGHT PLOT............................................................................17
FIGURE 3-10 MODIFY THE RIGHT ORIGIN BASED ON THE LEFT PLOT – UPPER SLICE. ................................................18
FIGURE 3-11 MODIFY THE RIGHT ORIGIN BASED ON THE LEFT PLOT – LOWER SLICE .................................................19
FIGURE 3-12 DYNAMIC 3D DISPLAY ...........................................................................................................................19
FIGURE 3-13 CREATING A DYNAMIC 3D PLOT ............................................................................................................20
FIGURE 3-14 DYNAMIC 3D PLOT OF CUBE GEOMETRY ...............................................................................................21
FIGURE 3-15 ROTATED CUBE GEOMETRY PLOT ..........................................................................................................21
FIGURE 3-16 FINAL RESULT OF GEOMETRY CREATION EXAMPLE...............................................................................22
FIGURE 3-17 STARTUP CONFIGURATION FOR THE VISUAL EDITOR..............................................................................23
FIGURE 3-18 CREATING THE SPHERE SURFACE ...........................................................................................................24
FIGURE 3-19 DISPLAY OF CREATED SPHERICAL SURFACE...........................................................................................25
FIGURE 3-20 SPHERE AND FIRST PX PLANE .................................................................................................................26
FIGURE 3-21 SPHERE AND SIX PLANE SURFACES ........................................................................................................27
FIGURE 3-22 SELECTING FIRST SURFACE IN CREATION OF CUBE CELL .......................................................................28
FIGURE 3-23 USING BOTH PLOT WINDOWS TO SELECT CUBE SURFACES.....................................................................29
FIGURE 3-24 DEFINE POINT, PASTE AND REGISTER ......................................................................................................30
FIGURE 3-25 DISPLAY OF CUBE CELL..........................................................................................................................31
FIGURE 3-26 CREATE SPHERE CELL ............................................................................................................................32
FIGURE 3-27 CUBE CELL AND OUTSIDE WORLD .........................................................................................................33
FIGURE 3-28 DEFINING THE POINT TO DETERMINE CELL SENSE .................................................................................34
FIGURE 3-29 PASTE INNER SPHERE .............................................................................................................................35
FIGURE 3-30 CUT CUBE FROM SPHERE ........................................................................................................................36
FIGURE 3-31 GEOMETRY WITH THREE CELLS CREATED ..............................................................................................37
FIGURE 4-1 PLOT WINDOW OPTIONS ...........................................................................................................................38
FIGURE 4-2 USING ZOOM ............................................................................................................................................39
FIGURE 4-3 USING THE ORIGIN ....................................................................................................................................40
FIGURE 4-4 Z COORDINATE ORIGIN OFF THE PLOT PLANE ...........................................................................................40
FIGURE 4-5 BUSS CASK INPUT FILE PLOTTED AT THE ORIGIN .....................................................................................41
FIGURE 4-6 BUSS CASK INPUT FILE PLOTTED AT (-1, 0, 33) ........................................................................................42
FIGURE 4-7 BUSS CASK INPUT FILE SHOWN WITH DEFAULT EXTENTS OF 100..............................................................43
FIGURE 4-8 LEFT PLOT WITH EXTENTS AT 50, RIGHT PLOT WITH EXTENTS AT 500 ....................................................44
FIGURE 4-9 RECTANGULAR DISPLAY WITH SCALES ....................................................................................................45
FIGURE 4-10 I3HEX INPUT FILE AT LEVEL 1 AND AT LEVEL 5 (ZOOMED).....................................................................48
FIGURE 5-1 THE VISUAL EDITOR MAIN MENU ............................................................................................................48
FIGURE 6-1 THE FILE MENU ........................................................................................................................................50
FIGURE 8-1 THE SURFACE WINDOW ............................................................................................................................52
FIGURE 8-2 CREATING A SPHERICAL SURFACE ............................................................................................................53
FIGURE 8-3 CREATING A PX PLANE ..............................................................................................................................56
FIGURE 8-4 CREATING ANOTHER PX PLANE ................................................................................................................57
FIGURE 8-5 SETTING THE DIAMETER USING THE MOUSE ............................................................................................58
FIGURE 8-6 DELETE A SURFACE ..................................................................................................................................59
FIGURE 8-7 USING SURFACE DELTA TO CREATE SURFACES........................................................................................60
FIGURE 8-8 DETERMINING THE DISTANCE BETWEEN TWO PLANES. .............................................................................61
FIGURE 8-9 CREATE A MACROBODY TRUNCATED RIGHT ANGLE CONE ......................................................................62
FIGURE 8-10 SHOW AND HIDE SURFACES....................................................................................................................63
v
MCNP Visual Editor Manual
vi
MCNP Visual Editor Manual
vii
MCNP Visual Editor Manual
viii
MCNP Visual Editor Manual
ix
MCNP Visual Editor Manual
List of Tables
10
MCNP Visual Editor Manual
1.0 Introduction
1.1 The MCNP/MCNPX Visual Editor
The Monte Carlo N-Particle (MCNP)/Monte Carlo N-Partical eXtended (MCNPX) computer
code is a particle transport code with powerful three dimensional geometry and source modeling
capabilities that can be applied to reactor physics, shielding, criticality, environmental nuclear
waste cleanup, medical imaging, and numerous other related areas.
Creating a MCNP/MCNPX input file with a line editor is both tedious and error prone as it
entails arduous descriptions of geometry, tallies, sources, and optimization parameters. These
input files may contain thousands of lines, and once the input file is created, substantial
additional time is often required to plot and test the geometry and to correct any errors.
The Visual Editor1 2 3 4 5 6 7 8 9 10 11 was developed to assist the user in easily displaying
geometries and in the creation of MCNP input files. Work on the Visual Editor started around
1992. The first release to RSICC was in 1997. The Visual Editor code became part of the
MCNP package with the release of version 5 of MCNP. In 2007, a grant allowed the Visual
Editor to be adapted to work with MCNPX.
The Visual Editor allows the user to easily set up and modify the view of the MCNP/MCNPX
geometry and to determine model information directly from the plot window. The Visual Editor
also allows the user to interactively create an input file with the help of two or more dynamic
cross sectional views of the model. The input file can also be created in an external editor (such
as WordPad or Microsoft Word) or by typing (editing) the file in the Input window in the Visual
Editor. Additional powerful features include:
• Two side-by-side 2-D plots of the geometry.
• Capability to plot source points to verify the MCNP/MCNPX source.
• Optional 3-D views using either ray tracing or dynamic wire mesh displays.
• Capability to dynamically build a geometry while viewing it as it evolves.
• Optional manual editing of the input file and immediate re-initialization with the changes
showing up in the plots.
• Dynamic input of materials, transformations, and importances (using the mouse).
• Dynamic displays of particle tracks, cross sections, and tallies.
• A surface wizard to optionally assist the user in creating surfaces while visually being
able to see the surface types.
• A cell wizard to assist the user in creating cells.
• Optional import and conversions of a CAD file to an MCNP/MCNPX input file.
The current version of the Visual Editor runs on Windows.
This manual for the Visual Editor was written for version 1.5 of MCNP5 and for MCNPX
version 2.5.
Page 1 of 288
MCNP Visual Editor Manual
If you want to do particle track plotting, cross section plotting, or run MCNP/MCNPX inside the
Visual Editor, the xsdir file must be in the same directory as the Visual Editor executable or a
path to xsdir must be specified on the system as required for running MCNP/MCNPX. If binary
cross section files are involved, they must be compatible with the current version of the Visual
Editor, or else you should switch to ASCII cross section files.
To access the material libraries, the code will try to use the default environment variable to read
the libraries from the installed location. If this fails, you need to create a “vised.defaults” file for
the configuration of MCNP/MCNPX on your system. See the section on materials for more
information on how to do this.
The size of the fonts used by the windows is fixed and cannot be changed. The font used is
called “ariel 7”. If the Visual Editor windows appear too large for your screen, it is
recommended that you increase your screen resolution. The ideal screen resolution is 1280 x
1024.
Because the Visual Editor creates several files for its own internal use that are stored in the same
folder as the input file currently in use, it is generally preferable to create and read input files in a
directory created for that purpose (i.e. c:\vis). If they are defaulted to the folder containing the
Visual Editor executable, that folder will soon become cluttered with many internal files.
Page 2 of 288
MCNP Visual Editor Manual
Page 3 of 288
MCNP Visual Editor Manual
Page 4 of 288
MCNP Visual Editor Manual
Page 5 of 288
MCNP Visual Editor Manual
Page 6 of 288
MCNP Visual Editor Manual
Open and modify the file in an external editor (for example, Microsoft WordPad or Microsoft
Word).
Save the file.
In the Visual Editor
Start the Visual Editor.
Open the input file in the Visual Editor in the “Do Not Modify” mode. Click on File…Open(do
not modify input). Select the desired file name from the pop up directory menu.
Click Update Plots.
Subsequent Editing
With both the Visual Editor and the External Editor open, the user may switch back and forth for
additional edits. Switch to the Editor and make changes. Save the file. If the file is not saved,
the Visual Editor can not pick up the changes.
Switch back to the Visual Editor and Click Read_again. See Section 22.0 Read again for more
information. Then click Update Plots.
Additional Considerations
Using the “Do Not Modify” mode prevents the user from utilizing several Visual Editor features.
If the user wants to operate exclusively in this mode, several sections of this manual do not
apply. It is recommended that users look at the sections listed in the Suggested Reading section,
which are useful in “Do Not Modify” mode.
Suggested Reading
3.1 Example: Displaying and Plotting an Existing File
4.0 The Visual Editor Plot Windows
16.0 Particle Display
17.4 Plotting the Tally File
17.5 Tally Plot Options
18.0 Cross Section Plots
21.0 CAD Import
Page 7 of 288
MCNP Visual Editor Manual
3. blank line
4. Surface Cards
5. blank line
6. Mode
7. Source (only KCODE and ksrc if they exist)
8. Materials
9. Transformations
10. Importances
11. Other data [VOL, PWT, EXT, FCL, PD, DXC, NONU, WWN, TMP (in the order given)]
12. Data not recognized by the Visual Editor
The editor does its best to keep the original comments in the proper locations. The "$"
comments from the inp file for cell and surface cards are read into the Visual Editor, but only
one "$" comment will be written out for a cell or surface card; i.e., if there are more than one "$"
comments for a given cell or surface, only the first one will be written to the inpn file. The
Visual Editor will print out an error message saying the “$ comment is lost.”
There are a number of input data types that are still not individually recognized by the Visual
Editor such as the source and tally cards. These are stored in memory and written back out to the
input file when it is saved. All cards that are individually recognized by the Visual Editor will be
formatted to its specific style. For example importances are written out in a special format that
uses a "$" comment on each line to show the cell numbers involved for that line. The Visual
Editor also does not currently allow the cell parameters to be specified on the cell card, it will
strip off the cell card parameters and place them in a data block. To avoid this problem, the
input file can be read in without modification with the File…Open (do not modify input)
option or by using the Read Again option
Page 8 of 288
MCNP Visual Editor Manual
inp Used by the Visual Editor as the default input file name. This file is
overwritten each time the editor starts up. The Visual Editor will give
unpredictable results if you try to read this file in as the input file.
inpn Inpn is the file that is created when doing a “Save-Update” command in the
input window. The Visual Editor will give unpredictable results if you try to
read this file in as the input file.
inpn1, inpn2, By selecting “backup” from the main menu a new inpn? (inpn1, inpn2, inpn3,
inpn3, … …) file is created representing the contents of the current file being worked on.
inpn.sav The input file is backed up every 5 minutes to this file, so if the system crashes
you will not lose more than 5 minutes of work. The Visual Editor will give
unpredictable results if you try to read this file in as the input file.
inpcrash If MCNP generates a fatal error that results in a “stop” statement, a message is
sent to the Visual Editor telling the user that the code is about to terminate. It
then saves the current input file into a file called inpcrash. This will allow the
user to get the file that was generated up to the point of the fatal error. The
Visual Editor will give unpredictable results if you try to read this file in as the
input file.
outp, outq, … In normal plotting mode, the outp file is overwritten and does not sequentially
increase. In other modes, such as 3D plotting, particle track plotting, tally
plotting and running, the outp file name increases sequentially just like when
running MCNP outside the Visual Editor. If the Visual Editor crashes,
always check this file to see if there are fatal MCNP errors not trapped by
the Visual Editor.
inpt Temporary file used for 3D plotting and collision point plotting.
outp3d Output file for 3D plotting.
outmc Contains MCNP output messages, normally written to standard out. If the
Visual Editor crashes, always check this file to see if there are fatal MCNP
errors not trapped by the Visual Editor.
vised.defaults The file containing the location of xsdir and the material libraries. The Visual
Editor tries to get this information from the MCNP environment variable. If
this does not work, this file may be needed for using the material libraries and
for selecting isotopes when creating materials. See Section 11.5.
stndrd.n Standard material file containing neutron cross sections available for all users.
stndrd.p Standard material file containing photon cross sections available for all users.
usr.n User specific material file containing neutron cross sections for the individual
user.
usr.p User specific material file containing photon cross sections for the individual
user.
Page 9 of 288
MCNP Visual Editor Manual
Page 10 of 288
MCNP Visual Editor Manual
1 p 0 0 -1 -20
2 p -1 0 0 -7.5
3 p 0 -1 0 -7.5
4 p 1 0 0 17.5
5 p 0 1 0 17.5
6 p -0.51555198952256 0 0.85685829989522 21.839109075437
7 p 0.5 0 0.86602540378444 34.730762113533
8 p 0 0 -1 -20
9 p -6.1230317691119e-017 -1 0 17.5
10 p 1 -6.1230317691119e-017 0 -7.5
11 p 6.1230317691119e-017 1 0 -7.5
12 p -1 6.1230317691119e-017 0 17.5
13 p -3.1567412104755e-017 -0.51555198952256 0.85685829989522
34.727908813501
14 p 3.0615158845559e-017 0.5 0.86602540378444 22.230762113533
15 p 0 0 1 20
16 p 1 0 0 20
17 p 0 -1 0 20
18 p -1 0 0 20
19 p 0 1 0 20
20 p 0 0 -1 20
21 p 0 0 1 -20
22 p 0 -1 0 17.5
23 p -1 0 0 -7.5
24 p 0 1 0 -7.5
25 p 1 0 0 17.5
26 p 0 0 -1 30
mode N
imp:N 1 3r 0 $ 1, 5
Important Note! Be sure there is a blank line after the last line. If there is not a blank line at the
end, you will get the error displayed in Figure 3-2 when you try to read the file in.:
Page 11 of 288
MCNP Visual Editor Manual
Page 12 of 288
MCNP Visual Editor Manual
Page 13 of 288
MCNP Visual Editor Manual
Page 14 of 288
MCNP Visual Editor Manual
Alter Extents
If a perfect square is not drawn, the picture may become distorted because the vertical
magnification is different from the horizontal magnification. To restore the “aspect ratio”, click
on one of the squares by the Extent text box (see Figure 3-7 below). This will set the other
extent to match the one you clicked on. Figure 3-7 shows the result. Notice the numbers in the
extent boxes for each window now match. The desired extents for each plot can also be entered
manually in these extent boxes.
Page 15 of 288
MCNP Visual Editor Manual
Page 16 of 288
MCNP Visual Editor Manual
Figure 3-9 Modify the Left Origin Based on the Right Plot
On the Left Plot Window, Click the Origin Box.
On the Right Plot Window, Click in the top left corner of the square (approximately where the
arrow from “Click Here” points in Figure 3-9 above). The X and Z coordinates in the top of the
left plot window should read approximately -30 and 17 respectively.
If the plot is too large (as in Figure 3-9), click on the Zoom slider bar to the left of the center to
zoom out. The arrow from “Click Here to Zoom Out” points to the position in Figure 3-9.
Click in the other three corners of the right plot and see how the left plot changes.
Click the Origin box on the Left Plot Window to deselect it.
Page 17 of 288
MCNP Visual Editor Manual
Figure 3-10 Modify the Right Origin Based on the Left Plot – Upper Slice.
Modify the Right Plot Origin based on the Left Plot.
Similarly, to view different slices on the right plot, alter its origin based on the left.
Click Origin on the Right Plot Window.
Click in the Left Plot Window slightly above the large square as indicated in Figure 3-10.
Page 18 of 288
MCNP Visual Editor Manual
Figure 3-11 Modify the Right Origin based on the Left Plot – Lower Slice
Similarly, click slightly below the large square on the Left Plot (as shown in Figure 3-11) and
observe the change in the Right Plot Window.
Click the Origin box to deselect it.
Printing the Plot
The plot may be printed by clicking File…Print… from the main menu at the top of the screen
or by Right-Clicking with the mouse on the picture and selecting “Send To Clipboard”.
Creating a 3D Plot
Page 19 of 288
MCNP Visual Editor Manual
Page 20 of 288
MCNP Visual Editor Manual
Page 21 of 288
MCNP Visual Editor Manual
Page 22 of 288
MCNP Visual Editor Manual
Page 23 of 288
MCNP Visual Editor Manual
Creating a Sphere
Page 24 of 288
MCNP Visual Editor Manual
Page 25 of 288
MCNP Visual Editor Manual
Page 26 of 288
MCNP Visual Editor Manual
Figure 3-21 Sphere and Six Plane Surfaces shows the result.
Page 27 of 288
MCNP Visual Editor Manual
Page 28 of 288
MCNP Visual Editor Manual
Page 29 of 288
MCNP Visual Editor Manual
Page 30 of 288
MCNP Visual Editor Manual
Page 31 of 288
MCNP Visual Editor Manual
Page 32 of 288
MCNP Visual Editor Manual
Page 33 of 288
MCNP Visual Editor Manual
Page 34 of 288
MCNP Visual Editor Manual
Page 35 of 288
MCNP Visual Editor Manual
Page 36 of 288
MCNP Visual Editor Manual
Page 37 of 288
MCNP Visual Editor Manual
4.1 Update
As it's name implies, the Update button is used to redraw the plot for that window.
To update all plots, use the Update Plots main menu option. You typically use the Update Plots
button to create the plots after reading in a new input file. This is not done automatically
because there are times when you do not want the plot to be displayed because it would take too
long to generate.
Page 38 of 288
MCNP Visual Editor Manual
When you change the basis, origin, or extent parameters by hand, you need to select Update in
the specific window or Update Plots from the main menu to redraw the plots with the new plot
values.
Page 39 of 288
MCNP Visual Editor Manual
Page 40 of 288
MCNP Visual Editor Manual
Another way to adjust the origin involves selecting the Origin check box for the plot and then
setting the origin by clicking in the plot to define the location for the new center of the plot. The
origin can be set in either plot window. The plot will stay in “origin” mode until the origin check
box is clicked again to turn it off. Figure 4-5 shows the cask geometry plotted at the origin
which is the default.
Page 41 of 288
MCNP Visual Editor Manual
Figure 4-6 shows the same file after the z coordinate has been modified. For this plot, the origin
checkbox was clicked on the right plot and then the cursor was clicked on the left plot where
indicated. This moved the z view on the right plot to the point indicated by clicking on the left
plot.
Page 42 of 288
MCNP Visual Editor Manual
Figure 4-7 Buss Cask Input File shown with default extents of 100
The horizontal extent is the distance from the center of the plot to a horizontal edge of the plot.
The vertical extent is the distance from the center of the plot to the top/bottom of the plot. The
extents for the plots automatically default to 100. Figure 4-7 shows a cask geometry with the
default extents.
The extents can be changed by typing in desired extents under the Extent label and selecting
Update or by using the slider bar on top of the plot windows. This modifies the extent by a scale
factor between 0.1 and 10. You can also click on the left/right side of the slider bar handle to
increase/decrease the extents by about 10% for each click. Figure 4-8 shows the XZ plot on both
the left and right plot window. On the left, the view has been zoomed in and now has extents of
50. On the right, the view has been zoomed out and now has extents of 500.
Page 43 of 288
MCNP Visual Editor Manual
Figure 4-8 Left Plot with Extents at 50, Right Plot with Extents at 500
The buttons to the left of the extent values, allow the user to square up the extents. This is often
used after “zooming” in on a region. Both extents will be set to the value you click on making
them equal.
Page 44 of 288
MCNP Visual Editor Manual
4.8 Unused
This check box displays surfaces that are not currently used as part of a cell.
Page 45 of 288
MCNP Visual Editor Manual
Select the Rect check box to change the plot window to a rectangular plot instead of a square
plot. A rectangular plot is needed to see the grid lines or the plot legend. Tally and cross section
plots also look better in a rectangular plot instead of a square plot.
Page 46 of 288
MCNP Visual Editor Manual
Page 47 of 288
MCNP Visual Editor Manual
Page 48 of 288
MCNP Visual Editor Manual
Input Used to bring up a simple text editor containing the complete contents of the
input file, including cards not recognized by the Visual Editor. The input file
can be edited by hand in this window.
Update Plots Update both plot windows.
Surface Bring up the surface window to scan, create or modify surfaces.
Cell Bring up the cell window to scan, create or modify cells.
Data Menu for some data cards: materials, importances, transformations.
Run Enable the running of MCNP input files.
Particle Display Bring up the source window that allows for source point display and particle
track plotting.
Tally Plots Allow the plotting of tallies from a runtpe or mctal files. This is the same
capability that currently exists when requesting MCPLOT (mcnp
inp=filename z options)
Cross Section Allow the plotting of MCNP cross sections. This is the same capability that
Plots currently exists when requesting MCPLOT (mcnp inp=filename ixz options)
3D View Allows the rendering of a 3D view of the geometry or a radiographic image
using ray tracing, or select “Dynamic 3D Display” to obtain a dynamic wire
mesh display in some current versions of the Visual Editor.
CAD Import Import a CAD 2D DXF or 3D sat file.
Read_again Update the plots after the file that was read in or has been modified by an
external text editor. This allows the user to edit the file outside the Visual
Editor and only use the Visual Editor to plot the geometry.
Backup Creates a backup file that sequentially increases (inpn1, inpn2, …).
Options Parameters to set plot, file open, and file generation options.
View Select the active plot window.
Help Shows the version number, along with access to this manual in electronic
form, including an index and search ability.
Page 49 of 288
MCNP Visual Editor Manual
Page 50 of 288
MCNP Visual Editor Manual
File…Save and File…Save As must be used to save the current input file that is being
generated. If you leave the Visual Editor before saving the file, all the information currently in
memory will be lost.
Page 51 of 288
MCNP Visual Editor Manual
Page 52 of 288
MCNP Visual Editor Manual
Page 53 of 288
MCNP Visual Editor Manual
Page 54 of 288
MCNP Visual Editor Manual
and the distance between the surfaces will be calculated. The Visual Editor will take the
dimension of the first surface minus the dimension of the second surface, so it is possible for this
value to be negative. This only works for surfaces of the same type. This value will be in inches
if Inches is selected.
It is possible to get a number of distances from a specific surface by getting the dimension for the
first surface and then leaving the second check box checked and dragging across all surfaces for
which you want the distance calculated relative to the first surface.
Page 55 of 288
MCNP Visual Editor Manual
8.12 Example: Using All the Visual Editor Surface Creation Tools
This exercise uses a variety of features in the Visual Editor to create and modify surfaces.
Page 56 of 288
MCNP Visual Editor Manual
Page 57 of 288
MCNP Visual Editor Manual
Page 58 of 288
MCNP Visual Editor Manual
Page 59 of 288
MCNP Visual Editor Manual
Page 60 of 288
MCNP Visual Editor Manual
Page 61 of 288
MCNP Visual Editor Manual
Page 62 of 288
MCNP Visual Editor Manual
Page 63 of 288
MCNP Visual Editor Manual
Page 64 of 288
MCNP Visual Editor Manual
Page 65 of 288
MCNP Visual Editor Manual
Page 66 of 288
MCNP Visual Editor Manual
Page 67 of 288
MCNP Visual Editor Manual
Page 68 of 288
MCNP Visual Editor Manual
Page 69 of 288
MCNP Visual Editor Manual
8.14.1 Planes
Page 70 of 288
MCNP Visual Editor Manual
Page 71 of 288
MCNP Visual Editor Manual
8.14.2 Spheres
sphere at the origin (so)
This surface requires the following parameters:
R = radial distance from the origin
Equation:
x2 + y 2 + z 2 − R2 = 0
Example:
R=50
Resultant input line.
1 so 50
Page 72 of 288
MCNP Visual Editor Manual
Example:
y=75
R=50
Resultant input line.
1 sy 75 50
Example:
z=75
R=50
Resultant input line.
1 sz 75 50
Page 73 of 288
MCNP Visual Editor Manual
general sphere
This surface requires the following parameters:
R = radial distance from the center.
x, y, z = center of the sphere.
Equation:
(x − x')2 + ( y − y')2 + (z − z ')2 − R 2 = 0
Example:
(x, y, z) = (75, 65, 85)
R=50
Resultant input line.
1 s 75 65 85 50
8.14.3 Cylinders
parallel to the x axis
This surface requires the following parameters:
R = radius of cylinder.
y, z = non-axis coordinates.
Equation:
( y − y')2 + (z − z ')2 − R 2 = 0
Example:
(y, z) = (65, 85)
R=50
Resultant input line.
1 c/x 65 85 50
Page 74 of 288
MCNP Visual Editor Manual
on the x axis
This surface requires the following parameters:
R = radius of cylinder.
Equation:
y 2 + z 2 − R2 = 0
Example:
R=50
Resultant input line.
1 cx 50
on the y axis
This surface requires the following parameters:
R = radius of cylinder.
Equation:
x2 + z 2 − R2 = 0
Example:
R=50
Resultant input line.
1 cy 50
Page 75 of 288
MCNP Visual Editor Manual
on the z axis
This surface requires the following parameters:
R = radius of cylinder.
Equation:
x2 + y 2 − R2 = 0
Example:
R=50
Resultant input line.
1 cz 50
8.14.4 Cones
parallel to the x axis
This surface requires the following parameters:
x, y, z = coordinates for the apex of the cone.
t2= tangent squared of the cone half angle (surface
panel)
θ= cone half angle (instead of t2 for surface wizard only)
cone type: 0=two sheet cone, 1 or -1= 1 sheet cone
Equation:
( y − y ')2 + (z − z ')2 − t (x − x') = 0
Example: (Using the Wizard)
x=10, y=20, z=30, θ=15, type=0
Resultant input line.
1 k/x 10 20 30 0.071796769720193 0
Page 76 of 288
MCNP Visual Editor Manual
on the x axis
This surface requires the following parameters:
x = displacement distance along the x axis for cone apex.
t2= tangent squared of the cone half angle (surface panel)
θ= cone half angle (instead of t2 for surface wizard only)
cone type: 0=two sheet cone, 1 or -1= 1 sheet cone
Equation:
( y )2 + (z )2 − t (x − x') = 0
Example: (Using the Wizard)
x=10, θ=15, type=1
Resultant input line.
1 kx 10 0.071796769720193 1
on the y axis
This surface requires the following parameters:
y = displacement distance along the y axis for cone apex.
t2= tangent squared of the cone half angle (surface panel)
θ= cone half angle (instead of t2 for surface wizard only)
cone type: 0=two sheet cone, 1 or -1= 1 sheet cone
Equation:
(x )2 + (z )2 − t ( y − y ') = 0
Example: (Using the Wizard)
y=10, θ=15, type=1
Resultant input line.
1 ky 10 0.071796769720193 1
Page 77 of 288
MCNP Visual Editor Manual
on the z axis
This surface requires the following parameters:
z = displacement distance along the z axis for cone apex.
t2= tangent squared of the cone half angle (surface panel)
θ= cone half angle (instead of t2 for surface wizard only)
cone type: 0=two sheet cone, 1 or -1= 1 sheet cone
Equation:
(x )2 + ( y )2 − t (z − z ') = 0
Example: (Using the Wizard)
z=10, θ=15, type=1
Resultant input line.
1 kz 10 0.071796769720193 1
8.14.5 SQ Surfaces
non-rotated ellipsoid – Surface Wizard Only
This surface requires the following parameters:
x, y, z = coordinates for center.
x radius, y radius, z radius
Equation:
Parameters calculated by the wizard
Notes:
Special form available in the Quadratic Wizard. This is
an ellipsoid with axes along the x, y, and z axes, given a
center point and three radii.
Example: (Using the Wizard)
(x, y, z) = (10, 20, 30)
x radius = 50, y radius = 60, z radius = 70
Resultant input line.
1 sq 0.0004 0.00027777777777778
0.00020408163265306 0 0 0 -1 10 20 30
Page 78 of 288
MCNP Visual Editor Manual
Other SQ
This surface requires the following parameters:
A, B, C, D, E, F, G = see equation
x, y, z = center point for the object
Equation:
A(x − x') + B( y − y ' ) 2 + C ( z − z ' ) 2 + 2 D( x − x' )
2
+ 2 E ( y − y ') + 2 F ( z − z ') + G = 0
2 2
Example:
A=0.0004, B=0.002778, C=0.000204, D=0, E=0
F=0, G=-1, x’=10, y’=20, z’=30
Resultant input line.
1 sq 0.0004 0.00027777777777778
0.00020408163265306 0 0 0 -1 10 20 30
8.14.6 GQ Surfaces
GQ Rotated Ellipsoid – Surface Wizard Only
This surface requires the following parameters:
u1, v1, w1 = a vector along the first axis of the ellipsoid
u2, v2, w2 = a vector along the second axis of the ellipsoid
x, y, z = the center of the ellipsoid.
r1, r2, r3 = the radii of the first, second, and third axes.
The radius may be infinity for an elliptical cylinder, in which case,
enter -1 for the radius and the center is not used.
Equation:
The wizard calculates the General GQ parameters as follows:
A' ' = 1 2 B' ' = 1 2 C ' ' = 1 2
r1 r2 r3
2 2 2 2 2 2
A' = A' ' u1 + B ' ' u2 + C ' ' u3 B ' = A' ' v1 + B ' ' v2 + C ' ' v3
D ' = 2( A' ' u1v1 + B' ' u2v2 + C ' ' u3v3 )
2 2 2
C ' = A' ' w1 + B' ' w2 + C ' ' w3
E ' = 2( A' ' v1w1 + B' ' v2 w2 + C ' ' v3 w3 ) F ' = 2( A' ' u1w1 + B' ' u2 w2 + C ' ' u3 w3 )
The GQ surface coefficients are:
A = A' B = B' C = C ' D = D' E = E ' F = F '
G = −2 xA'− D' y − F ' z H = −2 yB − D' x − E ' z
J = −2 zC '− E ' y − F ' x
K = −1 + A' x 2 + B' y 2 + C ' z 2 + D' xy + E ' yz + F ' xz
Example (Surface Wizard Only):
u1=0.57735, v1 = 0.57735, w1 = 0.57735
u2 = 0.7071, v2 = -0.7071, w2 = 0
x, y, z = 50, 70, 90
r1=60, r2=30, r3=30
Resultant input line.
1 gq 0.00083331883973211 0.00083331883973211
Page 79 of 288
MCNP Visual Editor Manual
Other GQ
This surface requires the following parameters:
A, B, C, D, E, F, G, H, J, K = see equation
Equation:
Ax 2 + By 2 + Cz 2 + Dxy + Eyz + Fzx + Gz + Hy + Jz + K = 0
Example:
A=0.7499, B=1, C=0.25, D=0, E=0
F=-0.86603, G=-30, H=-40, J=17.32, K=200
Resultant input line.
1 gq 0.7499 1 0.25 0 0 -0.86603 -30 -40 17.32 -
200.00007495906
Page 80 of 288
MCNP Visual Editor Manual
8.14.7 Torus
elliptical or circular torus parallel to the x axis
This surface requires the following parameters:
x, y, z = coordinates for the center of the torus.
A=The radius of the major axis which is
distance from the (x, y, z) to the center of the
“donut” portion of the torus
B=The minor axis radius parallel to the center
axis of the torus, from the outer circumference of
the torus (top) to the center of the donut.
C=The minor axis radius in the direction of the
radius of the major axis.
Equation:
2
(x − x') + ( y − y ') + (z − z ') − A − 1 = 0
2 2
2
B2 C2
Example:
(x, y, z)=(50,0,0)
A=40, B=20, C=10
Resultant input line.
3 tx 50 0 0 40 20 10
B2 C2
Example:
(x, y, z)=(50,0,0)
A=40, B=20, C=10
Resultant input line.
3 ty 50 0 0 40 20 10
Page 81 of 288
MCNP Visual Editor Manual
B2 C2
Example:
(x, y, z)=(50,0,0)
A=40, B=20, C=10
Resultant input line.
3 tz 50 0 0 40 20 10
8.14.8 Points
asymmetric surface defined by points about the x axis
This surface requires the following parameters:
one to three coordinate pairs of x1 and r1 where
2 2
r1 = y1 + z1
For three points, the user would define x1, r1, x2, r2, x3, r3
Notes:
• If one coordinate pair is used, a plane (PX, PYx, or
PZ) is defined.
• If two coordinate pairs are used, a linear surface
(PX, PY, PZ, CX, CY, CZ, KX, KY, or KZ) is
defined.
• If three coordinate pairs are used, a quadratic
surface (PX, PY, PZ, SO, SX, SY, SZ, CX, CY,
CZ, KX, KY, KZ, or SQ) is defined.
• When a cone is specified by two points, a cone of
only one sheet is generated.
Example:
Create three surfaces to create the figure shown.
1st surface: x1 = 8, r1=2, x2=7, r2=1
2nd surface: x1=7, r1=3, x2=8, r2=3, x3=9, r3=2
3rd surface: x1=7, r1=1, x2=8, r2=1, x3=9, r3=2
Resultant input lines.
1 x 8 2 7 1
2 x 7 3 8 3 9 2
3 x 7 1 8 1 9 2
Page 82 of 288
MCNP Visual Editor Manual
8.14.9 Macrobodies
ARB - arbitrary polyhedron
This surface requires the following parameters:
(ax, ay, az) to (hx, hy, hz) are eight triplets of (x,y,z)
entries to describe each corner, although some may not be
used (just use zero triplets of entries).
Page 83 of 288
MCNP Visual Editor Manual
Page 84 of 288
MCNP Visual Editor Manual
Page 85 of 288
MCNP Visual Editor Manual
Page 86 of 288
MCNP Visual Editor Manual
Page 87 of 288
MCNP Visual Editor Manual
Notes:
The sense is defined to be negative inside the RPP.
Example:
To create a figure similar to the one shown at the left:
Xmin, Xmax = -50, 50
Ymin, Ymax = -50, 50
Zmin, Zmax = -50, 50
This is a cube centered at the origin with 100 cm sides.
Resultant input lines.
1 rpp -50 50 -50 50 -50 50
SPH – sphere
This surface requires the following parameters:
Vx, Vy, Vz, = coordinates for the center of the sphere.
R = radius of the sphere
Notes:
This macrobody is equivalent to the general sphere and
it is recommended that the general sphere be used
instead.
The sense is defined to be negative inside the SPH.
Example:
To create a figure similar to the one shown at the left:
Vx, Vy, Vz = 20, 20, 20
R = 40
This is a sphere centered at (20, 20, 20) with a radius of 40.
Resultant input lines.
1 sph 20 20 20 40
Page 88 of 288
MCNP Visual Editor Manual
Page 89 of 288
MCNP Visual Editor Manual
WED – wedge
This surface requires the following parameters:
Vx, Vy, Vz, = coordinates for the vertex of an edge.
V1x, V1y, V1z = the vector of the first side of the
triangular wedge.
V2x, V2y, V2z = the vector of the second side of the
triangular wedge.
V3x, V3y, V3z = the vector of the third side of the
triangular wedge.
Notes:
A right-angle wedge has a right triangle for the base
defined by V1 and V2 and a height of V3, all
orthogonal to each other. The V1 and V2 are the
lengths of the two sides of the base.
The sense is defined to be negative inside the wedge.
Example:
To create a figure similar to the one shown at the left:
Vx, Vy, Vz = 0, 0, -6
V1x, V1y, V1z = 4, 0, 0
V1x, V1y, V1z = 0, 3, 0
V1x, V1y, V1z = 0, 0, 12
This is a right-angle wedge with vertex at (0,0,-6). The
triangular base and top are a right triangle with sides of
length 4 (x-direction) and 3 (y-direction) and a hypotenuse
of length 5.
Resultant input lines.
1 wed 0 0 -6 4 0 0 0 3 0 0 0 12
Page 90 of 288
MCNP Visual Editor Manual
Page 91 of 288
MCNP Visual Editor Manual
9.1.8 Register
Register the cell to create it, where the cell message box will give the message "CELL
REGISTERED". The plots will also be updated to show the new cell, where dashed lines will be
replaced with solid lines along the portions of surfaces where valid cells are defined on each side
of the surface.
If you do not want to use the mouse operations described above to create the cell, you can enter
the cell description in by hand and then select Register to create the cell.
Page 92 of 288
MCNP Visual Editor Manual
Page 93 of 288
MCNP Visual Editor Manual
1 px -80
2 px -40
3 py 80
4 py 40
5 px 80
6 py -80
7 pz 40
8 pz -40
mode N
m252 82206.60c -0.242902 $lead
82207.60c -0.223827 82208.60c -0.53327
Page 94 of 288
MCNP Visual Editor Manual
Page 95 of 288
MCNP Visual Editor Manual
Page 96 of 288
MCNP Visual Editor Manual
Page 97 of 288
MCNP Visual Editor Manual
Page 98 of 288
MCNP Visual Editor Manual
Page 99 of 288
MCNP Visual Editor Manual
2. Create the universe cells contained inside the fill cell. Remember that you do not include
the outer bounding surfaces that are included on the fill cell created in step 1 above. In
the cell window set the universe value equal to the fill value set in step 1 above for each
cell, then register the cells.
3. If a transformation is involved, return to the cell created in step 1 and modify it by using
the cell scan-edit option. To scan the fill cell, you will need to enter the cell number by
hand, since the fill cell will not show up in the plot windows. When the mode is set to
edit set the transformation, by selecting the transformation button to select a
transformation, or just enter the correct transformation number by hand in the cell
window. The plots for this universe will shift to the appropriate transformed location.
You must create all the transformations prior to using them in the cells.
If you have a universe inside of a universe, it is recommended that you create these from the
inside out. This will require a little backtracking as you set transformations and universe
numbers, but it should be the easiest method. Create the inside fill cell first, then the inside cells
that have the universe value set to this fill value. At this point you can go back and transform the
fill cell if needed. Next create the outside fill cell and all the cells that compose the universe
inside this fill cell. You will need to edit the inside universe fill cell at this time and set the
universe value to the fill value of the outside universe. Finally, you can now transform the
outside universe if needed.
9.6 Register
Register is the final step in the cell making process. Once the cell is registered it is officially
incorporated into the geometry. All of the active plot windows with the Refresh button selected
will be updated to show the newly created cell. After creating a number of cells, it is prudent to
save the file using File…Save or backup the file by selecting the Backup menu option.
surfaces 2 and 3.
6. Slab, where a large parallelepiped region is divided with n-1 surfaces in the x, y, or z
direction as specified by the user.
Once the split is registered the cell splitting window disappears, and the multiple cells that fill
the original region appear in the geometry plots. The editor automatically creates the n new cells
and all the surfaces that are needed.
Figure 9-14 Select the Option to Continue to Create the Second Region
Figure 9-18 Select the Option to Continue to Create the Third Region
All elements of a lattice must be filled with a universe. The fill= part of the lattice definition
may be a single number or an array. If it is a single number, all elements of the lattice are filled
with the same universe. If it is an array, the numbers indicate the number of lattice elements to
either side of the (0,0,0) element. In the case of the rectangular lattice, there are five elements.
Two are to the left of the center element (negative x) and two are to the right. Similarly, there
are two below (negative y) and two above (positive y). There are three levels along the z axis
with one below and one above the defined (0,0,0), center, element. The resulting statement is
fill= -2:2 -2:2 -1:1
The array must then be filled with the number of the universe that fills it. For the example
above, the right-most row is filled with universe 3 and the rest is universe 5. The center element,
(0,0,0), which is defined in the lattice definition, is filled with universe 6.
5 5 5 5 3 $ROW 1 (-2,-2,-1) (-1,-2,-1) (0,-2,-1) (1,-2,-1) (2,-2,-1) $ROW 1
5 5 5 5 3 $ROW 2 (-2,-1,-1) (-1,-1,-1) (0,-1,-1) (1,-1,-1) (2,-1,-1) $ROW 2
5 5 5 5 3 $ROW 3 (-2,0,-1) (-1,0,-1) (0,0,-1) (1,0,-1) (2,0,-1) $ROW 3
5 5 5 5 3 $ROW 4 (-2,1,-1) (-1,1,-1) (0,1,-1) (1,1,-1) (2,1,-1) $ROW 4
5 5 5 5 3 $ROW 5 (-2,2,-1) (-1,2,-1) (0,2,-1) (1,2,-1) (2,2,-1) $ROW 5
5 5 5 5 3 $ROW 1 (-2,-2,0) (-1,-2,0) (0,-2,0) (1,-2,0) (2,-2,0) $ROW 1
5 5 5 5 3 $ROW 2 (-2,-1,0) (-1,-1,0) (0,-1,0) (1,-1,0) (2,-1,0) $ROW 2
5 5 6 5 3 $ROW 3 (-2,0,0) (-1,0,0) (0,0,0) (1,0,0) (2,0,0) $ROW 3
5 5 5 5 3 $ROW 4 (-2,1,0) (-1,1,0) (0,1,0) (1,1,0) (2,1,0) $ROW 4
5 5 5 5 3 $ROW 5 (-2,2,0) (-1,2,0) (0,2,0) (1,2,0) (2,2,0) $ROW 5
5 5 5 5 3 $ROW 1 (-2,-2,1) (-1,-2,1) (0,-2,1) (1,-2,1) (2,-2,1) $ROW 1
5 5 5 5 3 $ROW 2 (-2,-1,1) (-1,-1,1) (0,-1,1) (1,-1,1) (2,-1,1) $ROW 2
5 5 5 5 3 $ROW 3 (-2,0,1) (-1,0,1) (0,0,1) (1,0,1) (2,0,1) $ROW 3
5 5 5 5 3 $ROW 4 (-2,1,1) (-1,1,1) (0,1,1) (1,1,1) (2,1,1) $ROW 4
5 5 5 5 3 $ROW 5 (-2,2,1) (-1,2,1) (0,2,1) (1,2,1) (2,2,1) $ROW 5
the lattice. If there are lattice elements that are not filled, a run-time error will occur when
MCNP is run. A grid of elements will appear below once these numbers are entered.
Setting the Fill Matrix: see Section 10.1.1.
Select Universe: selects all elements that have the same universe value as indicated in the box
next to the button. This is especially useful for doing a find and replace operation such as
selecting all elements that are filled with universe 0 and changing them to universe 5.
Select Rows: selects all elements in radial rows around the (0,0,0) element as shown in Figure
10-7 Select Row 1.
Select I: select a column. For the 5x5 lattice shown in Figure 10-8, row 0 is the center and rows
1 and 2 are to the right. Rows -1 and -2 are to the left.
Select J: select a horizontal row. For the 5x5 lattice shown in Figure 10-9, row 0 is the center
and rows 1 and 2 are below. Rows -1 and -2 are above.
Type 0 in the y location box. This will set the center of the center element at the origin.
Choose Next from the menu at the top of the Rectangular Lattice Panel.
1 so 80
2 px 15
3 px -15
4 py 15
5 py -15
6 cz 13
Figure 10-19 Creating Surfaces for the Cell that Holds the Lattice.
Start the Visual Editor.
Change the extents to 155.
Create the Cube that will Hold the Lattice.
On the Main Menu, Click on Surface.
On the Surface Panel, click on Surface…px.
In the D (distance) box, type 124.99. By choosing 124.99 rather than 125 we guarantee that the
lattice boundary will not exactly match the surfaces of the cell that holds it.
Click Register.
Similarly, enter the following surfaces:
A px surface at -124.99.
A py surface at 124.99.
A py surface at -124.99
A pz surface at 149.99
A pz surface at -149.99.
Close the Surface Panel.
On the First Panel of the Lattice Wizard, Choose 3D Lattice with rows in the X direction and
columns in the Y direction with an axial Z direction.
For the center of the (0,0,0) Lattice element, enter 0 for the X location and 0 for the Y location
and 0 for the Z location. This places the center of the center element at the origin.
On the Rectangular Cell Lattice Panel, click Next.
for that index to be from minimum to maximum along that dimension in the lattice. The first
index (first pair of surfaces with default being x) is the most rapidly varying in the fill matrix,
etc.
Add the Materials
The cell 3 card with its fill matrix and the six surface cards that were created should appear in the
Input window listing of the input file after “register”. You can also see the lattice displayed in
the (x,z) and (x,y) plots. The input file as is shown below.
c Created on: Wednesday, September 27, 2006 at 12:33
1 0 -5 2 -1 6 -3 4 fill=9
2 0 5 :-2 :1 :-6 :3 :-4
3 0 -7 8 -9 10 -11 12 u=9 lat=1 $ROW 1
fill=-2:2 -2:2 -1:1
5 5 5 5 3 $ROW 1
5 5 5 5 3 $ROW 2
5 5 5 5 3 $ROW 3
5 5 5 5 3 $ROW 4
5 5 5 5 3 $ROW 5
5 5 5 5 3 $ROW 1
5 5 5 5 3 $ROW 2
5 5 5 5 3 $ROW 3
5 5 5 5 3 $ROW 4
5 5 5 5 3 $ROW 5
5 5 5 5 3 $ROW 1
5 5 5 5 3 $ROW 2
5 5 5 5 3 $ROW 3
5 5 5 5 3 $ROW 4
5 5 5 5 3 $ROW 5
4 212 -1.85 -13 u=3
5 0 13 u=3
6 208 -2.699 -14 u=5
7 0 14 u=5
1 px 124.99
2 px -124.99
3 py 124.99
4 py -124.99
5 pz 149.99
6 pz -149.99
7 px 25
8 px -25
9 py 25
10 py -25
11 pz 50
12 pz -50
13 so 10
14 so 20
mode N
m212 4009.60c -1 $beryllium metal
m208 13027.60c -1 $aluminum
To make this a file that can be run in MCNP, add the following lines after the “mode” line:
imp:n 1 0 1 1 1 1 1 1
print
sdef x=15. y=0 z=0
• The dimensions of the lattice are 4x4x3 rather than 5x5x3. Because of this, the fill
indices are now -1:2 rather than -2:2 in the x direction. The same is true in the y
direction.
• The dimensions of the bounding box are changed from approximately 250x250x300 to
approximately 200x200x300. This change was made so that a four element array would
fill the box without adjusting the pitch.
• The spheres of beryllium and aluminum kept the same radius and center but are
represented as an s surface with four parameters rather than a so surface. This was done
to simplify moving the center point off the origin in the discussion to follow.
The input file for this example is as shown below:
c Created on: Tuesday, October 03, 2006 at 09:31
1 0 -5 2 -1 6 -3 4 fill=9
2 0 5 :-2 :1 :-6 :3 :-4
3 0 -7 8 -9 10 -11 12 u=9 lat=1 $ROW 1
fill=-1:2 -1:2 -1:1
5 5 5 3 $ROW 1
5 5 5 3 $ROW 2
5 5 5 3 $ROW 3
5 5 5 3 $ROW 4
5 5 5 3 $ROW 1
5 5 5 3 $ROW 2
5 5 5 3 $ROW 3
5 5 5 3 $ROW 4
5 5 5 3 $ROW 1
5 5 5 3 $ROW 2
5 5 5 3 $ROW 3
5 5 5 3 $ROW 4
4 212 -1.85 -13 u=3
5 0 13 u=3
6 208 -2.699 -14 u=5
7 0 14 u=5
1 px 99.9
2 px -99.9
3 py 99.9
4 py -99.9
5 pz 149.9
6 pz -149.9
7 px 25
8 px -25
9 py 25
10 py -25
11 pz 50
12 pz -50
13 s 0 0 0 10
14 s 0 0 0 20
mode N
m212 4009.60c -1 $beryllium metal
m208 13027.60c -1 $aluminum
imp:N 1 0 1 4r $ 1, 7
print
sdef x=15 y=0 z=0
nps 1000
For this lattice with an even number of elements, the center of the (0,0,0) element must be moved
to the upper right corner (in x and y). To move the center of the (0,0,0) element after the lattice
has already been created, the surfaces defining the lattice must be moved by half the width of the
lattice element. In this case, because the pitch is 50, surfaces 7 through 10 must have 25
subtracted from them. Surfaces 11 and 12 do not need to be modified because the lattice is only
being moved in x and y.
In the Input window, make the following changes.
Change surface 7 to: px 0
Change surface 8 to: px -50
Change surface 9 to: py 0
Change surface 10 to: py -50
On the Input Window, Click Save…Update.
A hexagonal lattice is created by selecting Hexagonal Lattice from the Cell Panel. Figure 10-35
shows the cell panel with the hexagonal lattice option selected.
universe number of the lattice. In the example in Section 10.4.1, the lattice will be
universe 1. The number 1 is entered in the Fill box.
3. Create the lattice cell. Choose the lattice type and enter the pitch, number of rows and
columns. The example in Section 10.4.1, explains this in detail.
4. To place something inside the lattice cells, specify which universe will go inside the
lattice elements. In the example in Section 10.4.1, they are all filled with universe 2
which is defined later to be a cylinder.
5. Create the universe that will go inside the lattice elements. In the example in Section
10.4.1, this involves creating a cylindrical surface and then creating cells that are the
outside and the inside of the cylinder. This basically specifies a cylinder and an outside
world. The outside world is truncated at the boundary of the lattice elements (the lattice
walls cut it off).
There is an optional calculation of the pitch of the hexagonal lattice under “Calculators” on the
second lattice window assuming fuel rods in water and a specified water to fuel area ratio. There
is also an optional calculation of the number of rows required in the hexagonal lattice for a
specified cylinder boundary.
On the Cell Panel, in the Universe box, type 2. This will add this cells definition to universe 2.
On the Cell Panel, Click on Cut. (Note that this is Cut and not Paste) This essentially creates an
outside world for universe 2. The cell will be cut off at the boundaries of the lattice.
On the Cell Panel, Click on Register.
Figure 10-46 Creating Surfaces for the Cell that Holds the Lattice.
Start the Visual Editor.
Change the extents to 160.
Create the Cylinder that will Hold the Lattice.
On the Main Menu, Click on Surface.
On the Surface Panel, click on Surface…cz.
In the R (radius) box, type 140.
Click Register.
Similarly, enter the following surfaces:
A pz surface at -149.99.
A pz surface at 149.99.
By choosing 149.99 rather than 150 we guarantee that the lattice boundary will not exactly match
the surfaces of the cell that holds it.
Close the Surface Panel.
Click on Register.
The Visual Editor will create the eight surfaces for the lattice of the cell in this example using the
previously specified center and (+ or -) half the value of each of the three pitches. Also, after
entering the row information, the fill matrix will appear at the bottom of the window initially
containing all zeros with the appropriate number of elements in each direction. The “Fill
Indices” values also are created giving the minimum and maximum indices in each direction of
the lattice. The order in this MCNP fill matrix is with the first dimension varying most rapidly
(first index across the window, which is “x” in the example), the second dimension varying next
rapidly (second index going down the window, which is “y” in the example) and the axial
dimension varying least rapidly (third index, which is “z” in the example). For this example, the
first group of 49 elements at the top is for the minimum z dimension from z=-150 to z=-50, the
second group of 49 elements is the middle z [-50 to 50] and the bottom group of 49 elements is
for the maximum z dimension from z=50 to 150; i.e., the MCNP input of the fill matrix (and the
Visual Editor fill matrix shown on the window) begins at the top with the minimum z, etc. The
plot of the lattice will be inverted axially compared to the input file. The input file lists the axial
lattice elements from bottom to top. The visual editor also lists axial lattice elements from
bottom to top.
Initially these three sets of 49 lattice elements in the fill matrix are displayed as “0’s. Universe
values can be set in the lattice by selecting different parameters using the various “Select…”
options and then setting the universe value using the “Change Universe Value Here” text box.
The cell 3 card with its fill matrix and the eight surface cards that were created should appear in
the Input window listing of the input file after “register”. You can also see the lattice displayed
in the (x,z) and (x,y) plots. The input file as is shown below.
-c Created on: Thursday, October 05, 2006 at 12:13
1 0 -2 -1 3 fill=9
2 0 2 :1 :-3
3 0 -4 5 -6 7 -8 9 -10 11 u=9 lat=2 $ROW 1
fill=-3:3 -3:3 -1:1
5 5 5 5 5 5 5 $ROW 1
5 5 5 3 3 3 5 $ROW 2
5 5 3 3 3 3 5 $ROW 3
5 3 3 3 3 3 5 $ROW 4
5 3 3 3 3 5 5 $ROW 5
5 3 3 3 5 5 5 $ROW 6
5 5 5 5 5 5 5 $ROW 7
5 5 5 5 5 5 5 $ROW 1
5 5 5 3 3 3 5 $ROW 2
5 5 3 3 3 3 5 $ROW 3
5 3 3 3 3 3 5 $ROW 4
5 3 3 3 3 5 5 $ROW 5
5 3 3 3 5 5 5 $ROW 6
5 5 5 5 5 5 5 $ROW 7
5 5 5 5 5 5 5 $ROW 1
5 5 5 3 3 3 5 $ROW 2
5 5 3 3 3 3 5 $ROW 3
5 3 3 3 3 3 5 $ROW 4
5 3 3 3 3 5 5 $ROW 5
5 3 3 3 5 5 5 $ROW 6
5 5 5 5 5 5 5 $ROW 7
4 212 -1.85 -12 u=3
5 0 12 u=3
6 208 -2.699 -13 u=5
7 0 13 u=5
1 cz 140
2 pz 149.99
3 pz -149.99
4 px 25
5 px -25
6 p 0.5 0.86602540378444 0 25
7 p 0.5 0.86602540378444 0 -25
8 p -0.5 0.86602540378444 0 25
9 p -0.5 0.86602540378444 0 -25
10 pz 50
11 pz -50
12 so 10
13 so 20
mode N
m208 13027.60c -1 $aluminum
m212 4009.60c -1 $beryllium metal
imp:N 1 0 1 4r $ 1, 7
print
sdef x=50 y=0 z=0
nps 1000
To make this a file that can be run in MCNP, add the following lines after the “mode” line:
imp:n 1 0 1 1 1 1 1 1
print
sdef x=50. y=0 z=0
symmetric about the origin. This is often desired when the center of the lattice is the origin of
the local universe being filled with this lattice. The spheres of surfaces 11 and 12 were centered
about the origin because of this choice.
• The radius of the bounding cylinder was changed from 140 to 170. This was necessary to
accommodate the larger lattice.
• The spheres of beryllium and aluminum kept the same radius and center but are
represented as an sx surface with two parameters rather than a so surface. This was done
to simplify moving the center point off the origin in the discussion to follow.
The input file for this example is as shown below:
c Created on: Thursday, October 05, 2006 at 12:13
1 0 -2 -1 3 fill=9
2 0 2 :1 :-3
3 0 -4 5 -6 7 -8 9 -10 11 u=9 lat=2 $ROW 1
fill=-4:4 -4:4 -1:1
5 5 5 5 5 5 5 5 5 $ROW 1
5 5 5 5 5 3 3 3 5 $ROW 2
5 5 5 5 3 3 3 3 5 $ROW 3
5 5 5 3 3 3 3 3 5 $ROW 4
5 5 3 3 3 3 3 3 5 $ROW 5
5 5 3 3 3 3 3 5 5 $ROW 6
5 5 3 3 3 3 5 5 5 $ROW 7
5 5 3 3 3 5 5 5 5 $ROW 8
5 5 5 5 5 5 5 5 5 $ROW 9
5 5 5 5 5 5 5 5 5 $ROW 1
5 5 5 5 5 3 3 3 5 $ROW 2
5 5 5 5 3 3 3 3 5 $ROW 3
5 5 5 3 3 3 3 3 5 $ROW 4
5 5 3 3 3 3 3 3 5 $ROW 5
5 5 3 3 3 3 3 5 5 $ROW 6
5 5 3 3 3 3 5 5 5 $ROW 7
5 5 3 3 3 5 5 5 5 $ROW 8
5 5 5 5 5 5 5 5 5 $ROW 9
5 5 5 5 5 5 5 5 5 $ROW 1
5 5 5 5 5 3 3 3 5 $ROW 2
5 5 5 5 3 3 3 3 5 $ROW 3
5 5 5 3 3 3 3 3 5 $ROW 4
5 5 3 3 3 3 3 3 5 $ROW 5
5 5 3 3 3 3 3 5 5 $ROW 6
5 5 3 3 3 3 5 5 5 $ROW 7
5 5 3 3 3 5 5 5 5 $ROW 8
5 5 5 5 5 5 5 5 5 $ROW 9
4 212 -1.85 -12 u=3
5 0 12 u=3
6 208 -2.699 -13 u=5
7 0 13 u=5
1 cz 170
2 pz 149.99
3 pz -149.99
4 px 25
5 px -25
6 p 0.5 0.86602540378444 0 25
7 p 0.5 0.86602540378444 0 -25
8 p -0.5 0.86602540378444 0 25
9 p -0.5 0.86602540378444 0 -25
10 pz 50
11 pz -50
12 sx 0 10
13 sx 0 20
mode N
m208 13027.60c -1 $aluminum
To center the lattice, the center point of the (0,0,0) element must be moved so it is on the right
edge of the current lattice. This involves translating the lattice center point by translating the six
lattice surfaces and the center points of the spheres inside it by half the pitch of the lattice
element. In this example, the pitch is 50 so the lattice must slide 25 centimeters to the left so that
the lattice center is now on surface 4.
Slide surface 4 to the left by 25 centimeters so that it now goes through the center of the lattice.
Change surface 4 such that it is: px 0
Similarly, surface 5 must slide to the left by 25 centimeters. It is now 50 centimeters from the
center of the lattice rather than 25.
Change surface 5 such that it is: px-50
Translating the general planes to the left is more complicated. The format of the general plane
card is:
p A B C D
A, B, and C are the components of a (normalized) normal vector to the plane. These vectors are
shown in Figure 10-62 as dark arrows. The A, B, C, and D parameters for each surface are
shown next to the surface in Figure 10-62. Because the plane is only sliding to the left and there
is no change in rotation, A, B, and C stay the same.
D is the perpendicular distance from the plane to the origin (lattice center). Sliding the (0,0,0)
element will change this parameter. Surfaces 4, 6, and 9 will be closer to the origin. Surfaces 5,
7, and 8 will be farther from the origin.
Currently, the card for surface 6 is: p 0.5 0.8660 0 25
In this card, D=25.
To translate this surface to the left by 25 centimeters, we take the dot product of the translation
vector and the normal. This is added to the original value for D.
The translation vector is (-25, 0, 0) which is a vector pointing left with a magnitude of 25
centimeters.
The vector for the normal of surface 6 is given by the A, B, and C parameters or (0.5, 0.866, 0).
A • B = (0.5,0.866,0 ) • (− 25,0,0 ) = −12.5
To calculate the new D value, add this to the current D value.
Dnew=Dold + A•B = 25 -12.5 = 12.5
Change surface 6 such that it is: p 0.5 0.86602540378444 0 12.5
For surface 7,
A • B = (0.5,0.866,0 ) • (− 25,0,0 ) = −12.5
To calculate the new D value, add this to the current D value.
Dnew=Dold + A•B = -25 -12.5 = -37.5
Change surface 7 such that it is: p 0.5 0.86602540378444 0 -37.5
For surface 8,
A • B = (− 0.5,0.866,0 ) • (− 25,0,0 ) = 12.5
To calculate the new D value, add this to the current D value.
Dnew=Dold + A•B = 25 +12.5 = 37.5
Change surface 8 such that it is: p -0.5 0.86602540378444 0 37.5
For surface 9,
A • B = (− 0.5,0.866,0 ) • (− 25,0,0 ) = 12.5
To calculate the new D value, add this to the current D value.
Dnew=Dold + A•B = -25 +12.5 = -12.5
Change surface 9 such that it is: p -0.5 0.86602540378444 0 -12.5
Surfaces 10 and 11 do not change because the lattice is not being moved in the axial (z)
direction.
Surface 12 defines one of the spheres in the lattice elements. It is shown as an sx surface. To
shift it to the left by 25 cm change the x intercept (the first parameter) to -25.
Change surface 12 to be: sx -25 10
Similarly, change surface 13 to be: sx -25 20
On the Input Window, Click Save…Update.
On the Main Menu, Click Update Plots.
11.0 Materials
Figure 11-1 shows a plot of the Materials window and the associated Material Library window
and Isotope Selection window. The Visual Editor has both standard and user libraries for either
neutrons or photons (see Sections 11.5 and 11.6). The standard libraries are made available to all
Visual Editor users. They consist of predefined material numbers, where each material number
has the associated pairs of a ZAID (identifying the MCNP cross section set to use) and the
associated mass or gram relative concentration. The user libraries are created and modified by
the individual user according to his specific needs. They have the same format as the standard
libraries, but the user defines the material numbers subject to the constraint that they must be
different than the material numbers used in the corresponding standard library. This allows users
to store their commonly used materials in a file that can be accessed by the Visual Editor. It is
possible to move materials from the input file to the user library and from either the standard or
user library to the current input file. The various material windows allow the user to select a
material from a (standard or user) library or to modify such a selected material or to conveniently
create his own material to be used in the input file as described in the following Sections.
this menu does not show up, then your MCNP DATAPATH Environment Variable or your
vised.defaults file is not valid. Click on an isotope, to bring up the available cross section sets
for the isotope. Choose the appropriate cross section set by clicking on it with the mouse. When
you do this, that cross section set ZAID (ID) will appear under Isotope in the Isotope Description
portion of the Materials window. Enter the mass fraction or atom fraction for that isotope in the
material being created in the adjacent Fraction box. Then select Add to add this isotope/fraction
pair to the material description, and they will appear in the material description box below the
Add.
Repeat this for the other isotopes in the material. Then select Register to create the material and
add it to the input file.
At any time during the new material creation you can change these isotope/fraction pairs, by
clicking on the pair to change. Notice that the Edit check box is set with this click, indicating
that you are in edit mode. Change either the isotope or fraction. To get out of edit mode and
create additional isotope/fraction pairs, you must unselect the Edit check box.
either the isotope or fraction or delete the isotope by pressing the Delete button. To get out of
edit mode and enable the create mode to add additional isotope/fraction pairs, un-check the Edit
check box.
Figure 11-3 Select “Files” to set the location of the material library and xsdir files
There are four types of material files that need to be specified in the File Locations window:
stndrd.n: Standard material file containing neutron cross section ZAIDs and relative densities
that is available for all users.
stndrd.p: Standard material file containing photon cross section ZAIDs and relative densities
that is available for all users.
usr.n: User specific material file containing neutron cross section ZAIDs and relative densities
for the individual user.
usr.p: User specific material file containing photon cross sections ZAIDs and relative densities
for the individual user.
Typically the stndrd.n and stndrd.p files are generated for a group of people to contain a set of
commonly used materials. It is a good idea to keep these files in a central location, perhaps in
the same directory where you store your MCNP executable. These files should be distributed
with the Visual Editor executable.
The usr.n and usr.p files are created the first time you move materials (using the Store button on
the Materials window) from your input file to the library. These files are updated with each
subsequent Store, and are retained after you are though with the current input file provided you
select Save on the Material Library window before leaving the Visual Editor.
After entering the full path names for these files (see Figure 11-3), select the Apply menu option
and a vised.defaults file will be created. The Visual Editor will read this file each time you start
it up. This file must be in the same directory as the Visual Editor executable so the Visual Editor
can find it.
12.0 Importances
You can set importances by choosing Data…Importances from the main menu. From this
Window, the importance for your problem can be set by selecting cells directly from the plot
window and then setting their importance values. Figure 12-1 shows a plot of the importance
window. The mode is first selected for the particle type for which the importance is being set
(“Photon” in the example of Figure 12-1).
Figure 12-2 Particle Track Plot of Three Lead Slabs with Importance of 1
When the importances are modified to a geometric progression, the particle track plot is as
displayed in Figure 12-3.
Figure 12-3 Particle Track Plot of Three Lead Slabs with Importances of 1, 8, and 64
12. Change the Display to Powers of 2 and note that the importances on cells 4 and 5 change
from 8 and 64 to 3 and 6.
13.0 Transformations
To create or modify transformations, select Data…Transformations from the main menu. The
transformation window provides spaces to enter the elements of the transformation. When the
correct coordinates have been entered, select Register to create the transformation and update
the FORTRAN memory. This process may be repeated as many times as necessary for
subsequent transformations. Figure 13-2 shows a view of the transformation window.
The Origin button indicates if the rotation is relative the main axis or the axis being transformed
to. The Units button indicates the units for the values in the rotation matrix, the default is
Degrees, but this can be changed to Cosine Theta in this box. For more information on the
Origin and Rotation Units options, refer to the MCNP manual.
Type 1 in the Transformation box on the Cell Panel for the transformation that was just created.
Alternately, the user could click on the Transformations button and select the desired
transformation from the list.
Click on Register.
Click on Update Plots.
The result should look like Figure 13-1.
Visual Editor just like it is needed for running a normal MCNP input file. As the problem is
running the number of particles run (NPS) and the amount of time used (CTIME) in the run so
far is constantly updated at the top of the window. While running the problem, you can select
the Stop button to gracefully stop the run.
Notice that you can also enter options (i, x, r, p) that will be used for the run. Some options will
not work such as the “z” option for plotting tallies. Instead you need to select the Tally Plots
option from the main menu to do tally plots.
If you select the option to overwrite existing files, the files that you specified will be removed
before the run starts to prevent the file names from incrementing.
The Visual Editor can also run input files from the command prompt, by typing a command line
similar to that for MCNP such as “vised inp=ipig outp=opig”. This also allows the Visual
Editor to be included in batch files. When the Visual Editor runs MCNP from the command
prompt, it brings up the Visual Editor, along with the Run window and runs the input file inside
the Run window. When the run is over, the Run window and the Visual Editor are closed.
Number of Particles to Plot: Specify the number of particles to plot. Initially, this defaults to
1000.
Distance from the Plot Plane(cm): Determines how far away from the plot plane points will be
plotted. Initally, this defaults to 100. Since the plot represents a 2-D plane through the
geometry, all points at the defined distance away form the plot plane will be projected onto the
plot. Because of this, it is possible to see source points on the plot plane for source geometries
that do not show up in the plot.
Regenerate when plot changes: If checked, the SDEF display will regenerate when the plot
changes. For example, if the user zooms in on a specific region, the SDEF plot will be rerun for
that area.
Display: Select the type of information to display. The available options are: source points,
surface crossings, tally contributions, and collision points or various combinations of these
options.
Color By: Select either Energy or Weight. For Energy, the particles will be plotted in red for
high energy and blue for low energy. For Weight, the particles will be plotted in red for high
weight particles and blue for low weight particles.
In the List box, specify the following for each particle.
Type: The type of particle.
Show Tracks: Show the track that the particle travels. An “X” indicates that the particle will be
shown. Click to add or remove an X.
Use: If checked, the minimum and maximum are used. Click to set the X or to remove it.
min: specify minimum energy or minimum weight to be plotted.
max: specify maximum energy or maximum weight to be plotted.
Point Size: specify the size of the point to plot. The default is to use the Pixel size, which is the
smallest size, but does not show up on the printer very well. There are five other increasing
larger point sizes that can be selected for displaying the points.
Tracks: An X indicates tracks will be shown. Click to set the X or to remove it.
Min Col: The color that corresponds to the minimum energy or weight to be plotted..
Max Col: The color that corresponds to the maximum energy or weight to be plotted..
Track Color (RGB): specify the color for the tracks. Enter values for Red, Green, and Blue
that are between 0 and 250. The defaults are: 250, 150, 150.
Track Thickness: Specify track thickness.
Add Border: Adds a black outline around the points plotted if this box is checked.
Outside the List Box, specify:
Only for NPS: Specify the particle numbers to show tracks for.
Show to 5 Max Energy tracks: Show only the tracks for the particles having the five highest
energy levels.
Show top 5 Max Weight Tracks: Show only the tracks for the particles having the five highest
weights.
Tally Contributions Only: Plot only those points that lead to a tally.
Tally Number: Plot only those points generated from the specified tallies.
Segment Number: Plot only those points attributed to the specified segments.
After doing a source plot, the number of particles successfully plotted will be displayed. This
can be used to provide useful information about the source or the source biasing.
the Visual Editor. Because of this, it is a good idea to make sure the input file does not have any
fatal errors in the source, so run it in MCNP first.
2. If it runs in MCNP and still crashes while plotting in the Visual Editor, look at the output
file (outp) and the “outmc” file to see if you can find any fatal errors.
3. KCODE cycle plotting and particle track plotting will fail if you are using a binary cross
section set that is not consistent with the compiler that was used to compile the Visual Editor. In
this case you will need to switch to an ascii cross section set or regenerate the binary cross
sections in a compatible manner.
4. Make sure a valid xsdir is in the same directory as the input file being read by the Visual
Editor. Since you are now running the code, the vised.defaults file will not be used to find the
xsdir file. The xsdir in the directory where the Visual Editor executable is stored is not used for
particle track plotting.
5. When doing KCODE cycle running using the Run option, you should not run the
problem beyond the last cycle specified in cycles, since you will not be generating any new
information.
6. Particle track plotting for tally contributions seems to work best if you only have the
tallies of interest in the problem you are running.
The Visual Editor does not currently have a method for entering the kcode information other
than typing it in the input window.
To add the kcode and ksrc lines, click Input.
The syntax for the kcode line has been copied from the MCNP manual and is given below:
Form: KCODE NSRCK RKK IKZ KCT MSRK KNRM MRKP KC8
NSRCK number of source histories per cycle
RKK initial guess for keff
IKZ number of cycles to be skipped before beginning tally accumulation
KCT number of cycles to be done
MSRK number of source points to allocate storage for
KNRM normalize tallies by 0=weight / 1=histories
MRKP maximum number of cycle values on MCTAL or RUNTPE
KC8 summary and tally information averaged over
0 all cycles
1 active cycles only
Defaults: NSRCK=1000; RKK=1.0; IKZ=30; KCT=IKZ+100; MSRK=4500 or
2*NSRCK; KNRM=0; MRKP=6500; KC8=1
Use: This card is required for criticality calculations.
The KCODE card specifies the MCNP criticality source that is used for determining
keff.12
The syntax for the ksrc line has been copied from the MCNP manual and is give below.
Form: KSRC x1 y1 z1 x2 y2 z2 ...
xi, yi, zi = location of initial source points
Default: None. If this card is absent, an SRCTP source file or SDEF card must be
supplied to provide initial source points for a criticality calculation.
Use: Optional card for use with criticality calculations.
This card contains up to NSRCK (x,y,z) triplets that are locations of initial source
points for a KCODE calculation. At least one point must be in a cell containing
fissile material and points must be away from cell boundaries. It is not necessary to
input all NSRCK coordinate points. MCNP will start approximately
(NSRCK/number of points) particles at each point. Usually one point in each fissile
region is adequate, because MCNP will quickly calculate and use the new fission
source distribution.12
As an example of the use of kcode and ksrc lines, refer to the input file used in the example in
Section 16.3.1 which is listed below:
c Created on: Tuesday, July 18, 2006 at 21:07
1 1 -1 -1
2 0 1
1 so 50
mode n
For the kcode line in the example, the IKZ(number of cycles skipped before beginning tally
accumulation) and KCT (number of cycles to be done) options were altered. All others were left
to the defaults. For the ksrc card, the location of the initial source point was placed at the origin
which is the center of the defined sphere of U235.
Distance from the Plot Plane(cm): Determines how far away from the plot plane points will be
plotted. Initally, this defaults to 100. After the initial run, this number will default to the number
used in the previous run. Since the plot represents a 2-D plane through the geometry, all points
at the defined distance away form the plot plane will be projected onto the plot. Because of this,
it is possible to see source points on the plot plane for source geometries that do not show up in
the plot.
Regenerate when plot changes: If checked, the KCODE display will regenerate when the plot
changes. For example, if the user zooms in on a specific region, the KCODE plot will be rerun
for that area.
Cycles: Specify the number of cycles for the problem to run. The cycle numbers must be
monotonically increasing separated by blanks or commas or a dash to represent a range of cycles.
(e.g. 1-5 to indicate cycles 1 through 5). The source points per cycle are written out as a set of
source files with names srcz”n”, where the “n” represents the cycle number.
Plot Mode: The KCODE particle plot can be made in two different modes, either Cumulative
or Animate. If the Cumulative option is selected, all of the source points generated for all of
the selected cycles are plotted, giving a cumulative source point density plot. If the Animate
option is selected, the source generation points for each cycle are plotted then erased to plot the
next set of points, producing an animation of the source generation points for the specified
cycles.
Color By: Select either Energy or Weight. For Energy, the particles will be plotted in red for
high energy and blue for low energy. For Weight, the particles will be plotted in red for high
weight particles and blue for low weight particles.
min: specify minimum energy or minimum weight to be plotted.
max: specify maximum energy or maximum weight to be plotted.
Point Size: specify the size of the point to plot. The default is to use the Pixel size, which is the
smallest size, but does not show up on the printer very well. There are five other increasing
larger point sizes that can be selected for displaying the points.
Add Border: Adds a black outline around the points plotted if this box is checked.
Steps for Creating a KCODE Plot
For a KCODE problem, the Visual Editor can be used to plot the source generation points for
each cycle, where cycle “1” is defined to be the source points for the initial ksrc defined in the
input. After the cycles have been specified, select the Run_To_Generate_Plot_Data option.
When Run_To_Generate_Plot_Data is selected, the Visual Editor will execute MCNP and
write out the cycles requested by the user. The input file will run to completion, but will only
write out the requested cycles. If the user specified cycles 1-5, the code will still run for 10
cycles when Run_To_Generate_Plot_Data is selected, even though only the first 5 cycles are
written to srcz”n” files. This does not run the MCNP on your system, but instead the MCNP that
comes as part of the Visual Editor package.
After doing a Run_To_Generate_Plot_Data, you can plot the source generation points by
selecting the Plot_Saved_Data KCODE option, which will read the srcz”n” files and display
the points on the plot.
Caution: It is up to the user to verify that the source points from the srcz”n” files correspond to
the geometry being plotted.
Mctal: Read the mctal file specified to get the tally data. The filename may be typed or selected
using the browse button. This corresponds to the MCNP option RMCTAL.
Write mctal file: Write the tally data in the current runtpe dump to a mctal file with the
specified name. This corresponds to the MCNP option WMCTAL.
Dump No.: Specify the dump number to be read from the runtpe file. If no number is specified,
the last dump is read.
Tally number to Plot: Specify which tally to plot as defined by the number of one of the Fn
cards in the input file. The default is the first (lowest numbered) neutron tally in the problem. If
there are no neutron tallies, then the default is the lowest numbered photon tally. Similarly, the
default is the lowest numbered electron tally if no neutron or photon tallies exist. This
corresponds to the MCNP TALLY command.
Perturbation Number: Plot the specified perturbation number associated with the tally. The
number entered corresponds to the number on a PERT card. This corresponds to the MCNP
PERT command.
Print IPTAL array: Display the IPTAL array for the current tally. This corresponds to the
MCNP IPTAL command.
Table 2 lists the types of tally cards supported by MCNP. The corresponding page in the MCNP
manual is also listed. Not all MCNP tally cards are currently supported by the Visual Editor.
pl ........N or P or N,P or E
Si ........problem number of surface or cell for tallying, or T.12
In the card definition above, n is the tally number. Valid tally numbers are listed in the table
below which was copied from the MCNP manual1.
Table 3 Valid Tally Numbers
Mnemonic Tally Description Fn units ∗Fn units
F1:N or F1:P or Current integrated over a surface particles MeV
F1:E
F2:N or F2:P or Flux averaged over a surface particles/cm2 MeV/cm2
F2:E
F4:N or F4:P or Flux averaged over a cell particles/cm2 MeV/cm2
F4:E
F5a:N or F5a:P Flux at a point or ring detector particles/cm2 MeV/cm2
FIP5:N or FIP5:P Array of point detectors for pinhole flux particles/cm2 MeV/cm2
image
FIR5:N or FIR5:P Array of point detectors for planar radiograph particles/cm2 MeV/cm2
flux image
FIC5:N or FIC5:P Array of point detectors for cylindrical particles/cm2 MeV/cm2
radiograph flux image
F6:N or F6:N,P or Energy deposition averaged over a cell MeV/g jerks/g
F6:P
F7:N Fission energy deposition averaged over a cell MeV/g jerks/g
F8:P or F8:E or Energy distribution of pulses created in a pulses MeV
F8:P,E detector
+F8:E Charge deposition charge N/A
17.2.3 En Card
For the Example in Section 17.5.1 Example: Displaying a Tally Plot, an En card is also used.
From the MCNP manual, this card has the form.
Form: En E1 ... Ek
n ...............tally number.
Ei..............upper bound (in MeV) of the ith energy bin for tally n.
Default:....If the En card is absent, there will be one bin over all energies unless this
default has been changed by an E0 card.
Use: ..........Required if the EMn card is used.
The entries on the En card must be entered in the order of increasing magnitude. If a
particle has an energy greater than the last entry, it will not be tallied, but you will be
warned that this has happened. If the last entry is greater than the upper energy limit
Emax specified on the PHYS card, the last bin will be lowered to Emax. If there are
several bins above Emax, the extra bins are eliminated.1
1 1 -1 -1
2 0 1
1 so 50
mode n
m1 92235.66c 1 $U235
imp:n 1 0 $ 1, 2
sdef
ctme 1.0
f2:n 1
e2:n 1e-4 1e-3 1e-2 1e-1 1 10 100
This is a sphere centered at the origin with a radius of 50. It contains U235. A default source is
defined with an sdef command.
To create a tally plot, two tally cards were added. The required F tally card specifies a neutron
tally that is to measure the flux over a surface (tally type F2). It is applied to surface 1.
The En tally card is applied to tally number 2 and defines energy bands at 1e-4, 1e-3, 1e-2, 1e-2,
1, 10, 100. These are specified from lowest energy to highest energy as is required by MCNP.
Cut-away views of the geometry can also be created by using a cookie-cutter cell, a feature
which already exist in MCNP for source point rejection, to define a region to cut-away from the
geometry.”
To generate 3D ray traced image of the plot of the geometry, select 3D View..Ray Traced
Image from the main menu. There are two general types of plots that can be made. The first is a
color ray trace image and the second is a radiographic image. The radiographic image will
generate a black and white plot that shows the density of the objects in the plot. This density can
represent track length or can represent the track length times the cross section for a specific
source energy. Figure 19-1 shows the Visual Editor displaying both types of plots.
• Rays will be traced from the “viewpoint source” to the rectangle defined by this image
plane (and beyond).
• Inside the 3D plotting window, set the viewpoint for the 3D geometry, this viewpoint
must not be on the plot plane and cannot be in a zero importance cell.
• Specify which cells are to be displayed in 3D. The cells can be listed with either spaces
or commas separating the different cells. A range of cells can be indicated with a dash.
For example 1-5 would display cells 1 through 5 in 3D. If you specify a cell that does not
exist in the input file, a warning message will be printed. You need to be careful to not
include the outside world as one of the cells to display in 3D, or the cell that contains the
3D source for the plot.
• A number of options can be set to change the look of the plot. Once these have been set,
select Normal 3D plot from the menu to generate a 3D plot.
1. If the desired viewpoint is in the outside world, the user can add a spherical cell that will
contain the viewpoint and create a new outside world outside this sphere. In Figure 19-2,
an outer sphere with a radius of 500 was added to contain the viewpoint so that it will not
be in the outside world.
2. Materials were assigned to the box and doorway and the surrounding sphere. A 3D Ray
Traced plot can not be done on input files without materials assigned.
3. The importance for the outside world was set to zero. Any cells that are to be plotted
must NOT have an importance of zero. The viewpoint must be in a cell that does not
have an importance of zero.
Figure 19-7 Using the Right Plot Window to set the Viewpoint for the Left Plot Window
Figure 19-7 shows the XZ and the XY plot of the geometry. The desired viewpoint is standing
in front of the doorway looking into the box. The XZ plot will be the plot plane for the 3D Plot.
The XY plot shows a perpendicular view. The arrow shows a cursor location that corresponds
approximately to that viewpoint. The global coordinates corresponding to the cursor location are
shown in the upper right corner in a magnified view.
In this figure, the cursor is positioned at approximately 0,-82,0. In general, the plots are better if
the viewpoint is moved further from the items to plot so choosing 0,-100,0 is better. Any value
of y that is between -51 and -499 is acceptable. It must not equal -50 or it is on the XZ plot plane
and it must be inside the sphere of radius 500.
Figure 19-9 3D Plot of Box and Doorway with Viewpoint at (0, -100, 25)
Because the Z axis is vertical in the XZ plot, increasing the z coordinate raises the viewpoint.
Increasing the z coordinate to 25 produces a plot similar to the one in Figure 19-9.
On the 3D Ray Tracing Panel, enter 0 for the x coordinate of the viewpoint.
On the 3D Ray Tracing Panel, enter -100 for the y coordinate of the viewpoint.
On the 3D Ray Tracing Panel, enter 25 for the z coordinate of the viewpoint.
On the 3D Ray Tracing Panel, click Normal 3D Plot.
Figure 19 9 shows the result.
Figure 19-10 3D Plot of Box and Doorway with Viewpoint at (0, -100, -25)
Similarly, Figure 19-10 shows the geometry with the viewpoint lowered to -25.
On the 3D Ray Tracing Panel, enter 0 for the x coordinate of the viewpoint.
On the 3D Ray Tracing Panel, enter -100 for the y coordinate of the viewpoint.
On the 3D Ray Tracing Panel, enter -25 (negative 25) for the z coordinate of the viewpoint.
On the 3D Ray Tracing Panel, click Normal 3D Plot.
Figure 19-10 shows the result.
Figure 19-12 3D Plot of Box and Doorway with Viewpoint at (100, -200, 0)
By moving the viewpoint to the side, an angled view is generated. The viewpoint of (100, -200,
0) moves the viewpoint by 30 degrees to the right. Because the Update Plot Basis box is not
checked, the 2D plot is unchanged.
On the 3D Ray Tracing Panel, enter 100 for the x coordinate of the viewpoint.
On the 3D Ray Tracing Panel, enter -200 for the y coordinate of the viewpoint.
On the 3D Ray Tracing Panel, enter 0 for the z coordinate of the viewpoint.
On the 3D Ray Tracing Panel, click Normal 3D Plot.
Figure 19-12 shows the result.
On the left plot window (showing the 3D plot), click the Update button. The plot will show the
2D basis plot. The plot should match the left view of Figure 19-13.
On the 3D Ray Tracing Panel, click the Update Plot Basis checkbox.
On the 3D Ray Tracing Panel, click Normal 3D Plot.
Verify that the 3D plot looks the same.
On the left plot window (showing the 3D plot), click the Update button. The plot will show the
2D basis plot. The plot should match the right view of Figure 19-13. The 2D view has been
changed by the 3D Ray Tracing feature.
Figure 19-13 Before and After 2D Plots with “Update Plot Basis” turned on.
When a 3D plot was created with Update Plot Basis checked, the underlying 2D plot was
changed to match the plotting basis. It is shown in the right plot. The left plot shows the original
basis. Note the basis values circled at the top of each plot.
19.6 3D Shading
If Use 3D Shading is selected, the color of each cell is darkened as the angle between the view
and the reflection off the object increases, providing a 3D look. This is the default option. If
Use 2D shading, is selected, the color of the cell is kept constant independent of the angle
between the view and the reflection off the object.
Once the sphere has been plotted, observe the maximum radiographic length as printed in the
bottom of the 3D Ray Tracing Panel. That portion of the panel is shown in a magnified view in
Figure 19-25. The value for that length is approximately 200.
Figure 19-27 3D Radiographic Plot with Darkness = Ray Length * Cross Section
Click to Select the Left Plot Window as the active plot window.
Move the 3D Ray Tracing Panel so that the Left Plot Window is visible.
Click to select the Darkness indicates (ray length) * (cross section) option.
Enter 5 MeV as the Energy of the Source.
Click on Radiographic 3D. Figure 19-27 shows the result.
Input from the main Visual Editor menu and do a Save-Update in the resulting Input File panel
to display the MCNP plots.
This conversion works for most of the CAD geometric entities including, lines, polylines,
multilines, circles, arcs and ellipses and also works for the insertion of blocks. These geometric
entities include most of the 2D geometries that can be created by CAD. The Visual Editor will
display these geometric entities and allow the user to select any of these items and remove them
from the geometry (by scanning them and selecting the Delete button) before converting them to
MCNP. This can be done either before or after segmenting the surfaces. The Visual Editor will
also allow the insertion of an upper and lower surface to bound the 2D geometry in the axial
direction.
Figure 21-2 shows an example 2D CAD file that has been converted to MCNP. The original
CAD file is shown in the left plot window and displayed using the new Visual Editor CAD
plotting capabilities. The converted MCNP file is shown in the right plot window. The original
CAD file contains lines, polylines, polygons, multilines and circles. The resulting MCNP
geometry has 88 surfaces and 31 cells. The first few lines of the resulting MCNP input file can
be seen in the input window at the bottom of the figure.
2) The CAD model must define all of space. This means that regions of air need to be
defined as objects so they can be converted to the proper MCNP cell.
3) The CAD geometry should be inside a large box, or cylinder, or sphere, where the region
beyond this large box, or cylinder, or sphere in the conversion will be defined as a MCNP cell
for the “outside world” cell; i.e., with an importance of zero.
4) A CAD region is limited in its complexity, so that the resulting MCNP cell does not
exceed the limits of an MCNP cell. If the cell is too complex, it must be split into simpler cells.
5) For CAD solid modeling, a limited number of unions and intersections are allowed. If an
object is too complex, it must be split into a number of simpler cells.
Although these constraints add some additional burden to the CAD designer, it will result in a
more efficient MCNP model that is not overly complex.
21.4 Using CAD as a Graphical User Interface for MCNP with Perimeter
Modeling
If a CAD file does not currently exist, the conversion program allows for the import of a
simplified CAD geometry that can be converted to an MCNP format. The special format defines
solids that are entirely contained inside each other or sharing a common face. This algorithm is
designed for a geometry that is created with CAD by defining only the perimeter of each body.
The conversion then determines each MCNP cell as the outer perimeter along with the algorithm
to determine any inner perimeters for that cell.
Right Click on the side wall of the office (shown in red, top right panel in Figure 21-10). In the
pop-menu, click on Hide Selection.
Right Click on the side wall of the office (shown in red, bottom left panel in Figure 21-10). In
the pop-menu, click on Make Selection Transparent.
The bottom right panel in Figure 21-10 shows the result. Using the rotate and zoom features,
the user can see all aspects of the office.
Close the 3D Plot Window (the one with the 3D picture in it) by clicking the X in the top right
corner.
Close the 3D Cad Import window.
On the Input Window, click Save…Update.
displayed in the input window. Modifications to the input file can be made in this window and
the plot will be updated when save-update is selected.
References
1
R. A. Schwarz, L. L. Carter, and N. Shrivastava, "Creation of MCNP Input Files With a
Visual Editor," Proceedings of the 8th International Conference on Radiation Shielding,
Arlington, Texas, April 24-27, 1994, pp 454-459, American Nuclear Society, La Grange Park,
Illinois(1994).
2
L.L. Carter, R.A. Schwarz, “Visual Creation of Lattice Geometries for MCNP Criticality
Calculations,” Transactions of the American Nuclear Society, 77, 223 American Nuclear
Society, La Grange Park, Illinois (1997).
3
R.A. Schwarz, L.L. Carter, “Visual Editor to Create and Display MCNP Input Files,”
Trans. Amer. Nucl. Soc., 77, 311-312 American Nuclear Society, La Grange Park, Illinois
(1997).
4
R.A. Schwarz, L.L. Carter, K.E. Hillesland, V.E. Roetman, “Advanced MCNP Input File
Creation Using the Visual Editor,” Proc. Am. Nucl. Soc. Topical, Technologies for the New
Century, 2, 317-324, April, 1998, Nashville TN.
5
L.L. Carter, R.A. Schwarz, “The Visual Creation and Display of MCNP Geometries and
Lattices for Criticality Problems,” Trans. Amer. Nucl. Soc., American Nuclear Society, La
Grange Park, Illinois (1999).
6
R.A. Schwarz, L.L. Carter, W Brown, “Particle Track Visualization Using the MCNP
Visual Editor,” Proc. Am. Nucl. Soc. Topical Radiation Protection for Our National Priorities
Medicine, the Environment and, the Legacy, 324-331, 2000, Spokane, Washington.
7
R.A. Schwarz, L.L. Carter, “Current Status Of the MCNP Visual Editor,” 12th Biennial
RPSD Topical Meeting, April 14-18, 2002, Santa Fe, New Mexico.
8
R. A. Schwarz, "Simple Visualization Techniques used to Optimize the Shielding
Configuration of a Reactor on Mars," Proceedings of the 2002 Topical on Radiation
Protection and Shielding, April 14-18, 2002, Santa Fe, New Mexico.
9
A.L. Schwarz, R. A. Schwarz, and L. L. Carter, "3-D Plotting Capabilities in the Visual
Editor for Release 5 of MCNP," Proceedings of the 2003 Topical on Mathematical and
Computational Sciences, April 6-10, 2003, Gatlinburg, Tennessee.
10
R.A.. Schwarz, A.L.. Schwarz, and L. L. Carter, " Conversion Of Computer Aided Design
(CAD) Output Files To Monte Carlo N-Particle (MCNP) Input Files," The Monte Carlo
Method: Versatility Unbounded in a Dynamic Computing World, Chattanooga, TN, April 17-21,
2005
11
R.A.. Schwarz, A.L.. Schwarz, and L. L. Carter, " Wizards and Visualization Features for
MCNP Geometries and Sources," The American Nuclear Society’s 14th Biennial Topical
Meeting of the Radiation Protection and Shielding Division, Carlsbad New Mexico, USA. April
3-6, 2006.
12
MCNP Manual, Revised 10/03/05.
13
MCNPX, Version 2.5f, LA-UR-05-0891, February 23, 2005
A-1
MCNP Visual Editor Manual
25.0 Appendix A
In this sample problem, we will create a small sphere inside a cross that will be placed inside a
larger sphere. Simply follow the steps shown on the next page for this creation.
Timesaving note: Even though this example is reasonably straightforward, there is a high
probability for a new user to make an error and lose some or all the data that was created. It is a
good practice to periodically save the current input file by repeating steps 85 to 87 with a
different file name each time. Alternatively, you can select “Backup” from the main menu and it
will save the file to “inpn?”, where the “?” is a number (inpn1, inpn2, inpn3, etc.). If an error
occurs you can exit the Visual Editor and then start it up again and read in your last saved file
and pick up at that step in the creation. The cell menu also has an “undo” option that will cancel
the last operation performed when creating a cell (drags, points, paste, cut) so if an error occurs
when creating a cell you can remove the last action using the undo button.
A-2
MCNP Visual Editor Manual
A-3
MCNP Visual Editor Manual
A-4
MCNP Visual Editor Manual
A-5
MCNP Visual Editor Manual
A-6
MCNP Visual Editor Manual
A-7
MCNP Visual Editor Manual
A-8
MCNP Visual Editor Manual
A-9
MCNP Visual Editor Manual
A-10
MCNP Visual Editor Manual
A-11
MCNP Visual Editor Manual
46. Drag across surface 6 Define the four surfaces of the horizontal beam of the cross.
47. Drag across surface 9 Define the four surfaces of the horizontal beam of the cross.
48. Drag across surface 3 Define the four surfaces of the horizontal beam of the cross.
49. Drag across surface 4 Define the four surfaces of the horizontal beam of the cross.
50. Click the mouse at a point inside the four Set the sense for the surfaces of the horizontal beam.
surfaces such as near the center of the sphere
51. Select “Paste” Add the rectangular region to the cell description. Notice the
description now shows the four surfaces with the proper sense
set for each surface.
A-12
MCNP Visual Editor Manual
A-13
MCNP Visual Editor Manual
A-14
MCNP Visual Editor Manual
A-15
MCNP Visual Editor Manual
A-16
MCNP Visual Editor Manual
Create the Region Inside the Sphere, but Outside the Cross.
65. In the right plot, drag across Define the outer boundary of the cell.
surface 10.
66. In the right plot, click inside surface 10 to Set the sense for the outer sphere. We click inside to add the
set the sense. sphere to the cell description.
67. Select “Paste” Add the all inside the outer sphere to the cell description.
A-17
MCNP Visual Editor Manual
A-18
MCNP Visual Editor Manual
A-19
MCNP Visual Editor Manual
Create the Cell Inside the Sphere, but Outside the Cross.
80. In the cell window, Create the cell inside the sphere, but outside the cross.
select “Register”
A-20
MCNP Visual Editor Manual
81. In the right plot, drag Define the outer boundary of the cell.
across surface 10.
82. In the right plot, click Set the sense for the outer sphere. We click inside to define the region to cut out
inside surface 10 to set the for the outside world.
sense.
83. Select “Cut” Remove the sphere from the cell description, which will define everything but
the sphere.
A-21
MCNP Visual Editor Manual
A-22
MCNP Visual Editor Manual
26.0 Appendix B
In this example you will create 4 cylinders inside a box in Turbo Cad and import the geometry
into the Visual Editor. The CAD package used for this Example is Turbocad Professional 9.2.
Any CAD package that can export SAT files can be used to create this geometry. Most of this
exercise describes out to generate a CAD geometry that can be imported into MCNP. It is
assumed that the user is not familiar with CAD geometry creation.
B-1
MCNP Visual Editor Manual
B-2
MCNP Visual Editor Manual
3. Change the body type to a box Set the mode to create a box.
B-3
MCNP Visual Editor Manual
4. Set the first vertex to (-100, -100, You define a box using three vertices.
-100) PRESS RETURN.
B-4
MCNP Visual Editor Manual
5. Set the second vertex to (100, You define a box using three vertices.
100, -100) PRESS RETURN.
B-5
MCNP Visual Editor Manual
6. Set the second vertex to (100, You define a box using three vertices.
100, 100) PRESS RETURN.
B-6
MCNP Visual Editor Manual
B-7
MCNP Visual Editor Manual
8. Change the mode to SELECT. We want to select the cube just created and make a
smaller copy.
9. Select the cube with a mouse Select the cube so we can make a copy
click.
B-8
MCNP Visual Editor Manual
B-9
MCNP Visual Editor Manual
B-10
MCNP Visual Editor Manual
12. Change the size in X, Y, and Z Resize the new box. If the size buttons do not show
from 200 to 140. PRESS up, you need to set the 3D select properties.
RETURN.
B-11
MCNP Visual Editor Manual
CREATE A CYLINDER
13. Set the mode to cylinder creation Get ready to make a cylinder.
B-12
MCNP Visual Editor Manual
CREATE A CYLINDER
14. Set the bottom of the cylinder at Set the bottom center of the cylinder. To create a
(40,40,-70) PRESS RETURN. cylinder, you need a bottom base point, a radius point
and a height.
B-13
MCNP Visual Editor Manual
CREATE A CYLINDER
15. Set a point on the radius at: Set the bottom center of the cylinder. To create a
(65,40,-70) PRESS RETURN. cylinder, you need a bottom base point, a radius point
and a height.
B-14
MCNP Visual Editor Manual
CREATE A CYLINDER
16. Set the height to 100. Set the bottom center of the cylinder. To create a
PRESS RETURN. cylinder, you need a bottom base point, a radius point
and a height.
B-15
MCNP Visual Editor Manual
17. Set the mode to SELECT Change to select mode, so we can copy the cylinder
B-16
MCNP Visual Editor Manual
B-17
MCNP Visual Editor Manual
20. Set the XSTEP and YSTEP to - Separate the cylinders by 80.
80
21. Set the ZSTEP to 0. Make the other cylinders at the same elevation.
B-18
MCNP Visual Editor Manual
CREATE A PLANE AT 30 CM
B-19
MCNP Visual Editor Manual
B-20
MCNP Visual Editor Manual
B-21
MCNP Visual Editor Manual
30. In the 3D PLOT window, select This will create the cell (cell 1) which will show up in
MAKE ALL TRANSPARENT the plot window.
B-22
MCNP Visual Editor Manual
31. In the CAD 3D IMPORT This will convert the CAD geometry.
window, select CONVERT
32. Select INPUT from the main Bring up a listing of the input file.
menu.
33. Select SAVE-UPDATE from the Reset memory and update the plots.
input window.
34. In the right plot, select the SURF Show surface labels.
toggle button.
35. In the right plot, select the CELL Show cell labels.
toggle button.
36. In the right plot, set the top and Expand the view to show the complete geometry.
bottom extents to 200
37. In the right plot, select UPDATE Update the display on the right.
B-23
MCNP Visual Editor Manual
B-24
MCNP Visual Editor Manual
Index
delete 100
3 edit 101
hide 101
3D dynamic plotting See dynamic 3D plotting numbers 44
3D Radiographic Plots See radiographic plots register 100
3D ray traced plotting 223 renumber 188
color by cell/surface 236 scan 100
color cells by material 236 show 101
cookie cutter example 237 splitting 101
cookie cutters 237 wizard 103
distance shading 237 cell numbering 44
draw lines 236 cell sense 33, 92, 99
example 225 cell window 90
Normal 3D plot 223 cell wizard 103
plane source 237 clipboard
plot basis 236 example 19
plot to the outside world 246 color 90
point source 237 color by 45
radiographic plots See radiographic plots color plotting 45
resolution 246 coordinates
shading 237 global 47
show plot plane 237 local 47
stop at the plot plane 246 cross section 171
transparent plotting See transparent plotting cross section files 2
viewpoints 227 cross section plotting 220
3D Transparent Plotting See transparent plotting xsdir file 2
cut 92
A
atom density 170 D
axial 46 data
materials 169
B Data
Importances 177
backup inp 287 display
basis 46 example 10
bugs 5 dynamic 3D plotting 260
example 19, 263
options 261
C
CAD Import
CAD Import 2D
266
267
E
convert 267 elib 177
delete segment 267 environment variable 2
segment 267 estep 177
CAD Import 3D 269 extent 15, 43
constraints/restrictions 271
display of 272
graphical user interface 272 F
large files 282 facet 45
parsing 271 File
perimeter modeling 269, 272 Clear Input 50
SAT format 270 menu option 50
solid modeling 269 New View 50
splines 271 Open 50
cell Open (do not modify input) 50
comments 101 Print 37
create like 101 Save 51
creation, example of 28 Save As 51
I-1
MCNP Visual Editor Manual
Update 38 material
files 8 atom density 170
fill number 91 creating 170
deleting 172
density 91, 170
G edit 172
gas177 gram density 170
geometry errors 90 library 175
gram density 170 name 170
number 91
options 177
H scanning 172
materials 169
help 4 MCNP 1
horiz 46
I N
nlib 177
importances 177
display options 178
geometric factor 178 O
integer checkbox 178
scale factor 178 operating system 2
setting 177 origin 40
truncating 178 example 16
inp 9 out.ps 46
inpcrash 9 outmc 9
inpn 9 outp 9
inpn.sav 9 outp3d 9
inpn1 9
inpt
input file
9 P
creating, example of 22 particle display 190
Input Window 51 particle track plotting
isotope 171 color 194
pixel size 194
tally contributions 195
K tracks 194
kcode 198, 200 xsdir 195
ksrc 198, 200 xsdir file 2
paste 92
plane surfaces
L creating, example of 25
platform 2
labels 47 plib 177
Last 39 plot
lattice rectagular 46
cards 107 rotation 46
creating hexagonal 139 set level 47
creating rectangular 113 plotting
fill matrix 110 3D ray traced See 3D ray traced plotting
hexagonal display 169 cross section See cross section plotting
hexagonal panel 139 example 10
modifying center 135 KCODE source 200
rectangular lattice panel 109 particle track See particle track plotting
universe fill values 108 SDEF source 191
level 47 point 29, 33
postscript 46
M print
example 19
macrobody 55 printing 37
main menu 48 problem reporting 287
I-2 2
MCNP Visual Editor Manual
pscript 46
T
tally cards
R En 213
radiographic plots 247 Fna 212
example 248 types 212
maximum radiographic length 250 tally mesh 46
read again 286 tally plotting
rect 46 example 214
rectangular plot 46 opening file 214
Refresh 44 options 214
register 92, 100 overview 204
renumber 188 plotting 214
resolution 46 training 5
run189 transformations 187
run MCNP transparent plotting 252
xsdir file 2 average cell thickness 252
cell transparentcy 252
S
U
Save-Update 51
scales 46 undo 100
SDEF 191 unexpected end of file 11
send to clipboard 37 universe 99
sense 33 universe number 91
source plotting Update 39
kcode 200 Update Plots 38
SDEF 191 usr.n 9, 174
sphere usr.p 9, 174
creating, example of 24
stndrd.n 9, 174
stndrd.p 9, 174
V
surface vert 46
comments 54 vised.defaults 9, 171, 173
creating 52
deleting 54
delta 55 W
dimensions 54 website 5
distance 54 weight window mesh 45
editing 54 Windows 2000 2
facet number 45 Windows Vista 2
hiding 54 Windows XP 2
macrobody 55
numbers 44
reflective 52 X
registering 52
renumber 188 xsdir 2
scan 53
scanning
select
52
91
Z
showing 54 ZAID 171
transformation 52 zoom
Surface example 12
window 51 Zoom 39
wizard 64
surface number 44
I-3 3