FP

fsibt/pymcnp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

23 stars 品質 52 トレンド 30NOASSERTION

MCNP用のPythonツール

概要

PyMCNPは、モンテカルロN粒子(MCNP)シミュレーションを実行しています。 MCNPファイルを解析し、パラメータスキャンなどの自動化を可能にし、pyvistaを使用してMCNPジオメトリの可視化を作成します。 PyMCNP は MCNP 入出力ファイルと MCNP ファイルと MCNP ファイルとのやり取りを行うコマンドラインインターフェイスの Python API を提供します。 PyPI で PyMCNP が使用可能で、 "pip install" が使用できます。 2026-10-14 と同様に、PyMCNP の doe snot は Python 3.15 をサポートしていません。 PyMCNPは、API、解析契約、Claude CodeなどのAIコーディングエージェントに共通する落とし穴を記述するスキルファイル、SKILL.mdを出荷します。 インストールされたスキル(Claudeコードの場合、~/.claude/skills/pymcnp/SKILL.md)にコピーして、エージェントは、ショート説明からMCNPモデルを書き込み、スキャン、実行、およびプロットすることができます。そのため、MCNPを自動化することは複雑な幾何学にも簡単になります.

概要(AI 翻訳)

PyMCNPは、モンテカルロN粒子(MCNP)シミュレーションを実行しています。 MCNPファイルを解析し、パラメータスキャンなどの自動化を可能にし、pyvistaを使用してMCNPジオメトリの可視化を作成します。 PyMCNP は MCNP 入出力ファイルと MCNP ファイルと MCNP ファイルとのやり取りを行うコマンドラインインターフェイスの Python API を提供します。

ReadTheDocs の詳細情報をご覧ください。

インストール

PyPI で PyMCNP が使用可能で、 “pip install” が使用できます。

pipインストールpymcnp

PyMCNP は Python 3.11 から 3.14 まで対応しています。

2026-10-14 の PyMCNP の doe snot は、PyMCNP の依存関係 vtk] で pyvista] が Python 3.15 をサポートしていません。

#AIコーディングエージェントによる自動化

PyMCNPは、API、解析契約、Claude CodeなどのAIコーディングエージェントに共通する落とし穴を記述するスキルファイル、SKILL.mdを出荷します。 インストールしたスキル(Claudeコードの場合、~/.claude/skills/pymcnp/SKILL.md]にコピーします)で、エージェントは短い説明からMCNPモデルを書き込み、スキャン、実行、およびプロットすることができます。そのため、MCNPを自動化することは複雑な幾何学にも容易になります。 ReadTheDocs の 441 の鉄はフラックスのプロットが付いている荒いコンクリートの床上のディスク、作成されました短いプロンプトからのこの方法.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

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

PyMCNP supports Python 3.11 to 3.14.

As of 2026-10-14, PyMCNP doe snot support Python 3.15 since PyMCNP dependency vtk via pyvista does not support Python 3.15.

Automation with AI Coding Agents

PyMCNP ships a skill file, SKILL.md, that describes the API, the parsing contract, and the common pitfalls to an AI coding agent such as Claude Code. With the skill installed (for Claude Code, copy it to ~/.claude/skills/pymcnp/SKILL.md), an agent can write, scan, run, and plot MCNP models for you from a short description, so automating MCNP becomes easy even for complex geometries. The example on ReadTheDocs, 441 iron discs over a rough concrete floor with a flux plot, was created this way from a short prompt. Always review generated models and results before relying on them.

Contributing

PyMCNP welcomes contributions, including issues, pull requests, and MCNP files that PyMCNP fails to parse or visualize.

For more information, see the CONTRIBUTING.md file.

For copyright and license information, see the COPYRIGHT.md and LICENSE.md files.

GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add fsibt/pymcnp
MCP 初心者?mcpskill.org のガイドから始めましょう →