All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Save my spa! (Posted on 2018-06-27)
True story: For safety, I had put chlorine powder in my spa water and my guests were coming soon. But, when I used my water testing kit, I realized I had over-chlorinated. I had thrown in about n times too much powder, and so I needed to dilute the water by adding fresh water, and fast. Would I better off first draining out some of the over-chlorinated water and then filling the spa back up with fresh water and mixing, or would it be faster emptying and filling at the same time? The garden hose fills the spa at the same rate that the drain faucet at the bottom empties the spa. Assuming that the mixing of fresh water and chlorinated water is instantaneous and that the drain rate does not change with water height, which way is faster and how does the answer depend on n?

 See The Solution Submitted by Steven Lord No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
 spoiler if I did the math right | Comment 2 of 4 |
The completion time of draining some first and then refilling is the easier to calculate.

I assume that "n times too much powder" means having used n times as much powder, and use n as the initial concentration relative to the desired concentration.

Let r be the flow rate of one of the level-changing items: drain or faucet, in units of pool volume to total fill or drain time.  Defined this way it, of course, has the value 1 and so need not be considered a variable.

In the drain-first/fill-later scenario you want to get the water level down to 1/n of being full, thus requiring a time of (n-1)/n. As the equivalent amount of unchlorinated water needs be added, taking the same amount of time, the total time used is 2*(n-1)/n.

For the simultaneous drain/fill scenario, you want ultimately to remove n-1 units of chlorine from the water. If the concentration remained at n, it would take 1 unit of time to get rid of it all (including all the water), but the concentration is decreasing, so the rate is not 1, but x/n, where x is the current concentration.

dx/dt = -x/n

Here, x is the dependent variable, so we have a differential equation to solve.

Wolfram Alpha gives x = k*e^(-t/n)

At t=0, x=n so k=n

We want x=1, so

1 = n * e^(-t/n)

e^(-t/n) = 1/n

-t/n = -ln(n)

t = n*ln(n)

That's how long the simultaneous drain/fill scenario takes, if I did my math right and used Wolfram Alpha correctly.

So which is better?

To see where the two methods yield the same overall time:

n * ln(n) = 2*(n-1)/n

hmmmm...

A table shows the times cross around n = 1.5 or 1.6:
` n   simult.  sequential1.0    .000    .0001.1    .105    .1821.2    .219    .3331.3    .341    .4621.4    .471    .5711.5    .608    .6671.6    .752    .7501.7    .902    .8241.8   1.058    .8891.9   1.220    .9472.0   1.386   1.0002.1   1.558   1.0482.2   1.735   1.0912.3   1.916   1.1302.4   2.101   1.1672.5   2.291   1.2002.6   2.484   1.2312.7   2.682   1.2592.8   2.883   1.2862.9   3.088   1.3103.0   3.296   1.3333.1   3.507   1.3553.2   3.722   1.3753.3   3.940   1.3943.4   4.161   1.4123.5   4.385   1.4293.6   4.611   1.4443.7   4.841   1.4593.8   5.073   1.4743.9   5.308   1.4874.0   5.545   1.5004.1   5.785   1.5124.2   6.027   1.5244.3   6.272   1.5354.4   6.519   1.5454.5   6.768   1.5564.6   7.020   1.5654.7   7.274   1.5744.8   7.529   1.5834.9   7.787   1.5925.0   8.047   1.6005.1   8.309   1.6085.2   8.573   1.6155.3   8.839   1.6235.4   9.107   1.6305.5   9.376   1.6365.6   9.647   1.6435.7   9.921   1.6495.8  10.196   1.6555.9  10.472   1.6616.0  10.751   1.667`

Finer detail gives:

1.597    .748    .748

At a concentration of 1.597 times the desired value, either technique would take a little less than 3/4 the time it would take to fill or drain the pool completely.

If I did the math right!

 Posted by Charlie on 2018-06-27 12:03:59

 Search: Search body:
Forums (0)