We are solving the 2D heat equation:
where:
-
$T(x, y, t)$ is the temperature field -
$\alpha$ is the thermal diffusivity -
$x, y$ are spatial coordinates -
$t$ is time
We discretize the domain using a uniform grid:
- Grid spacing:
$h_x = \Delta x$ ,$h_y = \Delta y$ - Time step:
$\Delta t$ - Indices:
$i$ for$x$ ,$j$ for$y$ ,$n$ for time
For uniform grid spacing (
where:
For the explicit 2D scheme, stability requires:
which gives:
From the given configuration:
-
$N_x = 100$ ,$N_y = 100$ $\Delta x = \Delta y = 0.1 ; (h = 0.1)$ $\alpha = 0.1$ $\Delta t = 0.01$
This satisfies the stability condition since
-
Initial condition: hot spot at center
$(50, 50)$ with$T = 100$ -
Boundary conditions: Dirichlet fixed temperatures
- North, South, East, West =
$0$
- North, South, East, West =