/fusion:gibuufrom fusion
Drives the GiBUU hadronic transport model for heavy-ion collisions, pion-, photon-, electron-, and neutrino-induced reactions on nuclei. Solves coupled Boltzmann equations for hadrons and resonances. Useful for final-state interactions, quasi-elastic scattering, and particle production in intermediate-energy nuclear physics.
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.
GiBUU solves the Boltzmann-Uehling-Uhlenbeck transport equations for hadrons and their resonances in a nuclear medium. Its distinguishing range is the entrance channel: the same transport core is driven by heavy ions, pions, photons, electrons and neutrinos, which makes it the natural tool for final-state interactions in lepton- and neutrino-nucleus scattering.
Fortran, GNU make. Needs gfortran, perl, libbz2, and GNU find on macOS.
initRandom
namelist reads Seed = 0, the default, as "draw one from SYSTEM_CLOCK()",
and a card with no &initRandom block behaves the same way. Measured: two
Seed = 0 runs used 735342345 and 1426869522 and gave different physics.
With an explicit non-zero seed the output is bit-identical, including across
macOS/ARM and Linux/x86-64. run_gibuu.sh refuses a zero or absent seed
unless you pass --allow-random-seed.references/verification.md.make fails with a misleading
No rule to make target 'iterate'.gfind,
and Makefile.SUBlink calls find with no path argument, which BSD find
rejects. Do not work around it with make FIND=find; that gets further and
then breaks the one call that matters.scripts/install_gibuu.sh downloads, verifies, builds and probes, then prints:
GIBUU=<executable>
GIBUU_ROOT=<source tree>
GIBUU_INPUT=<buuinput database>
GIBUU_LIBPATH=<extra library path, or empty>
It pins both tarballs by SHA-256 and checks version.txt. That is weaker
provenance than a git pin and the skill says so: GiBUU is distributed as
hepforge tarballs and anonymous svn was switched off in 2018, so there is no
commit to pin.
First run takes a few minutes plus a 67 MB download. Overrides:
GIBUU_ROOT_DIR, GIBUU_RELEASE, GIBUU_SRC_SHA, GIBUU_INPUT_SHA,
GIBUU_JOBS, GIBUU_LIBPATH, FC.
scripts/run_gibuu.sh --jobcard "$GIBUU_ROOT/testRun/jobCards/002_Pion.job" \
--outdir /tmp/run1 --seed 20260723
Prints RESULT_DIR=. It copies the job card into the output directory as
jobcard_used.job, rewrites path_To_Input to the real database (every shipped
card carries the authors' own '~/GiBUU/buuinput'), applies the seed, then
asserts a zero exit, the BUU simulation: finished banner, at least one
non-empty .dat file, no NaN or Inf, and none of GiBUU's fatal error lines
(including its decorated !!!!! ERROR ... STOPPING !! form).
GiBUU writes into the current working directory, so the wrapper runs it inside the output directory.
scripts/verify_gibuu.sh # three stages, about 2 minutes
scripts/verify_gibuu.sh --stage 1
scripts/selftest_gibuu.sh # harness only, 50 cases, seconds, no build needed
The three stages are determinism in both directions (same seed identical, different seed different, because the second half is what proves the seed is used at all), a regression against pinned values, and a bookkeeping identity.
A clean run ends in VERIFY OK (tier 2: no physics benchmark is claimed). The
parenthesis is deliberate: this skill never prints a bare tier-1 style verdict.
Field reference taken from the source: references/input-format.md, including
the eventtype table transcribed from code/database/EventTypes.f90. The
shape:
&input
eventtype = 2 ! 2 = LoPion; see the table
numEnsembles = -10
numTimeSteps = 140
delta_T = 0.25
num_runs_SameEnergy = 1
path_To_Input = '/path/to/buuinput'
version = 2025
/
&initRandom
SEED = 20260723 ! PIN THIS; 0 means "use the clock"
/
Start from one of the 84 cards in testRun/jobCards/ rather than from scratch:
which further namelists a run needs depends on eventtype and is not documented
in one place.
references/output-format.md. Two things to know before quoting any number:
pionInduced_xSections.dat, columns 7 and 8 agree by construction, not
as an independent physics check, and column 6 (absorption_xSection) comes
out negative at modest statistics because of how it is defined. Neither is
a defect; both are traps. scripts/check_gibuu_output.py is the single
implementation of the 15-column layout.| stage | what | result |
|---|---|---|
| build | macOS/ARM gfortran 15.2, Linux/x86-64 gfortran 13.3 | unpatched on both |
| cross-build | same card and seed, all 8 output files | bit-identical; 5 files MC-driven, 3 deterministic |
| determinism | same seed / different seed | identical / differs, both asserted |
| identity | two routes to the total | agree (by construction, see verification.md) |
Evidence, and what each item is and is not worth:
references/verification.md.
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/check_gibuu_output.py (opens in a new tab)scripts/install_gibuu.sh (opens in a new tab)scripts/run_gibuu.sh (opens in a new tab)scripts/selftest_gibuu.sh (opens in a new tab)scripts/verify_gibuu.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