From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1898/CH6/EX6.19/Ex6_19.sce | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 1898/CH6/EX6.19/Ex6_19.sce (limited to '1898/CH6/EX6.19') diff --git a/1898/CH6/EX6.19/Ex6_19.sce b/1898/CH6/EX6.19/Ex6_19.sce new file mode 100755 index 000000000..c5d5e7907 --- /dev/null +++ b/1898/CH6/EX6.19/Ex6_19.sce @@ -0,0 +1,48 @@ +clear all; clc; + +disp("Scilab Code Ex 6.19 : ") + +//Given: +theta = 30*(%pi/180); +M = 15; //kNm +My = M*cos(theta); +Mz = M*sin(theta); +b = 0.1; //m +t1 = 0.04;//m +t2 = 0.03;//m + + +//Section Properties: +y1 = b/2; +y2 = b + t2/2; +A1 = (b*t1); +A2 = (b*2*t2); +z_bar = (y1*A1 + y2*A2)/(A1+A2); + +Iz = (1/12)*(b*t1^3) + (1/12)*(t2*(2*b)^3); +Iy = (1/12)*(t1*b^3) + b*t1*(z_bar - y1)^2 + (1/12)*(2*b*t2^3) + 2*b*t2*(y2 - z_bar)^2; + +//Maximum Bending Stress: +l_b = b+t2 - z_bar; +sigma_B = (-Mz*1000*(-b))/Iz + (My*1000*(l_b))/Iy; +sigma_B = sigma_B/10^6; +sigma_C = (-Mz*1000*(t1/2))/Iz + (My*1000*(-z_bar))/Iy; +sigma_C = sigma_C/10^6; + +sigma = max(abs(sigma_B),abs(sigma_C)); + +//Orientation of the nuetral axis: +theta1 = 60*(%pi/180); +alpha = atan((Iz/Iy)*tan(theta1)); +alpha = alpha*(180/%pi); + +//Display: + + + printf("\n\nThe maximum normal stress in the beam = %1.2f MPa',sigma); + printf("\n The orientation of the nuetral axis = %1.1f degrees',alpha); + + //------------------------------------------------------------------------END--------------------------------------------------------------------------------------- + + + -- cgit