blob: 61423bd0e25df18d88eaa64e07759b93f911ace9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
clc
rho_Hg=13596; //kg/m^3
g=9.806; //m/s^2
h=0.76; //m
P=rho_Hg*g*h/1000; //kPa
disp("(i) Pressure of 80 cm of Hg")
h1=0.80; //m
P1=h1/h*P;
disp(P1)
disp("kPa")
disp("(ii) 30 cm Hg vacuum")
H2=0.30; //cm Hg vacuum
h2=h-H2; //cm of Hg absolute
disp("Pressure due to 46 cm of Hg")
P2=h2/h*P;
disp(P2)
disp("kPa")
disp("(iii) Pressure due to 1.35 m H2O gauge")
rho_H2O=1000; //kg/m^3
h3=1.35; //m
P3=rho_H2O*g*h3/1000;
disp(P3)
disp("kPa")
disp("(iv) 4.2 bar")
P4=4.2*10^2;
disp(P4)
disp("kPa")
|