Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Boundary Element Methods for Engineers:

Part I: Potential Problems

Constant Boundary Element Program for Potential Problems

IF(ISEG < 1 .OR. ISEG > NSEGTOT) THEN


WRITE(6,63) ISEG,NSEGTOT
STOP

END IF

Each node on current segment: DO I=IFIRST(ISEG),ILAST(ISEG)


IBC(I)=3

ALPHA(I)=ALPHASEG(IBCM)
BETA(I)=BETASEG(IBCM)

END DO Each node on current segment


68

WRITE(6,68)ALPHASEG(IBCM),BETASEG(IBCM),IFIRST(ISEG),ILAST(ISEG)

!
!

&

FORMAT(/ "ALPHA =",E12.4,5X,"BETA =",E12.4,5X,


"AT NODES ",I6,5X,"TO ",I6)

END DO Each segment with prescribed mixed condition

END IF

ASSEMBLE THE VECTOR OF KNOWN VARIABLES, SCALING ANY PRESCRIBED

GRADIENTS.

Each node in turn: DO I=1,NNP

IF(IBC(I) == 1) DPSI(I)=STORE(I)

IF(IBC(I) == 2) DPSI(I)=STORE(I)*MAXL
IF(IBC(I) == 3) DPSI(I)=BETA(I)*MAXL
!

END DO Each node in turn


RETURN

END SUBROUTINE BCS

For each segment over which potential is prescribed, the segment number and value of potential are
read into ISEGBC and PSISEG, respectively. Taking each of these segments in turn, the nodes have their
boundary condition type set to 1 (in array IBC), and the value of potential is transferred temporarily
to array STORE. The prescribed potential and numbers of the nodes (elements) to which it is applied
are then written out.
For each segment over which potential gradient is prescribed, the segment number and value of potential
gradient are read into ISEGBC and DPSISEG, respectively. Taking each of these segments in turn, the
nodes have their boundary condition type set to 2 (in array IBC), and the value of potential gradient is
transferred temporarily to array STORE. The prescribed potential gradient and numbers of the nodes
(elements) to which it is applied are then written out.

93
Download free eBooks at bookboon.com

You might also like