Problem 2 - aΒΆ
Given two-dimensional steady heat equation (Poisson’s equation:
Discretize the PDE using a central difference scheme to generate a matrix equation \([A]{T}={Q}\).
Applying second order accuracy central scheme to each second derivative with respect to \(x\) and \(y\) gives
To construct the coefficient matrix of system of linear equations, the coefficients of each neighbor point should be organized as shown below:
where each coefficietns are recast in terms of diffusivity and grid size:
and
Here, \(L\), \(R\), \(B\), and \(U\) indicate ‘Left’, ‘Right’, ‘Bottom’ and ‘Up’ neighbors, respectively.
The coefficients based on a single point \((i,j)\) will compose \(i\times j\)-th row.
where \(T\) and \(Q\) are vector having \(n^4\) elements:
Here, \(A\) matrix is not formed tridiagonal as it is seen in the first problem because the current set of solution is defined in 2-dimensional domain. For that reason, coefficient matrix should contain all four neighbor’s constant. The resulting \(A\) matrix will have \(N^2 \times N^2\) elements.