blob: 1c093edd9080434c10598e58f6b3c58a658b4462 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Exa 1.7
clc;
clear;
close;
format('v',7);
//Given Data :
rho=1000;//Kg/m^3
d=0.3;//m
C=1.5;//m/s
h=4.5;//m
FlowRate=2000;//Kg/min
d2=15/100;//diameter of discharging line in meter
t=15;//min
r=3;//m
WaterDischarge=rho*%pi/4*(d/2)^2*C*t*60;//Kg
WaterReceived=FlowRate*t;//Kg
NetWaterReceived=WaterReceived-WaterDischarge;//Kg
disp(NetWaterReceived,"Mass change in tank in Kg : ");
//m=rho*A*h
h=NetWaterReceived/rho/(%pi/4*r^2);//m
disp(h,"Water level in meter : ");
|