Professional Documents
Culture Documents
MECHANICAL ENGINEERING
TATENDA 塔泰德
191762126
2
Number of items
Stroke of the piston H
270
mm
Eccentricity e1 mm 0
Rotational speed of
650
pinion n1 rpm
Tooth number of
21
pinion Z1
Tooth number of
19
pinion Z2
Tooth number of
42
pinion Z3
Module m mm 4
Distance L1 mm 72
Distance L2 mm 114
Eccentricity e2 mm 5
Radius of base circle 35
Angle for rise 50
Angle for outer dwell 5
Angle for return 50
Angle for inner dwell 255
Stroke of gas valve h
8
mm
Parameters of gear : pressure angle α= 20°, coefficient of addendum ha* = 1.0,
coefficient of bottom clearance c* = 0.25
Procedure of synthesis:
First we will determine necessary formulas.
Second we will calculate values
Third we will approach analytical method.
Synthesis of gear mechanisms
19/21=0.90476
42/21=2
= 0.90476 x 2
= 1.80952
d1 = mz1 = 4 * 21 = 84 mm
d2 = mz2 = 4 * 19 = 76 mm
d3 = mz3 = 4 * 42 = 168 mm
(19*4)/2 = 38 mm
(42*4)/2
Displacement
Program :
#include <iostream>
using namespace std;
#include <iomanip>
#include <math.h>
#include <fstream.>
#define pi 3.141592
int main()
{
fstream file;
file.open("displacement.txt", ios::out);
float x, L;
int a;
printf("Input L: ");
scanf("%f", &L);
for(a=0; a<=360; a+=5)
{
x = L * cos(a*pi/180) + L * sqrt(9-sin(a*pi/180)*sin(a*pi/180));
cout<<a<<"/t"<<x<<"/n";
file<<a<<"/t"<<x<<endl;
}
Table of output data of displacement program
0/t440 180/t220
5/t439.442 185/t220.279
10/t437.776 190/t221.118
15/t435.021 195/t222.518
20/t431.215 200/t224.482
25/t426.403 205/t227.015
30/t420.647 210/t230.122
35/t414.019 215/t233.806
40/t406.601 220/t238.071
45/t398.484 225/t242.921
50/t389.767 230/t248.354
55/t380.553 235/t254.366
60/t370.951 240/t260.951
65/t361.069 245/t268.093
70/t351.016 250/t275.771
75/t340.897 255/t283.957
80/t330.814 260/t292.611
85/t320.862 265/t301.687
90/t311.127 270/t311.127
95/t301.688 275/t320.862
100/t292.612 280/t330.814
105/t283.957 285/t340.897
110/t275.771 290/t351.016
115/t268.093 295/t361.069
120/t260.951 300/t370.951
125/t254.367 305/t380.553
130/t248.354 310/t389.767
135/t242.921 315/t398.484
140/t238.071 320/t406.601
145/t233.806 325/t414.019
150/t230.122 330/t420.647
155/t227.015 335/t426.403
160/t224.482 340/t431.215
165/t222.518 345/t435.021
170/t221.118 350/t437.776
175/t220.279 355/t439.442
360/t440
Displacement graph
Velocity Program
#include <iostream>
using namespace std;
#include <iomanip>
#include <math.h>
#include <fstream.>
#define pi 3.141592
int main()
{
fstream file;
file.open("velocity.txt", ios::out);
float v, L;
int a;
printf("Input L: ");
scanf("%f", &L);
for(a=0; a<=360; a+=5)
{
v = 0 - (L * sin(a*pi/180) + L * sin(2*a*pi/180) / sqrt(9-
sin(a*pi/180)*sin(a*pi/180)))*68;
cout<<a<<"\t"<<v<<"\n";
file<<a<<"\t"<<v<<endl;
}
}
Acceleration program
#include <iostream>
using namespace std;
#include <math.h>
#include <iomanip>
#include <fstream>
#define pi 3.141592
int main()
{
fstream file;
file.open("bombombom.txt", ios::out);
float A, L;
int a;
printf("Input L: ");
scanf("%f", &L);
for(a=0; a<=360; a+=5)
{
A=0-(L*cos(a*pi/180)+L*2*cos(2*a*pi/180)/sqrt(9-
sin(a*pi/180)*sin(a*pi/180))+L*2*sin(2*a*pi/180)*sin(2*a*pi/180)/((sqrt(9-
sin(a*pi/180)*sin(a*pi/180)))*(sqrt(9-sin(a*pi/180)*sin(a*pi/180)))*(sqrt(9-
sin(a*pi/180)*sin(a*pi/180)))))*68*68;
cout<<a<<"\t"<<A<<"\n";
file<<a<<"\t"<<A<<endl;
}
}
ACCELERATION
50
40
30
20
10
0
-10 0 100 200 300 400
-20
-30
-40
Cam mechanism:
#include <math.h>
#include <stdio.h>
#define PI 3.14159
main()
{
FILE *fp;
float e,s,j1,r,r0,x1,y1,x2,y2,x3,y3,x4,y4,j2,dx,dy,ds;
fp=fopen("tulun1.txt","w");
r0=6;
e=6;
r=35;
for(j1=0;j1<=120;j1+=5)
{s=4.5*(1-cos(PI*j1/60));
x1=(sqrt(r*r-e*e)+s)*sin(j1/180*PI)+e*cos(j1/180*PI);
y1=(sqrt(r*r-e*e)+s)*cos(j1/180*PI)-e*sin(j1/180*PI);
ds=4.5*PI/60*sin(PI*j1/60);
dx=ds*sin(PI*j1/180)+(sqrt(r*r-e*e)+s)*cos(PI*j1/180)-e*sin(PI*j1/180);
dy=ds*cos(PI*j1/180)-(sqrt(r*r-e*e)+s)*sin(j1*PI/180)-e*cos(PI*j1/180);
x3=x1+r0*dy/sqrt(dx*dx+dy*dy);
y3=y1-r0*dx/sqrt(dx*dx+dy*dy);
fprintf(fp,"%12f %12f %12f %12f %12f\n",j1,x1,y1,x3,y3);
}
for(j1=120;j1<=360;j1+=5)
{x2=sqrt(r*r-e*e)*sin(j1/180*PI)+e*cos(j1/180*PI);
y2=sqrt(r*r-e*e)*cos(j1/180*PI)-e*sin(j1/180*PI);
x4=(sqrt(r*r-e*e)-r0)*sin(j1/180*PI)+e*cos(PI*j1/180);
y4=(sqrt(r*r-e*e)-r0)*cos(j1/180*PI)-e*sin(PI*j1/180);
fprintf(fp,"%12f %12f %12f %12f %12f %12f\n ",j1,x2,y2,x4,y4);
}
}
Results of the mechanism:
30
20
10
0
-40 -30 -20 -10 0 10 20 30 40 50
-10
-20
-30
-40
Series1 Series2