Chemistry and nuclear
Skill ferret-physics-chemistry-nuclear · download all skills · SKILL.md
When to use#
A cold pack, a batch that runs away, a flame, a radiation hazard map, a reactor that must be scrammed, a bomb's yield.
The model#
Chemistry: species and balanced Reactions with Arrhenius rates, in Vessels (volume, temperature, heat exchange hA); equilibrium by reversible reactions; only gas moles make pressure; chem:runaway fires when heating passes a rate. Nuclear: Inventory of isotopes with decay chains, doseRate through layers of shielding (half-value layers), Fallout grid, Reactor with prompt and delayed neutrons, rods, xenon, decay heat, Assembly against critical mass.
Steps#
- Chemistry: build
Chemistrywith aSpeciesLibrary,addreactions (balanced), createVessels,react(dt). - Join to heat with
vesselInPart(ferret-physics-links); burst pressure hands over todetonate. - Nuclear: add isotopes, sources, shields;
reactor.rods,reactor.scram,reactor.state;radiation.dose,radiation.map. - Coasts: coarse
maxSubstep(0.25–1) for long, slow processes. - Commands:
chem.check|info|react,isotope.add,nuclear.info.
Check afterwards#
A reversible reaction reaches the same Kp at different volumes; dose falls by half per half-value layer; without coolant the scrammed fuel still melts, with flow it does not.
What usually goes wrong#
reaction "x" is not balanced: atoms or charge differ.- Nothing reacts:
Eatoo high, or the wrongphase. - A flame far too hot: constant heat capacity; use
FLAME_SPECIESandmethaneFlame. - Stable isotopes have no activity: use
add(atoms). - A reactor will not stay critical: rods not at
rodsCritical.
Files#
reference/chemistry.md— Mixtures that react: reactions with rate laws and equilibrium, catalysts, heat of reaction, pressure in a closed vessel, thermal runaway and bursts.reference/nuclear.md— Radioactive decay, radiation dose through shielding, Geiger counters, reactors you can run and scram, critical masses, activation and fallout.reference/api-physics-chemistry.md— every export of@ferret/physics-chemistrywith signature and doc commentreference/api-physics-nuclear.md— every export of@ferret/physics-nuclearwith signature and doc commentreference/commands.md— 23 commands of these packages with their argumentsrecipes/reactions-and-radiation.md— Six recipes: how much lead, a hot patch that fades and washes, a reactor without cooling, equilibrium shifted by squeezing, a rocket that gains with altitude, a barrel that bursts.recipes/chemistry-with-formulas.md— Six recipes: a substance is a formula, an equation balances itself, a bottle of acid, a piece of lithium in water, lime heating its water, sodium through its melting point.recipes/loss-of-coolant.md— A reactor runs a turbine, a generator and a lamp. The coolant pump stops; the lamp dies, the trip scrams the core, and decay heat warms the containment.