blob: f71362b43f62575b141935f964fa01fae676c616 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Obtain path of solution file
path = get_absolute_file_path('solution7_11.sce')
//Obtain path of data file
datapath = path + filesep() + 'data7_11.sci'
//Clear all
clc
//Execute the data file
exec(datapath)
//Calculate the tensile force in the cap screw P1 (N)
P1 = (2 * P * 1000 * l * (a + (b * cosd(180/n))))/(n * ((2 * (a^2)) + (b^2)))
//Calculate the core diameter of the cap screw dc (mm)
dc = ((P1 * 4)/(%pi * sigmaMax))^(1/2)
//Calculate the nominal diameter of the cap screw d (mm)
d = dc/0.8
d = ceil(d)
//Print results
printf('\nThe nominal diameter of the cap screw(d) = %f mm\n',d)
|