Professional Documents
Culture Documents
by R I C H A R D ROSEN
Mechanics Research, Inc.
Los Angeles, California
® ® ® ® ® ® ® ® ® ® ® ® ® ® ® ® ® ®
® 1 1 1 ® 1 1 1
® 1 1 1 ® 1 1
ll
® 1 1 1 ® 1 1
II
® 1 1 1 ® 1
II I
® 1 1 I ® 1
II I
® 1 I I ®
II I I
® I I I ® II I I
® I I ® I I I
® I ® I I I
T H E ROW A N D C O L U M N I N T E R C H A N G E
The concept behind the matrix bandwidth minimi-
zation is the interchanging of any two nodes in the
The original bandwidth of this matrix is nine. Upon spacial configuration to achieve a reduction in the
applying the renumbering logic to this system the matrix bandwidth. The matrix in question is related
configuration in Figure 2 will be obtained with a to a system of simultaneous linear equations of the
final bandwidth of three. form
[K] {8} = IF} (0
where
[K ] = matrix whose bandwidth is to be reduced.
(this is an n × n matrix describing the
interconnectivity of n special nodes)
{8} = vector listing certain nodal properties
(these usually are displacements).
{F~ = vector listing other nodal properties
(these usually are applied forces).
When the node numbers of two nodes are to be in-
terchanged, this changes the order in which their
respective equatiorrs appear in the matrix as well as
interchanging columns defining the coefficient of the
variables in the { 8 ] matrix. The transformation may
be characterized by t h e [ C ] m a t r i x . If it is desired to
interchange the i th node with the j: n' node then the
Figure 2-Ring Frame Revised Number System. [ C ] matrix is defined by
Ckk = 1 k ~ i, j
Cij = 1 a n d Cji = 1
with all other elements equal to zero.
Hence
[ Clr = [ C l-' = [ C] (2)
The interconnectivity matrix for the revised numbering It is convenient to keep as a reference the original
scheme is: numbering system throughout the entire procedure
Matrix Bandwidth M i n i m i z a t i o n 587
is then entered. The purpose of "Phase 2" is to re- changes may be performed. The "Phase 2" section is
arrange the nodal pattern without increasing the band- provided with two different criteria to terminate the
width so that additional successful "Phase 1" inter- routine. The first is merely a maximum number of
|
Can the higher numbered node be inter- |
changed with a lower numbered node and still
maintain the same bandwidth
I
1
No further interchanges are possible
EXIT
I
I
I
+
Perform the indicated node interchange I
,i I Go BACK To BEGINNING I
Flow Chart I.
Matrix Bandwidth Minimization 589
continuous operations in this section while the other gram before the mathematical operations for the phys-
does not permit two nodes which have already been ical problem are done. In the above systems there
interchanged to be interchanged again. may be as many as six equations governing each node,
hence the reduction of a few lines in the nodal net-
CONCLUSIONS work may have a six-fold effect in the final matrix
bandwidth.
A method has been presented which will reduce the The method presented is completely general for a
bandwidth of any symmetrical matrix. This method symmetrical system. In addition, it is not required
is especially appealing to problems where the original that the nodal numbering system to be a contiguous
numbering of a spacial system of nodes will determine one.
the bandwidth of the resulting equations describing Whether or not this method will yield the min-
this system. (i.e., finite element structural systems, imum possible bandwidth is a mathematical question
lumped nodal thermal networks, electrical networks, beyond the scope of this paper. However, from the
pipe flow conduit systems, finite difference grid net- point of view of the reduction in machine time achieved
works systems.) The renumbering of the nodal net- by renumbering the nodal configuration, these operations
work can be performed in the "Pre-Processor" pro- are mandatory for any large problems.
APPENDIX
S U B R O U T I N E N U M B E R LISTING (PAGE 1 OF 4)
C
C SUBROUTINE TO REDUCE THE BANDWIDTH OF A NODAL CONNECTIVITY
C MATRIX
C
C
C
C
C
C *******INPUT AND OUTPUT VARIABLES*******
C
C IROW(I) AND COL(I) ARE THE ROW AND COLUMN SUBSCRIPTS
C OF THE I-TH NON ZERO TERM IN, THE LOWER
C TRIANGULAR MATRIX EXCLUDING THE
C DIAGONAL
C NCP = NUMBER OF CROSS PRODUCT TERMS (I.E. THE NUMBER
C OF ELEMENTS DEFINED BY THE ABOVE LISTS).
C
C IS(I) AND IWAS(I) ARE LIST OF THE NODES COMPRISING THE
C SYSTEM. UPON ENTRY THEY ARE BOTH THE
C ORIGINAL NODAL NUMBERING SYSTEM. UPON
C EXIT IS(I) CONTAINS THE NODE NUMBER THAT
C HAS BEEN ASSIGNED TO IWAS(I).
CNSIZE THE MATRIX DIMENSION OF THE SYSTEM (OR THE
C NUMBER OF NODES CONTAINED IN THE SYSTEM.)
C MAXBND THE BANDWIDTH OF THE CURRENT SYSTEM
• 590 Proceedings--1968 A C M National Conference
C
C *******INTERNAL PROGRAM VARIABLES*******
C
C IRMXBD ROW LOCATION OF ELEMENT PRODUCING MAXIMUM
C BAND
C ICMXBD COLUMN LOCATION OF ELEMENT PRODUCING
C MAXIMUM BAND
C ISTART AND ISTOP= COMPUTED DO LOOP INDICES TO
C DETERMINE THE PERMISSABLE RANGE
C WHERE AN INTERCHANGE MAY BE
C FOUND.
C II AND JJ ARE THE TWO ROWS AND COLUMNS TO BE INTERCHANGED.
C NFOUND= I A SUCCESSFUL INTERCHANGE
C = 0 A BAD INTERCHANGE
C MI AND M2 ARE THE TWO PHYSICAL NODES BEING INTERCHANGED.
C J1 AND J2 ARE THE LOCATIONS IN THE IS ARRAY OF THE TWO NODES
C BEING INTERCHANGED.
C
C *************************
C
S U B R O U T I N E N U M B E R L I S T I N G ( P A G E 3 OF 4)
ISTART = ICMXBD + 1
ISTOP= MIN0( NSIZE, (2~IRMXBD- ICMXBD- 1 ) )
JJ = ICMXBD
DO 4 I = ISTART, ISTOP
IF ( I .EQ. IRMXBD ) GO TO 4
II II = I
CALL SEARCH (IROW, ICOL, ICMXBD, I, NCP, NFOUND, MXBND )
IF ( NFOUND .EQ. 1 ) GO TO 6
4 CONTINUE
C
C NO SINGLE INTERCHANGES ARE AVAILABLE
C
C
C
C PHASE 2 SECTION. PERFORM INTERCHANGE WHICH DOESNT INCREASE
C BAND
C
C
C
C MBDPRV = THE BAND WIDTH FOR THE PREVIOUS TIME THRU
C PHASE 2.
C NTPHS2 = NUMBER OF TIMES PHASE 2 HAS BEEN ENTERED FOR
C THE SAME BAND.
592 Proceedings-1968 ACM National Conference
S U B R O U T I N E N U M B E R L I S T I N G (PAGE 4 OF 4)
I1=1
CALL P2SRCH (IROW, ICOL,IRMXBD,I,NCP, NFOUND MAXBND,
1 INTPH2, N21NT)
IF ( NFOUND .EQ. I ) GO TO 6
31 CONTINUE
C
C SEARCH FOR COLUMN INTERCHANGE
C
ISTART = ICMXBD 4.- 1
ISTOP = MIN0 ( NSIZE, (2 * IRMXBD-ICMXBD )
JJ = ICMXBD
DO 44 I = ISTART, ISTOP
IF (I .EQ. IRMXBD) GO TO 44
I1=1
CALL P2SRCH (IROW, ICOL, ICMXBD,I,NCP, NFOUND,MAXBND,
1 INTPH2, N21NT )
IF ( NFOUND .EQ. 1 ) GO TO 6
44 CONTINUE
RETURN
C
6 CALL INTRCH ( IROW, ICOL, JJ, II, NCP
Matrix Bandwidth Minimization 593
C
C
C
C
C RECORD INTERCHANGE IN TABLE
C
C
C
M1 : IWAS (JJ)
M2 = IWAS (II)
DO 37 1 = I, NSIZE
IF (IS (I).EQ. MI )J1 = I
IF (IS (I).EQ. M 2 ) J 2 = I
37 CONTINUE
IS (J l) = M2
IS (J2) = MI
GO TO I
END
S U B R O U T I N E SWITCH L I S T I N G
S U B R O U T I N E SEARCH LISTING
SUBROUTINE P2SRCH
DO 6 1 : I, N21NT
IF (INTPH2 (I).EQ. IC) MTI : I
6 IF (INTPH2(1). EQ. JC) MTJ : I
IF (MTI + MTJ). EQ. 2 ) RETURN
5 CONTINUE
NF:I
INTPH2(N21NT + I) : IC
INTPH2(N21NT + 2) : JC
RETURN
END