Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

A Python Script to Read MCNP6.3 Surface-Source Files

Technical Report ·
DOI:https://doi.org/10.2172/2440172· OSTI ID:2440172
 [1]
  1. Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)

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.

Research Organization:
Los Alamos National Laboratory (LANL), Los Alamos, NM (United States)
Sponsoring Organization:
USDOE National Nuclear Security Administration (NNSA)
DOE Contract Number:
89233218CNA000001
OSTI ID:
2440172
Report Number(s):
LA-UR--24-29475
Country of Publication:
United States
Language:
English

Similar Records

A Python Script to Convert MCNP Unstructured Mesh Elemental Edit Output Files to XML-based VTK Files
Technical Report · Mon Sep 23 00:00:00 EDT 2019 · OSTI ID:1574726

Verification and Validation of the New MCNP6.3 Criticality Features
Conference · Tue Oct 03 00:00:00 EDT 2023 · OSTI ID:2204814

Python Library For Reading Endf Files
Software · Mon Jun 22 20:00:00 EDT 2020 · OSTI ID:code-120320

Related Subjects