The science
Fuel supply. Heat from the flame melts wax, the wick draws the liquid up by capillary action and it evaporates at the flame base. The burn rate is the fuel mass flow ṁ = ṁ0 w, where w is the relative wick size (about 1.9 mg/s for a normal wick). Thermal power: Q = ṁ ΔHc with ΔHc ≈ 43 MJ/kg, so about 80 W.
Flame height. A candle is a laminar diffusion flame. Roper's result is L = V̇ / (4π D ln(1 + 1/S)): the height is proportional to the fuel flow, so L = L0 ṁ/ṁ0 with L0 ≈ 28 mm (calibrated to a real candle).
Plume and draught. Hot gas (about 1400 K) is lighter than room air, so the buoyant velocity scale is v = √(2 g L ΔT / T0). A cross-flow of speed u tilts the flame by θ = atan(u / v). If u exceeds a blow-out speed (empirically a few m/s, larger for a bigger wick) the flame loses its fuel/air balance and goes out; this is a simple threshold model, not a CFD solution.
Chemistry. Paraffin C25H52 + 38 O2 → 25 CO2 + 26 H2O. The yellow glow is incandescent soot; the blue base is chemiluminescence of CH and C2. Metal salts colour the flame (Cu green, K violet, Li crimson, B green-blue); here the tint is only a visual choice.
Burn-down. dh/dt = −ṁ / (ρ π r2) with ρ = 900 kg/m³, r = 11 mm, giving about 2 cm/h. Time warp multiplies simulated time only.
Honest simplifications. The flame shape is a shader driven by these scalars, not a solved combustion field. Drips are decorative; no soot, heat transfer to the pool, or wick curling is modelled. The point light follows the flame flicker.