blob: 17411e2063fda898589c69999fc84404f0ccb539 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
clear all; clc;
disp("Scilab Code Ex 13.9 : ")
//Given:
P = 80; //kN
E = 210*10^3; //MPa
sigma_y = 360; //MPa
L = 5000; //mm
K = 0.5;
//Calculations:
I_by_d = (1/4)*(%pi)*(0.5^4);
A_by_d = (1/4)*(%pi);
r_by_d = sqrt(I_by_d/A_by_d);
sl_ratio_c = sqrt((2*%pi^2*E)/(sigma_y));
sigma_allow = (P*1000)/A_by_d;
d4 = (sigma_allow*23*(K*L)^2*16)/(12*%pi^2*E);
d = d4^(1/4);
//Check:
d = ceil(d);
r = d/4;
KL_r = (K*L)/r;
if(KL_r>sl_ratio_c & KL_r<200)
printf('\n\nThe smallest diameter of the rod as allowed by AISC specification = %1.0fmm',d);
end
//------------------------------------------------------------------------END-----------------------------------------------------------------------------
|