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.1.tar.gz (60.1 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.1-py3-none-any.whl (68.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcnpy-0.2.1.tar.gz
  • Upload date:
  • Size: 60.1 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.1.tar.gz
Algorithm Hash digest
SHA256 015d4b4ef611b49199a8cb43b4c432292abc06e0f989ce31b57ba905adf9b6ed
MD5 f4043ed58ff938bba25d47b94f7e1df9
BLAKE2b-256 b6cc14c3306a6c62862a6099c455a434e92230df7df27602e70d306a5de0f3ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcnpy-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 68.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac4b91bce9c0c380a9819843ecc8a71541a6551424712344f39f569bc551bf55
MD5 f973ffabbfbdfb2781e96a487c094a81
BLAKE2b-256 b86673b92f6b8be922ab550a3a052c6b19b3bbac146cc65211e2fe7ebe8e2afc

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