From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 698/CH18/EX18.1/P1_parameters_of_spur_gear.sce | 49 ++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 698/CH18/EX18.1/P1_parameters_of_spur_gear.sce (limited to '698/CH18/EX18.1') 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 -- cgit