Skip to content

sellitforcache/MCNPtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCNPtools

Ryan M. Bergmann, 2018.

Python scripts that are useful for streamlining MCNP runs, managing material definition data, analyzing MCNP results, and creating weight windows from flux maps.

Contains:

  • Mctal and Tally classes to parse mctal files. Plotting methods to make life easier and to eliminate potential errors of doing it by hand. Mctal class contains a method that can write weight windows based on mesh tally results
  • calculate_materials module that provides a Mixture class and useful data to perform general mixing of materials and then print MCNP input cards from the results
  • convert2singlefile.py script that inlines all 'read file' lines of a MCNP input file. It also automatically wraps lines at 80 characters.

Installation

$ python setup.py install

This will install the MCNPtools module into your local Python distribution. It will also install the convert2singlefile.py script into your userbase/bin directory.

Usage

Usage examples can be found in the examples folder. Each folder contains its own README.md file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages