The regular integrals that arise are approximated by a standard quadrature rule such as a Gauss-Legendre rule which is specified in the parameter list to the subroutines. Tables of Gauss-Legendre rules are given in Stroud and Secrest [23] and can also generated from the NAG library [22]. The non-regular integrals that arise are computed via the following methods. See Jaswon and Symm [14] for the background to these methods.
The M_{0} and M_{0}^{t} operators have regular kernels, hence the aim is to find expressions for:
| (41) |
| (42) |
| (43) |
| (44) |
In this section the subroutine L2LC is introduced and demonstrated through the test problem L2LC_T .
The program in file L2LC_T.FOR is a test for the subroutine L2LC. It computes the solution to the Laplace problem interior to a circle. In order to use L2LC, the circle is approximated by a regular polygon with each side being one panel. The boundary functions are approximated by a constant at the centre of each panel.
Simple changes in the program allow the set up of the following data the choice of quadrature rule, the radius of the circle, the number of elements (sides on the approximating polygon), the boundary condidition and the exact solution if applicable, the points in the interior where the solution is sought.
During execution, the program gives the solution at the collocation points (the points at the centre of each element) and the solution at the selected interior points. The program also give the exact solution at the same points so that computed and exact solutions may be compared.
The particular test problem consists of a circle of radius 1, approximated by 64 elements. An 8 point Gaussian quadrature rule is used to compute the discrete integrals. A Dirichlet boundary condition is applied such that f(p) = cos(q) = p_{2}. This has the analytic solution f(p) = r cos(q) = p_{2}.
The output from the program shows the exact and computed solution at the collocation points on the boundary. The solution at the selected interior point is given: the exact solution at (0.0,0.5) is 0.5, the computed solution is 0.500403 to six decimal places.