Python-based MCNP tools.
Project description
PyMCNP
PyMCNP supports running Monte Carlo N-Particle (MCNP) simulations. It parses MCNP files, enabling automation such as parameter scans, creates MCNP geometry visualization using cadquery, and can run MCNP in parallel across multiple machines (including support for clusters). PyMCNP provides a Python API for MCNP input and output files and a command line interface for interacting with MCNP and MCNP files.
Find more information on ReadTheDocs.
Installation
PyMCNP is available on PyPI and can be pip installed
.
pip install pymcnp
Contributing
PyMCNP source code is accessable for contributions, suggestions, and bug reports on GitHub. The following command downloads PyMCNP source code and installs pymcnp
and its dependencies in editable mode:
git clone https://github.com/FSIBT/PyMCNP
cd PyMCNP
pip install -e .
If you plan to contribute, you should also enable pre-commit
pip install pre-commit
# cd into repo
pre-commit install
from within the top level directory in the git repository.
Testings
To run the PyMCNP test suite, after clone the PyMCNP GitHub repository, use the following commands to install Pytest (Docs) inside the PyMCNP directory:
pip install pytest
After instaling pytest
, test the pymcnp
package by calling the following commands inside the PyMCNP directory:
cd PyMCNP
python -m pytest
Copyright and License
For copyright and license infromation, see the COPYRIGHT
and LICENSE
files in the top level directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pymcnp-0.2.0.tar.gz
.
File metadata
- Download URL: pymcnp-0.2.0.tar.gz
- Upload date:
- Size: 52.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5406ef5e95e72b9f2dd8352d08daf5ccdf62b46b4f576335971ad2736a77485 |
|
MD5 | 70ca166b10d852255608a4c454ad3511 |
|
BLAKE2b-256 | d51dcb01e2085ff3db4036ba0b305f6468c735d5dbef80bfb3d8123c7a11eeac |
File details
Details for the file pymcnp-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pymcnp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 138.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4e10fe5ca276e8d1eb1f89c8dac8b8e65d11b260506bbf84ed006abb49f1f0a |
|
MD5 | 2b7bf8a0e2fd0e531a15d047da7b7495 |
|
BLAKE2b-256 | 105f14cf21a326c8db189ae9d5b5e36c495777dc6aa1b96a7c0de351c2a685c8 |