MATLAB_Floor_Displacement Description and Help

MATLAB_Floor_Displacement is a graphical user interface (GUI) that plots solutions to a floor displacement model for a 5-story building. The GUI assumes the displacement of each floor satisfies

(      ′′
|| m1x  1(t)  =  - k0(x1 (t) - g(t)) + k1(x2(t) - x1(t))
||{      ′′
  m2x  2(t)  =  - k1(x2 (t) - x1(t)) + k2(x3(t) - x2(t))
||           ...
||(      ′′
  m5x  5(t)  =  - k4(x5 (t) - x4(t))

where m1,m2,⋅⋅⋅,m5 are the masses of floors one through five. The parameters k0,k1,⋅⋅⋅,k4 are the spring constants representing the restorative force realized by the walls that connect the ground to the first floor, the first floor to the second, etc... For example, k4 is the ‘spring constant’ for the wall that connects the fourth floor to the fifth. The function g(t) represents the position of the ground during the earthquake. For a complete description of the model see the text. The GUI assumes all initial conditions are zero representing the building is at rest and has not been displaced before the earthquake begins.

To use the GUI, click on the Input Parameters and Solve Button.


PIC

Figure 1: MATLAB_Floor_Displacement GUI


Pop-up boxes will appear guiding you through the input process.


PIC

Figure 2: Pop-up boxes for parameters


Once all the inputs have been made a movie will display the motion of the floors. Pay careful attention to the scale before drawing conclusions about the motion of the building.


PIC

Figure 3: Floor Motion


Choose ‘Plot Individual Floor Displacements vs Time’ if you would like a plot that separates each floor’s motion.


PIC

Figure 4: Individual Floor Displacements vs Time