27.06.2021 Views

F. K. Kong MA, MSc, PhD, CEng, FICE, FIStructE, R. H. Evans CBE, DSc, D ès Sc, DTech, PhD, CEng, FICE, FIMechE, FIStructE (auth.)-Reinforced and Prestressed Concrete-Springer US (1987)

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

468 Computer programs

Table 12.1-1 (continued)

I PCU I REAL*& I feu I Characteristic strength of concrete

I PSDASH I REAL*& I ts' I See Eqn &.6-11 I

I n I REAL*& I fy I Characteristic strength ot steel I

1- - - - - 1- - - - - 1- - - - - -1 - - - - - - - - - - - - - - - - - - - - - I

I HP I REAL*& I ht I Flange thickness I

1- - - - - 1- - - - - 1- - - - - -1 - - - - - - - - - - - - - - - - - - - - - I

I It I REAL*& I It I It • M/bd2fcu I

I KDASH I REAL*& I It' I See Eqn & • 7-5 I

I ltP I REAL*& I Itt I See Eqn &.8-5

1- - - - - 1- - - - - 1- - - - - -1 - - - - - - - - - - - - - - - - - - - - -

I M I REAL*4 I M I Design ultimate IIIOIDent

I MU I REAL*& I Mu I Moment capacity ot concrete (Eqn & • 7-8)

I MUP I REAL*& I Muf I Molllent capacity ot flange (Eqn &.8-&)

I MOW I REAL*& I Muw I Molllent capacity of web (Eqn &.8-7)

1- - - - - 1- - - - - 1- - - - - -1 - - - - - - - - - - - - - - - - - - - - -

I R I IIITEGER*ll I Character to indicate Rectangular section

1- - - - - 1- - - - - 1- - - - - -1 - - - - - - - - - - - - - - - - - - - - -

I X I REA!-*& I x I Neutral axis depth

I XOD I REAL*& I x/d I See Eqn &. 7-3

1- - - - - 1- - - - - 1- - - - - -1 - - - - - - - - - - - - - - - - - - - - -

I z I REAL*& I z I Lever arm distance

I ZOO I REAL*& I z/d I See Eqn & • 7-6 or Eqn & • 7-7

* See list ot symbols in the "Hotation" at the beginning of the book.

Block (ii) in Fig. 12.1-1 represents the Main Program itself, and

corresponds to Lines 29-79 of the program listing in Fig. 12.1-2. The

program begins with the program name BMBRSR on Line 29, followed by

the declarations of the variables on Lines 31-34.

Lines 36-79 of Fig. 12.1-2 shows that the Main Program does the

various jobs by calling on Subroutines. Thus Lines 36-40 refers to the

Subroutine INIT ( = INITialization) to initialize the program; similarly,

Lines 42-47 refers to the Subroutine CONSTA (=CONSTAnts) and so

on. All the Subroutines are listed alphabetically after the Main Program,

i.e. in Block (iii) of Fig. 12.1-1. Block (iii) corresponds to lines 82-638 of

the program listing in Fig. 12.1-2. The Subroutines are listed in

alphabetical order so that each can be easily located by the program user.

Thus, the Subroutine CONSTA is listed on Lines 82-149, followed by the

Subroutine FLANGE on Lines 152-254 and so on.

The layout of each Subroutine is similar to that of the Main Program.

Thus, Lines 82-92 are the Header for the Subroutine CONSTA, and Lines

94-149 are the Subroutine program statements.

The program listing in Fig. 12.1-2 also shows some other features

common to all the computer programs in this chapter:

(a) Each 'Call Subroutine' module in the Main Program includes a

Header, which tells the user the reason for calling that Subroutine.

See, for example, Lines 42-47.

(b) Similarly, each coherent group of statements within a Subroutine also

includes a Header which describes the action of that group of

statements. See, for example, Lines 113-119.

It is appropriate here to remind the reader not to confuse Line

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!