Skip to main content

No project description provided

Project description

MCNPy

Version Documentation Status

A Python package for working with MCNP input and output files. MCNPy provides a lightweight alternative to mcnptools, offering essential functionality for parsing, analyzing, and manipulating MCNP files in Python.

Features

  • Parse and manipulate MCNP input files (materials, PERT cards)
  • Read and analyze MCTAL output files
  • Compute sensitivity data
  • Generate and visualize sensitivity profiles
  • Create Sensitivity Data Files (SDF)

Installation

pip install mcnpy

Quick Start

import mcnpy

# Read an MCNP input file
inputfile = "path/to/input_file"
input_data = mcnpy.read_mcnp(inputfile)

# Read a MCTAL file
mctalfile = "path/to/mctal_file"
mctal = mcnpy.read_mctal(mctalfile)

# Access materials
materials = input_data.materials

# Compute sensitivity data
from mcnpy.sensitivities import compute_sensitivity
sens_data = compute_sensitivity(inputfile, mctalfile, tally=4, nuclide=26056, label='Sensitivity Fe-56')

Documentation

For complete documentation, examples, and API reference, visit: MCNPy Documentation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

mcnpy-0.2.5.tar.gz (74.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcnpy-0.2.5-py3-none-any.whl (83.1 kB view details)

Uploaded Python 3

File details

Details for the file mcnpy-0.2.5.tar.gz.

File metadata

  • Download URL: mcnpy-0.2.5.tar.gz
  • Upload date:
  • Size: 74.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for mcnpy-0.2.5.tar.gz
Algorithm Hash digest
SHA256 d9998a955e8bd4d4f9818056ba459088421ccd85860dbea4aaec2dcbb7f01f26
MD5 c20bfad909ec9339c227f1c593f7c3fd
BLAKE2b-256 f5d67781af15240e5156467574e0abd86ebc51cab9a46682d0d6a23d5f620526

See more details on using hashes here.

File details

Details for the file mcnpy-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: mcnpy-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 83.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for mcnpy-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7818891336e3bf0adfe6b1c5d84927b0fa841397bdb13e2d16594c45cf86a1ce
MD5 cba9b4f84be62c93e705b65d6cc5e4c1
BLAKE2b-256 5991233e04216db46646437ec854483572b5a05641995cff77a8155822593c62

See more details on using hashes here.

Supported by

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