技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
nuclear-data-depletion【数据与研究】Use OpenMC nuclear-data libraries, cross_sections.xml indexes, depletion chains, MGXS/MicroXS workflows, depletion integrators, restarts, and data-dependent validation with explicit runtime gates.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this route when the task involves continuous-energy or multigroup nuclear data, ENDF/ACE/HDF5 conversion, a depletion or activation chain, MGXS/MicroXS, transport-independent depletion, depletion results, or a restart/decay/R2S workflow. This route explains the data and depletion contract; it does not replace the model, executable, or result-reader routes.
depletion_results.h5 file? Do not treat one as another.openmc.lib. An independent operator needs a valid chain and supplied
flux/MicroXS data; its numerical solve can be transport-free, but import and
operator behavior still depend on the installed package and, for some
helpers, the native binding.python path/to/validate_data_paths.py --cross-sections /path/to/cross_sections.xml.
It never downloads data. Read data-formats.md
for path resolution and HDF5 checks.Report these independently rather than collapsing them into “OpenMC works”:
import openmc, openmc.data, and the requested pure-Python
classes/signatures work. This supports object construction, XML parsing,
chain/MicroXS shape checks, and some result-file readers.import openmc.lib loads libopenmc.so (or the
platform equivalent). It is required for C API/library mode and the
transport-coupled depletion operator. Base Python import can succeed while
this gate fails.cross_sections.xml parses, its referenced
files exist, and each referenced HDF5 file has a compatible file type/schema.
An index alone is not a library.mgxs.h5 has compatible group metadata,
datasets, materials/nuclides, and model energy_mode='multi-group' settings.With the known inspection environment, treat Python 3.12 and the representative
base APIs as available, libopenmc.so as unavailable until a native build proves
otherwise, and OPENMC_CROSS_SECTIONS as unset. Do not download a data bundle or
run transport merely to improve this verdict.
OPENMC_CROSS_SECTIONS, or broad environment setup:
route to setup-runtime.Results.get_atoms, get_keff, and reaction rates.(nuclide, reaction, group)
shape and barn units, and ensure each flux has the matching group count.power, power_density,
or source_rates), timestep units, integrator, solver/substeps, material
volumes, and restart/continuation policy. A zero source rate is a valid
decay-only setup, not evidence that transport data was checked.A data/depletion task is complete only when the requested files and units are identified, relevant data paths and schemas are checked, the chosen operator and integrator semantics are consistent, and every unavailable native or data gate is reported. A successful API/XML/parser check must not be reported as a successful transport, MGXS tally, or coupled depletion run.
The validator is intentionally narrow and safe: it accepts an explicit
--cross-sections XML path, parses without network access, resolves
<directory>, <library>, and <depletion_chain> references, reports missing
files and malformed XML, and performs lightweight HDF5 file-type, version, and
listed-top-level-group checks when h5py is available. See
validate_data_paths.py for its command-line
contract.
This skill distills the public openmc.data, openmc.deplete, and openmc.mgxs
APIs, user-guide data/depletion/processing guidance, nuclear-data/depletion/MGXS
format descriptions, the small depletion and multigroup examples, and the data,
depletion, MGXS, restart, and transport-free test expectations. It deliberately
omits bundled nuclear-data archives, download automation, private environment
paths, and expensive transport/regression commands.