4. 1. 5 Linear Example - Poisson Equation

This example shows the application of the Poisson equation in a thermodynamic simulation. The equation system consists of four points from which two are boundary points with homogeneous Dirichlet boundary conditions. Furthermore a constant right hand source term is given which equals unity. The four points are given on a straight line in equal distances according to Figure 4.1. The governing equation yields $ \Delta T = 1$ for the interior points and $ T=0$ for the boundary points.

Figure 4.1: Simple one-dimensional simulation domain comprising four points. On the two boundary points $ \mathbf{v}_1, \mathbf{v}_4$ an (implicit) Dirichlet boundary conditions is applied. On the two interior points $ \mathbf{v}_2, \mathbf{v}_3$ a discretized differential equation is applied.
\includegraphics[width=5cm]{DRAWINGS/simpledomain.eps}

In the equation system two unknown variables are defined, namely temperature values for the two inner vertices. The discretization formula resulting from finite differences for the vertices yields

$\displaystyle R = [ \sum_{VNV}^{\underline{w}} Q K(\bullet, \underline{w}) - 1]$     (4.15)

The coupling terms $ K$ yield $ -2$ , if the arguments are identical, unity otherwise. Setting the temperature identically zero at the boundary points leads to the following simplification of the equations
$\displaystyle R(\mathbf{v}_1)$   $\displaystyle := -2 Q(\mathbf{v}_1) + Q(\mathbf{v}_2) - 1$  
$\displaystyle R(\mathbf{v}_2)$   $\displaystyle := -2 Q(\mathbf{v}_2) + Q(\mathbf{v}_1) - 1 \; .$ (4.16)

The expression for the solution quantity is now replaced by a linearized expression of the following form:
$\displaystyle Q(\mathbf{v}_1) = [1, 0; q(\mathbf{v}_1)]$      
$\displaystyle Q(\mathbf{v}_2) = [0, 1; q(\mathbf{v}_2)] \; .$     (4.17)

Before the linear equation system is solved, the quantity is set to an arbitrary value, for instance zero. For the equations (4.16) one obtains

$\displaystyle R(\mathbf{v}_1) = -2 Q(\mathbf{v}_1) + Q(\mathbf{v}_2) - 1 = [-2, 1; -2 q(\mathbf{v}_1) + q(\mathbf{v}_2) - 1]$    
$\displaystyle R(\mathbf{v}_2) = -2 Q(\mathbf{v}_2) + Q(\mathbf{v}_1) - 1 = [1, -2; -2 q(\mathbf{v}_2) + q(\mathbf{v}_1) - 1]$ (4.18)

It can be seen that the two linear expressions $ R(\mathbf{v}_1)$ and $ R(\mathbf{v}_2)$ contain the information of the system matrix. The assembly of the matrix from the linear expressions is straight forward, once the linear expressions are obtained.

The solution vector $ \mathbf{x}$ contains the single solution elements $ x_i$ . These elements are applied to the quantities according to (4.12). This means, that the solution $ x_i$ is added to the respective solution quantity $ q$ . If the initial value of the quantity is zero, the solution quantity $ x_i$ has the same value of the solution of the initially given problem. Otherwise, the solution contains an update vector which has to be added in order to obtain the correct solution. This is equivalent to the Newton method, however, since the equation is linear, the solution is obtained in a single step.

Michael 2008-01-16