All to be considered work in progress
pip install -e .src/neutron_tools/
├── mcnp/ # MCNP related tools
├── fispact/ # FISPACT related tools
├── nuclear_data_readers/ # Nuclear data file readers (xsdir etc.)
└── utilities/ # Shared utilities and constants
The MCNP team has now released their MCNP tools https://github.com/lanl/mcnptools which is far more comprehensive than this project, but it still has a few useful parts to it.
lost_points:- simple script to read MCNP output file and create a list of x,y,z co-ordinates where particles were lost which can be plotted in visitmcnp_run_plot:- read the dump to std out from MCNP6 and plots graphs of nps vs time, coll, nrn, ctmofile_reduce:- reduces mcnp output file to just the last rendevous data, can be useful if the file size exceeds that of most text editorsmcnp_input_reader:- work in progress, some basic ability to read and extract data from MCNP input filemcnp_output_reader:- work in progress, can read some f2, f4 and f5 tally resultsmcnp_analysis:- work in progress tools to analyse and plot MCNP output when read by mcnp_output_readermeshtal_analysis:- reads MCNP meshtal file, can plot a slice, do some statistics, plot histogram of the rel err, count zeros etcmcnp_ptrac_reader:- reads MCNP ptrac filesmagic:- mesh based magic variance reduction methodr2s_cell:- cell based two step activation tool, currently set for using mcnp and fispact
Example import:
from neutron_tools.mcnp import mcnp_output_readerIt should be noted that these are now mostly for historic usage as UKAEA have released a python fispact API which is superior for most cases.
fispact_input_reader:- currently just template stuff - do not usefispact_output_reader:- currently just template stuff - do not usefispact_analysis:- a few plotting routines for fispact datafispact_fluxes_writer:- useful functions for generating fluxes filesfispact_printlib_reader:- reads fispact printlib files
Example import:
from neutron_tools.fispact import fispact_analysisxsdir_reader:- reads MCNP xsdir files
Example import:
from neutron_tools.nuclear_data_readers import xsdir_readerneut_utilities:- simple functions used by multiple modulesneut_constants:- set of useful constants and unit conversionsgeom_utils:- set of geometry functions, distance between planes, area, volumes, intersections etcoutput_utilities:- common output formatting utilities
Example import:
from neutron_tools.utilities import neut_utilities as ut
from neutron_tools.utilities import neut_constants