The science
A comet nucleus is a porous mixture of water ice and dust a few kilometres across. Sunlight absorbed by the surface is shared between three sinks: re-radiation, sublimation of ice into gas, and heat stored in (or conducted into) the surface layer.
Surface energy balance at each of the 180 surface points:
(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, n the local outward normal, s the Sun direction, ε = 0.95, L = 2.83 MJ/kg (latent heat of sublimation of water ice), f = 1 on icy points and 0 on dusty ones.
Hertz-Knudsen gas flux into vacuum: Z(T) = Pv(T)·√(m/(2πkT)), m the H2O molecular mass, with the vapour pressure Pv = 3.56×1012·exp(−6141.667/T) Pa (Fanale & Salvail 1984). Z rises about a factor 10 for every 12-15 K near 200 K, so jets switch on sharply near noon.
Thermal inertia. The layer that follows the daily wave has heat capacity Cs = Γ·√(P/π) (skin-depth argument), Γ in J m−2 K−1 s−1/2 (values around 10-50 for comets). Large Γ moves the hot spot to the afternoon side and evens out temperature. The equation is integrated by a linearised backward-Euler step, stable for the very stiff sublimation term.
Recession of the surface: dh/dt = f·Z/ρ, with a bulk density ρ = 500 kg/m³ for the porous ice-dust mix. Real recession is only millimetres per rotation near 1 AU, so the drawn shape is exaggerated by the chosen factor and time can be warped.
Checks. (1) The energy-balance solver for the equilibrium point (Newton) is compared with an independent bisection solver. (2) Over a steady rotation the absorbed, radiated and sublimation energy are integrated and the closure residual is printed. (3) The subsolar flux at 1 AU for A = 0.04 is compared with the order of magnitude 4×10-4 kg m-2 s-1 expected for water ice.
Honest simplifications. Equatorial slice only (a 2D cut); no self-shadowing or mutual heating in concavities; no sub-surface conduction or sublimation below the surface, no gas diffusion through a dust mantle; no CO or CO2; no dust entrainment (the drawn dust is decoration). The nucleus shape is a smooth lobed outline. Numbers are order-of-magnitude, suitable for teaching.