blob: f50a64b89e434445a7c48f838701334ebe97e2f4 (
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
|
clc
//Example 17.5
//Previous problem with different angles
//------------------------------------------------------------------------------
//Given data
//diameter of gear
d=0.25 //m
r=d/2
//torque
Mt=200 //Nm
//number of teeth
Ng=45
//angles
phi_n=20 //degrees
alpha=30 //degrees
res6=mopen(TMPDIR+'6_prev_prob_with_different_angles.txt','wt')
//tangential force
Ft=Mt/r
mfprintf(res6,'(a)Ft=Mt/r\n\t=%d N\n\n',Ft)
//Separating force
Fr=Ft*(tand(phi_n)/cosd(alpha))
mfprintf(res6,'(b)Fr=Ft*tan(phi_n)/cos(alpha)\n\t=%d N\n\n',Fr)
//Axial thrust force
Fa=Ft*tand(alpha)
mfprintf(res6,'(c)Fa=Ft*tan(alpha)\n\t=%d N',Fa)
mclose(res6)
editor(TMPDIR+'6_prev_prob_with_different_angles.txt')
//------------------------------------------------------------------------------
//-----------------------------End of program-----------------------------------
|