You are on page 1of 6

DYPIEMR, Akurdi S.E.

Mechanical

Name & Roll No.: Shubham Dattatray Ekshinge SME20376

Assignment using Software No. – 03

TITLE:

To do computer programming (using software/programming languages


like C, Python, Scilab, Matlab etc.) for Kinematic Analysis of Hooke’s
joint Mechanism using Analytical Method

AIM:

To do computer programming using programming languages (Python) for


Kinematic Analysis of Hooke’s joint Mechanism.

STEPS TO OPEN PYTHON JUPYTER:

Link to Open Jupyter IDE:


https://jupyter.org/try
Then Click on “Try Classic Notebook”

Theory of Machines 1
DYPIEMR, Akurdi S.E. Mechanical

This notebook window gets appear

Click on File  New Notebook  Python 3

Theory of Machines 2
DYPIEMR, Akurdi S.E. Mechanical

This New window gets appeared

This Jupyter Python 3 will allow you to type programme.

 Copy below programme and paste for Kinematic Analysis of Hooke's Joint.
 Click on “RUN”.
 After appearing all the results, click on File  print preview  download
pdf.
 Rename downloaded pdf with your name and roll no.
 Upload this pdf as your assignment.

Theory of Machines 3
DYPIEMR, Akurdi S.E. Mechanical

#Program 1: KINEMATIC ANALYSIS OF HOOKE'S JOINT


print("SAVITRIBAI PHULE PUNE UNIVERSITY") print("\
n SUBJECT: KINEMATICS OF MACHINERY") print("\n
KINEMATIC ANALYSIS OF HOOKE'S JOINT")
import math #import Math Library
import matplotlib.pyplot as plt #import Library to plot Polar Diagram
print("\n STUDENT DETAILS
") n1=(input("ENTER
YOUR NAME::"))
r1=int(input("ENTER YOUR ROLL NUMBER::"))
print("\n INPUT PARAMETERS ")
w1=float(input("Velocity of input shaft (RPM)::"))
alpha=float(input("shaft angle IN DEGREE::"))
alpha= math.radians(alpha) # Convert angle into radian
ang=[] # Empty Cell to store angle values
velocity=[] # Empty Cell to store velocity Values
print("\n POLAR DIGRAM ")
for i in range(0,361): # plot the velocity of output shaft for angle ranging 0 to 360 with 1
degree inteval
ang.append(i) # Value of i will be stored in Empty ang=[] cell
ang_r = math.radians(i) # value of theta
w2 = (w1 * math.cos(alpha)) / (1 - ((math.cos(ang_r)) ** 2) * ((math.sin(alpha)) ** 2)) # formula of
velocity ratio for hooks joint
w2=round(w2,4) # Round of velocity value upto precision points.
velocity.append(w2) # Value of velocity will be stored in empty Ang_velocity=[] cell
plt.axes(projection='polar') # draw polar plot
for i in range(0,361): # plot the velocity of output shaft for angle ranging 0 to 360 with 1
degree inteval
plt.polar(math.radians(ang[i]), w1, 'r.') # plot polar diagram of input shaft
plt.polar(math.radians(ang[i]), velocity[i], 'g.') # plot polar diagram of output shaft
plt.title("POLAR DIAGRAM") # Title of Diagram
plt.legend(labels=('Input speed', 'Output speed'), loc=1) # Add legend
plt.show() # plot diagram
print("\n
-")
print("MAXIMUM VELOCITY: ",velocity[0]) # print Maximum velocity
print("MINIMUM VELOCITY: ",velocity[90]) # print Minimum velocity
for h in range(0,361,60): # print vslus of output speed at an interval of 60
degree
print("for angle ",ang[h],"= ","Angular velocity of output shaft", velocity[h]," RPM")

Theory of Machines 4
DYPIEMR, Akurdi S.E. Mechanical

RESULTS:

SAVITRIBAI PHULE PUNE UNIVERSITY

SUBJECT: KINEMATICS OF MACHINERY

KINEMATIC ANALYSIS OF HOOKE'S JOIN

STUDENT DETAILS
ENTER YOUR NAME::Vishvanath R Solapure
ENTER YOUR ROLL NUMBER::301

INPUT PARAMETERS
Velocity of input shaft (RPM)::120
Shaft angle IN DEGREE::30

POLAR DIGRAM

MAXIMUM VELOCITY: 138.5641


MINIMUM VELOCITY: 103.923
for angle 0 = Angular velocity of output shaft 138.5641 RPM
for angle 60 = Angular velocity of output shaft 110.8513 RPM
for angle 120 = Angular velocity of output shaft 110.8513 RPM
for angle 180 = Angular velocity of output shaft 138.5641 RPM
for angle 240 = Angular velocity of output shaft 110.8513 RPM
for angle 300 = Angular velocity of output shaft 110.8513 RPM
for angle 360 = Angular velocity of output shaft 138.5641 RPM

Theory of Machines 5
DYPIEMR, Akurdi S.E. Mechanical

CONCLUSION:

 Python program is written for Kinematic Analysis of Hooke’s joint Mechanism


using Jupyter Python 3.
 Maximum and Minimum velocity of output shaft along with Polar diagram is
obtained for the given input.

Theory of Machines 6

You might also like