Vous êtes sur la page 1sur 1

Boundary Element Methods for Engineers:

Part I: Potential Problems

3.1.3

Constant Boundary Element Program for Potential Problems

Subprogram to input and generate the element mesh data

Subprogram MESHC reads in a minimal amount of information from which to create the mesh of constant
boundary elements. The process is complicated by the fact that there are several levels of geometric
features. Firstly, boundaries: there will be more than one for a multiply-connected domain, with internal
holes within the outer boundary. Secondly, segments of boundaries whose ends are located at changes
of either geometry or boundary condition, and can be either straight or follow circular arcs. Thirdly, the
ends of elements which are distributed either uniformly or non-uniformly along the segments. Finally,
the nodes of the elements, which are located at the mid points between successive element end points.
SUBROUTINE

!
!

MESHC

SUBPROGRAM TO READ IN AND GENERATE THE GEOMETRIC DATA FOR A MESH OF

CONSTANT ELEMENTS.

USE SHAREDDATA2PC

!
!

INPUT THE NUMBER OF SEPARATE BOUNDARIES.


READ(5,*) NBOUND

!
!

TEST THE NUMBER OF BOUNDARIES.

IF(NBOUND < 1 .OR. NBOUND > MAXNB) THEN

61

WRITE(6,61) NBOUND,MAXNB

FORMAT(/ "NBOUND =",I4,2X,"OUTSIDE PERMITTED RANGE 1 TO",I4)


STOP

END IF

!
!

FOR EACH BOUNDARY IN TURN INPUT THE NUMBER OF SEGMENTS.


NNP=0

IEEND=0

NSEGTOT=0

Each boundary in turn: DO IBOUND=1,NBOUND


NNPB(IBOUND)=0

READ(5,*) NSEGB(IBOUND)

NSEGTOT=NSEGTOT+NSEGB(IBOUND)

!
!

TEST THE NUMBER OF SEGMENTS.

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

62

WRITE(6,62) NSEGTOT,MAXNNP

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


STOP

END IF
77
Download free eBooks at bookboon.com

Vous aimerez peut-être aussi