You are on page 1of 1

Boundary Element Methods for Engineers:

Part I: Potential Problems

Constant Boundary Element Program for Potential Problems

So in the program, which is solving the corresponding scaled Laplace problem, to the array DPSI (known
variables) which already contains ( from subprogram BCS) must be added and subtracted the

particular integral potential gradient (which is already scaled). The contains the as yet unknown

potential and has to be taken to the left hand side of the equations.
3.1.7

Subprogram to form the coefficient matrix

Subprogram FRMTRX forms the coefficient matrix and right hand side vector of Equations 2.31, and
stores them as an extended matrix in array A. The extended matrix is simply [ ] with an extra column
to contain vector []. Each node in turn is treated as point P, the source point for the fundamental
solution. Then each element in turn is taken as the element over which integration is being carried out,
and therefore containing the field point Q. Node counters I and J are used for and the element node,

respectively, so that I is the equation counter and numbers rows in [ ] , while J numbers columns. If

I and J are not the same number, then is not in the element containing . Subprogram KERNEL is
called to compute the integrals of the kernel functions to give coefficients and ( AIJ and BIJ in

program variables). On the other hand, if I and J are the same, then P and Q are in the same element
and takes the value according to Equation 2.45. Subprogram KERN2 is called to compute the
integral of the second kernel function to find coefficient .

!
!
!
!
!
!
!
!

SUBROUTINE

FRMTRX

SUBPROGRAM TO FORM THE COEFFICIENT MATRIX AND RIGHT HAND SIDE VECTOR,
MODIFIED TO SUIT THE BOUNDARY CONDITIONS.
USE SHAREDDATA2PC
DEFINE THE NUMBER OF COLUMNS IN THE EXTENDED COEFFICIENT MATRIX A.
JMAX=NNP+1

FORM THE COEFFICIENT MATRIX A, AND THE RIGHT HAND SIDE VECTOR B*DPSI.
Take each node in turn as P: DO I=1,NNP
BDPSI=0.

!
!
!
!

Take each element in turn to contain Q: DO J=1,NNP


EVALUATE THE KERNELS WHEN P IS NOT IN THE ELEMENT CONTAINING Q.
IF(I /= J) CALL

KERNEL(I,J,AIJ,BIJ)

EVALUATE THE KERNELS WHEN P IS IN THE ELEMENT CONTAINING Q.


IF(I == J) THEN
AIJ=PI
CALL

END IF

KERN2(J,BIJ)
97
Download free eBooks at bookboon.com

You might also like