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.2.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.2-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcnpy-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ef2c0a7846913427fb6f753d1b390436eb234f5f6d64e87a76d6adb15dbc9308
MD5 267fa79f588ff5bdf79cd8809bf65315
BLAKE2b-256 0a7f27560153ef34055214383258ed131bbbc7b29ff289c1cd3f424bf89e7f0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcnpy-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8fcb2c5d6e70445d12a671a18e5a979b89e3f636b787cf9744702744dcaf968a
MD5 000761f3c1c39622410abe7bb9195567
BLAKE2b-256 d6aac8cc61ca3a9d186d30a1afa69c75e52e11fa72cfdc6a77f5a3e2d541105c

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