summaryrefslogtreecommitdiff
path: root/629/CH3/EX3.6/example3_6.sce
blob: 3f5fe4c9d36b37c2653c200a7b4f28d4ffb1f00d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
clc
//Example 3.6 PRESSURE MEASUREMENT (U-TUBE MANOMETER)
p1=0; //[Pa]
h12=0.6; //deflection[m]
g_m=133000; //specific weight of mercury[N/m^3]
p2=p1+g_m*h12 //[Pa]
//From hydrostatic equation,as z3=z2
p3=p2; //[Pa]

//Pressure at the interface is constant, p3_mercury=p3_water=p3
l=1.8; //[m]
g_w=9810; //specific weight of water[N/m^3]
p4=(p3-g_w*l)/10^3 //[kPa](factor 1kPa/10^3Pa)
printf("\nThe gage pressure at the center of the pipe = %.1f kPa gage.\n",p4)