diff options
Diffstat (limited to '629/CH5/EX5.4')
-rw-r--r-- | 629/CH5/EX5.4/ex5_4.txt | 2 | ||||
-rw-r--r-- | 629/CH5/EX5.4/example5_4.sce | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/629/CH5/EX5.4/ex5_4.txt b/629/CH5/EX5.4/ex5_4.txt new file mode 100644 index 000000000..97260e151 --- /dev/null +++ b/629/CH5/EX5.4/ex5_4.txt @@ -0,0 +1,2 @@ +
+The rate of water accumulating in the tank = 14.5 kg/s.
\ No newline at end of file diff --git a/629/CH5/EX5.4/example5_4.sce b/629/CH5/EX5.4/example5_4.sce new file mode 100644 index 000000000..263b0d244 --- /dev/null +++ b/629/CH5/EX5.4/example5_4.sce @@ -0,0 +1,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)
\ No newline at end of file |