Experiment No.
Aim: 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
Objective: by using python language we study and analyze the for Kinematics analysis of
mechanism example
[Link]
depth/7e5ce96cc9251083979efdfc393425f1229a4a68
#Program : 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 [Link] 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= [Link](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
[Link](i) # Value of i will be stored in Empty ang=[] cell
ang_r = [Link](i) # value of theta
w2 = (w1 * [Link](alpha)) / (1 - (([Link](ang_r)) ** 2) * (([Link](alpha)) ** 2)) #
formula of velocity ratio for hooks joint
w2=round(w2,4) # Round of velocity value upto precision points.
[Link](w2) # Value of velocity will be stored in empty Ang_velocity=[] cell
[Link](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
[Link]([Link](ang[i]), w1, 'r.') # plot polar diagram of input shaft
[Link]([Link](ang[i]), velocity[i], 'g.') # plot polar diagram of output shaft
[Link]("POLAR DIAGRAM") # Title of Diagram
[Link](labels=('Input speed', 'Output speed'), loc=1) # Add legend
[Link]() # 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")
Program runs Python Software:
Conclusion:
The computer programming of Hooke‟s joint Mechanism is carried out using Python
Language. The Kinematic Analysis obtained by both programming and Analytical Method