summaryrefslogtreecommitdiff
path: root/629/CH5/EX5.4/example5_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '629/CH5/EX5.4/example5_4.sce')
-rw-r--r--629/CH5/EX5.4/example5_4.sce12
1 files changed, 12 insertions, 0 deletions
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