summaryrefslogtreecommitdiff
path: root/866/CH14/EX14.1/14_1.sce
blob: d92386d337ecffd73dad195cdf75bca5943bce52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)