blob: 89d1b994936fd5418f5845a55bd6662d8339ce05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//Obtain path of solution file
path = get_absolute_file_path('solution4_1.sce')
//Obtain path of data file
datapath = path + filesep() + 'data4_1.sci'
//Clear all
clc
//Execute the data file
exec(datapath)
//Yield strength in shear for the plates Ssy (N/mm2)
Ssy = (50/100) * Syt
//Permissible shear stress for rivets Tau (N/mm2)
Tau = Ssy / fs
//Diameter of rivets d (mm)
d = sqrt((P * 1000 * 4)/(n * %pi * Tau))
//Round up d
d = ceil(d)
//Permissible tensile stress for plates Sigma (N/mm2)
Sigma = (Syt/fs)
//Thickness of plates t (mm)
t = (P * 1000)/(Sigma * (L - (n * d)))
//Round up t
t = ceil(t)
//Print results
printf('\nDiameter of the rivet(d) = %f mm\n',d)
printf('\nThickness of plates(t) = %f mm\n',t)
|