summaryrefslogtreecommitdiff
path: root/49/CH6/EX6.1/ex1.sce
blob: 08e15fd361dec1103d405f00c3a96b90aa9f7c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//CHAPTER 6 _ PRESSURE AND SOUND MEASUREMENT
//Caption : MANOMETERS
// Example 1 // Page 329
D1=0.1   //('Enter the diameter of well =:')
D2=0.01    //('Enter the diameter of the tube =:')
g=9.81;
pho_air=1.23   //('Enter the density of air in kg/m^3 =:')
pho_liquid=1200  //('Enter the density of liquid in manometer =:')
h=1     //('Enter the height by which liquid decreases in smaller area arm when exposed to the nominal pressure of p2 =:')
// Let the pressure difference is represented by P=p1-p2
disp("The pressure difference is given by:")
disp("P=h*(1+((D2/D1)^2)*g*(pho_liquid-pho_air))")
P=h*(1+((D2/D1)^2)*g*(pho_liquid-pho_air))*10^-3;
printf('So the pressure difference is given by %1.2f kPa \n',P)