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