Back

Interactive 2D Heat Equation

An explicit finite-difference solver for the variable-conductivity heat equation dT/dt = div(kappa grad T) + S on a 96x96 grid. The primary scene is the physical temperature field (viridis) overlaid with live conductive-flux streamlines q = -kappa grad T; the side panel is the mid-row cross-section T(x). Five presets (composite wall, uniform rod, room radiator, finned heat sink, insulated quench), a paint brush for metal, insulator, heat and cold, and sliders for the conductivity contrast, the source temperature and the time-lapse rate. A composite wall keeps the heat flux continuous while the temperature gradient steepens in the poorer conductor, an insulated box conserves total heat, and uniform conductivity relaxes to the linear Laplace profile.

Figure 1. Explicit-FD heat diffusion with variable conductivity and flux streamlines.

WHAT TO TRY

  • Vary each control and watch the rail readouts respond.
  • Compare the diagnostic plot against the live scene.