blob: 3d93319c1421d153a623eb0ee0c2ae086210293b (
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
|
//to find thelength of path of contact and the length of arc of contact
clc
//let module be 1
m=1
t1=28
t2=45
r=t1*m/2
R=t2*m/2
ra=r+m
Ra=R+m
phi1=14.5*%pi/180
//10.8 => AB =(ra^2-r^2*cos(phi)^2)^(1/2)+(Ra^2-R^2*cos(phi)^2)^(1/2)-(r+R)*sin(phi)
//AB=A+B-C
A=m*(ra^2-r^2*cos(phi1)^2)^(1/2)
B=m*(Ra^2-R^2*cos(phi1)^2)^(1/2)
C=m*(r+R)*sin(phi1)
AB=A+B-C
p=%pi*m
ABp=AB/%pi
arc1=ABp/cos(phi1)//length of arc of contact
phi2=20*%pi/180
//10.8 => AB =(ra^2-r^2*cos(phi)^2)^(1/2)+(Ra^2-R^2*cos(phi)^2)^(1/2)-(r+R)*sin(phi)
a=m*(ra^2-r^2*cos(phi2)^2)^(1/2)
b=m*(Ra^2-R^2*cos(phi2)^2)^(1/2)
c=m*(r+R)*sin(phi2)
ab=a+b-c
abp=ab/%pi
arc2=abp/cos(phi2)//length of arc of contact
printf("\nLength of path of contact\nWhen phi = 14.5 degrees = %.3fm\nWhen phi = 20 degrees = %.2fm\nLength of arc of contact\nWhen phi = 14.5 degrees = %.2fp\nWhen phi = 20 degrees = %.3fp\n",AB,ab,arc1,arc2)
|