Chapter1-Fundamental concepts and definitions

Ex1-pg19

In [1]:
##Part A Chapter 1 Example 1 pg no 19
#find the pressure difference
import math
rho=13550;##kg/m^3
g=9.78;##m/s^2
h=30*10**-2;##m
##Pressure Difference
P_diff=rho*g*h;##Pa
print"%s %.2f %s"%("Pressure difference = ",P_diff," pa");
Pressure difference =  39755.70  pa

Ex2-pg19

In [3]:
##Part A Chapter 1 Example 2 pg no 19
##find effort required
rho=13550.;##kg/m^3
g=9.78;##m/s^2
h=76*10**-2;##m
d=30*10**-2;##m
##Effort required
Effort_req=rho*g*h*3.14*d**2./4.;##N
print"%s %.2f %s"%("Effort required = ",Effort_req," N");
Effort required =  7115.48  N

Ex3-pg20

In [4]:
##Part A Chapter 1 Example 3 pg no 20
##find the Pactual
Patm=101.;##kPa
rho=13550.;##kg/m^3
g=9.78;##m/s^2
h=30*10**-2;##m
##Gauge pressure
Pgauge=rho*g*h/1000.;##kPa
##Actual Pressure
Pactual=Pgauge+Patm;##kPa
print"%s %.2f %s"%("Actual pressure of air = ",Pactual," kPa");
Actual pressure of air =  140.76  kPa