Skip to main content

Module heat

Module heat 

Source
Expand description

2D heat diffusion ∂u/∂t = α∇²u by explicit finite differences (periodic).

Validation: u(x,y,0) = sin(x)·sin(y) is an eigenfunction of the Laplacian (∇²u = −2u), so it decays as u(t) = u(0)·exp(-2αt). The test reproduces that decay rate.

Functions§

solve
Solves.