Академический Документы
Профессиональный Документы
Культура Документы
1
Table of Contents
1.0 INTRODUCTION .................................................................................................................... 5
1.1 INSTALLATION NOTES................................................................................................ 6
1.2 PROGRAM BACKGROUND ........................................................................................... 6
2.0 BEGINNING AN INTERACTIVE EDITING SESSION....................................................... 7
2.1 IMPORTANT FILES IN THE VISUAL EDITOR ............................................................... 9
2.2 THE MAIN MENU FUNCTIONS ................................................................................. 10
2.3 READING AND WRITING THE INPUT FILE ................................................................ 10
3.0 FILE OPTIONS .................................................................................................................... 12
4.0 THE INPUT WINDOW ........................................................................................................ 12
5.0 PLOTTING AND CHANGING PLOT PARAMETERS...................................................... 13
5.1 UPDATE .................................................................................................................. 14
5.2 LAST BUTTON ......................................................................................................... 14
5.3 ZOOM CHECK BOX.................................................................................................. 14
5.4 ORIGIN CHECK BOX ................................................................................................ 14
5.5 CHANGING THE EXTENTS ........................................................................................ 15
5.6 REFRESH CHECK BOX ............................................................................................. 15
5.7 THE SURFACE AND CELL CHECK BOX .................................................................... 15
5.8 COLOR CHECK BOX ................................................................................................ 15
5.9 FACETS CHECK BOX ............................................................................................... 15
5.10 WW MESH CHECK BOX ....................................................................................... 16
5.11 RECT CHECK BOX ................................................................................................. 16
5.12 TAL MESH CHECK BOX ........................................................................................ 16
5.13 PLOT ROTATION OPTIONS ..................................................................................... 16
5.14 SCALES CHECK BOX ............................................................................................. 16
5.15 RES TEXT BOX ...................................................................................................... 16
5.16 PSCRIPT CHECK BOX ............................................................................................ 16
5.17 CHANGING THE BASIS ........................................................................................... 16
5.18 VIEWING GLOBAL/LOCAL COORDINATES ............................................................. 17
5.19 SETTING CELL LABELS ......................................................................................... 17
5.20 LEVEL PULLDOWN MENU ..................................................................................... 17
6.0 THE SURFACE WINDOW .................................................................................................. 18
6.1 CREATING A SURFACE ............................................................................................ 18
6.2 SCANNING A SURFACE ............................................................................................ 19
6.3 DELETING A SURFACE ............................................................................................. 19
6.4 EDITING A SURFACE................................................................................................ 19
6.5 HIDING AND SHOWING SURFACES........................................................................... 19
6.6 SURFACE COMMENTS.............................................................................................. 19
6.7 ENTERING SURFACE DIMENSIONS IN INCHES .......................................................... 19
6.8 SURFACE DISTANCE ................................................................................................ 20
6.9 SURFACE DELTA ..................................................................................................... 20
6.10 MACROBODY SURFACES ....................................................................................... 20
2
6.11 THE SURFACE WIZARD ......................................................................................... 21
7.0 THE CELL WINDOW .......................................................................................................... 22
7.1 CREATING A CELL .................................................................................................. 22
7.2 DISCUSSION OF CELL PASTE AND CUT OPERATIONS.............................................. 23
7.3 SPECIAL SENSE CONSIDERATIONS .......................................................................... 25
7.4 CREATING A CELL WITH UNIVERSES ....................................................................... 25
7.5 USING UNDO ........................................................................................................... 26
7.6 REGISTER ................................................................................................................ 26
7.7 SCANNING A CELL .................................................................................................. 26
7.8 DELETING A CELL ................................................................................................... 26
7.9 EDITING A CELL ...................................................................................................... 26
7.10 CREATE LIKE......................................................................................................... 27
7.11 HIDING AND SHOWING CELLS ............................................................................... 27
7.12 CELL COMMENTS .................................................................................................. 27
7.13 SPLITTING A CELL ................................................................................................. 28
7.15 CREATING A SQUARE LATTICE .............................................................................. 30
7.16 CREATING A HEXAGONAL LATTICE ....................................................................... 31
7.17 SPECIAL HEX LATTICE DISPLAY OPTIONS ............................................................ 32
7.18 THE CELL WIZARD ............................................................................................... 32
8.0 MATERIALS......................................................................................................................... 37
8.1 CREATING A MATERIAL .......................................................................................... 37
8.2 SCANNING A MATERIAL .......................................................................................... 38
8.3 DELETE A MATERIAL .............................................................................................. 38
8.4 EDIT A MATERIAL ................................................................................................... 38
8.5 THE VISED.DEFAULTS FILE ..................................................................................... 38
8.6 MATERIAL LIBRARY ............................................................................................... 40
8.7 MATERIAL OPTIONS ................................................................................................ 41
9.0 IMPORTANCES ................................................................................................................... 41
9.1 SETTING CELL IMPORTANCES ................................................................................. 41
9.2 USING A SCALE FACTOR ......................................................................................... 41
9.3 USING A GEOMETRIC FACTOR................................................................................. 42
9.4 THE IMPORTANCE DISPLAY .................................................................................... 42
9.5 TRUNCATING IMPORTANCES ................................................................................... 42
10.0 TRANSFORMATIONS ...................................................................................................... 43
11.0 RENUMBER CELLS/SURFACES..................................................................................... 44
12.0 RUN ..................................................................................................................................... 45
13.0 PARTICLE DISPLAY......................................................................................................... 46
13.1 SDEF SOURCE PLOTTING ..................................................................................... 47
13.2 KCODE SOURCE PLOTTING ................................................................................. 47
13.3 PARTICLE TRACK PLOTTING ................................................................................. 48
13.4 SETTING POINT COLOR AND SIZE.......................................................................... 48
13.5 SETTING ENERGY OR WEIGHT RANGES ................................................................ 48
3
13.6 PROBLEMS GENERATING PARTICLE TRACKS ........................................................ 49
14.0 TALLY PLOTS ................................................................................................................... 50
15.0 CROSS SECTION PLOTS.................................................................................................. 51
16.0 3D RAY TRACED IMAGE ................................................................................................ 52
16.1 3D COLOR PLOTS ................................................................................................. 53
16.2 3D UPDATE THE PLOT BASIS ................................................................................ 53
16.3 COLOR BY CELL/SURFACE .................................................................................... 53
16.4 DRAW LINES AROUND CELLS ............................................................................... 53
16.5 COLOR CELLS BY MATERIAL ................................................................................ 53
16.6 3D SHADING ......................................................................................................... 54
16.7 DISTANCE SHADING .............................................................................................. 54
16.8 POINT/PLANE SOURCE TYPE ................................................................................. 54
16.9 SHOW THE PLOT PLANE ........................................................................................ 54
16.10 HIDE/SHOW COOKIE CUTTERS ............................................................................ 54
16.11 PLOT TO THE OUTSIDE WORLD/PLOT PLANE ...................................................... 54
16.12 PLOT RESOLUTION .............................................................................................. 54
16.13 3D RADIOGRAPHIC PLOTS .................................................................................. 55
16.14 3D TRANSPARENT PLOTS ................................................................................... 55
17.0 DYNAMIC 3D DISPLAY................................................................................................... 55
18.0 CAD IMPORT ..................................................................................................................... 57
18.1 2D CAD IMPORT ................................................................................................... 57
18.2 3D CAD IMPORT .................................................................................................. 60
18.3 CONSTRAINTS/RESTRICTIONS FOR 3D CAD CONVERSION ................................... 62
18.4 USING CAD AS A GRAPHICAL USER INTERFACE FOR MCNP WITH PERIMETER
MODELING ..................................................................................................................... 63
18.5 3D DISPLAY OF IMPORTED CAD FILES ................................................................ 63
18.6 CONVERSION OF LARGE FILES .............................................................................. 65
19.0 READ AGAIN..................................................................................................................... 66
20.0 BACKUP INP...................................................................................................................... 67
21.0 PROBLEM REPORTING ................................................................................................... 67
22.0 REFERENCES .................................................................................................................... 67
APPENDIX A............................................................................................................................... 69
APPENDIX B ............................................................................................................................... 90
4
1.0 Introduction
The Monte Carlo N-Particle (MCNP) 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 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 Editor (References 1-7) was developed to assist the user in the creation of
MCNP input files. While the initial motivation in the development of the Visual Editor
was for the creation of input files, its other uses as a graphical user interface to MCNP
may be even more important to a typical user than the creation of input files. These
powerful features include:
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.
The Visual Editor allows the user to easily set up and modify the view of the MCNP
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. A wide selection of menu options
enables rapid input of information and immediate visualization of the geometry and other
information being created.
The current version of the Visual Editor runs on either Windows or Linux platforms.
The new user should practice with a few simple problems before trying to create an
involved geometry. An example exercise is given in Appendix A showing detailed steps,
with graphical displays -- if this is a first time use of the Visual Editor you should read
5
Sections 1.1, 1.2, and 2.0 before doing the example in Appendix A. Such examples also
aid in understanding the basics of the reading in and saving of MCNP input files, the
plotting of the geometry in the two plot windows, etc.
The following discussion summarizes how to use the graphical interface. The Visual
Editor is constructed with user-friendly menu buttons so this manual is primarily to help
the new user get started and to provide some detail when specific questions arise. The
discussion here assumes that the user has some familiarity with the MCNP geometry
specification, as described in the MCNP manual. Additional information on the Visual
Editor, including training opportunities can be found at the Visual Editor website
(www.mcnpvised.com). Users are encouraged to take a training class since so many
different aspects are involved in fully utilizing the Visual Editor.
The contents of this manual is also contained in the Visual Editor help package, and can
be accessed by selecting “Help->Help Topics” from the main menu. The help package
contains a table of contents and is searchable. Additionally, each of the individual
windows has a help button that will take the user to the appropriate section of the help
package.
If you want to do particle track plotting, cross section plotting, or run MCNP 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. 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 on your system. See the section on
materials for more information on how to do this. This creation of a “vised.defaults” file
is usually a good thing to do for flexibility and to keep things parallel with your use of
MCNP.
6
The development of the Windows Visual Editor utilized a Windows 2000 platform. For
best performance, it is recommended that users run the Visual Editor in Windows 2000 or
Windows XP. Table 1.1 below lists the different operating systems and what is known
about its compatibility with the Visual Editor. If an operating system is not listed, than
the code has not been tested on that platform and its functionality is not known.
7
To create a new geometry, you create surfaces by selecting “Surface” from the main
menu and following the instructions beginning in Section 6.0 for the surface window –
even experienced users may find it convenient to just use the surface wizard discussed in
Section 6.11 to create new surfaces. These surfaces can then be used to create cells, by
selecting “Cell” from the main menu and following the instructions beginning in Section
7.0 for the cell window. A Cell Wizard, discussed in section 7.18, is also available to aid
in the creation of cells.
The input window, shown at the bottom of Figure 2.1, can be displayed by selecting
“Input” from the main menu. In the input window, a title card indicating the creation
date is created by default when starting from scratch and not reading in an input file. If
you want to add you own title, enter it above this card, then select “Save-Update” from
the menu. This will temporarily cause the line containing the creation date to go away,
but it will come back as a comment card after the first cell is created.
You can edit the file in the input window and then select the “Save-Update” menu option
to update the plots to reflect the changes made. This gives you the freedom to work
either in editor mode or use the graphical interface commands. If the file is modified by
hand in such a way that it is no longer valid, it is possible when doing “Save-Update”,
that the Fortran will generate a fatal error causing the Visual Editor to terminate, although
an attempt is made to trap most fatal errors.
When doing a “Save – Update” command, the Visual Editor writes out the input to a
temporary file name called inpn. When you are ready to save the file to a permanent file,
use the “File->Save” command or the “File->SaveAs” command.
The Visual Editor will automatically back up the file every five minutes to a file called
“inpn.sav”, so if the Visual Editor crashes, you will not lose more than 5 minutes of
work. Also, if the Visual Editor encounters a MCNP fatal error that it can not recover
from, it will try to save the input into a file called “inpcrash”.
Error and information messages are sent to the text window that is located under the main
menu.
8
2.1 Important Files In The Visual Editor
Table 2.1 shows a list of the files used by the Visual Editor. The Visual Editor prints out
a number of auxiliary files. Because of this, you may want to run the Visual Editor in its
own directory and transfer the input files you are creating or working on to that directory.
9
2.2 The Main Menu Functions
Table 2.2 provides an overview of the main menu options and their purpose.
10
Below is the order in which the Visual Editor writes out the input file:
1. Title card
2. Cell Cards
3. blank line
4. Surface Cards
5. blank line
6. Transformations
7. Mode
8. Source
9. Materials
10. Importances
11. Other data [VOL, PWT, EXT, FCL, PD, DXC, NONU, WWN, TMP]
12. Data not recognized by the Visual Editor
The editor does it 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 data cards that are still not individually recognized by the Visual
Editor such as the source and tally cards. These are stored in a temporary file 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
11
3.0 File Options
The file menu has a number of typical options available in Windows applications,
however, there are a few Visual Editor specific options.
File->New View will open up a new plot window with the plot parameters set to default
values.
File->Open will bring up a file selection window that will allow a new MCNP input file
to be read in. A file opened in with this command will be re-formatted by the Visual
Editor to enable the creation capabilities.
File->Open (do not modify input) will bring up a file selection window that will allow a
new MCNP input file to be read in. A file opened in with this command will not be
modified and all creation capabilities (surface, cell, materials, etc.) will be turned off.
However, all plotting capabilities will still be available including 2D plots, 3D plots and
particle plots. The input can also be opened up in an external text editor and the plots can
be updated by using the “Read_again” menu option.
File->Clear Input will clear the active input file, so the user can start over from scratch.
This removes all surface, cell and MCNP data information.
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.
As surfaces and cells are created, they will show up in this input window. At any time,
the user can type any valid MCNP data into the input window and then select “Save-
Update” to reset the Fortran memory and update the plots. This gives the user the
freedom to work either with the Visual Editor interface tools or to work in text mode.
The Visual Editor does not individually handle all MCNP data cards at this time. Data
cards individually recognized by the Visual Editor are cells, surfaces, materials,
importances, and transformation. Data cards that are not individually recognized by the
Visual Editor are read in from an input file, and are copied directly over into the input
window. Currently, the only way to change these data cards is to change them by hand in
the input window and then select “Save-Update” to update the Fortran memory with the
modifications that have been made.
It is important to note that doing a “Save-Update” in the input window, saves the file out
to a temporary file called “inpn”. The user must select File->Save or File->Save As to
save the file to permanent storage.
12
5.0 Plotting And Changing Plot Parameters
The Visual Editor starts up with two default plot windows. Additional plot windows can
be created by selecting File->New View.
Figure 5.1 shows an expanded view of a Visual Editor plot window and the various
plotting options available on the top and side of the plot window. Also shown is the
menu that is displayed when you right click in the plot window. The top portion of this
menu can be used to change some of the plot parameters. Also, included in this menu are
some shortcuts to common surface and cell operations.
To print out a hard copy of a plot, select “File->Print” from the main menu and it will
send the contents of the currently selected window to the printer. To include plots in a
document, right click in the plot window and select the “send to clipboard” option. Then
go into the text document and select paste to paste.
13
5.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.
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.
The Visual Editor stays in zoom mode until you uncheck the “Zoom” check box. This
allows for multiple zoom operations to be done in a row.
Sometimes it is useful to click zoom on one plot and then drag the mouse across a zoom
area in a different plot. The identified area will then be shown in the original plot
window.
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.
The buttons to the left of the origin values, enable the user to change the origin “x”, “y”
or “z” value by clicking on the coordinate to be changed and selecting its value with a
14
click of the mouse from one of the plot windows. For example, if the right plot is an xy
view and the left plot is an xz view, you can change the elevation of the xy view by
clicking the z box for the right plot and then clicking the at a different z value on the left
plot. The z for the right plot will change to that selected value, resulting in a different
cross sectional view.
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.
When the "Cell" check box is turned on, cell numbers will appear inside the cells. The
meaning of the “cell” number is determined by the cell label that has been selected. As
with surface numbers, the size of the font used for cell numbers can be changed by
changing the number in the text box.
15
5.10 WW Mesh Check Box
By checking this check box, the weight window mesh will be displayed if this option is
used in the active input file.
16
defaults to a xy basis. A "Basis" pull down menu is available in the top left portion of the
plot window with the choices of xy, xz, yx, yz, zx, and zy.
The basis menu is also available by clicking the right button in the plot window. The
basis can also be entered by hand by setting the six basis vectors and then selecting the
“Update” button or “Update Plots” menu option to redraw the plots. The code will
normalize each basis vector and adjust them, if necessary, to be normal.
By setting these level buttons, you can significantly decrease the amount of time it takes
to make a plot of a lattice geometry by suppressing the plotting of lower universe
information. Additionally, you can use the special lattice cell label options to plot useful
information about the lattice geometry.
17
6.0 The Surface Window
Figure 6.1 shows the surface window. This window is used to create new surfaces, delete
surfaces and modify surfaces. The operation that is being performed is determined by the
mode shown at the top of the surface window. The default mode is “Create new” which
will create a new surface -- even experienced users may find it convenient to just use the
surface wizard discussed in Section 6.11 to create new surfaces. All recognized MCNP
surface types can be created or modified.
The surface number will be set by default when creating a surface. The editor uses the
last valid surface number and increments it by one. The surface coefficients are typically
entered by hand. For some of the simple surfaces you can use the mouse to set the
coefficients to an approximate value by clicking on the screen. For example, for a simple
sphere (SO surface), you can set the radius, by clicking on the screen.
You can indicate that the surface is a reflective surface by clicking on the “Reflective”
check box. You can assign a transformation to the surface, by either entering the
transformation number in by hand or clicking on the “Transformation” button to bring up
a list of available transformations for the input file. When you select a transformation,
the number of the transformation is placed in the transformation text box.
Select “Register” from the menu to create the surface and add it to the input file. Once a
surface is created, the mode changes to “Create like” which will default to creating
additional surface, just like the one that was created.
18
6.2 Scanning a Surface
You scan a surface, by clicking on the “Scan” mode and then dragging the mouse across
the surface in the plot window. You can alternatively type the surface number in by
hand. When you scan a surface, all the information about that surface is displayed in the
surface window.
In order to make cells, the Visual Editor needs to show these infinite surfaces that are not
part of any cell. The surface number for an infinite surface will have an “*” by it when
displayed in the plot window. It should not be confused with a reflective surface which
also has a “*”. Once a surface is used in a cell, it becomes a finite surface and the “*” is
removed from the label and it looks like it would in a normal MCNP plot window.
When you first enter the Visual Editor or when you do a “Save – Update” from the
“input” window, all of the unused surfaces are hidden. You need to select the “Show-
>Unused” option to show the unused surfaces if you need them for creating cells.
Because this is done fairly often when creating cells, it is included on the menu when you
do a right click in the plot window.
19
While in “Inches” mode, the dimensions of scanned surfaces will be in inches, the
“Surface delta” will be calculated as inches, and the distance will also be calculated in
inches.
20
6.11 The Surface Wizard
Figure 6.2 shows a view of the Surface Wizard. The surface wizard can be used to walk
the user through the process of creating a surface. This can be particularly useful for
creating macrobody surfaces. The Wizard also includes some options for creating some
specialized quadratic surfaces including ellipsoids and a slanted cylinder as shown in
Figure 6.3.
21
7.0 The Cell Window
Figure 7.1 shows the cell window. After the appropriate surfaces have been created,
select “Cell” from the main menu to create a cell using these surfaces. In the cell window
you can create, edit, or delete cells. The default mode is “Create New” for creating new
cells. You also have options for creating cell lattices, and splitting a cell for biasing.
In “color” mode, the cells will be colored according to their material. However, the
default "B&W" mode is usually preferable since the plots are generated much more
rapidly in black and white. In both Color and B&W mode, geometry errors are shown as
dotted surfaces in red. These lines are easier to see in B&W mode.
1. The editor selects a new default problem cell number when you open the cell window
or after you register a cell, but you can change this if you prefer to use a different cell
number.
2. Enter the material number for the cell from the keyboard, or bring up a list of defined
materials by clicking on the material button, then click on the desired material -- this
enters both the material and its default density into the cell window. The material
must be defined to appear in the material list window. To set the density, the material
must be used someplace else in the input file, the editor will get density from other
cells that use the material. If the material has not been used before, you will need to
enter the density by hand. Note: you may want to simplify things by not using
materials in the initial geometry model (just voids), but this does have the
disadvantage that the material regions will not show up by color on the plots.
3. Enter the material density from the keyboard (positive if atom density and negative if
gram density) if not set by selecting the material using the material button.
4. Enter fill number and/or universe number for the cell if required for the cell.
5. Drag the mouse across each relevant surface on the plots to select the bounding
surfaces for a simple object. A simple object is one where the sense (+/-) of the
22
surfaces bounding the object is the same everywhere inside the object. When doing a
surface drag, verify that the editor found the surface by looking to see if the surface is
displayed in the white area at the bottom of the cell window. If the drag was not
successful, the error message "drag failed" will be displayed in this area, in which
case you need to try to do the drag again. Occasionally, when there are
inconsistencies in the geometry, a surface will not appear or there will not be a
response when the mouse is dragged across the surface. Do a "show" on this surface
and the drag should work. You may need to keep showing surfaces after each cell is
registered until this inconsistency is removed.
6. Click the left mouse button inside the object to indicate the sense of the surfaces for
the object. Note that some of the surface numbers in the white area will change sign.
7. Choose the "Paste" button (with the left mouse button) to add this simple object to the
cell description, or the "Cut" button to cut out this simple object from the cell being
formed. The white area now shows the surfaces with senses (and unions if needed) of
the partial cell card.
8. Repeat steps 5-7 for each "paste" or "cut" operation until the cell is completely
defined. You can also enter "Not" "cell numbers" if appropriate.
9. "Register" the cell to create it, where the white area 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.
The reason that only simple shapes can be used in creating a cell, is the sense of all the
surfaces must be the same for all locations within all the surfaces. For example in Figure
7.2, to create cell 1 on the right, you will need to do two sequential paste operations.
First add the upper rectangular region to the cell description by dragging across surfaces
23
4, 6, 2, and 1, setting the sense by selecting a point in the center of these four surfaces,
and then selecting paste. Second, add the other rectangular region by dragging across
surfaces 4, 5, 3, and 2, selecting a point in the center of these surfaces, then selecting
paste. Finally, select “register” to create the cell consisting of the union of these two
rectangular regions
First point
Second point
This needs to done with two paste operations because the sense for surfaces 5 and 2
changes depending on the location inside cell 1. If you dragged across all six surfaces
and then selected a point for the sense, the sense for surfaces 5 and 2 would change
depending on where you clicked. Typically axial surfaces would also be involved in
creating the cell with “Paste” or “Cut” operations, but they are not included here to
simplify the discussion.
The "Paste" operation creates a set of intersections, with the sense of the surfaces
determined by the mouse location when the sense is entered. "Paste" allows the user to
paste together a complex, even disjoint (although this is typically not desirable), cell from
simple objects. The “Paste” operation adds the region (using the union “:” operator) to
the cell being defined.
The "Cut" operation creates a sequence of unions, using the opposite sense of the surfaces
for the simple object. "Cut" allows the user to cut out simple objects one at a time.
Typically the perimeter of the cell has been formed with "paste" operations before the
"cut" operation, and the new cut will remove the defined region (using a cell
intersection). There is a special case in the creation of the "outside world" cell, or for
24
cells on the outer portion of a universe, where "cut" may be the only operation. Then the
cut produces a number of unions describing the cell as the region beyond.
Each time a cut or paste operation is made, the editor will take the portion already
defined, encase it in parenthesis and add on the portion that is being cut or pasted.
Because of this, complex cells created in the Visual Editor can sometimes be hard to
understand when looking at the input file.
As a general rule you need to use the following sequence in creating cells involving
universes, fills, and transformations for a cell that is part of a universe that fills a cell:
1. Create the fill cell first at the origin, but do not include the transformation. If the
plots are too messy around the origin, you may need to use the "hide" option to hide
some cells, and possibly surfaces, on the plots. In the cell window set the value for
fill.
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.
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,
25
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.
7.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.
While in edit mode, if the cell was created with the Visual Editor, you can use the
“Undo” option to undo the operations used to create the cell. This will not work on a
complex cell created outside the Visual Editor.
In edit mode you can select “Clear” to clear the cell description and start over defining
the cell from scratch. The “Clear” button only clears the cell description, none of the
other cell parameters are changed.
You can also manually edit the cell by changing the cell description by hand and then
selecting “Register” when you are done modifying the cell.
26
7.10 Create like
You can use the “Create like” mode to create a new cell similar to an existing cell. A
common application of this is to create a new cell like a cell that already exists, but with a
transformation.
To use the “Create like” option, you need to first “Scan” in a cell and then change the
mode to “Create like”. The Visual Editor will automatically update the cell number to
the next valid number. At this point you can specify the cell parameters that you want to
be different and then register the cell to create it.
27
7.13 Splitting a cell
Another feature available in the cell window is "Register for cell splitting" near the
bottom of the cell window. This allows you to divide a cell equally (by thickness, not by
volume) into a specified number of smaller cells. This is useful for setting importances in
a thick shield.
To use cell splitting, create the cell that is to be divided, then instead of selecting
“Register”, select "Register for cell splitting". Once this button is selected, another
window comes up that allows you to specify the number of splits (number of cells
created) and in some cases the type of splitting to be done. The editor will already know
the type of cell being split so you should never need to change this. See Figure 7.3 for an
example of splitting a cylinder created by cz surface 1 and pz surfaces 2 and 3.
For a cell that will be split into n cells, possible geometry types for the splitting include:
1. “Sphere-in-Sphere” where n-1 radial surfaces are inserted between the inner and
outer spheres, where the inner sphere can have a radius of zero.
2. “Sphere” where n-1 radial surfaces are inserted inside a sphere surface.
28
3. “Cylinder-in-Cylinder” where the inner and outer cylinders can be divided either
axially or radially -- in either case the inner cylinder radius can optionally be zero;
or (2) the inner cylinder is completely inside the outer cylinder, and the region is
divided into n cylinder-in-cylinder cells.
4. “Cylinder or Ring” where the inner and outer cylinders for the ring are the same
height and the ring can be split axially or radially, When the surface is just a
cylinder, it also can be split axially or radially.
5. “Box-in-Box”, where n-1 surfaces are inserted between the inner and outer box in
each of the -x, +x, -y, +y, -z, and +z directions with uniform spacing between the
inserted surfaces in each of the directions.
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.
29
7.15 Creating a Square Lattice
Note: Creating lattices as discussed in Sections 7.15 and 7.16 is relatively complicated
and all types of configurations can occur. If you have trouble creating a lattice with the
Visual Editor, you may first need to experiment with a simpler lattice or else enter the
cells involving the lattice manually in the Input window with a “Save – Update” after the
information has been entered to update Fortran memory and the plots.
A square lattice can be created by selecting the square lattice option in the cell window.
To create a square lattice, you need to specify the horizontal and vertical pitch along with
the number of rows. You can also include axial regions, by specifying the number of
axial regions. When requesting axial regions, you need to specify the upper and lower
coordinates for the surfaces that define the axial regions. The Visual Editor will then
create the surfaces required to create the lattice. Figure 7.4 shows the rectangular lattice
window for a rectangular lattice with three axial regions.
Once a lattice has been defined the universe fill array is displayed to allow you to define
the universes filling the lattice. Universe values can be set in the lattice by selecting
30
different parameters using the “Select” options and then setting the universe value using
the “Set Universe Value” text box. For example, in Figure 7.4 column index 2 is
selected and set to universe 3. Other options that can be used for selecting lattice
locations include the universe number (allowing for a search and replace capability), the
axial index, and j index (row).
31
Once a lattice has been defined by the pitch, number of rows and number of axial regions,
a fill array will be displayed. Individual universes can be set by selecting locations in the
universe lattice using special selection options. For a hex lattice, available parameters are
the axial index, universe number, row, flat and flat index. In Figure 7.5, rows 1 through 3
have been set to universe 3.
The Visual Editor also allows you to display the coordinates for the universe by setting
the global check box to local. This will show the actual coordinates for which the
surfaces were created prior to being moved by a transformation or by being include in a
universe.
There are a number of useful things that can be plotted for a hex lattice that can be found
under the lat menu of the cell label button. You can plot the universe number for each
lattice location, or various indices.
The current active plot is shown in the wizard. This plot is for display purposes only, the
dragging and over the surfaces and setting the sense with the mouse is done in the main
plot windows.
32
Figure 7.6-2. Select the Surfaces
Figure 7.6-5. Select the Option to Continue to Create the Second Region
33
Figure 7.6-6. Drag across surfaces for the Second Region.
Figure 7.6-9. Select the Option to Continue to Create the Third Region.
34
Figure 7.6-10. Drag across surfaces for the Second Region.
35
Figure 7.6-14. Create the Cell.
36
8.0 Materials
Figure 8.1 shows a plot of the material window and the associated material library
window and isotope selection window. The material library allows users to store
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 library and from the library to the
current input file. The isotope selection window is used to select the isotope cross
sections (the zaid) that make up a particular material.
Material Window
The materials are created by choosing the "Data->Materials" menu option. This brings
up a "Materials" window. At this point you can either read in materials from the material
library or create new materials.
37
For a new material, the material number will be automatically set. You can change this if
the number you change it to is not already used. You then need to specify a material
name and a material density (positive if atom density and negative if gram density). The
material density will be the default used on cell cards for that material when selected in
the cell window.
The material composition is generated by specifying each isotope of the material and its
mass fraction (negative) or atom fraction (positive). To do this, click on "Isotope:" in the
"Material Descriptions" window. This brings up a table of the elements. Select an
element with the left mouse button to bring up a menu showing the isotopes for that
element. If this menu does not show up, then you “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 ID will appear under "isotope" in the material 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.
At any time you can change these isotope/fraction pairs, by clicking on the pair to
change. Notice the Edit check box is set, 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.
Repeat this for the other isotopes in the material. Then select "Register" to create the
material and add it to the input file.
38
The Visual Editor will try to determine the location of the material files from the MCNP
“DATAPATH ” environment variable. If this does not work, you need to specify the
location of the material library with the vised.defaults file. To create a vised.defaults file,
bring up the material window, by selecting “Data->Materials” and then select “Files”
from the Materials window. This will bring up a window like that shown in Figure 8.2.
Enter the full path for the location of each of the different files.
Figure 8.2. 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 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.
39
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 a set of materials defined by the individual users. You create
the usr.n and usr.p files the first time you move materials (using the “Store” button) from
your input file to the library.
After entering the full path names for these files (see Figure 8.2), 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.
When the materials are first transferred to the input file, a default density is assigned to
each material. When selecting the material in a cell using the “Material” button on the
cell window, this default density is used for the cell density. However, if you go out of
the Visual Editor and come back in, or do a “Save-Update” operation in the input
window, these default densities are lost and the editor must then look to see if the
material is used in the input file to get the density off the cell card. If the material is not
used, the density will not be known and you will have to set it by hand.
Caution: The standard materials compositions and densities have been selected from
what is desired in a typical application. This requires a judgment in most cases. A
composition and density that may be perfectly acceptable in most applications, may be
very unacceptable in a special application. Trace element activation or temperature, for
example, may mean important differences. When using standard materials, the user
should always carefully review the acceptability of these materials.
To add materials to the material library, select the materials that you want to place in the
library and then select “Store” from the menu to transfer those materials to the user
library. They will be placed in “usr.n” if they are neutron materials and they will be
placed in “usr.p” if they are photon materials. Within the material library window, you
need to select “Save” to update the user files.
40
8.7 Material Options
If you click on the “Options” check box, a number of text boxes will appear that allow
you to fill in additional material options such as gas, estep, nlib, plib, elib. Refer to the
MCNP manual for more information on these. These have not been tested very much.
9.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 9.1 shows a plot of the
importance window.
Once the cells have been selected, you can set them to a specific importance value by
clicking on the “Set Importance” check box and then entering a value for the importance.
Select “Register” to update the input file and the plots.
41
9.3 Using a Geometric Factor
To set the importances using a geometric factor, select the “Factor” check box and then
select the “Geometric Factor” option. To use the geometric factor you need to identify
the starting importance and the factor to use in the appropriate text boxes. The Visual
Editor remembers the sequence in which the cells were selected which can be used to
assign a geometric factor to the importances. The Editor will use the starting importance
as the importance for the first cell selected. For each additional cell selected, it multiplies
the previous importance by the geometric factor. For example, if the starting importance
is 4 and the geometric factor is 2, the first six selected cells would have importances of 4,
8, 16, 32, 64, 128.
42
10.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 10.1 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.
43
11.0 Renumber Cells/Surfaces
The surface and cell numbers in the input file can be renumbered by bringing up the
renumber panel shown in Figure 11.1. The user indicates the starting cell number and
starting surface number to use when the cells and surfaces are renumbered and the Visual
Editor will renumber the cells and surfaces in the input file.
This feature can be used to combine two input files into a larger combined input file, by
renumbering the surfaces and cells of one of the input file in a range that will be beyond
the maximum surface and cell number in the other input file. For example, if each of the
input files contains 100 cells and 100 surfaces, the user could renumber the first input file
starting with cell number 1 and surface number 1 and perhaps renumber the second input
file starting at cell number 500 and surface number 500. The files could then be
combined without the surface numbers conflicting between the two files. Additional
work will need to be done by the user to make sure the cells, such as the outside world,
do not doubly define space.
44
12.0 Run
The “Run” window can be displayed by selecting “Run” from the main menu. The
“Run” window will allow you to run input files without going outside the Visual Editor.
Figure 12.1 shows a view of the “Run” window. To run an input file, it must be in the
same directory as the Visual Editor executable.
To run an input file, enter the name of the input file and optionally the output file and
other files involved in the run, then select “Run” from the menu to run the problem. This
will run the MCNP that is compiled as part of the Visual Editor, it does not run the
MCNP that you may have installed outside of the Visual Editor. A valid copy of the
xsdir file is required to run files in the Visual Editor just like it is needed for running a
normal MCNP input file. As the problem is running the number of particles run and the
amount of time used 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.
45
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.
Figure 13.1 shows the particle display window. This window provides three primary
options: source point plotting of the SDEF source; KCODE source generation point
plotting; and particle track plotting, which can also be used to display the SDEF source.
The points are projected onto the 2D plot plane defined by the currently active plot for all
three options. The distance from the plot plane defaults to 100. The user can change this
value. If a particle event occurs outside this range it is not plotted.
46
13.1 SDEF Source Plotting
For problems with an SDEF source, you can select to do a display of the source starting
points by selecting the “SDEF” option. This will plot the starting source point locations.
You can set the number of points to plot in the “Number of Particles” text box and you
can set how far away from the plot plane points will be plotted in the “Distance from the
Plot Plane (cm)” text box, the default is 100 cm. 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.
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.
After the cycles have been specified, select the “RUN” option, then select “Plot” at the
top of the window to run MCNP with the previously opened input file. When “Plot” 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, but the input file runs for 10 cycles. The code will still
run for 10 cycles when “Plot” is selected, even though only the first 5 cycles are written
to srcz”n” files.
After doing a “RUN”, you can plot the source generation points by selecting the “PLOT”
KCODE option, which will read the srcz”n” files and display the points on the plot. It is
up to the user to verify that the source points from the srcz”n” files correspond to the
geometry being plotted.
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” options 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.
47
13.3 Particle Track Plotting
For both SDEF and KCODE Problems, the Visual Editor can be used to plot particle
tracks by selecting the “TRACKS” Option. The user must set the “Number of Particles”
and the “Distance from the Plot Plane (cm)”. Next the events to be plotted must be
selected with the option button to the right of “TRACKS”. Possible events include
source points, surface crossings, tally contributions, and collision points. The default is
to plot collision points. Finally, select “Plot” from the menu to run MCNP and generate
the points. This does not run the MCNP on your system, but instead the MCNP that
comes as part of the Visual Editor package.
For the “TRACKS” option, you can choose to only plot those collision that lead to an
eventual contribution to a tally. This can be helpful in determining how particles get to a
particular tally. To activate this option, select the “Tally Contributions Only” check box.
There is an additional option to indicate the tally number for which contributions will be
plotted, and another option for the Segment Number if an fs card is involved for the tally
(“1” for the first entry on the fs card, etc.). It is recommended that all tallies except the
tally of interest be removed from the input file.
The Visual Editor does not “connect the dots” when doing particle track plotting, instead,
it only plots the points of interest, such as collisions, where each point will represent a
collision.
There are a number of different options that will set the particle color and size. The
“Color By” option allows you to specify what the color of the point represents. For
particle tracks the color varies from blue to red, when “color by” is set to energy, blue
corresponds to a low energy event and red to a high-energy event. When “color by” is set
to weight, low weight events will be blue and high weight events will be red.
You can set the size of the point plotted by changing the “Point” size. 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. Additionally, the “Border” check box can be selected to create a dark border
around each of the points.
48
13.6 Problems Generating Particle Tracks
Getting source plotting and particle track plotting to work correctly can take some effort.
Below is some advice on how to overcome common problems.
1. For SDEF plotting, you are executing the source point generation routine. For
plotting KCODE cycle generation points and particle tracks, the input file is run
by the MCNP portion of 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.
49
14.0 Tally Plots
The Visual Editor will allow the plotting of MCNP tallies. In general it makes available
the plotting capabilities currently available in the MCPLOT plotting package discussed in
Appendix B of the MCNP manual. Figure 14.1 shows the tally plot window along with
the two additional windows used to set the titles and tally plotting parameters.
To display tally plots, you first need to read in a valid runtpe or mctal file. In the top of
the tally window, indicate the type of file and it’s name. Next select “Start” from the
menu. This will cause MCNP to read in the file so it will be ready to do tally plots. At
this point you can select “Plot” from the menu to generate the default tally plot. Set plot
titles and plot axis titles in the panel obtained from selecting "Titles" at the top of the
"Tally Plotting" window. Choose plot options, such as loglog, in the panel obtained from
selecting "Options" at the top of the "Tally Plotting" window. These two panels should
be left open until you want to divert back to the original defaults for generating the tally
plot.
Tally plots are easier to see when the plot window has been set to rectangular so you may
want to click on the “Rect” check box to the left of the plot window.
50
Most of the capabilities of MCPLOT as outlined in Appendix B of the MCNP manual are
available using the Visual Editor interface. The titles can be changed by selecting
“Titles” from the menu and other plot options, also discussed in Appendix B, can be set
by selecting “Options” from the plot menu.
When you change the plot parameters you will usually need to select “Plot” from the
menu to update the plot.
The Visual Editor will allow the plotting of MCNP cross sections. In general it makes
available the plotting capabilities currently available in the MCPLOT plotting package
discussed in Appendix B of the MCNP manual. Figure 15.1 shows the tally plot window
along with the two additional windows used to set the titles and plotting parameters.
To display cross section plots, you first need to read in a valid input file. Enter the name
of the file at the top of the cross section plotting window. Next select “Read” from the
menu. This will cause MCNP to read in the file so it will be ready to do cross section
plots. At this point you can select “Plot” from the menu to generate the default cross
section plot.
51
Cross section plots are easier to see when the plot window has been set to rectangular so
you may want to click on the “Rect” check box to the left of the plot window.
Most of the capabilities of MCPLOT for cross section plotting as outlined in Appendix B
of the MCNP manual are available using the Visual Editor interface. The titles can be
changed by selecting “Titles” from the menu and other plot options can be set by
selecting “Options” from the plot menu.
When you change the plot parameters you will usually need to select “Plot” from the
menu to update the plot. Only cross sections for materials and isotopes specified in the
input file can be plotted.
52
16.1 3D Color Plots
To create a 3D color plot, you first must have a completely defined input file that will
execute without fatal errors. This option will not work on partial files. Read the input
file into the Visual Editor. Then set a 2D plot window so that it will become the image
plane of the 3D plot with the appropriate (x,y,z) origin and the desired extents; i.e., rays
will be traced from the “viewpoint source” to the rectangle defined by this image plane
(and beyond), where the basis vectors of the 2D image will automatically be adjusted to
represent an image plane that is perpendicular to the source-point-to-origin-of-the-image-
plane vector.
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.
You need to 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.
53
16.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.
If “Show plot plane image” is selected, the plot plane image will be shown if a 3D cell
has not been found by the time the ray hits the plot plane. This allows for the
combination of both 2D and 3D plotting. For this option to work, you also need to set the
“Stop at the plot plane” option.
To create a cut away view of a 3D image, create a cookie cutter cell as described in the
MCNP manual. Then select “Show cookie cutters” to cut out everything inside the
cookie cutter cell.
If “Stop at the plot plane” is selected, the ray tracing will stop at the plot plane and will
optionally show the plot plane image if “Show plot plane image” is enabled.
54
16.13 3D Radiographic Plots
To create a radiographic plot, set up the geometry plot as if doing a normal 3D plot.
Additionally, you must set the maximum ray length which will correspond to pure black.
If this value is not known, create a plot using a temporary non-zero value then look at the
output display at the bottom of the window. The maximum radiographic length as
calculated by MCNP will be displayed. You can then use this value to create an accurate
radiographic plot.
The user can also select to multiply the track length by the cross section for a given
source energy. If this option is selected, both the maximum ray length and the energy of
the source particle must be specified.
Most of the plot options and features are ignored when doing the radiographic view. The
only plot option that can be changed is to plot from a point source or a plane source, all
other options are ignored.
To generate the radiographic plot after all of the parameters have been set select
“Radiographic 3D” from the menu.
Generate the plot again using the calculated cell thickness and scaling the transparency
value so that the calculated non-transparency will be less than 1. The non-transparency
value indicates the maximum saturation of color that was generated. If this value is
greater than 1.0, then the color goes to pure white where this happens in the plot and the
user should lower the “cell transparency” until the reported “maximum non-
transparency” is less than 1.0.
55
Figure 17.1. Dynamic 3D Display.
The dynamic 3D display does not work for lattices and universes and can be slow in
generating complex geometries. There are a number of options for moving around the
geometry including “Roll”, “Pitch” and “Yaw” options that allow the viewpoint to
moved dynamically around the model.
There are also a number of visibility options for the cells including wireframe and
transparent. Figure 17.2 shows a transparent view of the geometry.
56
Figure 17.2. Dynamic 3D Display with a Transparent Geometry.
The resolution used to generate the geometry can be changed, but a higher resolution
will typically take longer to generate. By default, all cells that contain a material will be
displayed. To display individual cells, un-select the “Display Cells with Materials” check
box and then enter the cells to display in the “Cells to Display” text box.
For every line that crosses another line, the Visual Editor will segment the lines. This is
necessary to prevent multiply defined spaces in the MCNP geometry. It also allows the
user to remove a line segment using the “scan” and “delete” options on the “CAD
57
import” panel. To segment the lines, the user selects “Segment” from the “CAD Import”
panel. Figure 18.1 shows a plot of the surfaces before and after segmenting. Notice that
both the lines and circles are segmented. The geometry has still not been converted to an
MCNP format. At this point the user could choose to delete a segment by scanning the
segment in and then choosing the “delete” option.
To convert the file, the user selects the “Convert” option to create the MCNP surfaces
and MCNP cells. It is not necessary to segment the CAD file before converting, if the
user has not yet selected the segment option, the code will automatically detect this and
do the segmenting prior to converting the file. Once the file has been converted to
MCNP, the user should then select “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
58
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 18.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.
59
18.2 3D CAD Import
The 3D conversion capability allows for importing 3D CAD geometries that were created
in CAD using “perimeter modeling” or “solid modeling”. The type of import should be
set in the 3D CAD import window, prior to importing the geometry.
“Perimeter modeling” 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.
Perimeter modeling requires that the CAD bodies be completely contained inside each
other, although they can share one or more common face. With perimeter modeling
unions and intersections are not allowed. An example of perimeter modeling is shown in
Appendix B.
“Solid modeling” allows for a CAD model where all space is defined, including void
spaces, but doubly defined space is not allowed. This is the type of model that is
typically used for manufacturing. With solid modeling a minimum number of
subtractions and unions are allowed.
For conversion to MCNP, perimeter modeling is preferred because the CAD geometry is
simpler and much more reliable for conversion. This document will focus on perimeter
modeling unless otherwise stated.
The 3D CAD file must be exported from CAD in a SAT format in order to be read into
the Visual Editor. The SAT format was used because it is a universal format that can be
written and read by most CAD packages.
The SAT format supports five different types of surfaces. MCNP has equivalents for the
plane, cone (which includes cylinders), sphere, and torus. The program can successfully
convert all these surfaces. SAT also supports a spline surface that is modeled by a third
order polynomial (or greater). Because MCNP does not model above a second order
polynomial, SAT splines had no direct MCNP equivalent. Figure 18.3 shows examples
of some of CAD objects that can be converted.
60
Figure 18.3. Assorted CAD Objects Drawn in a CAD Package
Figure 18.4 shows a 3D display of the CAD objects (shown on the right), after they have
been imported into the Visual Editor. These were then converted to MCNP. The 2D
MCNP plot of the geometry is shown in the left of the figure. The top of the input file is
shown on the bottom left.
61
Figure 18.4 CAD Objects in the Visual Editor after Conversion
A number of features were included in the Visual Editor CAD conversion program to aid
in the conversion of 3D CAD files, including the ability to parse a complex object made
of a number of unions into simpler objects that are easy to convert and the ability to
convert objects with a small number of unions or intersections.
Many files created without prior intent for use with MCNP contain complexities that are
not important for MCNP and as such need to be modified to meet the conversion
constraints.
Because CAD programs place no real world restrictions on the geometry created, it was
necessary to define what constraints must be applied on the CAD software so that the
resulting SAT file could be converted to a valid MCNP geometry.
62
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; however, 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.
18.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.
Once the geometry has been imported, a 3D visualization of the CAD geometry is
displayed. The user can use the mouse to move around the geometry and change the
visibility of individual cells (hidden, solid, transparent or wireframe). Each cell is
displayed in a different color to help differentiate between the different imported bodies.
Figure 18.5shows an example of the display of imported bodies as read from the SAT
file. The top of the building is made transparent, and the pillars and central cone have the
wire frame removed so they appear solid. Details concerning the SAT file are shown in
the right side of Figure 18.5, where each body displayed is identified. When the user
clicks the mouse on a body in the plot window, the selected object will be identified in
the bottom panel on the right. The user can rotate the 3D image and move around the
object as desired, using the “rotate” button or the “yaw”, “pitch” and “roll” buttons.
63
Figure 18.5. 3D CAD Visualization
64
18.6 Conversion of Large Files
To show that the CAD conversion works for large files, a 1,000-sphere case was created.
Each set of 25 spheres was enclosed in a rectangular parallelepiped, to minimize the
number of surfaces used in the creation of the cells in the resulting MCNP geometry.
Without the parallelepipeds, the resulting air space between the 1,000 spheres would be
too complex for MCNP. Figure 18.6 shows the 3D display of the spheres with the boxes
hidden on the front, so the spheres can be seen, and some of the boxes set to transparent
in the back. The resolution of the spheres has been reduced to enable faster geometry
manipulation. The resolution used to generate a curved surface is set with the resolution
text box and indicates the number of intervals to use in 360 degrees.
65
Figure 18.7 shows the resulting MCNP geometry and input file after the CAD file has
been converted to MCNP.
Alternatively, the file can be opened with the File->Open (do not modify input) option
which will read in the input file without modifying it. This will disable the creation
capability of the Visual editor (surfaces, cells, materials, etc.) but the visualization
features will still be available (2D plots, 3D plots, particle tracks, etc.). In this mode, the
unmodified input file will be displayed in the input window. Modifications to the input
66
file can be made in this window and the plot will be updated when save-update is
selected.
22.0 References
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.
67
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.
68
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.
69
Start the Visual Editor
STEP ACTION DESCRIPTION
1. Start the Visual Editor Use Windows Explorer to start the Visual Editor.
2. Select input Open the “Input” window.
3. Enter a title before the Enter the title “Simple problem” at the top of the input window, then PRESS
line containing a default RETURN.
comment card
4. Select “Save-Update” Update the Fortran memory.
70
Create the small sphere
5. Select “Surface” from the Get ready to create surfaces.
main menu.
6. In the surface window set Set the radius of the default “so” surface to 20.
R to 20.
7. In the surface window, Create the surface, which will now appear in the plots.
select “Register”.
71
Set the Surface Labels.
8. Set the Surface label size Make the labels larger so they can be seen.
to 30 in the left window.
9. Click on “Surf” in the left Show surface labels.
plot window.
10. Set the Surface label size Make the labels larger so they can be seen.
to 30 in the right window.
11. Click on “Surf” in the right Show surface labels.
plot window.
72
Create a cell consisting of the small sphere.
12. Select “Cell” from the Get ready to create cell 1 inside the small sphere.
main menu
13. Drag across the sphere in Select the sphere surface. The “1” appears on white area of cell panel.
the left plot window.
14. Click the mouse inside the Set the sense for the surface of the sphere. “POINT ACCEPTED –Select Past or
sphere. Cut” appears on white area of cell panel.
15. Select “Paste” Add the sphere to the cell description.
16. Select “Register” Create the sphere cell.
73
Set the Cell Labels.
17. Set the Cell label size to 40 Make the labels larger so they can be seen.
in the left window.
18. Click on “Cell” in the left Show cell labels.
plot window.
19. Set the Cell label size to 40 Make the labels larger so they can be seen.
in the right window.
20. Click on “Cell” in the right Show cell labels.
plot window.
74
Set the Surface Type to PZ
21. In the “Cell” window, select “Close” Close the cell window to reveal the surface window.
22. In the “Surface” window, select “Activate” Make the surface window the active window. You can also just
click on the top of the surface window to activate it.
23. In the surface window select “Surfaces- Set the surface type to “pz”.
>Plane->pz”
75
Create the PZ surfaces for the cross.
24. Set D to –80 Set the pz coefficient to –80 for the bottom of the cross.
25. In the surface window, select “Register”. Create the surface, only the left plot is updated.
26. Set D to -25 Set the pz coefficient to –25, notice the type is still “pz”.
27. In the surface window, select “Register”. Create the surface, only the left plot is updated.
28. Set D to 25 Set the pz coefficient to 25.
29. In the surface window, select “Register”. Create the surface, only the left plot is updated.
30. Set D to 80 Set the pz coefficient to 80.
31. In the surface window, select “Register”. Create the surface, only the left plot is updated.
76
Create the PX surfaces for the cross.
32. In the surface window select “Surfaces- Set the surface type to “px”.
>plane->px”
33. Set D to -80 Set the px coefficient to –80 for the left side of the cross.
34. In the surface window, select Create the surface, only the left plot is updated.
“Register”.
35. Set D to -25 Set the px coefficient to –25, notice the type is still “px”.
36. In the surface window, select “Register”. Create the surface, only the left plot is updated.
37. Set D to 25 Set the px coefficient to 25.
38. In the surface window, select “Register”. Create the surface, only the left plot is updated.
39. Set D to 80 Set the px coefficient to 80.
40. In the surface window, select “Register”. Create the surface, only the left plot is updated.
77
Create the sphere outside the cross.
41. In the surface window select “Surface->so” Set the surface type to “so”.
42. Set R to 99 Set the radius of the outer sphere to 99 cm.
43. In the surface window, select “Register”. Create the surface, only the left plot is updated.
78
Add the horizontal beam to the cell description.
44. In the “Surface” window, select “Close” Make the surface window go away, we will not need it
anymore.
45. Select “Cell” from the main menu Get ready to create cell 1 inside the small sphere.
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.
79
Add the vertical beam to the cell description.
52. Drag across surface 2 Define the four surfaces of the vertical beam of the cross.
53. Drag across surface 5 Define the four surfaces of the vertical beam of the cross.
54. Drag across surface 7 Define the four surfaces of the vertical beam of the cross.
55. Drag across surface 8 Define the four surfaces of the vertical beam of the cross.
56. Click the mouse inside the Set the sense for the surfaces of the vertical beam.
four surfaces such as near
the center of the sphere.
57. 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. This has been
added on to the beam description using a union operator.
80
Cut out the inner sphere.
58. Drag across surface 1 Cut out the inner sphere.
59. Click the mouse inside Set the sense for the sphere.
surface 1
60. Select “cut” Remove the inner sphere from the cell description.
81
Terminate the Cell at the Outer sphere.
61. Drag across surface 10 Select the outer sphere.
62. Click the mouse outside Set the sense for the outer sphere..
surface 10
63. Select “cut” Terminate the cross at the edge of the sphere in the y direction.
82
Create the Cross Cell.
64. In the cell window, select Create cell 2 consisting of the region inside the cross and sphere, but outside the
“Register”. small inner sphere. Notice the outer sphere disappeared because the current
view of the geometry does not cut through the outer sphere.
83
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.
84
Cut out the Horizontal Beam
68. Drag across surface 6 Define the four surfaces of the horizontal beam of the cross.
69. Drag across surface 9 Define the four surfaces of the horizontal beam of the cross.
70. Drag across surface 3 Define the four surfaces of the horizontal beam of the cross.
71. Drag across surface 4 Define the four surfaces of the horizontal beam of the cross.
72. Click the mouse inside the Set the sense for the surfaces of the horizontal beam.
four surfaces.
73. Select “Cut” Remove the rectangular region from the cell description. Notice the description
now shows the four surfaces with the proper sense set for each surface.
85
Cut out the Vertical Beam
74. Drag across surface 2 Define the four surfaces of the vertical beam of the cross.
75. Drag across surface 5 Define the four surfaces of the vertical beam of the cross.
76. Drag across surface 7 Define the four surfaces of the vertical beam of the cross.
77. Drag across surface 8 Define the four surfaces of the vertical beam of the cross.
78. Click the mouse inside the Set the sense for the surfaces of the vertical beam.
four surfaces.
79. Select “Cut” Remove the rectangular region from the cell description. Notice the description
now shows the four surfaces with the proper sense set for each surface. This has
been removed from the sphere using an intersection operator (a space).
86
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”
87
Create the Outside World.
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.
88
Save the File
85. Select “File->Save” from Get ready to save the file
the main menu.
86. Enter the file name Enter a name for the file.
“isimple”
87. Select “Save” Save the file.
88. Select “File->Exit” Exit out of the Visual Editor.
89
Appendix B
In this example you will create 4 cylinders inside a box in Turbo Cad and import the
geometry into the Visual Editor. For this example we go through the creation of a
perimeter model in CAD for converting to MCNP with the Visual Editor. With perimeter
modeling the inside bodies are not subtracted from the outer bodies. The geometry is
created from the outside in and only the outside perimeter of the body needs to be
modeled. The subtraction of the inner bodies to create the MCNP cells is done the by
Visual Editor Conversion code. In steps 3-6 the outer perimeter of the outer box is
created, but the inner box is not subtracted. In steps 10-12, the inner box is created as a
copy of the outer box. In creating the inner box, only the outside perimeter is modeled
and the inside cylinders are not subtracted.
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 how to generate a CAD geometry that can be imported into MCNP.
90
START TURBO CAD
STEP ACTION DESCRIPTION
1. Start Turbo Cad Bring up Turbo Cad
2. Select NEW FROM Get ready to create a new file.
SCRATCH
91
CHOOSE TO CREATE A BOX
3. Change the body type to a box Set the mode to create a box.
92
MAKE A CUBE 200 ON A SIDE
4. Set the first vertex to (-100, -100, You define a box using three vertices.
-100) PRESS RETURN.
93
MAKE A CUBE 200 ON A SIDE
5. Set the second vertex to (100, You define a box using three vertices.
100, -100) PRESS RETURN.
94
MAKE A CUBE 200 ON A SIDE
6. Set the second vertex to (100, You define a box using three vertices.
100, 100) PRESS RETURN.
95
CHANGE THE VIEW
7. Set the view to a 3D view. Show the box as a 3D object.
96
MAKE A CUBE 14 ON A SIDE
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.
97
COPY THE CUBE
10. Select EDIT->COPY. Copy the cube.
98
PASTE THE CUBE
11. Select EDIT->PASTE. Make a copy of the box
99
RESIZE THE CUBE
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.
100
CREATE A CYLINDER
13. Set the mode to cylinder creation Get ready to make a cylinder.
101
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.
102
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.
103
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.
104
MAKE AN ARRAY OF CYLINDERS
17. Set the mode to SELECT Change to select mode, so we can copy the cylinder
105
SELECT THE CYLINDER
18. With the mouse, SELECT the Select the cylinder
cylinder by clicking on it.
19. Select EDIT->COPY ENTITIES- Get set to make an array of cylinders
>ARRAY
106
CREATE AN ARRAY OF CYLINDERS
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.
107
CREATE A PLANE AT 30 CM
22. PRESS RETURN, to make the Create the array.
array
108
SAVE THE FILE
23. Select FILE->SAVE AS. Bring up the file save dialog
24. Set the SAVE AS TYPE: to SAT Export the file as a SAT file.
25. Set the file type to i4cyl.sat Save the file.
109
IMPORT THE FILE INTO THE VISUAL EDITOR
26. Start the Visual Editor Bring up the Visual Editor
27. Select CAD IMPORT->3D Bring up the panel used to import 2D CAD files
IMPORT
28. Select IMPORT. Get ready to read in the sat CAD file
29. Select the file i4cyl.sat and select Read in the 3D cad file
OPEN.
110
MAKE ALL OBJECTS TRANSPARENT
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.
111
CONVET THE FILE
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.
112
SAVE THE FILE
38. Select FILE->SAVE AS Bring up the file save dialog.
39. Set the filename to i4cyl and Set the name and save the file.
select SAVE.
40. Select FILE-> EXIT Exit the visual editor.
113