Sub topic 11
Leaks and Delayed Filling
Prerequisites and the rate model
This chapter assumes that you can add fractions, use reciprocals, and solve simple linear equations. You should also know that a rate is the amount of work completed per unit of time.
For a tank problem, take the full tank as one unit of work.
- An inlet that fills the tank in \(a\) hours has rate \(\frac{1}{a}\) tank per hour.
- An outlet that empties the tank in \(b\) hours has rate \(-\frac{1}{b}\) tank per hour.
- A leak is an outlet, so its rate is negative.
- The net rate is the sum of all inlet and outlet rates.
The basic relation is:
\[ \text{work}=\text{rate}\times\text{time} \]
For a full tank, the work is \(1\). Therefore:
\[ \text{time}=\frac{1}{\text{net rate}} \]
A leak operating from the start
Suppose an inlet fills a tank in 6 hours and a leak empties it in 10 hours. Their rates are:
\[ \text{inlet rate}=\frac{1}{6}, \qquad \text{leak rate}=-\frac{1}{10} \]
The net rate is:
\[ \frac{1}{6}-\frac{1}{10} =\frac{5-3}{30} =\frac{1}{15} \]
Thus, the tank fills in:
\[ \frac{1}{1/15}=15\text{ hours} \]
The leak makes the filling time longer than 6 hours, as expected.
from fractions import Fraction
inlet = Fraction(1, 6)
leak = Fraction(-1, 10)
net_rate = inlet + leak
print(1 / net_rate) # 15A useful alternative is to choose a total capacity of 30 units. The inlet supplies 5 units per hour, while the leak removes 3 units per hour. The net rate is 2 units per hour, so the filling time is \(30/2=15\) hours.
Delayed leaks
A delayed leak does not affect the tank before it opens. Solve the problem in stages.
- Find the amount filled before the leak opens.
- Find the remaining amount.
- Calculate the new net rate after the leak opens.
- Divide the remaining amount by that net rate.
- Add the first-stage time.
Worked example
An inlet fills a tank in 8 hours. A leak opens after 2 hours and empties a full tank in 12 hours. How long does the tank take to fill?
During the first 2 hours, the inlet fills:
\[ 2\times\frac{1}{8}=\frac{1}{4} \]
The remaining part is:
\[ 1-\frac{1}{4}=\frac{3}{4} \]
After the leak opens, the net rate is:
\[ \frac{1}{8}-\frac{1}{12} =\frac{3-2}{24} =\frac{1}{24} \]
The remaining \(\frac{3}{4}\) takes:
\[ \frac{3/4}{1/24}=18\text{ hours} \]
The total time is:
\[ 2+18=20\text{ hours} \]
The common error is to use the net rate for all 20 hours. That incorrectly treats the leak as active before it opens.
Partly filled tanks and changing conditions
If a tank initially contains a fraction \(p\) of its capacity, the remaining work is \(1-p\). Use that remaining fraction in the time calculation.
For example, if a tank is \(\frac{1}{3}\) full and an inlet-leak combination has net rate \(\frac{1}{15}\) tank per hour, the time to fill is:
\[ \frac{1-\frac{1}{3}}{1/15} =\frac{2/3}{1/15} =10\text{ hours} \]
If a leak becomes larger or a second outlet opens, recompute the net rate from that point onward.
Sanity checks and common traps
- A leak-active filling time must exceed the time with the inlet alone.
- If inlet and leak rates are equal, the tank never fills.
- If the outlet rate exceeds the inlet rate, the tank empties instead of filling.
- Do not use full-tank time for a partly filled tank.
- When a leak opens later, add the stage times. Do not average the two rates.
- Check the units. Rates must use the same time unit.
Exercise
An inlet fills a tank in 9 hours. A leak opens after 3 hours and empties a full tank in 18 hours. How long does the tank take to fill from empty?
Show answer
In 3 hours, the inlet fills 1/3 of the tank. The remaining 2/3 fills at net rate 1/9 - 1/18 = 1/18, taking 12 hours. Total time = 3 + 12 = 15 hours.