Homework 2: Laplace's Equation, Domain Decomposition

Homework due date has been extended to Thursday, April 11, 2004, 11:59PM

Last modified (Greenwich Mean Time): $Id: index.html,v 1.25 2004/04/09 07:19:51 kenta Exp $ ChangeLog

This homework will explore solving Laplace's equation in two dimensions. Written as a partial differential equation (PDE), Laplace's equation is

\Delta T = \frac{\partial^2T}{\partial x^2}+ \frac{\partial ^2T}{\partial y^2} = 0

In this homework we will refer to the dependent variable, T, as "temperature", so physically we are simulating the equilibrium temperature of a sheet of metal whose temperature along its edges are specified by the boundary conditions. (The astute student may realize this is the same equation solved in homework 1, although we didn't tell you it was Laplace's equation.)

We will choose a simple discretization of Laplace's equation on a rectangular grid. The solution to the discrete equation has the temperature at each grid point to be the average of its four neighbors in each direction. Intuitively, this means that temperature various smoothly within the interior of the sheet.

The boundary conditions are what makes the equation interesting. The boundary conditions are specified one grid point beyond the edge of the grid. For a rectangular grid, the boundary conditions are specified at the 14 points B marked below for an example 3x4 grid.

 BBBB
B....B
B....B
B....B
 BBBB

Each boundary edge can be one of two types:

  1. The temperature along the edge can be explicitly defined.
  2. Or, it can be "insulated", meaning that the grid point adjacent to this a boundary point ignores this boundary when calculating the average of its neighbors. Therefore, an the temperature of an edge grid point adjacent to an insulated boundary point is the average of three neighbors, not four. [see figure] And the temperature of a corner grid point adjacent to two insulated boundary points would be the the average of just two neighbors.

It should be pretty clear that the discretized Laplace's equation specifies a linear system. For example, for a 2x3 grid with temperatures 1,2 and 3,4 along the sides, and insulation along the top and temperature 5,6,7 along the bottom, the system of equations is:


  I I I
1 a b c 3       I=insulation
2 d e f 4
  5 6 7
(1 + b + d)/3=a
(a + e + c)/3=b
(b + f + 3)/3=c
(a + e + 2 + 5)/4 = d
(d + b + f + 6)/4 = e
(e + c + 4 + 7)/4 = f

Question -1

Please complete the parallel programming productivity questionnaire at: http://care.cs.umd.edu:3555/18_337/Assignment_1_Questionnaire.html The questionnaire is specifically for gathering feedback in regards to Homework 1 "Grid of Resistors". Although participation in the study is voluntary, please be candid in your responses as no course staff will see your answers, nor will it have any bearing on your grade.

Also, as you do this current homework, please submit an Effort log for approximately each day you work.

Question 0

Question 1

Question 2

Question 3

Question 4

Question 5

Question 6

Question 7

Question 8

Click ME! (See Question -1.)