Contents
Aaron Klapheck
clear, clc, home
fprintf('The date and time: %s \n \n', datestr(now))
The date and time: 29-Dec-2008 10:38:46
Solving problem 4-10 Using Round Steel Tubes
fprintf('%%%%%% Answers for Round Steel Tubes %%%%%% \n')
thickness = .5;
SF = 4;
D_o = [10:0.0001:13];
D_i = D_o - 2*thickness;
F = 200000;
l = 10*12;
A = pi/4.*(D_o.^2-D_i.^2);
I = pi./64.*(D_o.^4-D_i.^4);
k = (I./A).^(1/2);
S_r = 2.1.*l./k;
S_yc = 60000;
E = 30000000;
S_r_d = pi.*(2.*E./S_yc).^(1/2);
leng = length(D_o);
P_cr = zeros(1,leng);
for x = 1:leng
if (S_r(x) <= S_r_d);
P_cr(x) = A(x).*(S_yc - 1./E.*((S_yc.*S_r(x))/(2.*pi)).^2);
else
P_cr(x) = A(x).*pi^2.*E./S_r(x).^2;
end
end
P_allow = P_cr./SF;
for x = 1:leng
if (P_allow(x) >= F)
D_outer = D_o(x)
Slenderness_ratio = S_r(x)
Allowable_Force = P_allow(x)
Critical_Load = P_cr(x)
Radius_of_Gyration = k(x)
break
end
end
%%% Answers for Round Steel Tubes %%%
D_outer =
11.3544
Slenderness_ratio =
65.5963
Allowable_Force =
2.0000e+005
Critical_Load =
8.0000e+005
Radius_of_Gyration =
3.8417
Solving problem 4-10 Using Square Steel Tubes
fprintf('%%%%%% Answers for Square Steel Tubes %%%%%% \n')
thickness = .5;
SF = 4;
S_o = [9:0.0001:11];
S_i = S_o - 2*thickness;
F = 200000;
l = 10*12;
A = S_o.^2-S_i.^2;
I = 1/12.*(S_o.^4-S_i.^4);
k = (I./A).^(1/2);
S_r = 2.1.*l./k;
S_yc = 60000;
E = 30000000;
S_r_d = pi.*(2.*E./S_yc).^(1/2);
leng = length(S_o);
P_cr = zeros(1,leng);
for x = 1:leng
if (S_r(x) <= S_r_d);
P_cr(x) = A(x).*(S_yc - 1./E.*((S_yc.*S_r(x))/(2.*pi)).^2);
else
P_cr(x) = A(x).*pi^2.*E./S_r(x).^2;
end
end
P_allow = P_cr./SF;
for x = 1:leng
if (P_allow(x) >= F)
S_length = S_o(x)
Slenderness_ratio = S_r(x)
Allowable_Force = P_allow(x)
Critical_Load = P_cr(x)
Radius_of_Gyration = k(x)
break
end
end
%%% Answers for Square Steel Tubes %%%
S_length =
9.3427
Slenderness_ratio =
69.6944
Allowable_Force =
2.0000e+005
Critical_Load =
8.0001e+005
Radius_of_Gyration =
3.6158