A comet nucleus on a Kepler ellipse sublimates water ice as it nears the Sun. At every distance the absorbed sunlight (1 - A) S0 g / r^2 is balanced by thermal emission and by the Hertz-Knudsen sublimation cooling, with the Marti-Mauersberger ice vapour pressure; the energy balance is solved for the surface temperature and gives the water production rate Q(r). The gas forms a Haser coma, n = Q / (4 pi v rho^2) exp(-rho / v tau), whose column density is integrated numerically. Dust grains of a chosen size are integrated in the reduced gravity mu(1 - beta) with beta = 5.74e-4 / (rho a), which draws the curved dust tail, while the ion tail points straight away from the Sun. Sliders for the orbit, nucleus size, active surface fraction, albedo, heating geometry, grain size, gas speed and density; a close-up shows a Blender bilobed nucleus with gas jets on its sunlit side and an orbiter. Numerical checks: ice vapour pressure at the triple point, Kepler solver against RK4, the Halley period, the sub-solar temperature against the literature, Haser column density and molecule count, the radiation-pressure coefficient, the 67P GM and dust-integrator energy conservation.