summaryrefslogtreecommitdiff
path: root/698/CH17/EX17.3/P3_gear_train.sce
blob: a8b82d38ed839e7ad8432402df390fefbc3772db (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
clc
//Example 17.3
//Gear train

//------------------------------------------------------------------------------

//Given data
//Number of teeth
Na=35
Nb=65
Nc=45
//Speeds
n=600 //rpm
w=(2*%pi*n)/60
//Power
P=3000 //W
//pressure angle
phi=20
//module
m=6 //m

res3=mopen(TMPDIR+'3_gear_train.txt','wt')

//Gear diameters
Da=Na*m
Db=Nb*m
Dc=Nc*m
mfprintf(res3,'(a)Gear diameters:\n\tDa=%d mm\n\tDb=%d mm\n\tDc=%d mm\n\n',Da,Db,Dc)

//Torque
Mta=P/w
Mtb=0
Mtc=Mta* (Nc/Na)
mfprintf(res3,'(b)Torque on shafts:\n\tMta=%0.2f Nm\n\tMtb=%d Nm\n\tMtc=%0.1f Nm\n\n',Mta,Mtb,Mtc)

//Forces on gear A
Ft=Mta/((Da/2)*10^-3)
Fr=Ft*tand(phi)
mfprintf(res3,'(c)Tangential force on gear A: Ft=%d N\n   Separating force Fr=%d N\n\n',Ft,Fr)
mfprintf(res3,'(d)The same tangential and separating force occurs between gears\nA and B and between gears B and C.\n\n')

max_force=max(Ft,Fr)
mfprintf(res3,'(e) The tooth load for which each gear must be designed is %d N\n\n',max_force)

//Force applied to idler shaft
Fb=sqrt(2*(Ft^2 + Fr^2))
mfprintf(res3,'(f)The force applied to idler shaft of gear B is the vector sum\nof the forces applied to gear B by A and C\n')
mfprintf(res3,'Fb=sqrt(2*(Ft^2 + Fr^2))=%d N',Fb)

mclose(res3)
editor(TMPDIR+'3_gear_train.txt')
//------------------------------------------------------------------------------
//-----------------------------End of program-----------------------------------