diff options
Diffstat (limited to '1898/CH11')
-rwxr-xr-x | 1898/CH11/EX11.1/Ex11_1.sce | 49 | ||||
-rwxr-xr-x | 1898/CH11/EX11.2/Ex11_2.sce | 87 | ||||
-rwxr-xr-x | 1898/CH11/EX11.3/Ex11_3.sce | 35 | ||||
-rwxr-xr-x | 1898/CH11/EX11.6/Ex11_6.sce | 27 |
4 files changed, 198 insertions, 0 deletions
diff --git a/1898/CH11/EX11.1/Ex11_1.sce b/1898/CH11/EX11.1/Ex11_1.sce new file mode 100755 index 000000000..0b187d3b6 --- /dev/null +++ b/1898/CH11/EX11.1/Ex11_1.sce @@ -0,0 +1,49 @@ +clear all; clc;
+
+disp("Scilab Code Ex 11.1 : ")
+
+//Given:
+sigma_allow = 170; //MPa
+tou_allow = 100; //MPa
+
+//Shear and Moment Diagrams:
+V_max = 90; //kN
+M_max = 120; //kNm
+
+//Bending Stress:
+S_reqd = (M_max*(10^3))/sigma_allow;
+
+W = [60 67 64 74 80 100];
+S = [1120 1200 1030 1060 984 987];
+
+i = find(min(W));
+S_chosen = S(i);
+flag1 = 0;
+flag2 = 0;
+
+if (S_reqd<S_chosen)
+ flag1 =1;
+end
+
+//Shear Stress:
+d = 455; //mm
+tw = 8; //mm
+tou_avg = (V_max*10^3)/(d*tw);
+
+if(tou_avg<tou_allow)
+ flag2 =1;
+end
+
+if(flag1==1 & flag2==1)
+
+
+ printf("\n\nUse a W460X60 standard shape.');
+end
+
+//--------------------------------------------------------------------------END-------------------------------------------------------------------------------------
+
+
+
+
+
+
diff --git a/1898/CH11/EX11.2/Ex11_2.sce b/1898/CH11/EX11.2/Ex11_2.sce new file mode 100755 index 000000000..1f8364608 --- /dev/null +++ b/1898/CH11/EX11.2/Ex11_2.sce @@ -0,0 +1,87 @@ +clear all; clc;
+
+disp("Scilab Code Ex 11.2 : ")
+
+//Given:
+l = 200/1000;//m
+t = 30/1000;//m
+sigma_allow = 12; //MPa
+tou_allow = 0.8; //MPa
+V_nail = 1.50; //kN
+l_bc = 2; //m
+l_cd = 2; //m
+
+//Shear and Moment Diagrams:
+V_max = 1.5; //kN
+M_max = 2; //kNm
+
+//Bending Stress:
+y1 = l/2;
+A1 = l*t;
+y2 = l+(t/2);
+A2 = t*l;
+y_dash = (y1*A1 + y2*A2)/(A1 + A2);
+
+I1 = (t*l^3)/12 + (t*l*(y_dash - y1)^2);
+I2 = (l*t^3)/12 + (t*l*(y2 - y_dash)^2);
+I =I1 + I2;
+
+c = y_dash;
+sigma = (M_max*c)/(I);
+flag1 = 0;
+sigma_allow = sigma_allow*1000; //kPa
+
+if(sigma<sigma_allow)
+ flag1 = 1;
+end
+
+//Shear Stress:
+y3 = y_dash/2;
+A3 = y_dash*t;
+Q = y3*A3;
+
+tou = (V_max*Q)/(I*t);
+tou_allow = tou_allow*1000; //kPa
+flag2 =0;
+
+if(tou<tou_allow)
+ flag2 = 1;
+end
+
+//Nail Spacing:
+y4a = (l+t-y_dash);
+y4 = y4a - (t/2);
+A4 = l*t;
+Q4 = y4*A4;
+V_bc = 1.5; //kN
+V_cd = 1; //kN
+
+q_bc = (V_bc*Q4)/I;
+q_cd = (V_cd*Q4)/I;
+
+s_bc = (V_nail)/(q_bc);
+s_cd = (V_nail)/(q_cd);
+
+chosen_bc = 150; //mm
+chosen_cd = 250; //mm
+
+if(flag1==1 & flag2==1)
+
+ printf('\n\nThe design is safe in bending and shear.');
+ printf('\nThe calculated nail spacing BC = %1.3f m',s_bc);
+ printf('\nThe calculated nail spacing CD = %1.3f m',s_cd);
+ printf('\nThe chosen nail spacing BC = %1.0f mm',chosen_bc);
+ printf('\nThe chosen nail spacing CD = %1.0f mm',chosen_cd);
+end
+
+//--------------------------------------------------------------------------END-------------------------------------------------------------------------------------
+
+
+
+
+
+
+
+
+
+
diff --git a/1898/CH11/EX11.3/Ex11_3.sce b/1898/CH11/EX11.3/Ex11_3.sce new file mode 100755 index 000000000..637d4cea8 --- /dev/null +++ b/1898/CH11/EX11.3/Ex11_3.sce @@ -0,0 +1,35 @@ +clear all; clc;
+
+disp("Scilab Code Ex 11.3 : ")
+
+//Given:
+udl = 12; //kN/m
+h_by_a = 1.5;
+sigma_allow = 9; //MPa
+tou_allow = 0.6; //MPa
+
+//Shear and Moment Diagrams:
+V_max = 20; //kN
+M_max =10.67; //kNm
+
+//Bending Stress:
+S_reqd = (M_max)/(sigma_allow*1000);
+c = h_by_a/2;
+a_cube = (S_reqd*c*12)/(1.5^3); //S_reqd = I/c
+a = a_cube^(1/3);
+
+
+A = a*h_by_a*a;
+tou_max = (1.5*V_max)/(A*1000);
+
+
+if(tou_max>tou_allow)
+ a_sqr = (3/2)*(V_max)/(h_by_a*tou_allow*1000);
+ a =sqrt(a_sqr);
+end
+
+//Display:
+
+ printf("\n\nThe smallest width for the laminated wooden beam = %1.3f m', a);
+
+//----------------------------------------------------------------------END-----------------------------------------------------------------------------
diff --git a/1898/CH11/EX11.6/Ex11_6.sce b/1898/CH11/EX11.6/Ex11_6.sce new file mode 100755 index 000000000..f9dd17adc --- /dev/null +++ b/1898/CH11/EX11.6/Ex11_6.sce @@ -0,0 +1,27 @@ +clear all; clc;
+
+disp("Scilab Code Ex 11.6 : ")
+
+//Given:
+tou_allow = 50*10^6; //MPa
+T = 7.5; //Nm
+R_ah = 150; //N
+R_av = 475; //N
+l_ac = 0.25; //m
+
+mc = R_ah*l_ac;
+m = R_av*l_ac;
+
+M_c = sqrt(m^2 + mc^2);
+
+k = sqrt(M_c^2 + T^2);
+c1 = (2*k)/(%pi*tou_allow);
+c = c1^(1/3);
+
+d = 2*c*1000;
+
+//Display:
+
+ printf("\n\nThe smallest allowable diameter of the shaft = %1.1f mm', d);
+
+//----------------------------------------------------------------------END------------------------------------------------------------------------------
|