blob: 263b0d244dd52af325082ad7736f525f840e8bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear
clc
//Example 5.4 MASS ACCUMULATION IN A TANK
A=0.0025; //area[m^2]
V=7; //velocity[m/s]
rho=1000; //density[kg/m^3]
mi=rho*V*A //inlet mass flow rate[kg/s]
Q=0.003; //[m^3/s]
mo=rho*Q //outlet mass flow rate[kg/s]
//Continuity equation, mcv+mo-mi=0
mcv=mi-mo //accumulation rate[kg/s]
printf("\nThe rate of water accumulating in the tank = %.1f kg/s.\n",mcv)
|