/fusion:sidesfrom fusion
Drives SIDES, a Fortran code that solves the integro-differential Schrodinger equation for neutron or proton elastic scattering off a spin-zero target with a nonlocal optical potential. Computes differential cross sections, analyzing power, spin rotation, and integral cross sections (reaction, elastic, total).
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.
SIDES solves the integro-differential Schrodinger equation for nucleon-nucleus elastic scattering with a nonlocal optical potential, directly in coordinate space (following Raynal's DWBA method), with no iterative seed. It builds or reads the potential (Perey-Buck or Tian-Pang-Ma nonlocal, Koning-Delaroche local, or an external microscopic potential), integrates the radial equation, and outputs the differential cross sections plus analyzing power and spin rotation for a neutron or proton projectile including Coulomb, and integral cross sections (reaction, elastic and total for a neutron; reaction only for a proton).
Upstream: Mendeley Data DOI 10.17632/cmpjgyrngr.1 (CPC Program Library), Fortran 90 + gfortran, no external libraries. It is the seedless counterpart to the iterative nonlocal transfer/scattering codes; SIDES is explicitly designed as the alternative to NLAT's iteration (both are FUSION skills).
sides.x echoes its parsed
inputs to stdout and writes the answer to INTEGRAL-CROSS-SECTION-<system>.
Success means: a zero exit, a result file, finite positive cross sections
(reaction/elastic/total for a neutron, reaction only for a proton), and for a
neutron the optical theorem TOTAL = ELASTIC + REACTION. run_sides.sh asserts
these from the file.references/verification.md. The shipped n+40Ca 20 MeV TPM case gives
(reaction, elastic, total) = (1115.717600, 769.200182, 1884.917782) mb,
agreeing to ~12 significant figures across gfortran 13.3 and 15.2.INPUT and change one field at a time. Field-by-field
reference: references/input-format.md.sides.x runs from and writes to its source directory. The wrappers run it
there and locate the freshest INTEGRAL-CROSS-SECTION-* (clearing stale ones
first, since the filename is derived from the case and a leftover file would
otherwise be read as a fresh result).0.scripts/install_sides.sh downloads SIDES.zip from Mendeley Data, builds it
with gfortran, runs the shipped example as a probe, and prints two lines:
SIDES=<path to sides.x>
SIDES_DIR=<source directory; sides.x reads INPUT and writes output here>
About 2 s. Requires gfortran, curl, unzip. The build overrides the shipped
Makefile's ../sides target (which points outside the package and fails to link
on some layouts) with make exe=sides.x; details in
references/failure-modes.md.
sides.x takes no arguments; it reads answers from stdin:
./sides.x < INPUT # pipe a deck
./sides.x # or answer the prompts interactively
bash scripts/install_sides.sh # prints SIDES= and SIDES_DIR=
bash scripts/run_sides.sh # the shipped n+40Ca 20 MeV TPM case
bash scripts/run_sides.sh /path/to/my_deck # a custom stdin deck
bash scripts/verify_sides.sh # tier-2 benchmark (cross-build pin + optical theorem)
bash scripts/selftest_sides.sh # test the harness guards (11 cases)
n + 40Ca elastic at 20 MeV, Tian-Pang-Ma nonlocal potential (shipped INPUT):
| check | result |
|---|---|
| L1 reaction / elastic / total | (1115.717600, 769.200182, 1884.917782) mb, ~12 sig figs across gfortran 13.3 (Linux) and 15.2 (macOS) |
| L2 neutron optical theorem | TOTAL = ELASTIC + REACTION to ~3.6e-16 |
Tier 2: no shipped reference number exists to reproduce, so L1 is a cross-build
integrity check (not bit-identical, because the integro-differential iteration
makes the last digits toolchain-dependent) and L2 is a code-internal physics
identity. Upgrade path: feed SIDES and NLAT the same Perey-Buck potential and
compare, the intended seedless-vs-iterative benchmark. Full account:
references/verification.md.
See references/failure-modes.md. The ones that bite: the Makefile links to
../sides outside the package (overridden to sides.x); the stdin deck is
positional so a shifted line silently changes the run; output is in the
integral-cross-section file, not stdout; and the result is not bit-identical
across compiler versions (the regression gate is 1e-9 relative, not bit-for-bit).
AGENTS.md (opens in a new tab)examples/README.md (opens in a new tab)references/failure-modes.md (opens in a new tab)references/input-format.md (opens in a new tab)references/output-format.md (opens in a new tab)references/verification.md (opens in a new tab)scripts/install_sides.sh (opens in a new tab)scripts/run_sides.sh (opens in a new tab)scripts/selftest_sides.sh (opens in a new tab)scripts/verify_sides.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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`.Other plugins' skills for the same job