# Example 22.1 Relation between the translatory motion and rotary motion of a body in plane motion¶

In :
import math
#Initialization of variables
N=1500 # r.p.m
r=0.5 # m , radius of the disc
m=300 # N , weight of the disc
t=120 #seconds , time in which the disc comes to rest
omega=0
g=9.81 #m/s**2
#Calculations
#angular deceleration is given as,
#Let n be the no of revolutions taken by the disc before it comes to rest, then
n=theta/(2*math.pi)
#Now,
I_G=((1/2)*m*r**2)/g
#The frictional torque is given as,
M=I_G*alpha #N-m
#Results
print('(a) The no of revolutions executed by the disc before coming to rest is %d'%n)
print('(b) The frictional torque is %f N-m'%M)

(a) The no of revolutions executed by the disc before coming to rest is 1500
(b) The frictional torque is -5.003811 N-m


# Example 22.2 Relation between the translatory motion and rotary motion of a body in plane motion¶

In :
import math
# Initilization of variables
s=1 # m
mu=0.192 # coefficient of static friction
g=9.81 # m/s**2
# Calculations
# The maximum angle of the inclined plane is given as,
theta=math.degrees(math.atan(3*mu)) # degree
a=(2/3)*g*math.sin(theta*180/math.pi) # m/s**2 # by solving eq'n 4
v=math.sqrt(2*a*s) # m/s
# Let the acceleration at the centre be A which is given as,
A=g*math.sin(theta*math.pi/180) # m/s**2 # from eq'n 1
# Results
print('(a) The acceleration at the centre is %f m/s**2'%A)
print('(b) The maximum angle of the inclined plane is %f degree'%theta)

(a) The acceleration at the centre is 4.896389 m/s**2
(b) The maximum angle of the inclined plane is 29.941943 degree


# Example 22.5 Relation between the translatory motion and rotary motion of a body in plane motion¶

In :
# Initilization of variables
W_a=25 # N
W_b=25 # N
W=200 # N # weight of the pulley
i_g=0.2 # m # radius of gyration
g=9.81 # m/s^2
# Calculations
# Solving eqn's 1 & 2 for acceleration of weight A (assume a)
a=(0.15*W_a*g)/(((W*i_g**2)/(0.45))+(0.45*W_a)+((0.6*W_b)/(3))) # m/s^2
# Results
print('The acceleration of weight A is %f m/s**2'%a)

The acceleration of weight A is 1.081102 m/s**2


# Example 22.8 Relation between the translatory motion and rotary motion of a body in plane motion¶

In :
import math
# Initilization of variables
r_1=0.075 # m
r_2=0.15 # m
P=50 # N
W=100 # N
i_g=0.05 # m
theta=30 # degree
g=9.81 # m/s^2
# Calculations
# The eq'n for acceleration of the pool is given by solving eqn's 1,2 &3 as,
a=(50*g*(r_2*math.cos(theta*math.pi/180)-r_1))/(100*((i_g**2/r_2)+r_2)) # m/s**2
# Results
print('The acceleration of the pool is %f m/s**2'%a)

The acceleration of the pool is 1.615819 m/s**2


# Example 22.10 Relation between the translatory motion and rotary motion of a body in plane motion¶

In :
import math
# Initilization of variables
L=1 # m # length of rod AB
m=10 # kg # mass of the rod
g=9.81
theta=30 # degree
# Calculations
# solving eq'n 4 for omega we get,

(a) The angular velocity of the rod is 4.101219 rad/sec