You are on page 1of 1

Boundary Element Methods for Engineers:

Part I: Potential Problems


!
!

Constant Boundary Element Program for Potential Problems

INITIALISE THE BOUNDARY CONDITION STORAGE ARRAYS.


Each node in turn: DO I=1,NNP
IBC(I)=2

STORE(I)=0.
ALPHA(I)=0.
BETA(I)=0.

END DO Each node in turn

!
!

INPUT, STORE AND OUTPUT THE PRESCRIBED POTENTIAL BOUNDARY CONDITIONS.


IF(NBCP > 0) THEN

READ(5,*) (ISEGBC(IBCP),PSISEG(IBCP),IBCP=1,NBCP)

62

WRITE(6,62)

FORMAT(/ "PRESCRIBED POTENTIAL BOUNDARY CONDITIONS")

Each segment with prescribed potential: DO IBCP=1,NBCP


ISEG=ISEGBC(IBCP)

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


63

WRITE(6,63) ISEG,NSEGTOT

FORMAT(/ "ISEG = ",I6,2X,"OUTSIDE PERMITTED RANGE 1 TO",I6)


STOP

END IF

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


IBC(I)=1

STORE(I)=PSISEG(IBCP)

END DO Each node on current segment


64

WRITE(6,64) PSISEG(IBCP),IFIRST(ISEG),ILAST(ISEG)

FORMAT(/ "POTENTIAL =",E12.4,5X,"AT NODES ",I6,5X,"TO ",I6)


END DO Each segment with prescribed potential

END IF

!
!

INPUT, STORE AND OUTPUT THE PRESCRIBED POTENTIAL GRADIENT BOUNDARY

CONDITIONS.

IF(NBCD > 0) THEN

READ(5,*) (ISEGBC(IBCD),DPSISEG(IBCD),IBCD=1,NBCD)

65

WRITE(6,65)

FORMAT(/ "PRESCRIBED POTENTIAL GRADIENT BOUNDARY CONDITIONS")

Each segment with prescribed potential gradient: DO IBCD=1,NBCD


ISEG=ISEGBC(IBCD)

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

91
Download free eBooks at bookboon.com

You might also like