PyMCNP
Python tools for MCNP
Install / Use
/learn @FSIBT/PyMCNPREADME
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 pyvista. 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:
# Installing
git clone https://github.com/FSIBT/PyMCNP
cd PyMCNP
pip install -e .
# Running
pymcnp
To contribute, use pre-commit and ruff:
# Installing
pip install pre-commit ruff
cd PyMCNP
pre-commit install
# Running
pre-commit
Testing
To run the PyMCNP test suite, after cloning the PyMCNP GitHub repository, use the following commands to install pytest with pytest-cov inside the PyMCNP directory:
# Installing
pip install pytest-cov
cd PyMCNP
python -m pytest
# Running
pytest --cov --cov-report term-missing:skip-covered
Documenting
To rebuild the documentation using Sphinx and Napolean:
# Installing
pip install sphinx
# Running
cd docs
make html
Copyright and License
For copyright and license information, see the COPYRIGHT and LICENSE files in the top level directory.
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
99.2kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
344.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
