DOE OSTI · 2440172
A Python Script to Read MCNP6.3 Surface-Source Files
Abstract
This report provides a Python script to read an MCNP ® surface source file created with the SSW card with SYM = 0 (i.e., the default symmetry treatment). For background: the general format of an MCNP surface-source file is described in; however, that document did not provide coding and/or a tool to interrogate such files. The current format will not be given in this document other than through the record-read statements necessary for the script to function. The reader capability in this report is augmented with the ability to directly write a couple demonstrative outputs: 1. A comma-separated value (CSV) file containing particle phase-space state information and 2. A Matplotlib histogram of the energy distribution of the particles. This report also describes accompanying verification work that shows the script performing as required with MCNP6.2, MCNP6.3, and (expected) MCNP6.4 surface-source files. However, users of the enclosed script must still verify that the script is behaving correctly for their own work.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Kulesza, Joel A.. 2024-09-03. A Python Script to Read MCNP6.3 Surface-Source Files. https://doi.org/10.2172/2440172
Cite the original work for its findings. Save a collection to share your selection of sources.