Heat Conduction Simulation

Watch heat diffuse in a 1D rod and a 2D plate. Compare how fixed-temperature and insulated boundaries shape the temperature field.

Simulated time 0.000 s
Maximum temperature 400.0 K
Minimum temperature 200.0 K
Spatial mean temperature 300.0 K
Temperature scale
0 K700 K1400 K

Initial temperature profile

Parameters

Heat equation and diffusivity

1D heat equation ∂T/∂t = α ∂²T/∂x²
2D heat equation ∂T/∂t = α ∇²T
Thermal diffusivity α = k/(ρc)

How does the temperature change?

Insulate both sides, select the Gaussian hot spot and start the simulation. The hot region spreads and its peak temperature drops. With no heat crossing the boundary, the length- or area-weighted mean stays constant.

The heat equation

In a material with constant thermal diffusivity and no internal source, temperature follows ∂T/∂t = α ∇²T. Larger α smooths the field faster over the same simulated time. The Gaussian hot spot sets the initial temperature profile.

Fixed-temperature and insulated boundaries

A fixed-temperature boundary can exchange heat with its surroundings while holding its set temperature. An insulated boundary has zero normal heat flux. Two distinct fixed temperatures at the left and right lead to a linear steady profile.

Grid and time step

The rod is 100 mm long and the square plate is 100 mm on each side, with spacing h = 100 mm / N. On this uniform grid, the explicit difference scheme requires r = αΔt/h² ≤ 1/2 in one dimension and ≤ 1/4 in two. Step advances one time increment of the active view. Both views share the same simulated time.