Escolar Documentos
Profissional Documentos
Cultura Documentos
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.
1 12
dT
18 12
3
d of
2 12 AT
z top dT
2
V e( z )
62.34
A e = 5.454 .10
2 d of . 4
m in
m e( z )
.A e .V e( z )
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: m in Ae dz m in m e( z ) .8.16 C = 0.0255 C 1 C 2 . z where: C 1 C 1 = 0.0625 C 2 ...then, D 2 dt AT .A T .A T
a) Solving the above differential equation for "dt" by separation of variables and integrating:
...MathCAD numerical integration z top Ta C1 0 1 C 2. z z top = 2 T a = 54.479 C1 0 ...MathCAD symbolic/analitic integration z top dz 1 C 2. z
dz
54.4789751206557729
...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.
Page 2
z C1
2
.C
C2 Also, T I
z 2. C2
2. C 2.
C1
.atan
2 2 C2 . C1
2 C2 .
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): z0 t0 Z tb 0 0 D( t , z ) tL 100 C1 C 2 . z0 500 1, D ...initial value and derivative of the function z(t) ...initial- and end-values of the independent variable t and number of points over that range N rows( Z ) N = 500 M cols( Z ) M=2 <1 > Z
N 1
N1
= 3.001256
zb
<1 > Z ...the solution of the above differential equation (see page 1) over the range t 0<t<tL. The Runge-Kutta method (see also MathCAD Help, or press F1 key while cursor is on "rkfixed" function) is a very effective to solve any first-order ordinary differential equation (ODE), or a system of the first order ODEs (thus higher-order DE) for a given initial value(s). However, to evaluate the independent variable, t in this case, for a given value of dependent variable z=ztop=2, we have to "look" in the table of solution values, or on the diagram, or to try different t-values until we obtain the given z=2 value, in this case. Luckily, MathCAD has the built-in "Given-Find" solver to do almost any iterative "search" for us, see next (This procedure may be also used to solve the so-called boundary-value problems using the initial value problem methods): <1 >
N 1
zb
50 tb
100
150
Define the solution as function of ttop: Guess: Given z Top t top Tb Find t top 2 t top 40
Z b t top
rkfixed z , t 0 , t top , N
1, D
z Top t top
Z b t top
...and use the "Given-Find" solver below to find new Tb=ttop to satisfy the required condition
... given condition T b = 54.479 ...the solution, i.e. the time needed to fill-up the empty tank till its overflow level. z Top T b = 2
Check the z-value for the calculated Tb value, i.e. that the condition above is satisfied:
Page 3
c) Solving the above differential equation (see page 1) by dividing the function z-range in N divisions
i 0 .. N 1 z
i
t0
0 i
zi K
i . z top N
zN
z top
z av
C1 T c = 54.48
if( N < 12 , N , 12 ) Tc t
C 2 . z av i also,
ti
t k= 0
K = 12 k tk =
0 0.334 0.678 1.03 1.389 1.753 2.124 2.499 2.879 3.264 3.653 4.046 4.444
tN = 54.48
0 .. K zk =
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 0.22 0.24
z
...the solution, i.e. the time needed to fill-up the empty tank till its overflow level.
2 Tc
10
20
30 t
40
50
60
...first K-values tabulated on the right and all values plotted above.
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 avg z top 2 m e_av m e z avg Td .A T .z top m in m e_av T d = 54.057 Td TI = 99.2 %
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.
m overflow