/fusion:nlatfrom fusion
Builds, runs, and verifies NLAT input decks for single-nucleon transfer reactions with explicitly nonlocal optical potentials, solved by iteration within the adiabatic distorted wave approximation.
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.
NLAT computes single-nucleon transfer cross sections with explicitly nonlocal nucleon-target optical potentials, inside the adiabatic distorted wave approximation. That is its whole reason for existing. The standard treatment of nonlocality in transfer is the Perey correction factor, a local wave-function correction; the same group's earlier work (Titus and Nunes, PRC 89, 034609 (2014)) showed that correction to be inaccurate, so NLAT drops it and solves the integro-differential equation directly, by iteration from a local seed.
Reference: L.J. Titus, A. Ross, F.M. Nunes, Transfer reaction code with nonlocal
interactions, Comput. Phys. Commun. 207, 499-517 (2016), DOI
10.1016/j.cpc.2016.06.022, GPLv3, CPC catalogue identifier AFAY_v1_0.
The ADWA formalism is Johnson-Tandy (Nucl. Phys. A 235, 56 (1974)), extended to
nonlocal interactions in Titus, Nunes and Potel, PRC 93, 014604 (2016).
Source location. The paper points at the Queen's University Belfast CPC
Program Library, which is retired and returns HTTP 502. The code lives on
Mendeley Data: https://data.mendeley.com/datasets/xnwjvk86bs/1, DOI
10.17632/xnwjvk86bs.1, free, no login. install_nlat.sh handles this.
run_nlat.sh always uses a fresh workdir and refuses a
workdir inside the install tree; verify_nlat.sh sha256-fingerprints the
reference contents before and after the run and aborts if anything changed.front_end.f90 decides what to read next from
what it has already read, and every read is list-directed, so a shifted line
raises no error and silently reinterprets the rest. Edit values in place.beta = 0.05 fm for the local limit, never 0 (the kernel divides by it).
And beware StepSize = 0.01 fm, which the paper recommends: the paper also
says that step needs the small-radius cutoff raised from 2 to 3, but the
released code exposes no such input. AFAY_v1_0 hardcodes the equivalent of
2 in SOURCE/nm.f90 (nmin = int(2*L)), so using the recommended step means
editing that line. Detail in references/failure-modes.md.references/verification.md).scripts/install_nlat.sh fetches AFAY_v1_0 from Mendeley Data, unpacks, builds
with gfortran, verifies the binary runs, and prints NLAT=<path>. Requires
gfortran, make, curl.
~/.cache/fusion/nlat; override with NLAT_ROOT.-std=legacy is required and already in the upstream gfortran makefile: the
package mixes free-form .f90 with fixed-form .f and .for.examples/: dp48Ca_10-0_DWBA.in (local, DWBA,
48Ca(d,p) at Ed = 10 MeV) or dp48Ca_20-0_NL.in (nonlocal, ADWA, same
reaction at Ed = 20 MeV).make-input generator, which asks
the questions in the order front_end.f90 reads them.scripts/run_nlat.sh <deck.in> <workdir>. Builds on first use, runs in a
clean workdir, and asserts that an output directory was created holding at
least one non-empty result file.scripts/verify_nlat.sh reproduces both distributed samples in a
clean room and compares numerically against the shipped reference output.WhatCalc on the first line selects the job:
| value | calculation |
|---|---|
| 1 | n+p bound state (the deuteron) |
| 2 | N+A bound state |
| 3 | d+A scattering state |
| 4 | N+A scattering state |
| 5 | (d,N) transfer |
| 6 | (N,d) transfer |
(p,d) and (n,d) come from the corresponding (d,N) calculation by detailed
balance, not by a separate reaction calculation.
The T-matrix is exact post-form with the remnant term neglected, which the
paper justifies for intermediate-mass and heavy targets. The deuteron is treated
in the Johnson-Tandy ADWA with a single Weinberg state and an s-wave-only
deuteron, so there is no d-state. For the pre-defined Perey-Buck and TPM potentials, nonlocality is applied to the
volume and surface terms with spin-orbit and Coulomb local, which is how
those potentials are defined. The code itself does accept a nonlocal spin-orbit
term on the user-defined route, which also carries an upstream parser bug; see
references/input-reference.md.
beta.NLpotBound.txt or
NLpotScat.txt, which is the hook for a microscopic or dispersive optical
potential. The scattering kernel needs one block per LJ partial wave in the
order NLAT loops, L outer and J inner, for every combination even when the
potential depends only on L. Format in references/input-reference.md.Worth knowing when comparing codes, because the treatments genuinely disagree:
Clean room: fresh fetch, fresh build, fresh workdir, references fingerprinted and
confirmed untouched. Numeric comparison rather than diff, because full
double-precision output differs in the last digit across compilers. Detail in
references/verification.md.
| sample | physics | result |
|---|---|---|
local | 48Ca(d,p) at Ed = 10 MeV, local DWBA | 14 files, 1,863,151 numbers, worst relative difference 2.1e-11 (on a value of magnitude 6e-22, i.e. the noise floor), nothing above 1e-6 |
nonlocal | 48Ca(d,p) at Ed = 20 MeV, nonlocal ADWA | 11 files, worst relative difference 8.4e-07 (the two nonlocal S-matrices, which carry the iteration's stopping tolerance); TransferCS agrees to 1.3e-12. 1 h 26 min |
This is a tier 1 benchmark: the distribution ships reference output and the skill reproduces it to essentially machine precision.
One declared deviation, pinned and evidence-backed: the nonlocal reference
TransferCS.txt carries 180 angles where the shipped deck and code produce 179.
Its reference files are dated a month before the deck they ship with, so they
are stale upstream; the 179 shared angles agree to 1.3e-12. See
references/verification.md.
AGENTS.md (opens in a new tab)examples/dp48Ca_10-0_DWBA.in (opens in a new tab)examples/dp48Ca_20-0_NL.in (opens in a new tab)references/failure-modes.md (opens in a new tab)references/input-reference.md (opens in a new tab)references/upstream-readme.txt (opens in a new tab)references/verification.md (opens in a new tab)scripts/compare_nlat.py (opens in a new tab)scripts/install_nlat.sh (opens in a new tab)scripts/run_nlat.sh (opens in a new tab)scripts/verify_nlat.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
nlat, nonlocal-potentials, transfer-reactions, nuclear-physics, adwa
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