技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
openmc【数据与研究】Guide OpenMC Python and native Monte Carlo particle-transport workflows: install and build the runtime, construct models, prepare nuclear data and depletion, inspect tallies/results, and diagnose optional solver integrations.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task mentions OpenMC, continuous-energy or multigroup
Monte Carlo transport, CSG reactor/fusion geometry, cross_sections.xml,
statepoint/tally files, depletion chains, MGXS, random ray, CMFD, or the
openmc.lib C API. This is a router, not a replacement for the detailed
workflow references.
For a request spanning routes, establish setup/data gates first, construct the model next, then run transport and inspect outputs. Do not route an output-file problem to model construction merely because the model created the file.
Report the gates separately:
import openmc and the base Python dependencies work.openmc executable is available for transport and subprocess workflows.import openmc.lib loads a compiled shared library for C API/library mode.cross_sections.xml parses and every referenced data file exists and is
compatible with the requested energy mode.An XML export proves only Python model serialization. It does not prove a transport run, native library, cross-section coverage, or tally correctness. Use troubleshooting when a gate is ambiguous.
For a supported Python environment, install the public package and its focused test tools as needed, then run:
python -m pip install openmc
python -c "import openmc; print(openmc.__version__)"
A source build is a separate CMake workflow; read setup-runtime before
assuming that a Python install supplies the executable or libopenmc.
Avoid downloading nuclear data or changing shell startup files without explicit
user approval. Keep data and generated inputs in a dedicated working directory.
OMP_NUM_THREADS and strict reproducibility when comparing results.Path values and validate XML/HDF5 inputs before interpreting a
physics or geometry error. Keep missing data, missing native artifacts, and
invalid model inputs as distinct diagnoses.