Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 957 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 957 Bytes

MCNP Input Reader

The package for reading mcnp input in a pythonic way

PyPI - Python Version License

MCNP Input Reader is a python package developed in ENEA to help the modifications and the check integrity of large mcnp input files.

Install

pip install mcnp-input-reader

Usage

import mcnp_input_reader as mir

mcnp_input = mir.read_file('input.i') 
mcnp_input.cells # return the table of cells
mcnp_input.cells.filter(lambda cell: cell.material_id == 2) # return the cells using material M2

TODO

A lot of things...

Example

Example taken from here