summaryrefslogtreecommitdiff
path: root/698/CH18/EX18.1
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /698/CH18/EX18.1
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '698/CH18/EX18.1')
-rw-r--r--698/CH18/EX18.1/P1_parameters_of_spur_gear.sce49
1 files changed, 49 insertions, 0 deletions
diff --git a/698/CH18/EX18.1/P1_parameters_of_spur_gear.sce b/698/CH18/EX18.1/P1_parameters_of_spur_gear.sce
new file mode 100644
index 000000000..92d0ecc25
--- /dev/null
+++ b/698/CH18/EX18.1/P1_parameters_of_spur_gear.sce
@@ -0,0 +1,49 @@
+clc
+//Example 18.1
+//Parameters of spur gear
+
+phi=14.5
+m=10
+Dp=160
+G=3/2
+
+Dg=Dp*G
+
+Np=Dp/m
+Ng=Dg/m
+printf('Number of teeth on pinion is %d and number of teeth on gear is %d\n\n',Np,Ng)
+
+printf('Addendum is %d mm\n\n',m)
+
+printf('Whole depth is %0.3f mm\n\n',2.157*m)
+
+printf('Clearance is %0.3f mm\n\n',0.157*m)
+
+out_dia_p= Dp + (2*m)
+printf('Outside diameter of pinion is %0.3f mm\n',out_dia_p)
+out_dia_g= Dg + (2*m)
+printf('Outside diameter of gear is %0.3f mm\n\n',out_dia_g)
+
+root_dia_p=out_dia_p - (2*2.157*m)
+printf('Root diameter of pinion is %0.3f mm\n',root_dia_p)
+root_dia_g=out_dia_g - (2*2.157*m)
+printf('Root diameter of gear is %0.3f mm\n\n',root_dia_g)
+
+printf('Dedendum is %0.3f mm\n\n',1.157*m)
+
+rad_base_cir_p=(Dp/2) * cosd(phi)
+printf('Radius of base circle of pinion is %0.2f mm and diameter is %0.2f mm\n',rad_base_cir_p,2*rad_base_cir_p)
+rad_base_cir_g=(Dg/2) * cosd(phi)
+printf('Radius of base circle of gear is %0.2f mm and diameter is %0.2f mm\n\n',rad_base_cir_g,2*rad_base_cir_g)
+
+centre_dist=(Dp+Dg)/2
+interference = sqrt((rad_base_cir_g^2)+((centre_dist*sind(phi))^2))
+addendum_rad_g=out_dia_g/2
+if addendum_rad_g <= interference
+ then
+ printf('There is no interference')
+else
+ printf('Interference will exist')
+end
+
+//End of programme \ No newline at end of file