# Comet activity and auroras — reduced model v1 (r5)

This is a partial independent implementation, not Universe Sandbox parity or a space-weather prediction. The 144-case causal registry is design coverage and remains open. Numerical implementation: activity.js; transport and process integration: physics.js; editor: activity-ui.js; visual response: appearance.js, visuals.js, aurora-visual.js. Tests: activity-tests.mjs and existing regression suites.

## Comet mechanism and accounting

For a spherical, rapidly redistributed surface, absorbed flux is (1−albedo) × 1361 W/m² × sum(L/Lsun / rAU²) / 4. A finite surface heat capacity evolves temperature using an implicit energy balance: storage + emissivity × Stefan–Boltzmann net emission + latent heat of gas loss = absorbed flux. Emissivity is 0.95; background is 2.7 K. Water, CO₂ and CO sublimation use a simplified Clausius–Clapeyron pressure exp(A−B/T) Pa and the Hertz–Knudsen free-escape flux. Constants (A,B,L J/kg,molar kg/mol): water (28.9,6141,2.83e6,.018015); CO₂ (27.8,3168,5.9e5,.04401); CO (22.9,764,2.27e5,.02801). These fixed-coefficient approximations are not precision vapor-pressure curves over all temperatures. Surface exposure is active-area fraction × assumed bulk mass fraction; subsurface diffusion is absent.

Default illustrative composition: 35% water, 8% CO₂, 2% CO, 55% refractory material; exposed fraction 5%, areal heat capacity 100000 J/m²/K and dust/gas ratio 0.5. These are not fitted measurements of Halley, 67P or imported objects. Existing water-coverage and old cometActivityScale metadata do not supply this inventory. Initial reserves come from current body mass. Applying composition explicitly repartitions current mass and resets the reservoir/ledger. External mass edits rescale remaining inventory and mark externalRescale.

Each step bounds loss by available species, removes entrained dust from the refractory inventory, reduces gravitational mass, and shrinks radius at constant bulk density. A refractory floor prevents deletion of the entire object. Cumulative ejected kg plus retained kg closes the isolated comet mass ledger. Ejecta are not N-body particles: their momentum, energy and gravitational effects are not included in the system totals. Loss is isotropic; body velocity has no rocket recoil. Collision mixing follows the existing bulk collision approximation, not species chemistry or resolved fragmentation.

The surface solve uses ≤15-minute simulated substeps, 48 bisection iterations and explicit photon-arrival boundaries. Temperature and inventory advance on accepted physics steps, never animation time. Thermal off freezes this comet process. Coma and dust display reservoirs have assumed 0.08-day and 0.5-day residence times. The ion envelope points away from the strongest current luminous source; the dust envelope bends against transverse velocity, with a bounded speed-dependent curvature. Envelope length, width, color and logarithmic intensity are display mappings, not propagated charged particles or radiation-pressure grain trajectories. No universal heliocentric cutoff is used; supervolatiles can remain active far beyond water-dominated activity.

## Particle transport and aurora

Source histories separately retain luminosity and steady-wind speed, proton density at 1 AU and signed magnetic-alignment proxy. Photons arrive after r/c; wind changes after r/v. An arrival-aware piecewise update avoids skipping a wind boundary during time warp. Geometry is current separation; stellar motion, overtaking shocks, Parker spirals, finite source surfaces and self-consistent magnetic fields are not solved. Up to 512 source changes are retained; older history truncation is flagged. Defaults assume the initial wind/luminosity existed before scene start. Deleting or merging a source does not leave a detached propagating front.

Sun reference wind: 400 km/s, 5 protons/cm³, +2 nT alignment proxy. Other stars default to zero particle density until entered; stellar wind is not inferred from luminosity. Wind density dilutes as 1/r². Dynamic pressure is mp n v²; kinetic energy flux is half that pressure × speed. A dimensionless efficiency 0.02 × [0.03+0.97 max(0,−B)/(5+|B|)] represents reconnection coupling. This signed scalar is not a solved vector IMF. The dipole pressure-balance stand-off distance scales as [Bsurface²/(2 μ0 P)]^(1/6), bounded to 1–100 body radii; its field-line mapping gives oval latitude acos(sqrt(1/Rm)).

Visible-power proxy = coupled energy flux × magnetopause cross section × (1−exp(−100 atmosphere_atm)) × 0.1 × (oxygen + 0.2 nitrogen). A 0.02-day exponential relaxation approximates stored magnetospheric response. Default Earth: 30 µT equatorial dipole, 11° dipole/spin tilt, oxygen .21 and nitrogen .78. Other bodies require explicit magnetic/chemical inputs. Missing atmosphere, dipole or visible species removes this visible component. Hydrogen UV and giant-planet rotation/internal plasma sources are not modeled. Atmospheric fractions are bulk proxies; altitude-resolved atomic abundances, excitation cross sections and quenching are absent.

A transparent emission shell follows the rotating body and tilted magnetic axis. Pressure shifts the oval; oxygen/nitrogen inputs mix approximate colors; power controls enhanced intensity/width. Longitude modulation is procedural structure in simulation time, not a prediction of individual curtains. Height is a bounded display mapping around 160 km. No auroral heating feedback to bulk climate, atmospheric escape or electrical grid hazard model exists.

Solar flare photons, steady solar wind, CMEs and solar energetic particles are distinct. This increment supports delayed luminosity edits for comet heating and delayed steady-wind boundary edits for auroras. It does not simulate flare events, CME launch/expansion or energetic-particle acceleration. Existing global planet climate and surface lighting remain instantaneous-field approximations; this release does not make the entire engine relativistically causal. Eclipses do not yet reduce comet heating.

## Acceptance traceability

| Feature | Code / state evidence | Visual response | Status and acceptance |
|---|---|---|---|
| Composition-dependent comet activity | ICES, updateComet, cometState.reserves | Tail and coma reservoirs | Partial; CO vs water at 15 AU, zero exposure and exhausted inventory checks |
| Heat → sublimation → mass change | Implicit energy balance; boundKg/ejectedKg; gravitational body mass/radius | Changing nucleus and tail envelope | Partial; kg ledger <1e−12 relative; energy residual <1e−6 W/m² in controlled test; constant-density shrink |
| Thermal inertia and time warp | Finite heatCapacity; 15-minute cap and arrival boundaries | Activity develops and fades in simulation time | Partial; refinement target <0.3 K and <2% cumulative loss in test fixture |
| Ion / dust direction | cometDisplay and production tail geometry | Antisolar ion; curved dust envelope | Display approximation; direction and transverse-curvature assertions; no grain/plasma integration |
| Particle input → aurora | receivedSource, auroraInput, auroraState | Pressure-dependent oval and power-dependent intensity | Partial empirical model; quiet/active and atmosphere/field/species/wind-off controls |
| Source-to-receiver delay | sourceHistory and arrival splitting | No instant auroral storm from luminosity | Partial ballistic transport; r/c vs r/v and coarse/refined arrival tests |
| Numerical editing and persistence | activity-ui; validateActivity; Simulation serialization | Paused editor and live diagnostics | Tested inputs, invalid data and roundtrip continuation; composition reset explicitly external |
| Flare / CME / energetic-particle distinction | Separate photon/wind channels, UI exclusions | No fabricated CME event visual | Missing event models; independent roadmap work |
| Mobile rendering | Shared 64×40 aurora sphere; existing bounded comet mesh | Same effects and editable forms | Browser responsive QA; physical Android performance unverified |

## Primary sources and interpretation

- NASA comet facts: https://science.nasa.gov/solar-system/comets/facts/ — heating, sublimation, coma and two tails.
- NASA Basics of Space Flight, Chapter 1: https://science.nasa.gov/learn/basics-of-space-flight/chapter1-3/ — size/mass-dependent radiation pressure and curved dust versus nearly straight ion tail.
- González et al., Thermophysical simulations of comet Hale-Bopp (2014): https://www.aanda.org/articles/aa/full_html/2014/03/aa22702-13/aa22702-13.html — surface energy balance and multiple volatile species. Our one-zone solver is much simpler.
- Fulle et al., CO-driven activity constrains the origin of comets (2020): https://www.aanda.org/articles/aa/full_html/2020/04/aa37805-20/aa37805-20.html — CO latent heat 2.27×10⁵ J/kg and distant activity; not validation of our coefficients.
- NASA Auroras: https://science.nasa.gov/sun/auroras/ — particles, field coupling, magnetotail storage and aurora.
- NASA Earth's Magnetosphere: https://science.nasa.gov/science-research/earth-science/earths-magnetosphere-protecting-our-planet-from-harmful-space-energy/ — dipole geometry and pressure distortion.
- NASA Bright Aurora: https://science.nasa.gov/earth/earth-observatory/bright-aurora-below-freezing-147936/ — oxygen/nitrogen excitation and magnetospheric acceleration.

Coefficients, closure relationships and enhanced display mappings above are engineering approximations. Qualitative causal agreement and numerical regression tests do not establish predictive agreement with measured comets or auroral observations.

## Next implementation gates

1. Validate thermophysical coefficients against laboratory curves and observational outgassing; add layered conduction, porosity, mantling and local illumination/rotation.
2. Carry ejected species/momentum/energy ledgers into actual dust populations, grain-size radiation pressure and non-gravitational recoil; handle collision species inventories.
3. Advance explicit photon/particle fronts, vector IMF and a bounded CME transport model, then separately address SEP acceleration. Add source-removal and close-source propagation.
4. Add altitude/species-dependent excitation, quenching and UV channels; distinguish magnetized, induced/crustal and rotation-powered auroras.
5. Couple those validated processors into the broader inventory/enthalpy/terrain foundation and 144-case registry. The experimental multirate solver remains outside production.
