summaryrefslogtreecommitdiff
path: root/3821/CH7/EX7.14/Example7_14.sce
blob: 78cf3c686b690390af187f8feb88b59bb2ed33bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
///Chapter No 7 Fluid Mechanics
////Example 7.14 Page No:126
////Find Total energy per unit weight
//Input data
clc;
clear;
V=13;                //Velocity of water flowing throgh pipe in m/s
P=200*10^3;         //Pressure of water in Kpa
Z=25;                //Height above the datum in m
g=9.81;
rho=1000;


///Calculation
E=(P/(rho*g))+((V^2)/(2*g))+(Z); //Total energy per unit weight in m


///Output
printf('Total energy per unit weight= %f m \n',E);