summaryrefslogtreecommitdiff
path: root/3819/CH2/EX2.3/Ex2_3.sce
blob: 4fa2e3643610588a44b0900ecebb125879ee1963 (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
// A Textbook of Fluid Mecahnics and Hydraulic Machines - By R K Bansal
// Chapter 2 - Pressure and its measurements
// Problem 2.3


//Given Data Set in the Problem
z=0.3
SG_oil=0.8
SG_mercury=13.6
dens_water=1000
g=9.81

//Calculations
//Pressure of water column
p_w=dens_water*g*z
mprintf("The Pressure due to the water column is %f N/cm^2 \n",p_w*10^-4)

//Pressure of oil column
p_o=dens_water*g*z*SG_oil
mprintf("The Pressure due to the oil column is %f N/cm^2\n ",p_o*10^-4)

//Pressure of water column
p_m=dens_water*g*z*SG_mercury
mprintf("The Pressure due to the mercury column is %f N/cm^2",p_m*10^-4)