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

3.1.2

Constant Boundary Element Program for Potential Problems

Subprogram INTITLE

An alphanumeric title for the problem is first read into TITLE. Next the constant value of function 1
(Equation 2.1) is read into F1. If this value is zero the problem is of the Laplace type, and an appropriate
message is written out. If it is not zero the problem is Poisson type and the global co-ordinates of the
origin used to define to particular integral are read into XC and YC, normally chosen to be roughly at
the centre of the domain. The value of 1 together with the origin co-ordinates are then written out.
SUBROUTINE

!
!

INTITLE

SUBPROGRAM TO INPUT PROBLEM TITLE AND TYPE (LAPLACE OR POISSON).

USE SHAREDDATA2PC

CHARACTER(80) :: TITLE

!
!

INPUT THE PROBLEM TITLE.

READ(5,FMT="(A80)") TITLE

61

WRITE(6,61) TITLE

FORMAT("CONSTANT BOUNDARY ELEMENT SOLUTION FOR",

&

" TWO DIMENSIONAL POTENTIAL PROBLEM"

// A)

INPUT THE VALUE OF THE (CONSTANT) F1 FUNCTION IN THE GOVERNING

EQUATION.

READ(5,*) F1

IF(F1 == 0.) WRITE(6,62)

62

FORMAT(/ "LAPLACE EQUATION")


IF(F1 /= 0.) THEN
WRITE(6,63) F1

63

FORMAT(/ "POISSON EQUATION,

F1 = ",E12.4,"

CONSTANT")

INPUT THE COORDINATES OF THE ORIGIN FOR THE PARTICULAR INTEGRAL.


READ(5,*) XC,YC

64

WRITE(6,64) XC,YC
&

FORMAT(/ "ORIGIN FOR PARTICULAR INTEGRAL:",5X,"X =",E12.4,5X,


END IF

"Y =",E12.4)

RETURN

END SUBROUTINE INTITLE

76
Download free eBooks at bookboon.com

You might also like