Professional Documents
Culture Documents
Earthquake Engineering Lab Manual Compri PDF
Earthquake Engineering Lab Manual Compri PDF
Session: 2015-2019
Dated: 15-04-2019
\\Programme #01//
\\ Shear Force and Bending Moment Diagram of Simply Supported Beam acting UDL//
L=8;
w=6;
R1=w*L/2;
R2=w*L/2;
x=0:0.1:L;
V=R1-w*x;
M=R1*x-w*x.*x/2;
subplot(211);
plot(x,V);
subplot(212);
plot(x,M);
Diagram #01
2
Prepared By=Sheryar Bismil
Structural & Earthquake Engineering Lab Manual
\\Programme #02//
\\ Shear Force and Bending Moment Diagram of Simply Supported Beam under acting
single point loading//
clc;clear
p=4;
a=3;
b=2;
L=a+b;
R1=p*b/L;
R2=p*a/L;
x1=0:0.1:a;
V1=R1+x1-x1;
M1=R1*x1;
x2=a:0.1:L;
V2=R1-p+x2-x2;
M2=R1*x2-p*(x2-a);
x=[x1,x2];
V=[V1,V2];
M=[M1,M2];
subplot(211);
plot(x,V);
subplot(212);
plot(x,M);
Diagram #02
3
Prepared By=Sheryar Bismil
Structural & Earthquake Engineering Lab Manual
\\Programme #03//
\\ Shear Force and Bending Moment Diagram of Simply Supported Beam under acting
two-point loading//
clc;clear
p=8;
a=3;
L=3*a;
R1=p;
R2=p;
x1=0:0.1:a;
V1=R1-x1+x1;
M1=R1*x1;
x2=a:0.1:2*a;
V2=R1-p+x2-x2;
M2=R1*x2-p*(x2-a);
x3=2*a:0.1:L;
V3=R1-2*p+x3-x3;
M3=R1*x3-p*(x3-a)-p*(x3-2*a);
x=[x1,x2,x3]
V=[V1,V2,V3]
m=[M1,M2,M3]
subplot(211)
plot(x,V)
subplot(212)
plot(x,m)
Diagram #03
4
Prepared By=Sheryar Bismil
Structural & Earthquake Engineering Lab Manual
\\Programme #04//
\\Lab Assessment//
\\ Shear Force and Bending Moment Diagram of Simply Supported Beam under acting
two-point loading and UDL//
L=12;
p=4;
a=3;
w=3;
R1=w*L/2+p;
R2=w*L/2+p;
x1=0:0.1:a;
V1=R1-w*x1;
M1=R1*x1-w*x1.*x1/2;
x2=a:0.1:3*a;
V2=R1-w*x2-p;
M2=R1*x2-w*x2.*x2/2-p*(x2-a);
x3=3*a:0.1:L;
V3=R1-w*x3-p-p;
M3=R1*x3-w*x3.*x3/2-p*(x3-a)-p*(x3-3*a);
x=[x1,x2,x3];
V=[V1,V2,V3];
M=[M1,M2,M3];
subplot(211);
plot(x,V);
subplot(212);
plot(x,M);
Diagram #04
5
Prepared By=Sheryar Bismil
Structural & Earthquake Engineering Lab Manual
\\Programme #05//
\\To Draw SFD & BMD, Deflection & Slope of simple Beam Under UDL//
clc;clear;
L=input(' Lenght of Beam(m)= ')
w=input(' UDL on Beam(Kn/m)= ')
b=input(' Width of Beam(m)= ')
h=input(' Depth of Beam(m)= ')
fcp=input(' fcprime(Mpa)= ')
I=b*h.^3/12;
E=4700*sqrt(fcp)*1000;
R1=w*L/2;
R2=R1
x=0:0.01:L;
V=R1-w*x;
M=R1*x-w*x.^2/2;
Yprime=((R1*x.^2/2-w*x.^3/6+w*L.^3/24-R1*L^2/6)/(E*I))
Y=((R1*x.^3/6-w*x.^4/24+w*L^3*x/24-R1*L^2*x/6)/(E*I))
subplot(411);
plot(x,V);
subplot(421);
plot(x,M);
subplot(412);
plot(x,Yprime);
subplot(422);
plot(x,Y);
Diagram #05
6
Prepared By=Sheryar Bismil
Structural & Earthquake Engineering Lab Manual
\\Programme #06//
\\Part#01-Lab Assessment//
\\To Draw SFD & BMD, Deflection & Slope of Cantilever Beam Under UDL //
clc;clear;
L=input(' Lenght of Beam(m)= ')
w=input(' UDL on Beam(Kn/m)= ')
b=input(' Width of Beam(m)= ')
h=input(' Depth of Beam(m)= ')
fcp=input(' fcprime(Mpa)= ')
I=b*h.^3/12;
E=4700*sqrt(fcp)*1000;
R1=w*L;
x=0:0.01:L;
V=R1-w*x;
M=-w*L.^2/2+w*x.^2/2;
Yprime=((w*x.^3/6-w*L^3/6)/(E*I))
Y=((w*x^4/24-w*L^3*x/6)/(E*I))
subplot(411);
plot(x,V);
subplot(412);
plot(x,M);
subplot(413);
plot(x,Yprime);
subplot(414);
plot(x,Y);
Diagram #06
7
Prepared By=Sheryar Bismil
Structural & Earthquake Engineering Lab Manual
\\Programme #07//
\\Part#02-Lab Assessment//
\\To Draw SFD & BMD, Deflection & Slope of simple Beam Under Two Points Loadings//
(Steel Case)
clc;clear;
a=input(' Diatance of point from hinge support of Beam(m)= ')
p=input(' Point Load on Beam(Kn)= ')
E=2*10^11;x=0:0.01:3*a;
I=input(' Moment of Inertia(m^4)= ')
V=p-p*max(x-a,0)./(x-a)-p*max(x-2*a,0)./(x-2*a);
M=p*x-p*max(x-a,0)-p*max(x-2*a,0);
Yprime=((p*x.^2/2-p*max(x-a,0).^2/2-p*max(x-2*a,0).^2/2-p*a^2)/(E*I))
Y=((p*x^3/6-p*max(x-a,0).^3/6-p*max(x-2*a,0).^3/6-p*a*a*x)/(E*I))
subplot(411);
plot(x,V);
subplot(412);
plot(x,M);
subplot(413);
plot(x,Yprime);
subplot(414);
plot(x,Y);
Diagram #07
8
Prepared By=Sheryar Bismil
Structural & Earthquake Engineering Lab Manual
\\Programme #08//
\\Part#02-Lab Assessment//
\\To Draw SFD & BMD, Deflection & Slope of simple Beam Under Two Points Loadings//
(Beam Case)
Diagram #08
9
Prepared By=Sheryar Bismil
Structural & Earthquake Engineering Lab Manual
\\Programme #09//
\\Part#03-Lab Assessment//
\\To Draw SFD & BMD, Deflection & Slope of Cantilever Beam Under Single Point
Load//
clc;clear;
L=input(' Lenght of Beam(m)= ')
p=input(' Point Load on Beam(Kn)= ')
b=input(' Width of Beam(m)= ')
h=input(' Depth of Beam(m)= ')
fcp=input(' fcprime(Mpa)= ')
I=b*h.^3/12;
E=4700*sqrt(fcp)*1000;
R1=p;
x=0:0.01:L;
V=p*x^0;
M=-p*L-p*x;
Yprime=(-(p*L*x-p*x.^2/2-p*L)/(E*I))
Y=(-(p*L*x.^2/2-p*x.^3/6)/(E*I))
subplot(411);
plot(x,V);
subplot(412);
plot(x,M);
subplot(413);
plot(x,Yprime);
subplot(414);
plot(x,Y);
Diagram #09
10
Prepared By=Sheryar Bismil