import math
#initialisation of variables
p=1800 #lbf/in^2 pressure
Vd=1.5 #in^3/rev displacement
#CALCULATIONS
T=0.013*p*Vd
#RESULTS
print('The breakway torque = %.2f lbf-ft' %T)
import math
#initialisation of variables
T=80 #lbf-ft torque
Vd=3.5 #in^3/rev displacement
#CALCULATIONS
P=(T/(0.013*Vd))*(1/0.75)
#RESULTS
print('The min pressure = %.2f lbf/in^2' %P)
import math
#initialisation of variables
N=1200 #rev/min theotrical power
Vd=0.75 #in^3/rev displacement
Vd2=0.57
#CALCULATIONS
# part a
Q=(Vd*N)/231
# part b
Qa=Q-0.50
N2=(231*Qa)/Vd2
ev=(Qa/Q)*100
#RESULTS
print('The flow from the pump = %.2f lbf/in^2' %Qa)
print('The actual speed of the motor = %.2f rev/min' %N2)
print('The Volumetric efficiency of the system = %.2f percent' %ev)
#initialisation of variables
Q=3.9 #gal/min flow rate
Sg=0.87 # density
Ac=4.9 #in^2 area
#CALCULATIONS
Qa=0.872*Q
Vrod=Qa/(0.26*Ac)
#RESULTS
print('The Velocity = %.2f in/sec' %Vrod)
#initialisation of variables
Q=10.0 #gal/min flow rate
P=1500 #lbf/in^2 pressure
#CALCULATIONS
Fhp=((P*Q)/1714)*0.25
A=Fhp/(0.001*75)
#RESULTS
print('The area is = %.2f ft^2' %A)
#initialisation of variables
A=15.0 #ft^2 area
HP=0.25*5 # power
#CALCULATIONS
T=(HP/(0.001*A))+75
#RESULTS
print('The temparature is = %.2f F' %T)
#initialisation of variables
A=100 #ft^2 area
T=40 #F temperature
#CALCULATIONS
q=2.545*A*T
#RESULTS
print('The heat that should be dissipated is = %.2f Btu/hr' %q)