Computational Physics, Physics, Heat Equation, Python, Math.
ax.plot(x, exact_solution(x, 5.0, alpha), '*', label='Exact solution at $t=5$') ax.set_xlabel('$x$') ax.set_ylabel('$T$') ax.set_title('Heat transport with forward Euler scheme' ' - forward finite differences') ax.legend(); For 2-Dimensions In 1D we saw that ∂u\∂t = ∂²𝑢\∂𝑦², now the same formula