Skip to main content

MCNP Input reader

Project description

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.


pip install mcnp-input-reader


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


A lot of things...


Example taken from here

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcnp_input_reader-0.2.1.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distribution

mcnp_input_reader-0.2.1-py3-none-any.whl (18.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page