/fusion:talysfrom fusion
Builds, runs, and verifies TALYS nuclear reaction simulation decks for neutron-, proton-, deuteron-, alpha- and photon-induced reactions below 200 MeV. Covers optical model, direct reactions, Hauser-Feshbach compound nucleus, pre-equilibrium, fission, level densities, photon strength functions, astrophysical rates, and nuclear data evaluation.
Ships in fusion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
TALYS simulates nuclear reactions below 200 MeV for target mass 12 and above, combining the optical model, direct reactions, compound-nucleus Hauser-Feshbach with width-fluctuation corrections, pre-equilibrium (exciton model), and fission, on top of structure models for masses, discrete levels, level densities, photon strength functions and fission barriers. Its design point is that every model choice is a keyword, so model sensitivity studies are loops over decks rather than code changes. It is the engine behind the TENDL library.
Reference: A. Koning, S. Hilaire, S. Goriely, TALYS: modeling of nuclear reactions, Eur. Phys. J. A 59, 131 (2023), DOI 10.1140/epja/s10050-023-01034-3. Manual: TALYS-2.2 - Simulation of nuclear reactions, IAEA(NDS)-0255, DOI 10.61092/iaea.jk8k-mm54, shipped as talys/doc/talys.pdf (890 pages). Both citations verified against CrossRef and INSPIRE; see references/verification.md. Source: github.com/arjankoning1/talys, MIT License.
talys.out. Always grep "TALYS-error" talys.out. A harness that checks $? will report a calculation that produced nothing as a success. This is the single most important thing on this page.org/ directory. scripts/verify_talys.sh <case> reproduces one in a clean room. Benchmarks and their agreement: references/verification.md.LC_ALL=C. The Makefile's source glob is collation-dependent and silently drops 13 files in a UTF-8 locale, giving a link failure that looks like a corrupt source tree. install_talys.sh handles this and asserts it worked.character(len=132) buffer; a long install root truncates filenames and fails at run time with IOSTAT = 2. Budget is 63 characters for the code directory; install_talys.sh refuses to exceed it.talys.inp. Several cases ship an auxiliary energies file that the deck names; without it TALYS aborts (while still exiting 0, see rule 1).references/input-format.md covers the rules and the common keywords, with section pointers.scripts/install_talys.sh clones, checks the structure database is present, builds under LC_ALL=C, and verifies the binary. Requires git, make, gfortran.
~/.cache/fusion/talys (short, as rule 4 requires). Override with TALYS_ROOT, but keep it short. TALYS_FC and TALYS_FFLAGS override the compiler and flags.structure/ and samples/; the separate structure.tar and talys_samples.tar downloads that older instructions mention are no longer needed.scripts/verify_talys.sh with no argument lists all 61. The names encode the variation (n-Sn120-omp-KD03, n-Nb093-WFC-Moldauer, n-Tc099-ld2, n-Th232-fis-wkb, n-Os187-astro-ng).new/ directory and edit the deck. A minimal deck is four mandatory keywords: projectile, element, mass, energy.scripts/run_talys.sh <deck.inp|deck-dir> <workdir>. It builds on first use, runs, and fails loudly on TALYS-error regardless of exit status.scripts/verify_talys.sh <sample-name>. For a new system, check the excitation function is smooth and that the reaction cross section approaches the geometric limit at high energy before trusting anything.Full detail in references/input-format.md. TALYS reads the deck on stdin and writes hundreds of files into the current directory:
talys < talys.inp > talys.out
Seven rules from the manual (Sec. 3.1): one keyword per line; keyword and value separated by a blank; any order; case-insensitive; a keyword must have a value (omit it to get the default); # in column 1 comments a line; and the four keywords projectile, element, mass, energy are mandatory.
The energy keyword takes four forms and two of them depend on a file: a single number, the name of a file in the working directory with one energy per line, a predefined grid (n0-200.grid), or a start/end/step triple. The file form is the origin of rule 5.
talys.out is the human-readable report and ends with a success banner. Data files follow a naming scheme (cross_*.tot inverse cross sections, nn.L08-style exclusive channels by residual level, *spec* spectra, populationE*.out, parameters.dat with partable y, astrorate.* with astro y). Every data file carries a YANDF-0.4 header whose date: and user: lines vary between runs and must be excluded from any comparison.
LC_ALL=C at build time (rule 3). Symptom without it: undefined symbols _abundance_, _adjust_, _afold_, _aldmatch_, _angdis_, _astro_ at link.TALYS-error: Error in <path truncated at 132 chars>, IOSTAT = 2, usually preceded by a flood of TALYS-warning: Duflo-Zuker mass for ... meaning the mass tables were unreadable.TALYS-error: give a single incident energy ... or give a correct name for a pre-defined energy grid.TALYS-warning lines are normal. Duflo-Zuker fallbacks for exotic nuclei with no tabulated mass are expected. They are only a red flag when they appear for well-measured nuclei, which means the structure database is not being found.org/ needs the date and user lines excluded, otherwise every file appears to differ. verify_talys.sh handles this and additionally falls back to a magnitude-split numeric comparison, because near-zero populations differ by float32 residues (exactly 2^-17) whose relative differences are meaningless.references/verification.md.Clean room: fresh clone, fresh build, fresh workdir with no reference present, stderr inspected, output grepped for errors. Full detail in references/verification.md.
These byte-for-byte results were measured on macOS/ARM, and byte-for-byte is not what another platform will see. The same n-Th232-fis-wkb case rebuilt from scratch on Linux x86-64 (Ubuntu 24.04, gfortran 13.3) reproduces the distributed reference to about 5.4 significant figures, not exactly: 1290 physical observables, worst relative difference 3.89e-06 (ref 0.256981 against 0.256983). That is the expected size of a compiler and libm difference in a code this large, and verify_talys.sh reports it in exactly those terms. Judge a run on the physical-observables line, and do not read "not bit-identical" as a broken build.
| sample | physics | result |
|---|---|---|
n-Nb093-14MeV-full | full output set, spectra, angular distributions, DDX | 750/750 files bit-identical |
n-Th232-fis-wkb | fission, WKB barriers | 128/128 bit-identical |
n-Os187-astro-ng | astrophysical (n,gamma) rates | 37/37 bit-identical |
p-Mo100-medical | proton medical isotope production | 74/74 bit-identical |
n-Sn120-omp-KD03 | KD optical model over an energy grid | 430/449 bit-identical; of the 19 differing, 1 is talys.out (timing) and 18 are data files agreeing to ~6 significant figures on 4633 physical observables, which is the precision of the output format |
Totals: 1419 of 1438 distributed reference files reproduced byte for byte (ignoring the date, user and timing lines); the 19 that differ are all in the one Sn120 case and agree to the last printed digit. The count was independently re-derived in an adversarial review, which corrected an earlier draft figure of 1415.
AGENTS.md (opens in a new tab)examples/n-Nb093-14MeV-full.inp (opens in a new tab)examples/n-Os187-astro-ng.inp (opens in a new tab)examples/n-Sn120-omp-KD03.energies (opens in a new tab)examples/n-Sn120-omp-KD03.inp (opens in a new tab)references/input-format.md (opens in a new tab)references/verification.md (opens in a new tab)scripts/install_talys.sh (opens in a new tab)scripts/run_talys.sh (opens in a new tab)scripts/verify_talys.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
nuclear-reactions, talys, hauser-feshbach, optical-model, nuclear-data, tendl
npx claudepluginhub jinleiphys/fusion --plugin fusion29 skills in this plugin
/azure2Drive AZURE2, the Notre Dame multichannel R-matrix code of Azuma et al. (Phys. Rev. C 81, 045805 (2010); GPL-3.0). Write, run and verify .azr configuration files for low-energy charged-particle reactions in nuclear astrophysics: radiative capture, elastic scattering, resonance and subthreshold contributions, external (direct) capture normalised by ANCs, S-factor extrapolation to stellar energies, and reaction rates. Use for 跑AZURE2, AZURE2 input, .azr, R-matrix, R矩阵, 天体物理S因子, astrophysical S factor, direct capture, external capture, ANC, 渐近归一化系数, subthreshold state, CNO cycle capture, resonance analysis./bandBayesian uncertainty quantification for nuclear physics with the BAND framework (Bayesian Analysis of Nuclear Dynamics, bandframework v1.0.0): calibrate a model's parameters against data with surmise, build a fast reduced-basis emulator of nucleon-nucleus elastic scattering with rose, and combine several models' predictions with Bayesian model mixing in Taweret; also routes to the other BAND tools (jitr, Bfrescox, OpenBT, parMOO, PUQ, pybmc, LCGP, mooGP, Smooth Emulator). Use for Bayesian calibration, 贝叶斯校准, 参数后验, posterior, MCMC, emulator, 仿真器, surrogate model, Gaussian process emulator, reduced basis, reduced-order model, ROSE, optical potential calibration, 光学势不确定度, uncertainty quantification, UQ, 不确定度量化, model mixing, 模型混合, Bayesian model averaging, BMM, Taweret, surmise, BAND framework, experimental design. For running FRESCO itself use the `fresco` skill; for fitting a FRESCO deck by chi-squared use `sfresco`./ccfullDrive CCFULL, the all-order coupled-channels code for near-barrier heavy-ion fusion (K. Hagino, N. Rowley, A.T. Kruppa, CPC 123 (1999) 143). Write, run, and verify CCFULL input for fusion excitation functions, barrier distributions, and mean angular momenta with vibrational or rotational couplings and pair transfer. Use for 跑ccfull, CCFULL input, heavy-ion fusion, near-barrier fusion, coupled-channels fusion, fusion excitation function, barrier distribution, 熔合截面./cgmfDrive CGMF, the LANL fission-fragment de-excitation Monte Carlo code of Talou, Stetcu, Jaffke, Rising, Lovell and Kawano (Comput. Phys. Commun. 269, 108087 (2021); BSD-3-Clause). Run and analyse event-by-event simulations of prompt fission neutrons and gammas emitted by excited fission fragments, for spontaneous fission (Cf-252/254, Pu-238/240/242/244) and neutron-induced fission (U-233/234/235/238, Np-237, Pu-239/241) from thermal to 20 MeV: average and distributional neutron and gamma multiplicities, spectra, fragment mass/charge/TKE yields, and n-gamma correlations. Use for 跑CGMF, CGMF input, 裂变, fission, prompt fission neutrons, PFNS, prompt fission gammas, nu-bar, 中子多重性, neutron multiplicity, fission fragment yields, Hauser-Feshbach fission, 252Cf spontaneous fission, event-by-event fission./cnokDrive CNOK, the C++ Glauber-model single-nucleon knockout code of Y.Z. Sun and S.T. Wang (Comput. Phys. Commun. 288, 108726 (2023); GPL-3.0, gitee.com/asiarabbit/cnok). Compute single-particle removal cross sections (stripping + diffractive dissociation) and parallel (longitudinal) momentum distributions of the heavy residue (core) in one-nucleon knockout from intermediate-energy (30 MeV/u to 2 GeV/u) stable and radioactive beams on a light composite target, via the eikonal/sudden Glauber model with a t-rho-rho optical potential; supports batch mode over valence configurations (C2S-weighted inclusive cross sections and momentum distributions, spectroscopic-factor / quenching studies). Use for 跑CNOK, CNOK input, Glauber, 敲出, knockout, single-nucleon removal, stripping, diffractive dissociation, 动量分布, momentum distribution, sigma_sp, single-particle cross section, spectroscopic factor, 谱因子, C2S, quenching, eikonal, sudden approximation, t-rho-rho, 16C knockout, exotic nuclei knockout, MOMDIS./colossDrive COLOSS, the complex-scaled optical and Coulomb scattering solver (Liu Junzhe, Lei, Ren; CPC 311, 109568, 2025). Write, run, and verify COLOSS input for two-body elastic scattering with local or Perey-Buck nonlocal optical potentials, computing S-matrices and cross sections by complex scaling. Use for 跑coloss, COLOSS input, complex scaling scattering, 复标度散射, bound-state technique scattering, S-matrix from Lagrange-Laguerre basis.Other plugins' skills for the same job