TOC PREV NEXT

Moritz Geometry Editor


Material Library



Materials can be imported from and saved to a material library. Importing materials is done on the Material Library dialog. Materials imported from the library can either be added to the current model or can replace a specified existing material. Populating the library is accomplished by the Add to Library button on the Material property page. The current library can be changed with the Choose Library item in the Material Library submenu and on the Material Library dialog. A harmless error or warning message may appear the first time a new empty library is accessed.

The library is a file that uses the MCNP/MCNPX Mn and MTn input syntax and a number of structured comments. The same structured comments are used when writing an input file.

The library file begins with a list of categories followed by a list of names:
c
c Categories Start M
c Category 1
c ...
c Category M
c Categories End
c
c
c Names Start N
c Material 1
c ...
c Material N
c Names End
c

The words in red are reserved case sensitive keywords; they must be the first item following the comment character. The integer after Start is the number of categories or names in the list. The names should be listed in the order in which the materials appear in the library. The material definitions follow the names list.

A typical material entry looks like:
c
c Material 2 Prologue
c    Name Air @ 7200 ft
c    Density 4.0866e-005 (Atom/b-cm)
c    Category Gas
c    Mode n p h
c
c Air @ 7200 ft
c Total Atom Density: 4.08660E-05 a/b-cm
c Total Mass Density : 9.872400E-04 g/cm^3
c
m2
               1001   1.75967e-010
                     ...

The Prologue line must be first; the comments following apply to the material number on that line. The Density value must be followed by either (atom/b-cm) or (gm/cm^3). The density units are case sensitive. The Category is used for sorting the materials on the Material Library dialog. The Mode echoes the MODE line of input file if the material was saved from that file. It does not necessarily mean than the material definition cannot be used in a problem with a different MODE. Visualization settings such as color will be added in the future.

The comments between the last keyword and the Mn line are saved as the material description. It is the user’s responsibility to avoid duplication of keywords in the description.

The description, category, and name can be edited on the Material Description property page. The density is entered on the Material property page. If an input file is read, the density is initially taken from the first cell definition using the material. A warning is given if the density value in the prologue does not match the density from the cell lines. Mn keyword data (such as GAS and NLIB) and MTn [S(alpha,beta)] data are edited on the Material Data property page. There is no provision as yet for editing the composition values; they can be viewed on the Material Composition property page.



White Rock Science
http://www.whiterockscience.com/wrs.html
505 672 1105
email
 
TOC PREV NEXT