blob: 120a82fc7a7dfbf8df400ba383e5fe3914afd2b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Obtain path of solution file
path = get_absolute_file_path('solution14_1.sce')
//Obtain path of data file
datapath = path + filesep() + 'data14_1.sci'
//Clear all
clc
//Execute the data file
exec(datapath)
//Calculate the velocity of the sprocket v (m/s)
v = z1 * p * n1/(60 * (10^3))
//Calculate the chain tension at the rated power P1 (N)
P1 = (1000 * kW)/v
//Calculate the factor of safety fs
fs = Pmax/P1
//Print results
printf("\nFactor of safety for standard power rating(fs) = %f\n",fs)
|