blob: 4a089d38fb64852dc5d53f40b8ce32ad136a5b08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example 4.5
clc;
clear;
close;
format('v',8);
//Given data :
S1=1.2;//sp. gravity
S2=13.6;//sp. gravity
w=1000;//kg/m^3
h2=50/1000;//m
h1=200/1000;//m
pa=w*(S2*h1-S1*h2);//kg/m^2
disp(pa,"Pressure in the pipe in kg/m^2: ");
disp(pa*9.81,"Pressure in the pipe in Pa: ");
|