Previous Topic   Next Topic   Contents   File Menu

   Read MCNP (MCNP)  


Read MCNP input commands from the file chosen on the file selection popup (using Sabrina's MCNP command). The cell and surface sections of the complete MCNP input are expected. The data section is optional unless the first 2 sections contain references to TR cards in the data section. The sections must be separated by blank lines.

User control is suspended until the read is completed or an error is detected-in which case the user is queried whether or not to continue reading.

The file is echoed in a File Listing Window as it is read if the List Files item under the Options Menu is checked. The lines in the file are echoed as they are processed. If an error occurs during the reading of a file, the offending line should be the last one listed.

The full file name, proceeded by 'MCNP,' is added to the Most Recently Used List under the File Menu.

A second MCNP file may not be read unless Sabrina is RESET.

The MCNP input file cannot contain Sabrina commands.

Comment lines in the MCNP input starting with a C or c in column 1 are accepted, as well as comments on the end of an MCNP input line using $ as a comment delimiter.

Sabrina interprets a c box comment followed by 6 numbers as Spatial Window bounds. For example,

c box -10 10 -20 20 -30 30

in an MCNP input is equivalent to

WINDOW N -10 10 -20 20 -30 30
being issued after the MCNP input is read. The window number N is the first undefined window or 1 if all 10 windows are defined.

After the MCNP command is executed, Sabrina remains in a surface geometry mode. Body geometry is ignored, the DRAW command refer to surfaces rather than bodies, and all cell descriptions reference surfaces. The only body references allowed are for those that will be used as Cutter Bodies. MCNP geometry may be plotted with COLOR and ETCH. A subset of MCNP geometry-spheres, cones, cylinders, and planes-may be plotted with DRAW. Excluded are general quadratics, ellipsoids, hyperboloids, and general planes. MCNP plots produced with DRAW generally require more time than plots produced with COLOR or ETCH.

MCNP commands may also be included in a Sabrina script file (.sab) with the MCNP command. The data section is expected in in-line MCNP input. Since older versions of Sabrina did not necessarily expect the data section, Existing Sabrina script files containing in-line MCNP input may need an additional blank line following the MCNP input.

More About MCNP Input Files