From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 866/CH14/EX14.1/14_1.sce | 39 ++++++++++++++++++++------------------- 866/CH14/EX14.2/14_2.sce | 38 +++++++++++++++++++------------------- 2 files changed, 39 insertions(+), 38 deletions(-) (limited to '866/CH14') diff --git a/866/CH14/EX14.1/14_1.sce b/866/CH14/EX14.1/14_1.sce index 7ead5d32e..d92386d33 100755 --- a/866/CH14/EX14.1/14_1.sce +++ b/866/CH14/EX14.1/14_1.sce @@ -1,19 +1,20 @@ -clc -//initialisation of variables -d= 2 //m -t= 20 //mm -p= 1.5 //N/mm^2 -load= 2500 //KN -alpha= 60 //degrees -//CALCULATIONS -Cs= (p*d*10^3)/(2*t) -Ls= (p*d*10^3)/(4*t) -Ds= (load*10^3)/(%pi*d*t*10^3) -Ts= Ls+Ds -sigman= (Ts*t*(cosd(90-alpha))^2+Cs*t*(cosd(alpha))^2)/t -tab= Ts*sind(alpha)*cosd(alpha)-Cs*sind(alpha)*cosd(alpha) -tmax= (Ts-Cs)/2 -//RESULTS -printf ('direct stress= %.1f N/mm^2',sigman) -printf (' \n Shear stress=%.1f N/mm^2',tab) -printf (' \n maximum Shear stress=%.1f N/mm^2',tmax) +clc +clear +//initialisation of variables +d= 2 //m +t= 20 //mm +p= 1.5 //N/mm^2 +Load= 2500 //KN +alpha= 60 //degrees +//CALCULATIONS +Cs= (p*d*10^3)/(2*t) +Ls= (p*d*10^3)/(4*t) +Ds= (Load*10^3)/(%pi*d*t*10^3) +Ts= Ls+Ds +sigman= (Ts*t*(cosd(90-alpha))^2+Cs*t*(cosd(alpha))^2)/t +tab= Ts*sind(alpha)*cosd(alpha)-Cs*sind(alpha)*cosd(alpha) +tmax= (Ts-Cs)/2 +//RESULTS +printf ('direct stress= %.1f N/mm^2',sigman) +printf (' \n Shear stress=%.1f N/mm^2',tab) +printf (' \n maximum Shear stress=%.1f N/mm^2',tmax) \ No newline at end of file diff --git a/866/CH14/EX14.2/14_2.sce b/866/CH14/EX14.2/14_2.sce index 12ff51aff..d32f2d3e2 100755 --- a/866/CH14/EX14.2/14_2.sce +++ b/866/CH14/EX14.2/14_2.sce @@ -1,19 +1,19 @@ -clc -//initialisation of variables -load= 50000 //N -torque= 1200 //Nm -d= 60//mm -t= 1.5 //mm -alpha= 60 //degrees -//CALCULATIONS -BM= load*t -axialload= (load*4)/(%pi*d^2) -bendingmoment= (BM*d*64)/(%pi*d^4*2) -Ts= axialload+bendingmoment -shearstress= (torque*10^3*d*32)/(2*%pi*d^4) -sigman= -Ts*(cosd(alpha-30))^2+shearstress*cosd(alpha-30)*sind(alpha-30)+shearstress*cosd(alpha-30)*sind(alpha-30) -T= -Ts*sind(alpha)*cosd(alpha)-shearstress*(sind(alpha))^2+shearstress*(cosd(alpha)^2) -//RESULTS -printf ('direct stress= %.1f N/mm^2',sigman) -printf (' \n Shear stress=%.1f N/mm^2',T) - +clc +clear +//initialisation of variables +Load= 50000 //N +torque= 1200 //Nm +d= 60//mm +t= 1.5 //mm +alpha= 60 //degrees +//CALCULATIONS +BM= Load*t +axialLoad= (Load*4)/(%pi*d^2) +bendingmoment= (BM*d*64)/(%pi*d^4*2) +Ts= axialLoad+bendingmoment +shearstress= (torque*10^3*d*32)/(2*%pi*d^4) +sigman= -Ts*(cosd(alpha-30))^2+shearstress*cosd(alpha-30)*sind(alpha-30)+shearstress*cosd(alpha-30)*sind(alpha-30) +T= -Ts*sind(alpha)*cosd(alpha)-shearstress*(sind(alpha))^2+shearstress*(cosd(alpha)^2) +//RESULTS +printf ('direct stress= %.1f N/mm^2',sigman) +printf (' \n Shear stress=%.1f N/mm^2',T) \ No newline at end of file -- cgit