Live readouts
Heliocentric distance rOrbit phase / days from perihelion
Orbital speedSolar flux at nucleus
Spin-axis latitude of the Sun
Max / min surface TPeak sublimation flux Z
Water production Q (now)Q, molecules per second
Equilibrium Q (no inertia, mean of rotation)Recession of icy surface so far
Rendered dust / ion particlesFrame rate
The science
Surface energy balance at each of ~2000 sample points on the Blender-modelled bilobate nucleus (the mesh normal n of each patch is used):
(1−A)·S0/r²·max(0, n·s) = εσT4 + f·L·Z(T) + Cs·dT/dt
S0 = 1361 W/m² at 1 AU, r in AU, s the unit vector to the Sun, ε = 0.95, L = 2.83 MJ/kg, f = 1 on icy patches and 0 on dusty ones. This is exactly the model of the 2D companion.
Hertz-Knudsen flux into vacuum: Z(T) = Pv(T)·√(m/(2πkT)), Pv = 3.56×1012·exp(−6141.667/T) Pa (Fanale & Salvail 1984). Z changes by a factor 10 for every 12-15 K near 200 K, which is why activity turns on so sharply as r falls.
Thermal inertia Cs = Γ√(P/π) (skin-depth argument) moves the hot spot to the afternoon side. Recession: dh/dt = f·Z/ρ, ρ = 500 kg/m³.
Orbit. Kepler's equation M = E − e sin E (M = n(t−Tp), n = k/a3/2, k = 0.01720209895 AU3/2/day, a = q/(1−e)) is solved by Newton iteration; r = a(1−e cos E). Speed obeys vis-viva v² = k²(2/r − 1/a).
Dust tail. A grain of radius a (µm, density 1 g/cm³) feels radiation pressure with β = Frad/Fgrav ≈ 0.57/a. Relative to the comet it accelerates anti-sunward at β·k²/r²; because the comet keeps moving along its orbit, the grains left behind form a curved tail (a syndyne-like envelope). Small grains (large β) are swept far, large grains hug the orbit. The ion tail is drawn straight along the instantaneous anti-solar direction (solar-wind-driven plasma) with a compressed speed.
Scales (read this). The nucleus is drawn about 750× larger than the coma/tail scale (1 tail unit = 1500 km, nucleus radius 2 km drawn as 1 unit) so that both are visible. Orbit time is warped (days per second); the 12-hour rotation runs on its own playback clock. Particle numbers scale with √Q; brightness is schematic.
Honest simplifications. Water ice only (real comets beyond ~3 AU are driven by CO and CO2, so Q here collapses much faster than observed); no self-shadowing or mutual heating in the thermal model (the shadows you see are only rendering); no sub-surface conduction, no gas diffusion through a dust mantle; fixed spin axis; no non-gravitational forces; dust-to-gas ratio and ejection speeds are free parameters; ion physics is schematic. Numbers are order-of-magnitude, for teaching.
Checks. (1) Newton vs bisection for the surface temperature; (2) subsolar Z at 1 AU against 2-8×10-4 kg m-2 s-1; (3) energy closure over a steady rotation; (4) the mesh is closed, ΣAini = 0; (5) Kepler solver Newton vs bisection; (6) finite-difference orbital speed vs vis-viva; (7) energy-limited regime: Q ∝ r−2 between 0.4 and 0.6 AU.