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.3.tar.gz (60.9 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.3-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcnpy-0.2.3.tar.gz
  • Upload date:
  • Size: 60.9 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.3.tar.gz
Algorithm Hash digest
SHA256 8482767594fa56d45c7fc477a79ca697461e0478aeba04f4b559f161e33711db
MD5 e2a11bab9c362e875dcc8c5c995fd017
BLAKE2b-256 6bdc81e22fe4d02453c001145a24d840c7b8fee2ad621ccaba5474a5f5cffdd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcnpy-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 69.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 85d51d9a1e3fb03c42bce48e655f07129ca4eb5175bde68636326e27063d9ce8
MD5 92673690719d67dcc0ca60cc7a333dcf
BLAKE2b-256 778b3402259b73d7096de2696e8e8a24677050aa8a83cf913f548593f0e83947

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