Contents
TWO STORY STEEL FRAME, LINEAR ELASTIC ANALYSIS UNDER DIFFERENT LOAD COMBINATIONS
Initialization: clear memory and define global variables
CleanStart
Create output file
IOW = Create_File (mfilename);
Create Model
Model_TwoStoryFrm
Print_Model (Model,'Linear elastic analysis of two story steel frame');
Element properties
LinearElemData
Structure ('data',Model,ElemData);
Sequence of linear analyses for three load cases and superposition
Load case 1 : distributed load in girders
for el=5:6 ElemData{el}.w = [0;-0.50]; end
for el=7:8 ElemData{el}.w = [0;-0.35]; end
Loading = Create_Loading (Model);
State = LinearStep (Model, ElemData, Loading);
Print_State (Model,State);
Structure ('prin',Model,ElemData,State);
MAGF = 100;
Create_Window(0.70,0.70);
Plot_Model(Model);
Structure ('defo',Model,ElemData,State);
Post(1) = Structure ('post',Model,ElemData,State);
Create_Window(0.70,0.70);
Plot_Model(Model);
Plot_ForcDistr (Model,ElemData,Post(1),'Mz');
title('Moment distribution of 2-story frame under gravity load in girders');
Norm of equilibrium error = 1.438860e-012
Load case 2: horizontal forces
for el=5:8; ElemData{el}.w = [0;0]; end
Pe(2,1) = 20;
Pe(3,1) = 40;
Pe(5,1) = 20;
Pe(6,1) = 40;
Loading = Create_Loading (Model,Pe);
State = LinearStep (Model, ElemData, Loading);
Print_State (Model,State);
Structure ('prin',Model,ElemData,State);
MAGF = 50;
Create_Window(0.70,0.70);
Plot_Model(Model);
Structure ('defo',Model,ElemData,State);
Post(2) = Structure ('post',Model,ElemData,State);
Create_Window(0.70,0.70);
Plot_Model(Model);
Plot_ForcDistr (Model,ElemData,Post(2),'Mz');
title('Moment distribution of 2-story frame under horizontal forces');
Norm of equilibrium error = 6.625476e-012
Load case 3: support displacement
Pe = [];
Ue(1,1) = 0.2;
Loading = Create_Loading (Model,Pe,Ue);
State = LinearStep (Model, ElemData, Loading);
Print_State (Model,State);
Structure ('prin',Model,ElemData,State);
MAGF = 100;
Create_Window(0.70,0.70);
Plot_Model(Model);
Structure ('defo',Model,ElemData,State);
Post(3) = Structure ('post',Model,ElemData,State);
Create_Window(0.70,0.70);
Plot_Model(Model);
Plot_ForcDistr (Model,ElemData,Post(3),'Mz');
title('Moment distribution of 2-story frame under support settlement');
Norm of equilibrium error = 9.257498e-013
Load combination
for el=1:Model.ne
Post_Combi.Elem{el}.q =1.2.*Post(1).Elem{el}.q + 1.5.*Post(2).Elem{el}.q;
end
for el=5:6 ElemData{el}.w = [0;-0.50]; end
for el=7:8 ElemData{el}.w = [0;-0.35]; end
Create_Window(0.70,0.70);
Plot_Model(Model);
Plot_ForcDistr (Model,ElemData,Post_Combi,'Mz');
title('Moment distribution of 2-story frame under load combination of 1.2DL+1.5EQ');
fclose(IOW);