WOLFRAM|DEMONSTRATIONS PROJECT

Mixing in Two Connected Tanks

​
initial brine percentage
tank 1
55
tank 2
26
inflow of brine per gallon
tank 1
1
tank 2
3
time t
0
Pipes carrying brine at different rates and concentrations connect two tanks.
The diagram (see Figure 3.2.9 in [1]) shows the initial concentrations of salt, the volumes of brine, the flow rates and the concentrations of brine flowing in, and the flow rates between the tanks and going out.
Let
u
1
(t)
and
u
2
(t)
​
be the amount of salt (in ounces) in tanks 1 and 2. The equations for the time rates of change of
u
1
and
u
2
are
d
u
1
dt
=a
u
1
+b
u
2
+c
,
d
u
2
dt
=d
u
1
+e
u
2
+f
.
The constant coefficients
a
,
b
,
c
,
d
,
e
,
f
are related to the various rates of flow as follows:
coefficient
from
to
rate(gal/min)
a
tank1
tank2
-3
b
tank2
tank1
1.5
c
outside
tank1
1.5
d
tank2
tank1
3
e
tank2
tank1andoutside
-1.5and-2.5
f
outside
tank2
1
This Demonstration shows the resulting salt solution in each tank by a change in color and in the graph. The system tends to steady state over time. For example, set the input brine to zero for both tanks and watch as the solution in both goes to zero. The steady state can be obtained deductively for some solutions.