You are on page 1of 6

Tên: Lê Văn Hải

MSSV: 18149239

Bài 1
clear all;clc; close all;
syms x
k=9;
i=39;
L=(600+k); E=(5+i)*(10^4); I=(3+k)*(10^4);
wo=(2.5+k+i);
y=wo*(-x^5+2*x^(3)*L^2-x*L^4)/(120*E*I*L);
xv=0:10:L;
yv=subs(y,x,xv);
subplot(2,2,1)
plot(xv,yv)
dy=diff(y,x,1);
ng=solve(dy,x);
ng=eval(ng);
ng=[ng(2) ng(4)]
ymax=subs(y,x,ng);
ymax=eval(ymax)
fiv=subs(dy,x,xv);
M=E*I*diff(y,x,2);
Mv=subs(M,x,xv);
V=E*I*diff(y,x,3);
Vv=subs(V,x,xv);
subplot(2,2,2)
plot(xv,fiv)
subplot(2,2,3);
plot(xv,Mv)
subplot(2,2,4)
plot(xv,Vv)
dM=diff(M,x,1);
ng2=solve(dM,x);
ng2=eval(ng2)
Mmax=eval(subs(M,x,ng2(2)))
dV=diff(V,x,1);
ng3=solve(dV,x);
Vmax=eval(subs(V,x,ng3))
Y1=eval(subs(y,x,L/4))
fi1=eval(subs(dy,x,L/4))
M1=eval(subs(M,x,L/4))
V1=eval(subs(V,x,L/4))

Kết quả
ng = 609.0000 272.3531
ymax = 0 -0.3138
ng2 = -272.3531(loại) 272.3531
Mmax = 5.5841e+05
ng3 = 0
Vmax = 3.0754e+0

Y1 = -0.2409

fi1 = -0.0012

M1 =4.1946e+05

V1 =2.1144e+03

Bài 2
clear all;clc;close all;
l=50;A=209;ro=289;m=0;cd=0;
x=[0,3*l,1.5*l,0,0.75*l,l,1.5*l,2*l,2.25*l];
y=[0,0,sqrt(3)*l/2,0,sqrt(3)*l/4,0,sqrt(3)*l/2,0,sqrt(3)*l/4];
plot(x,y)
axis equal
nut=[0,l,2*l,3*l,2.25*l,1.5*l,0.75*l;...
0,0,0,0,l*sqrt(3)/4,l*sqrt(3)/2,l*sqrt(3)/4];
thanh=[1,2,3,4,3,5,3,2,6,2,1;...
2,3,4,5,5,6,6,6,7,7,7];
st=size(thanh,2);
for i=1:1:st
cs=thanh(:,i);
x1=nut(1,cs(1)); y1=nut(2,cs(1));
x2=nut(1,cs(2)); y2=nut(2,cs(2));
l(i)=sqrt((x1-x2)^2+(y1-y2)^2);
m=m+A*ro*l(i);
cd=sum(l);
end
m
cd
Kết quả tìm đực
m = 2.8582e+07
cd = 473.2051
Bài 3

clear all;clc;
l=50; A=209; m=0; ro=289; CD=0;
nut=[0,1,1,-2,-4,2,2;...
0,-3/2,3/2,3/2,3,3,-3;...
12,6,6,6,0,0,0];
thanh=[1,1,1,3,2,2,4,3,2,2,3,2,5,7,5;...
2,3,4,4,4,3,5,6,7,6,5,5,6,6,7];
st=size(thanh,2)
for i=1:1:st
cs=thanh(:,i);
x1=nut(1,cs(1));y1=nut(2,cs(1));z1=nut(3,cs(1));
x2=nut(1,cs(2));y2=nut(2,cs(2));z2=nut(3,cs(2));
x=[x1,x2];
y=[y1,y2];
z=[z1,z2];
hold on
plot3(x,y,z)
view(140,20)
axis equal
CD1=sqrt((x1-x2)^2+(y1-y2)^2+(z1-z2)^2);
m=m+A*CD1*ro;
CD=CD+CD1;
end
m
CD
Kết quả

CD = 93.3211

m = 5.6367e+06 = 5636700

You might also like