diff options
Diffstat (limited to '866/CH14')
-rwxr-xr-x | 866/CH14/EX14.1/14_1.sce | 39 | ||||
-rwxr-xr-x | 866/CH14/EX14.2/14_2.sce | 38 |
2 files changed, 39 insertions, 38 deletions
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 |