Skip to content

ENEA-Fusion-Neutronics/MCNP-Input-Reader

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages