You are on page 1of 9

Equivalent Static Method (As per IS 1893(Part 1):2002)

1. Main Program
clear all;
clc;
global n hs h W Wt Z I Sag R Ah VB soil
n=input('Enter the number of stories: ');
hs=input('Enter the story height in m: ');
h=n*hs;
Wt=0;
disp('Enter the story Weights in kN(from bottom to top):');
for i=1:n
a=sprintf('W%i ',i);
W(i)=input(a);
Wt=Wt+W(i);
end;
z=[ 0 .1 .16 .24 .36];
zone=input('Enter the zone(2/3/4/5): ');
Z=z(zone);
I=input('Enter the Importance factor(1/1.5): ');
R=input('Enter the Response reduction factor: ');
soil=input('Enter the solil type(1/2/3) : ');
choice = questdlg('Do the building have brick infil ?','Brick infil','Yes','No',
'No');
ch=strcmp(choice,'No');
if ch==1
T=.075*h^.75;
Q=load_calc(T);
disp(['Design Seismic Base Shear= ' num2str(VB)]);
Qx=Q;
VBx=VB;
SSx(1)=VB;
for j=1:n-1
SSx(j+1)=SSx(j)-Qx(j);
end
Qy=Q;
VBy=VB;
SSy(1)=VB;
for j=1:n-1
SSy(j+1)=SSy(j)-Qy(j);
end
else
dx=input('Enter the base dimension along X in m: ');
dy=input('Enter the base dimension along Y in m: ');
Tx=.09*h/sqrt(dx);
Qx=load_calc(Tx);
disp(['Design Seismic Base Shear in X= ' num2str(VB)]);
VBx=VB;
Ty=.09*h/sqrt(dy);
Qy=load_calc(Ty);
disp(['Design Seismic Base Shear in Y= ' num2str(VB)]);
VBy=VB;
SSx(1)=VBx;
for j=1:n-1
SSx(j+1)=SSx(j)-Qx(j);

end

end
SSy(1)=VBy;
for j=1:n-1
SSy(j+1)=SSy(j)-Qy(j);
end

story=1:n;
f = figure('Position', [100 100 752 250]);
t = uitable('Parent', f, 'Position', [25 50 700 200], 'Data', [story' Qx' SSx' Qy'
SSy']);
t.ColumnName = {'Story', 'Force X','Story shear X','Force Y', 'Story shear Y'};

2. Function to calculate load


function x=load_calc(T)
global n hs h W Wt Z I Sag R Ah VB soil
if soil==1
if 0<=T&&T<.1
Sag=1+15*T;
elseif .1<=T&&T<=.4
Sag=2.5;
elseif .4<T&&T<=4
Sag=1/T;
end
elseif soil==2
if 0<=T&&T<.1
Sag=1+15*T;
elseif .1<=T&&T<=.55
Sag=2.5;
elseif .55<T&&T<=4
Sag=1.36/T;
end
elseif soil==3
if 0<=T&&T<.1
Sag=1+15*T;
elseif .1<=T&&T<=.67
Sag=2.5;
elseif .67<T&&T<=4
Sag=1.67/T;
end
end
Ah=(Z*I*Sag)/(2*R);
VB=Ah*Wt;
EWh2=0;
for i=1:n
Wh2(i)=W(i)*(hs*i)^2;
EWh2=EWh2+Wh2(i);
end
for i=1:n
Q(i)=(Wh2(i)/EWh2)*VB;
end
x=Q;

Out put:
Enter the
Enter the
Enter the
W1 353.16
W2 323.73
W3 274.68
Enter the
Enter the
Enter the
Enter the

number of stories: 3
story height in m: 3
story Weights in kN(from bottom to top):

zone(2/3/4/5): 3
Importance factor(1/1.5): 1
Response reduction factor: 3
solil type(1/2/3) : 2

Design Seismic Base Shear= 63.438

Response spectrum Method (As per IS 1893(Part 1):2002)


(for 3-storied building)
1. Main Program
clear all
clc;
global Z I R Ah soil
n=3;
W(1)=353.16;
W(2)=323.73;
W(3)=274.68;
Wt=0;
for i=1:n
Wt=Wt+W(i);
end;
m1=(W(1)*1000)/9.81;
m2=(W(2)*1000)/9.81;
m3=(W(3)*1000)/9.81;
k1=42*10^6;
k2=37*10^6;
k3=32*10^6;

%no of stories
%seismic weight in kN

%Wt=total seismic weignt

%stiffness in N/m

M=[m1 0 0;0 m2 0;0 0 m3];

%mass matrix

K=[k1+k2
-k2
0

%stiffness matrix

-k2
0
k2+k3 -k3
-k3
k3 ];

[R D]=eig(K,M);
for i=1:n
w(i)=sqrt(D(i,i));
T(i)=(2*pi)/w(i);
R(:,i)=R(:,i)/R(1,i);
end
disp('Natural frequencies');
disp(w);
disp('Time periods');
disp(T);
disp('Modal matrix, R=');
disp('
Mode 1
Mode 2
disp(R);

Mode 3 ');

for i=1:n
alfa(i)=1/sqrt((R(:,i))'*M*R(:,i));
f(:,i)=alfa(i)*R(:,i);
end

disp('Mass normalised modal matrix, phi=');


disp('
Mode 1
Mode 2
Mode 3 ');
disp(f);
for k=1:n
num=0;
den=0;
for i=1:n
num=num+W(i)*f(i,k);
den=den+W(i)*f(i,k)^2;
end
P(k)=num/den;
end
disp('Modal participation factors');
disp(P);
%calculation of Ak
z=[ 0 .1 .16 .24 .36];
zone=3;
Z=z(zone);
I=1;
R=3;
soil=2;
for k=1:n
A(k)=Ah_calc(T(k));
end

%zone(2/3/4/5)
%Importance factor(1/1.5)
%Response reduction factor
%solil type(1/2/3)

for k=1:n
for i=1:n
Q(i,k)=A(k)*f(i,k)*P(k)*W(i);
end
end
disp('Lateral forces at each floor in each mode');
disp('
Mode 1
Mode 2
Mode 3 ');
disp(Q);
%Calculation of story shear in each mode
for k=1:n
V(n+1,k)=0;
for i=n:-1:1
V(i,k)=V(i+1,k)+Q(i,k);
end
end
V(n+1,:)=[];
disp('Story shear forces at each floor in each mode');
disp('
Mode 1
Mode 2
Mode 3 ');
disp(V);
VB_bar=input('Enter the base shear obtained from equivalent static method: ');
%Modal Combination
%SRSS
disp('----Modal Combination by SRSS method----');
for i=1:n
SRSS=0;
for k=1:n
SRSS=SRSS+V(i,k)^2;
end
Vsrss(i)=sqrt(SRSS);

end
disp('Net Story shear forces at each floor');
disp('
floor 1
floor 2
floor 3 ');
disp(Vsrss);
if Vsrss(1)<VB_bar
Vsrss=Vsrss*(VB_bar/Vsrss(1));
end
disp('Corrected Story shear forces at each floor');
disp('
floor 1
floor 2
floor 3 ');
disp(Vsrss);
%Calculation of net Lateral forces at each floor
Qsrss(n)=Vsrss(n);
for i=n:-1:2
Qsrss(i-1)=Vsrss(i-1)-Vsrss(i);
end
disp('Net Lateral forces at each floor');
disp('
floor 1
floor 2
floor 3 ');
disp(Qsrss);
%SQC
disp('----Modal Combination by SQC method----');
eta=.05;
%damping ratio
for j=1:n
for i=1:n
beta(j,i)=w(i)/w(j);
end
end
for j=1:n
for i=1:n
r(i,j)=(8*eta^2*(1+beta(i,j))*(beta(i,j)^1.5))/((1beta(i,j)^2)^2+4*eta^2*beta(i,j)*(1+beta(i,j))^2);
end
end
for i=1:n
Vsqc(i)=sqrt(V(i,:)*r*V(i,:)');
end
disp('Net Story shear forces at each floor');
disp('
floor 1
floor 2
floor 3 ');
disp(Vsqc);
if

Vsqc(1)<VB_bar
Vsqc=Vsqc*(VB_bar/Vsqc(1));

end
disp('Corrected Story shear forces at each floor');
disp('
floor 1
floor 2
floor 3 ');
disp(Vsqc);
%Calculation of net Lateral forces at each floor
Qsqc(n)=Vsqc(n);
for i=n:-1:2
Qsqc(i-1)=Vsqc(i-1)-Vsqc(i);
end
disp('Net Lateral forces at each floor');
disp('
floor 1
floor 2
floor 3 ');
disp(Qsqc);

2. Function to Calculate Ah (Design horizontal seismic


coefficient)
function x=Ah_calc(T)
global Z I R Ah soil
if soil==1
if 0<=T&&T<.1
Sag=1+15*T;
elseif .1<=T&&T<=.4
Sag=2.5;
elseif .4<T&&T<=4
Sag=1/T;
end
elseif soil==2
if 0<=T&&T<.1
Sag=1+15*T;
elseif .1<=T&&T<=.55
Sag=2.5;
elseif .55<T&&T<=4
Sag=1.36/T;
end
elseif soil==3
if 0<=T&&T<.1
Sag=1+15*T;
elseif .1<=T&&T<=.67
Sag=2.5;
elseif .67<T&&T<=4
Sag=1.67/T;
end
end
Ah=(Z*I*Sag)/(2*R);
x=Ah;

Out put:
Natural frequencies
15.8938
41.2954
Time periods
0.3953

58.9091

0.1522

0.1067

Modal matrix, R=
Mode 1
Mode 2
1.0000
1.0000
1.8893
0.4759
2.4255
-0.9670

Mode 3
1.0000
-1.2414
0.6096

Mass normalised modal matrix, phi=


Mode 1
Mode 2
Mode 3
0.0018
0.0038
0.0032
0.0033
0.0018
-0.0040
0.0043
-0.0037
0.0020
Modal participation factors
294.5942
93.3174
38.8085
Lateral forces at each floor in each mode
Mode 1
Mode 2
Mode 3
12.2896
8.3245
2.9299
21.2843
3.6316
-3.3339
23.1840
-6.2610
1.3891
Story shear forces at each floor in each mode
Mode 1
Mode 2
Mode 3
56.7579
5.6951
0.9850
44.4683
-2.6294
-1.9449
23.1840
-6.2610
1.3891
Enter the base shear obtained from equivalent static method: 63.438
----Modal Combination by SRSS method---Net Story shear forces at each floor
floor 1
floor 2
floor 3
57.0514
44.5884
24.0546
Corrected Story shear forces at each floor
floor 1
floor 2
floor 3
63.4380
49.5799
26.7474
Net Lateral forces at each floor
floor 1
floor 2
floor 3
13.8581
22.8324
26.7474
----Modal Combination by SQC method---Net Story shear forces at each floor
floor 1
floor 2
floor 3
57.1136
44.5650
23.9797
Corrected Story shear forces at each floor
floor 1
floor 2
floor 3
63.4380
49.4999
26.6351

Net Lateral forces at each floor


floor 1
floor 2
floor 3
13.9381
22.8647
26.6351

Story

Equivalent Static
Method

Response Spectrum Method


SRSS

SQC

5.44

13.86

13.94

19.94

22.83

22.86

38.06

26.75

26.64

You might also like