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.

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

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mcnp_input_reader-0.2.1.tar.gz.

File metadata

  • Download URL: mcnp_input_reader-0.2.1.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.15.0-1014-azure

File hashes

Hashes for mcnp_input_reader-0.2.1.tar.gz
Algorithm Hash digest
SHA256 dd58453de899c66893a9cd3138f24851964cebb41209b4fcf4fda3d9c2a5ed62
MD5 7ff255208fd97a5bfc74df7c340c5929
BLAKE2b-256 02870d4b34c1f699f7ecbc399d50445ad096cd83e137f77c5d2dbeeacdc0ae48

See more details on using hashes here.

File details

Details for the file mcnp_input_reader-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mcnp_input_reader-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.15.0-1014-azure

File hashes

Hashes for mcnp_input_reader-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44e6a14398411fe37d0d55a3de50471ba9f46031e680aa7f54f1870a560e6dc3
MD5 0f9d680e06c8c04d149117c09e3efc73
BLAKE2b-256 37ee506f418bf6324314cef60b1a052c5ad36a9174ec068cccc572272b71ab37

See more details on using hashes here.

Supported by

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