Sunteți pe pagina 1din 7

Stiffness Matrix Structural Analysis Educational Package by Mathcad

R. CEDENO-ROSETE
Civil Engineering Department, Universidad de las Americas Puebla, Puebla, Mexico

Received 14 October 2004; accepted 8 June 2005

ABSTRACT: This article presents an educational program designed to understand in a simple form, the stiffness structural analysis theory of two-dimensional framed structures. The program is written in spreadsheet form using the software Mathcad. Two examples are presented and they may be used as templates to solve different problems in which some interaction by the student is expected. This interaction contributes to the comprehension of the theory and helps the student to learn the theoretical basic concepts in less time. 2007
Wiley Periodicals, Inc. Comput Appl Eng Educ 15: 107113, 2007; Published online in Wiley InterScience (www.interscience.wiley.com); DOI 10.1002/cae.20063

Keywords:

matrix structural analysis; frames; education; computer program; Mathcad

INTRODUCTION
The stiffness matrix structural analysis theory has been a difcult subject to understand by civil engineering students. The fundamental theory concepts involved applies to trussed and framed structures as well as continues structures where the nite element approach is necessary to use in order to solve a structural problem. Many packages has been developed focused in spreading abilities in students to manage the structural behavior in different kind of structures by solving

Correspondence to R. Cedeno-Rosete (rafael.cedeno@udlap.mx). 2007 Wiley Periodicals Inc.

quickly a large number of problems with different load conditions or supports [14]. However, students still have problems to understand the matrix structural analysis theory underneath the structural analysis packages they use. This article presents a spreadsheet developed in Mathcad (trademark of MathSoft Engineering & Education, Inc.) to solve 2D framed structures with the stiffness matrix method. Two examples are presented which can serve as templates to solve other problems. The student must make a few changes in the spreadsheet in order to solve a different problem. With this technique, the user is reviewing and practicing his theoretical concepts. The main objective is to present a tool which can contribute to reduce the learning curve of the stiffness matrix structural analysis theory.
107

108

CEDENO-ROSETE

BACKGROUND
A civil engineering student needs to acquire a very good understanding of structural behavior. The structural analysis method taught nowadays is the stiffness matrix method. Some students have difculties to grasp the main ideas of the stiffness method because it is necessary to invest a lot of time an effort to develop a structural analysis solution for a specic problem even for a small frame. Using Mathcad, an educational structural analysis packaged was developed to solve bidimensional frames with the stiffness matrix method. In this software, the student algebraically forms the force vector and the stiffness matrix of the structure in order to solve the proposed problem. The algebraic capabilities of Mathcad allows to solve the problem in an easy and straightforward way avoiding hard calculation and giving a transparent insight of the theoretical procedure. Using the programmed Mathcad sheets presented in this article, a student can build his own spreadsheet and use it to solve with a few changes, any small structural problem in order to gain a deep insight to the structural behavior necessary to be successful in dealing with structural problems.

Figure 2

Two floor frame.

THEORETICAL CONSIDERATIONS
In order to solve a structure subjected to the action of applied forces, it is necessary to solve the algebraic matrix system of equations stated as: fFg Kfdg 1

In this equation, {F} is the force vector applied to the structure nodes, [K] is the global structure stiffness matrix, and {d} is the unknown nodal vector displacement. Most of the work is dedicated to form the stiffness matrix [K] and solving the Eq. (1). Dealing

with two-dimensional frames, every node has three degrees of freedom, two linear and one angular displacement. Accordingly, two forces and one moment can be applied to each node. The structural stiffness matrix is formed with the stiffness matrix of each element. The stiffness matrix of a two-dimensional frame element is a 12 12 matrix. However, it is better to express it as a matrix formed by four submatrices 3 3. Eq. (2) represent the element stiffness matrix in a local coordinate system such as the one showed in Figure 1. The letter A represents the origin of the local coordinate system and the letter B the opposite end.   kA kAB k 2 kBA kB EA 6 L 6 kA 6 0 6 4 0 2 0 12EI L3 6EI L2 0 3 2a

7 6EI 7 7 L2 7 5 4EI L

Figure 1 Local coordinate system of a bar.

Figure 3 Node and bar numbering.

STIFFNESS MATRIX STRUCTURAL ANALYSIS

109

(K B1 + K A2 + K A6)
K BA2 K := K BA6 cero cero

(K B2 + K A8)
cero K BA8 cero

K AB2

K AB6 cero

cero K AB8

cero cero K AB7 cero

(K B3 + K A4 + K B6 + K A7)
K BA4 K BA7

(K B4 + K B8)
cero

K AB4

(K B5 + K B7)

Figure 4 Stiffness structure matrix.

EA L 6 6 0 kAB 4 0

0 12EI 3 L 6EI L2

3 0 6EI 7 7 L2 5 2EI L

2b

kBA kAB T 2 EA 6 kB 6 0 4 0
L

2c 3 0 6EI 7 7 L2 5 4EI L

0 12EI L3 6EI L2

2d

It is a common practice to form the global structure [K] matrix adding element by element of each of the 12 12 global stiffness element matrix in the appropriate position of the structure matrix [5]. In this work, the stiffness structure matrix [K] is assembled using the 3 3 global submatrices kA, kAB, kBA; kB of each element. This alternative approach results in a more convenient procedure to achieve this objective.

The supports are numbered in sequence after all the free nodes have been numbered. Figure 3 depicts this procedure for the structure of Figure 2. The stiffness matrix of this example consists of 5 5 submatrices each one with a size of 3 3, being the full matrix size of 15 15. Forming this matrix using the global submatrices kA, kAB, kBA, and kB of each bar is very simple following the orientation of each bar. For instance the position row 3, column 3 of the [K] structure matrix, is filled with the matrix kB3 kA4 kB6 kA7. Observing that the bar 6 joints nodes 3 and 1 of the structure and we go from node B to A of the bar 6 to joint nodes 31, the position row 3, column 1 of the global structure matrix [K] is filled with kBA of bar 6 (kBA6). In the same way, position row 3, column 4 is filled with kAB4 and position row 2 and column 3 is filled with the matrix 0 because there is no bar joining the nodes 2 and 3. In this way, the stiffness matrix of the structure can be written as it is shown in Figure 4.

STIFFNESS PROGRAM EXAMPLE ONE


Figure 2 represents a two-dimensional frame with 8 bars, 5 nodes and three xed supports. The bars have rectangular sections with a modulus of elasticity of 21,680,000 kN/m2. To apply the stiffness matrix method to solve the structure shown in Figure 2, it is necessary to follow a few steps. The nodes, bars and supports must be numbered and the elements must be oriented defining an initial extreme A where the origin of its local coordinate system is assumed and a final extreme B. An arrow is drawn in the extreme B to indicate the position of the local coordinate system. Mathcad has been chosen by many authors to develop learning tools due to its useful algebraic capabilities [6]. In the first part of the Mathcad spreadsheet, the user captures some basic information such as material properties, joint coordinates and member incidences. Then, many functions to obtain the moment of inertia, section area, local element stiffness matrix

MB(case , P , L, a) :=

P a (L a) L P L 12
2 2

if case

if case

2 3

I( b , h ) :=

b h

P a
A ( b , h ) := b h

12

[2 (L a) a] if case

Figure 5 Section properties functions.

Figure 6 Fixed end moment function.

110

CEDENO-ROSETE

E A L kA(E, A , I , L) := 0

PA := 0 VA := VA(1 , 100, 5 , 2) + VA(2 , 20, 5 , 0)

12E I 6 E I L
3

M A := MA(1 , 100, 5 , 2) + MA(2 , 20, 5 , 0) PA PA6I := VA MA PB6I := PB VB MB

6 E I L
2

4 E I L

Figure 7 Stiffness submatrix function.

Figure 9 Fixed end forces in bar 6.

and element transformation matrix were written in Mathcad. Figure 5 shows two simple functions to obtain the moment of inertia and section area. In the same way Figure 6 shows a function to obtain the fixed end moment in the extreme B of a bar for a three different types of transverse loads. Similar functions exist for the extreme A and for the vertical xed end forces. The designed function to obtain the stiffness sub matrix function kA is shown in Figure 7. Once the area and moment of inertia are obtained for all the bars calling the function showed in Figure 5, the values are collected in two vectors as it is shown in Figure 8. For every bar with loads the fixed end forces are obtained using the corresponding functions. Figure 9 shows the fixed end moment calculated for the extreme A of beam 6. The following step is to obtain the stiffness matrix in a local coordinate system and transform it to a global coordinates. Figure 10 shows the procedure for bar number 2. Similar blocks are established for every bar in the structure. Forming the force vector and the stiffness structure matrix is the next step. The force vector is

build adding the end xed forces for every bar joining in each node and changing the sign. The stiffness structure matrix in Figure 4 is then formed using the intrinsic Mathcad augment and stack functions. Figure 11 shows the procedure. With a simple matrix operation the displacement vector is then determined in Mathcad as it is shown in Figure 12. Finally, the end forces for each bar in local coordinates are calculated. For the bar number 2 which does not have applied loads the solution is obtained as it is shown in Figure 13. For the bar number 6 which has intermediate applied loads, the xed end moments previously calculated need to be added to the direct solution and the nal end forces are shown in Figure 14.

Bar 2:
i := IA
n n

n := 2 j := IB
n n i, 2

A := Area

I := Iner

xA := xy i, 1 xB := xy j, 1

y A := xy y B := xy

j, 2

A1 A2 A3 Area := A4 A5 A6 A7 A8 Iner :=

I1 I2 I3 I4 I5 I6 I7 I8

L := Len xA , xB, y A , y B cos := xB xA L

sen :=

yB yA L

T2 := T(sen , cos) kB2 := kB(E, A , I , L) kBA2 := kAB2


T T

kA2 := kA(E , A , I , L) kAB2 := kAB(E, A , I , L) KA2 := T2 kA2 T2 KAB2 := T2 kAB2 T2


T T

KB2 := T2 kB2 T2 KBA2 := KAB2


T

Figure 8 Area and moment of inertia.

Figure 10 Matrix stiffness element in local and global coordinates.

STIFFNESS MATRIX STRUCTURAL ANALYSIS

111

F := stack PA6I , PA8I , PB6I + PA7I , PB8I, PB7I K1 := augment KB1 + KA2 + KA6 , KAB2 , KAB6 , cero , cero K2 := augment KBA2 , KB2 + KA8 , cero , KAB8 , cero K3 := augment KBA6 , cero , KB3 + KA4 + KB6 + KA7 , KAB4 , KAB7 K4 := augment cero , KBA8 , KBA4 , KB4 + KB8 , cero K5 := augment cero , cero , KBA7 , cero , KB5 + KB7 K := stack(K1 , K2 , K3 , K4 , K5)

PA6 := PA6 + PA6I 14 PA6 = 95 58

PB6 := PB6 + PB6I 14 PB6 = 105 132

Figure 14 End bar forces for bar number 6.

Figure 11 Force vector and stiffness matrix.

Figure 15 Three bar frame.

F := stack PA2I , PB2I

) ) )

K1 := augment KB1 + KA2 , KAB2 K2 := augment KBA2 , KB2 + KA3 K := stack ( K1 , K2)

Figure 12 Displacement solution.

Figure 16 Stiffness matrix.

n := 2

i := IA dx( i)

j := IB

dx( j) d B := dy ( j) dz( j)

PA2 := PA2 + PA2I PB2 := PB2 + PB2I 17 PA2 = 42 3 PB2 = 17 58 39

d A := dy ( i) dz( i)

PA2 := T2 KA2 d A + KAB2 d B PB2 := T2 KBA2 d A + KB2 d B

Figure 13 End bar forces for bar number 2.

Figure 17

End forces of bar 2.

112

CEDENO-ROSETE

EXAMPLE TWO
Appling small changes in the software presented, the user can solve different problems such as the one depicted in Figure 15. The main changes needed are in forming the force vector and the global stiffness structure matrix. These changes are shown in Figure 16. The end forces in every bar do not require any change except for those bars which have intermediate loads. The corresponding change is shown in Figure 17.

ACKNOWLEDGMENTS
The author gratefully acknowledges the support given by the Universidad de las Americas Puebla, for the elaboration of this article.

REFERENCES
[1] Dr. Beam Pro and Dr. Frame, URL: http://www. disoftware-home.com. [2] Ftool, URL: http://www.tecgraf.puc-rio.br/$lfm/ftool/ ftool.html. [3] X. F. Yuan and J. G. Teng, Interactive web-based package for computer aided learning of structural behavior, Comp Appl Eng Educ 10 (2002), 121136. [4] S. F. Almeida, R. Piazzalunga, and V. G. Ribero, A web-based 2D structural analysis educational software, Comp Appl Eng Educ 11 (2003), 8392. [5] A. Kassimali, Strructural analysis, PWS Publishing Company, USA, 1993. [6] Ms. Al-Ansari and A. B. Senouci, Use of Mathcad as a teaching and learning tool for reinforced concrete design of footings, Comp Appl Eng Educ 7 (1999), 146154.

CONCLUSIONS
A civil engineering student can save a lot of time analyzing a structural problem with this software. Interaction with the software allows a student to acquire the basic stiffness analysis concepts. Using this problem as a template, a student can solve different problems with less time and effort. The programs allows to the user to focus on the procedure instead of wasting time in the large amount of calculations involved.

BIOGRAPHY
Rafael Cedeno-Rosete is a faculty member in the Universidad de las Americas Puebla, Mexico. His teaching is concerned with structural analysis and design. His research interests include prestressed concrete elements and steel structures. He is also involved in developing educational software for civil engineering courses. He received the PhD degree in civil engineering from the Texas Tech University, in Lubbock, Texas.

S-ar putea să vă placă și