Contents
TWO STORY STEEL FRAME, PUSH-OVER ANALYSIS WITH FIXED GRAVITY LOADS AND LATERAL FORCES UNDER LOAD CONTROL
Initialization: clear memory and define global variables
CleanStart
Create output file
IOW = Create_File (mfilename);
Create Model
Model_TwoStoryFrm
Print_Model (Model,'Push-over analysis of two story steel frame');
Element properties
SimpleNLElemData
Structure ('data',Model,ElemData);
Loading (distributed loads only)
for el=5:6 ElemData{el}.w = [0;-0.50]; end
for el=7:8 ElemData{el}.w = [0;-0.35]; end
GravLoading = Create_Loading (Model);
Incremental analysis for distributed element loading (single load step)
State = Initialize_State(Model,ElemData);
SolStrat = Initialize_SolStrat;
SolStrat.IncrStrat.Dlam0 = 1;
[State SolStrat] = Initialize(Model,ElemData,GravLoading,State,SolStrat);
[State SolStrat] = Increment(Model,ElemData,GravLoading,State,SolStrat);
[State SolStrat] = Iterate (Model,ElemData,GravLoading,State,SolStrat);
State = Update_State(Model,ElemData,State);
State = Structure ('forc',Model,ElemData,State);
k = 1;
Post(k) = Structure ('post',Model,ElemData,State);
Iteration: 1 Relative work increment = 1.466268e-029
Number of iterations = 1
2. Loading in sequence: horizontal forces
Pe(2,1) = 20;
Pe(3,1) = 40;
Pe(5,1) = 20;
Pe(6,1) = 40;
LatLoading = Create_Loading (Model,Pe);
Incremental analysis for horizontal force pattern (load control is on)
SolStrat.IncrStrat.Dlam0 = 0.40;
SolStrat.IncrStrat.LoadCtrl = 'yes';
SolStrat.IterStrat.LoadCtrl = 'yes';
nostep = 20;
[State SolStrat] = Initialize(Model,ElemData,LatLoading,State,SolStrat);
tic;
for j=1:nostep
[State SolStrat] = Increment(Model,ElemData,LatLoading,State,SolStrat);
[State SolStrat] = Iterate (Model,ElemData,LatLoading,State,SolStrat);
State = Update_State(Model,ElemData,State);
k = k+1;
Post(k) = Structure ('post',Model,ElemData,State);
Structure('prin',Model,ElemData,State);
end
toc;
Iteration: 1 Relative work increment = 4.015228e-029
Number of iterations = 1
Iteration: 1 Relative work increment = 3.866660e-029
Number of iterations = 1
Iteration: 1 Relative work increment = 3.831656e-029
Number of iterations = 1
Iteration: 1 Relative work increment = 3.931251e-029
Number of iterations = 1
Iteration: 1 Relative work increment = 2.510484e-002
Iteration: 2 Relative work increment = 1.303911e-030
Number of iterations = 2
Iteration: 1 Relative work increment = 1.986888e-003
Iteration: 2 Relative work increment = 1.292956e-030
Number of iterations = 2
Iteration: 1 Relative work increment = 7.605427e-029
Number of iterations = 1
Iteration: 1 Relative work increment = 7.431033e-029
Number of iterations = 1
Iteration: 1 Relative work increment = 4.447378e-003
Iteration: 2 Relative work increment = 6.083769e-030
Number of iterations = 2
Iteration: 1 Relative work increment = 3.078007e-002
Iteration: 2 Relative work increment = 3.087329e-029
Number of iterations = 2
Iteration: 1 Relative work increment = 8.192344e-029
Number of iterations = 1
Iteration: 1 Relative work increment = 9.350141e-029
Number of iterations = 1
Iteration: 1 Relative work increment = 3.948878e-003
Iteration: 2 Relative work increment = 1.325691e-024
Number of iterations = 2
Iteration: 1 Relative work increment = 1.892417e-024
Number of iterations = 1
Iteration: 1 Relative work increment = 2.075135e-024
Number of iterations = 1
Iteration: 1 Relative work increment = 1.494838e-024
Number of iterations = 1
Iteration: 1 Relative work increment = 1.669817e-024
Number of iterations = 1
Iteration: 1 Relative work increment = 2.278438e-024
Number of iterations = 1
Iteration: 1 Relative work increment = 1.870416e-024
Number of iterations = 1
Iteration: 1 Relative work increment = 2.176312e-024
Number of iterations = 1
Elapsed time is 1.156000 seconds.
Post-processing
np = length(Post);
x = zeros(np,1);
y = zeros(np,1);
pltDOF = Model.DOF(1,6);
supDOF = [Model.DOF(1,1) Model.DOF(1,4)];
for k=1:np
x(k) = Post(k).U(pltDOF);
y(k) = -sum(Post(k).Pr(supDOF))/sum(Pe);
end
fig = Create_Window(0.70,0.70);
ph1 = plot(x,y,'s-');
set (ph1,'MarkerSize',4,'MarkerFaceColor','b');
grid('on');
xlabel ('Horizontal roof displacement');
ylabel ('Load factor {\lambda}');
axis ([0 10 0 3]);
title ('Load factor-displacement');
Create_Window(0.70,0.70);
title('Moment distribution and plastic hinge locations near incipient collapse');
Plot_Model(Model);
Plot_ForcDistr (Model,ElemData,Post(end),'Mz');
Plot_PlasticHingeswPost(Model,Post(end));
Create_Window(0.70,0.70);
Plot_Model(Model);
Structure('defo',Model,ElemData,State);
Plot_PlasticHingeswPost(Model,Post(end),State.U);
Resize_Plot;
fclose(IOW);