##CHAPTER 9 ILLUSRTATION 2 PAGE NO 247
##TITLE:CAMS AND FOLLOWERS
import math
pi=3.141
s=4.## follower movement in cm
theta=60.## cam rotation in degrees
THETA=60.*pi/180## cam rotation in rad
thetaD=45.## after outstroke in degrees
thetaR=90.##....angle with which it reaches its original position in degrees
THETAR=90.*pi/180## angle with which it reaches its original position in rad
THETAd=360.-theta-thetaD-thetaR## angle after return stroke in degrees
N=300.## speed in rpm
w=2.*pi*N/60.## speed in rad/s
Vo=pi*w*s/2./THETA## Maximum velocity of follower during outstroke in cm/s
Vr=pi*w*s/2./THETAR## Maximum velocity of follower during return stroke in cm/s
Fo=pi**2.*w**2.*s/2./THETA**2./100.##Maximum acceleration of follower during outstroke in m/s**2
Fr=pi**2.*w**2.*s/2./THETAR**2/100.##Maximum acceleration of follower during return stroke in m/s**2
print'%s %.1f %s %.1f %s '%('Maximum acceleration of follower during outstroke =',Fo,' m/s**2''Maximum acceleration of follower during return stroke= ',Fr,' m/s**2')
##CHAPTER 9 ILLUSRTATION 3 PAGE NO 249
##TITLE:CAMS AND FOLLOWERS
import math
pi=3.141
s=5.## follower movement in cm
theta=120.## cam rotation in degrees
THETA=theta*pi/180.## cam rotation in rad
thetaD=30.## after outstroke in degrees
thetaR=60.##....angle with which it reaches its original position in degrees
THETAR=60.*pi/180.## angle with which it reaches its original position in rad
THETAd=360.-theta-thetaD-thetaR## angle after return stroke in degrees
N=100.## speed in rpm
w=2.*pi*N/60.## speed in rad/s
Vo=pi*w*s/2./THETA## Maximum velocity of follower during outstroke in cm/s
Vr=pi*w*s/2./THETAR## Maximum velocity of follower during return stroke in cm/s
Fo=pi**2.*w**2.*s/2./THETA**2./100.##Maximum acceleration of follower during outstroke in m/s**2
Fr=pi**2*w**2.*s/2./THETAR**2/100.##Maximum acceleration of follower during return stroke in m/s**2
print'%s %.1f %s %.1f %s '%('Maximum acceleration of follower during outstroke =',Fo,' m/s**2''Maximum acceleration of follower during return stroke= ',Fr,' m/s**2')
##CHAPTER 9 ILLUSRTATION 5 PAGE NO 252
##TITLE:CAMS AND FOLLOWERS
import math
pi=3.141
N=1000.## speed of cam in rpm
w=2.*pi*N/60.## angular speed in rad/s
s=2.5## stroke of the follower in cm
THETA=120.*pi/180.## ANGULAR DISPLACEMENT OF CAM DURING OUTSTROKE IN RAD
THETAR=90.*pi/180.##ANGULAR DISPLACEMENT OF CAM DURING DWELL IN RAD
Vo=2.*w*s/THETA## Maximum velocity of follower during outstroke in cm/s
Vr=2.*w*s/THETAR##Maximum velocity of follower during return stroke in cm/s
Fo=4.*w**2.*s/THETA**2.##Maximum acceleration of follower during outstroke in m/s**2
Fr=4.*w**2.*s/THETAR**2.##Maximum acceleration of follower during return stroke in m/s**2
print'%s %.1f %s %.1f %s '%('Maximum acceleration of follower during outstroke =',Fo,' m/s**2''Maximum acceleration of follower during return stroke= ',Fr,' m/s**2')