/fusion:colossfrom fusion
Generates, runs, and verifies COLOSS input for two-body elastic scattering with local or Perey-Buck nonlocal optical potentials using complex scaling. Includes auto-install and cross-code benchmarks.
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.
COLOSS (Complex-scaled Optical and couLOmb Scattering Solver) solves the two-body scattering problem with a bound-state technique: complex scaling rotates the radial coordinate by an angle theta so the oscillatory scattering boundary conditions become exponentially decaying, and the problem is solved in a square-integrable Lagrange-Laguerre basis. It handles general local optical potentials and the Perey-Buck nonlocal potential, and returns S-matrices and cross sections. Reference: Liu Junzhe, Lei, Ren, Comput. Phys. Commun. 311, 109568 (2025); source github.com/jinleiphys/COLOSS.
references/verification.md: a cross-code benchmark against FRESCO (n+40Ca, agrees to 4 significant figures) and complex-scaling angle invariance (the answer must not depend on theta). State the agreement explicitly.examples/ holds real input decks (n40Ca.in, alpha40Ca.in, 6Li208Pb.in) that run and converge. Copy the closest one and edit it; do not hand-write a namelist from memory.references/verification.md.scripts/install_coloss.sh checks ~/bin/COLOSS (override COLOSS_BIN_DIR) and PATH; if absent it clones github.com/jinleiphys/COLOSS, builds the bundled C++ Coulomb-wave library (adyo_v1_0/, make), then the Fortran solver (top-level make FC=gfortran), and copies the binary in. scripts/run_coloss.sh calls it on first use. Requires gfortran, g++, git, make, and LAPACK/BLAS (macOS: brew install gcc lapack).compile.sh; the installer bypasses it and calls make directly (non-interactive). The architecture warning it prints on Apple Silicon (aarch64 vs arm64) is a false alarm; the build links fine.COLOSS < input.in > output. COLOSS writes several numbered files (fort.1, 2, 10, 60, 61, 67) into cwd; run in a scratch dir.timeout/gtimeout are absent on this macOS. Runs are fast (a typical case is under 0.1 s), so a cap is rarely needed.A COLOSS deck is a small set of Fortran namelists:
| namelist | controls | key variables |
|---|---|---|
&general | numerics and complex scaling | nr (Laguerre basis size), Rmax, ctheta (scaling angle, degrees), method (1 = Lagrange approximation, 3 = Gauss-Legendre quadrature), matgauss/bgauss (integration flags), backrot (back-rotation), thetah/thetamax (output angle grid) |
&system | the reaction | zp,massp,namep (projectile), zt,masst,namet (target), jmin,jmax (partial-wave range), elab (lab energy, MeV), sp (projectile spin) |
&pot | optical potential | volume real vv,rv,av; volume imaginary wv,rw,aw; surface real vs,rvs,avs; surface imaginary ws,rws,aws; spin-orbit vsov,rsov,asov (real) and vsow,rsow,asow (imag); Coulomb rc. Optional a1,a2 mass overrides (default to massp,masst) |
&nonlocalpot | Perey-Buck nonlocality | nonlocal (t/f), nlbeta (nonlocality range) |
Woods-Saxon depths are in MeV, radii r are reduced radii (multiply by A_t^(1/3) for the physical radius, see rule 3), diffusenesses in fm. The surface term is a derivative Woods-Saxon.
examples/ deck (nucleon: n40Ca.in; light charged: alpha40Ca.in; weakly-bound heavy-target: 6Li208Pb.in).&system for your projectile/target/energy and &pot for your potential. Keep the radius convention in mind (rule 3).scripts/run_coloss.sh <input.in> <scratchdir>, which auto-installs the binary and prints the summed total reaction cross section.nr and Rmax until sigma_R is stable; confirm the partial-wave series is converged in jmax (last rows a small fraction of a mb); confirm sigma_R is invariant under ctheta over a stable window (rule 1). For a physics check, reproduce the FRESCO benchmark in references/verification.md.references/verification.md and baked into run_coloss.sh).ctheta leaves oscillatory tails; too large pushes the rotated potential into an unphysical region. If sigma_R drifts with theta, widen nr/Rmax before touching theta.matgauss,numgauss,rmaxgauss); if the output table is empty, the mesh settings are inconsistent with method. Default to method=1 (Lagrange) unless you specifically need direct quadrature.AGENTS.md (opens in a new tab)examples/6Li208Pb.in (opens in a new tab)examples/alpha40Ca.in (opens in a new tab)examples/n40Ca.in (opens in a new tab)examples/n90Zr-kd02-50MeV.in (opens in a new tab)references/verification.md (opens in a new tab)scripts/install_coloss.sh (opens in a new tab)scripts/run_coloss.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
nuclear-physics, scattering, optical-potential, fortran, complex-scaling
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./exfor-dataRetrieve real measured nuclear reaction data (cross sections, angular distributions, spectra, resonance data) from the IAEA EXFOR database and parse it into clean columns for comparison with a calculation. Use whenever experiment enters the picture: 实验数据, 有没有实验数据, 找实验点, EXFOR, 对比实验, compare with experiment, measured cross section, angular distribution data, add the data to this plot, is there data at this energy. Also use before claiming that a measurement does or does not exist.Other plugins' skills for the same job