/fusion:sky3dfrom fusion
Drives Sky3D, a nuclear time-dependent Hartree-Fock code for solving the Skyrme-Hartree-Fock problem on a 3D cartesian grid. Supports static mode for ground states and constrained states, and time-dependent mode for heavy-ion collisions, giant-resonance strength functions, and real-time mean-field evolution.
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.
Sky3D solves the Skyrme energy-density-functional mean-field problem on a three-dimensional cartesian grid with no symmetry restrictions. The static mode converges a ground state by damped gradient iteration; the dynamic mode propagates the single-particle wavefunctions in real time, which is what makes it a heavy-ion collision and giant-resonance code rather than only a structure code.
Fortran 90, optionally OpenMP or MPI, needs FFTW3 and LAPACK/BLAS.
for005 and live in the working directory.
Sky3D opens that literal filename; it does NOT read standard input, so
sky3d.seq < mydeck fails with Cannot open file 'for005'. Use
scripts/run_sky3d.sh --deck <file>, which copies the deck into place..res
tables and the *.tdd density dumps are opened by fixed name in the current
directory, so two runs in one directory overwrite each other silently.for006 with diff. A physically identical run differs
from the reference on about 1900 lines, all of them either the orientation of
a degenerate single-particle multiplet (an arbitrary basis inside a degenerate
subspace) or a quantity that is zero by symmetry. Use
scripts/compare_sky3d.py, whose header explains exactly what it excludes and
why.Test/Static ships input and the authors' output, and
this skill reproduces it exactly at printed precision. Test/Collision ships
reference .res tables whose actual input, the binary O16 wavefunction, is
NOT distributed, so those tables cannot be reproduced. See
references/verification.md; do not quietly present the collision as a
benchmark.maxiter exits 0 and prints a full final block. Compare the iteration count
against maxiter.references/failure-modes.md). Academic use is granted; redistribution is not
yours to grant, and this skill vendors no Sky3D source.for006. It is not
your deck. Re-run it. The failure is loud, so the harness rejects it rather
than accepting a truncated result; a run that completes is always correct.
Measured numbers and the refuted stack hypothesis: references/failure-modes.md.scripts/install_sky3d.sh clones upstream at a pinned commit, locates FFTW,
builds with gfortran, runs a 5-iteration probe that requires a finite bound
energy, and prints three lines:
SKY3D=<path to the executable>
SKY3D_ROOT=<repository root>
SKY3D_TESTS=<Test/ directory with the distributed cases>
About 16 s from a cold clone (measured: clone, build and probe). It occupies 37 MB, of which 26 MB is git history, so a shallow clone lands nearer 11 MB. Needs git, gfortran, python3, FFTW3, and
LAPACK/BLAS (Accelerate provides it on macOS; on Linux use -llapack -lopenblas,
and get FFTW from conda-forge if the box lacks it).
Environment overrides: SKY3D_ROOT_DIR, SKY3D_REPO, SKY3D_PIN,
SKY3D_MAKE_TARGET (seq, omp, apple, apple_omp, or a *_debug variant),
SKY3D_FFTW_PREFIX.
scripts/run_sky3d.sh --deck mydeck.in --workdir /tmp/run1
Prints RESULT_DIR= and RESULT_FOR006=. It asserts a zero exit, a non-empty
for006, no fatal error on stderr, no NaN or numeric-field overflow, a finite
total energy, and at least one printed iteration (static) or time step (dynamic).
A dynamic run needs its fragments staged. The shipped collision deck reads
../Static/O16, so give --root, the directory that holds both Static/ and
Collision/, and the destination is then allowed to leave the workdir as long as
it stays inside that root:
mkdir -p /tmp/run/Collision
scripts/run_sky3d.sh --deck collision.in \
--workdir /tmp/run/Collision --root /tmp/run \
--fragment /tmp/o16/O16:../Static/O16
The destination is relative to the working directory because the deck's
filename= is. It is resolved canonically, symlinks included, and rejected if it
lands outside --root; without --root the root is the workdir, so a ..
destination is refused.
scripts/verify_sky3d.sh # static 16O, about 20 seconds
scripts/verify_sky3d.sh --with-collision # plus the 16O + 16O case, about 45 min
scripts/selftest_sky3d.sh # harness only, seconds, no build needed
Full field reference, taken from the namelist declarations in the source:
references/input-format.md. The shape is always the same:
&files wffile='O16' /
&force name='SV-bas', pairing='NONE' /
&main imode=1, mprint=10, mplot=0, nof=0, tfft=T /
&grid nx=24,ny=24,nz=24, dx=1.0, periodic=F /
&static nprot=8, nneut=8, radinx=3.1,radiny=3.1,radinz=3.1,
x0dmp=0.40, e0dmp=100.0, maxiter=2000, serr=1D-6 /
imode=1 is static and imode=2 dynamic; nof is the number of fragments read
through &fragments. nprot/nneut are the FULL proton and neutron numbers, not
valence occupations. Set mplot=0 for a benchmark, or the run writes large
density dumps you do not need.
For a collision, replace &static with &dynamic nt=1000, dt=0.2, rsep=16 / and
add &fragments filename=2*'../Static/O16', ecm=100, b=2, fix_boost=F, ... /,
whose wavefunction files come from a prior static run.
references/output-format.md. In short: for006 is the log, and the three
blocks worth parsing are the energy functional (Total: plus the tN part
terms), the single-particle tables (use Ekin and Energy, never the Lx
through Sz columns), and the moments table (Part.Num., rms-radius and
<x_i**2> are determined; q20 and the centroids are symmetry residues for a
spherical case). The .res tables are plain columns, one row per mprint.
16O with SV-bas, no pairing, 24^3 grid at 1.0 fm, converged in 370 iterations:
| quantity | value |
|---|---|
| total binding energy | -116.6577 MeV |
| rms radius (total / n / p) | 2.6884 / 2.6764 / 2.7004 fm |
| lowest neutron s.p. energy | -31.245 MeV |
Reproduces the distributed Test/Static/for006.static exactly at printed
precision: 266 energy-functional values, 2432 single-particle values and 570
determined moments, on both macOS ARM (gfortran 15.2) and Linux x86-64
(gfortran 13.3), same 370 iterations. Every run that completes reproduces it;
see the stability caveat above for the roughly 4 per cent of macOS runs that do
not start. Details and the collision caveat:
references/verification.md.
references/failure-modes.md, ten of them, starting with the for005 filename
trap and ending with the licence.
AGENTS.md (opens in a new tab)examples/README.md (opens in a new tab)references/cross-platform-manifest.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/check_collision_sky3d.py (opens in a new tab)scripts/compare_sky3d.py (opens in a new tab)scripts/install_sky3d.sh (opens in a new tab)scripts/run_sky3d.sh (opens in a new tab)scripts/selftest_sky3d.sh (opens in a new tab)scripts/validate_sky3d_output.sh (opens in a new tab)scripts/verify_sky3d.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