Filling and Overflow Tank - EN
Filling and Overflow Tank - EN
Kostic
Filling-up and Overflow in a Tank Example http://www.ceet.niu.edu/faculty/kostic/
NOTE: This is a typical, general type problem, for which no specific prerequisites are necessary. An
intelligent man may solve it without using calculus, see the last methods (c) and (d) on page 3. This is a simple
problem solved as an example to show how several different methods may be used in general.
m in 6.8 ... constant in-flow mass rate m e( z ) ρ .A e .V e( z ) .. variable exit-flow mass rate
Conservation of mass: "small" mass (dm) and height (dz) increases
dm ρ .A T .dz m in m e( z ) .dt
for a small time period (dt), see the darker shaded area on the Figure
above:
dz m in m e( z ) m in Ae
...then, D C 1 C 2 . z where: C 1 C 1 = 0.0625 C 2 .8.16 C = 0.0255
2
dt ρ .A T ρ .A T AT
a) Solving the above differential equation for "dt" by separation of variables and integrating:
...MathCAD numerical integration ...MathCAD symbolic/analitic integration
z top = 2
z top z top
1 1
Ta dz T a = 54.479 dz 54.4789751206557729
C1 C 2. z C1 C 2. z
0 0
...the solution, i.e. the time needed to fill-up the empty tank till its overflow level.
NOTE: Different subscripts may be used for the same physical variables to indicate
the corresponding method, for example (Ta) or (Tb) or (TI ), or to differentiate results
obtained using different methods.
1
Filling-up and Overflow in a Tank ( Cont'd ) Page 2
C 2 .z
2 2 2
ln C 1 z C1 z ...the analytical indefinite
I( z ) .C 2. 2. .atan C2 .
2
2 1 integral of the above
C2 C2
C 2. C2 . C1
2 2 2
C1 expression
Also, T I I z top I( 0 ) T I = 54.479 ...the solution, i.e. the time needed to fill-up the empty tank till its
overflow level.
As we often see, the analytical integration is usually lengthy or impossible, so we, engineers, resort to
numerical solutions. That is no longer difficult, if we utilize available (and now powerful and inexpensive) PC
computational hardware and application software, see below.
b) Solving the above differential equation (see page 1) by Runge-Kutta numerical method (with rkfixed( ),
a built-in MathCAD function - have to be used if the separation of variables is not possible):
Guess: t top 40 ...and use the "Given-Find" solver below to find new Tb=ttop to satisfy the required condition
Given
z Top t top 2 ... given condition
Tb Find t top T b = 54.479 ...the solution, i.e. the time needed to fill-up the empty tank till its
overflow level.
Check the z-value for the calculated Tb value, i.e. that the condition above is z Top T b = 2
satisfied:
2
Filling-up and Overflow in a Tank ( Cont'd ) Page 3
c) Solving the above differential equation (see page 1) by dividing the function z-range in N divisions
and using the finite difference approximation (this is a "common sense" method):
z top
N 100 z top 2 ∆z i 0 .. N 1 t0 0
N
i
i . zi zi 1 ∆z
zi z top zN z top z av ∆t ti 1
∆t
N 2 i k
C 2 . z av
i
C1 k= 0
i
K if( N < 12 , N , 12 )
K = 12 Tc ∆t T c = 54.48 also, tN = 54.48
k 0 .. K ...the solution, i.e. the time needed to fill-up the empty tank till its overflow level.
tk = zk =
0 0 2
2
0.334 0.02 Tc
0.678 0.04
1.03 0.06
1.389 0.08 z 1
1.753 0.1
2.124 0.12
2.499 0.14
2.879 0.16 0
0 10 20 30 40 50 60
3.264 0.18 t
3.653 0.2
4.046 0.22
...first K-values tabulated on the right and all values plotted above.
4.444 0.24
d) Solving the above problem (see page 1) by approximating variable exit flow rate with a constant
flow rate based on average water height during the fill-up
NOTE: This is a "common sense" simplified method which may or may not
be appropriate for a given case. Be very cautious when using it.
0 z top ρ .A T .z top Td
z avg m e_av m e z avg Td T d = 54.057 = 99.2 %
2 m in m e_av TI
The Td compares pretty well with the above results (Ta, TI, Tb, Tc), since the relation between z and t is
"almost" linear (see above diagram). However, we have to be very cautious in general when using such
approximations.