Wizard
Administrator
Wizard
  • Threads: 1520
  • Posts: 27126
Joined: Oct 14, 2009
November 4th, 2013 at 8:36:54 AM permalink
You are given:

  1. A swimming pool has a capacity of 7 million cubic inches.
  2. Clean water flows into the pool at a rate of 30 cubic inches per second.
  3. Pool water exits the pool at the same rate.
  4. A kid pees in the pool. The volume of pee is 8 cubic inches, which displaces the same volume of clean water.
  5. As fresh water pours in the pool, it is immediately diluted. In other words, the concentration of pee is the same throughout the pool.
  6. You deem the pool safe to swim in if the total volume of pee is less than or equal to one cubic inch.
  7. From the time the kid pees, how long do you have to wait to swim?


Please put answers and solutions in spoiler tags.

Have a nice day.
"For with much wisdom comes much sorrow." -- Ecclesiastes 1:18 (NIV)
CrystalMath
CrystalMath
  • Threads: 8
  • Posts: 1911
Joined: May 10, 2011
November 4th, 2013 at 9:15:09 AM permalink
I get 5.6 days.
I heart Crystal Math.
Wizard
Administrator
Wizard
  • Threads: 1520
  • Posts: 27126
Joined: Oct 14, 2009
November 4th, 2013 at 9:44:24 AM permalink
Any more? I'll wait a little longer before commenting on CM's answer.
"For with much wisdom comes much sorrow." -- Ecclesiastes 1:18 (NIV)
beachbumbabs
beachbumbabs
  • Threads: 101
  • Posts: 14268
Joined: May 21, 2013
November 4th, 2013 at 10:12:33 AM permalink
Well, still fiddlin' with it, but I got a different answer than CM, which generally means I'm wrong.

2.36 days
If the House lost every hand, they wouldn't deal the game.
CrystalMath
CrystalMath
  • Threads: 8
  • Posts: 1911
Joined: May 10, 2011
November 4th, 2013 at 10:13:40 AM permalink
Quote: beachbumbabs

Well, still fiddlin' with it, but I got a different answer than CM, which generally means I'm wrong.



:) Thanks.
I heart Crystal Math.
ChesterDog
ChesterDog
  • Threads: 9
  • Posts: 1733
Joined: Jul 26, 2010
November 4th, 2013 at 10:13:53 AM permalink
Here's my guess:

485,203 seconds, which is 5.62 days

beachbumbabs
beachbumbabs
  • Threads: 101
  • Posts: 14268
Joined: May 21, 2013
November 4th, 2013 at 10:15:22 AM permalink
Quote: Wizard

You are given:

  1. A swimming pool has a capacity of 7 million cubic inches.
  2. Clean water flows into the pool at a rate of 30 cubic inches per second.
  3. Pool water exits the pool at the same rate.
  4. A kid pees in the pool. The volume of pee is 8 cubic inches, which displaces the same volume of clean water.
  5. As fresh water pours in the pool, it is immediately diluted. In other words, the concentration of pee is the same throughout the pool.
  6. You deem the pool safe to swim in if the total volume of pee is less than or equal to one cubic inch.
  7. From the time the kid pees, how long do you have to wait to swim?


Please put answers and solutions in spoiler tags.

Have a nice day.



In other news, nothin' about a little kid pee the chlorine won't fix....

WC Fields: "Little girl, little girl, don't drink that water!!!"
Child: "But sir, whyever not?" (Kids talked like that 80 years ago)
WC Fields: "Fish {bleep} in it!!"
If the House lost every hand, they wouldn't deal the game.
Doc
Doc
  • Threads: 46
  • Posts: 7287
Joined: Feb 27, 2010
November 4th, 2013 at 10:18:42 AM permalink
I get the same answer as CrystalMath (Edit: and ChesterDog, who posted while I was typing), so I'll post my full solution behind a spoiler.

Let C = current concentration of pee (fraction) and Vpee = current total volume of pee in the pool
V=7x106 cu. in. (given)
Flow = F = 30 cu. in. per second (given)
Vpee=C • V

dVpee/dt = -F • C = V dC/dt
dC/dt = -(F/V) • C

C = A • e-(F/V)•t
For t=0, C = 8/V --> A = 8/V

For "clean enough", C = 1/V.

C = 1/V = (8/V) • e-(F/V)•t
1/8 = e-(F/V)•t
ln(1/8) = -(F/V) • t
t = -(V/F) • ln(1/8) = (-(7x106)/30) • ln(1/8) = 485,203 seconds = 134.78 hours = 5.6157 days
beerseason
beerseason
  • Threads: 4
  • Posts: 161
Joined: Aug 14, 2013
November 4th, 2013 at 10:20:28 AM permalink
Quote: Wizard

You are given:

  1. A swimming pool has a capacity of 7 million cubic inches.
  2. Clean water flows into the pool at a rate of 30 cubic inches per second.
  3. Pool water exits the pool at the same rate.
  4. A kid pees in the pool. The volume of pee is 8 cubic inches, which displaces the same volume of clean water.
  5. As fresh water pours in the pool, it is immediately diluted. In other words, the concentration of pee is the same throughout the pool.
  6. You deem the pool safe to swim in if the total volume of pee is less than or equal to one cubic inch.
  7. From the time the kid pees, how long do you have to wait to swim?


Please put answers and solutions in spoiler tags.



I figured it reduces urine by 37.028% per 24 hours. For a total of 109 hours and 17 min roughly


I'm not good at math, but that was my attempt!!!
beachbumbabs
beachbumbabs
  • Threads: 101
  • Posts: 14268
Joined: May 21, 2013
November 4th, 2013 at 10:21:14 AM permalink
Quote: Doc

I get the same answer as CM, so I'll post my solution behind a spoiler.

Let C = current concentration of pee (fraction) and Vpee = current total volume of pee in the pool
V=7x106 cu. in. (given)
Flow = F = 30 cu. in. per second (given)
Vpee=C • V

dVpee/dt = -F • C = V dC/dt
dC/dt = -(F/V) • C

C = A • e-(F/V)•t
For t=0, C = 8/V --> A = 8/V

For "clean enough", C = 1/V.

C = 1/V = (8/V) • e-(F/V)•t
1/8 = e-(F/V)•t
ln(1/8) = -(F/V) • t
t = -(V/F) • ln(1/8) = (-(7x106)/30) • ln(1/8) = 485,203 seconds = 134.78 hours = 5.6157 days



The combined talents of CM, Chester, and Doc have intimidated me into requesting partial credit for the class clown maneuver. I can't possibly be correct, but at least I can be retained for comic relief.
If the House lost every hand, they wouldn't deal the game.
beerseason
beerseason
  • Threads: 4
  • Posts: 161
Joined: Aug 14, 2013
November 4th, 2013 at 10:26:23 AM permalink
Quote: beachbumbabs

Quote: Doc

I get the same answer as CM, so I'll post my solution behind a spoiler.

Let C = current concentration of pee (fraction) and Vpee = current total volume of pee in the pool
V=7x106 cu. in. (given)
Flow = F = 30 cu. in. per second (given)
Vpee=C • V

dVpee/dt = -F • C = V dC/dt
dC/dt = -(F/V) • C

C = A • e-(F/V)•t
For t=0, C = 8/V --> A = 8/V

For "clean enough", C = 1/V.

C = 1/V = (8/V) • e-(F/V)•t
1/8 = e-(F/V)•t
ln(1/8) = -(F/V) • t
t = -(V/F) • ln(1/8) = (-(7x106)/30) • ln(1/8) = 485,203 seconds = 134.78 hours = 5.6157 days



The combined talents of CM, Chester, and Doc have intimidated me into requesting partial credit for the class clown maneuver. I can't possibly be correct, but at least I can be retained for comic relief.



I know how you feel. I did this on an adding machine and a 3" x 5" Phone Call Message piece of paper with writing already all over it. LOL
Doc
Doc
  • Threads: 46
  • Posts: 7287
Joined: Feb 27, 2010
November 4th, 2013 at 10:29:48 AM permalink
Quote: beerseason

I did this on an adding machine and a 3" x 5" Phone Call Message piece of paper ...


I would have used one of the several slide rules in my desk drawer, but I wouldn't have been able to list the unreasonable number of allegedly significant digits as I showed. Instead, I played 21st century and used my cell phone.
Wizard
Administrator
Wizard
  • Threads: 1520
  • Posts: 27126
Joined: Oct 14, 2009
November 4th, 2013 at 10:31:20 AM permalink
Quote: beachbumbabs

The combined talents of CM, Chester, and Doc have intimidated me into requesting partial credit for the class clown maneuver. I can't possibly be correct, but at least I can be retained for comic relief.



I agree that the three of them got the correct answer. You, as the class clown, may wear the dunce cap.

Let p = volume of pee in the pool, in cubic inches.
Let t = time since the kid peed in the pool, in seconds.

dp/dt = (-30/7000000)×p
dp = (-30/7000000)×p dt
dp (7000000/30p)= dt

Taking the integral of each side...

(1) -(7000000/30)×ln(p)= t + c, where c is the constant of integration.

We're given that when t=0, v=8. Plug that into the equation to find c.

-(7000000/30)×ln(8)= 0 + c
c = -(7000000/30)×ln(8)

Putting that value of c in equation (1) ...

-(7000000/30)×ln(p)= t -(7000000/30)×ln(8)
t = -(7000000/30)×ln(p) + (7000000/30)×ln(8)
t = (7000000/30)×(ln(8)-ln(p))
t = (7000000/30)×ln(8/p)

The question at hand is what is t when p = 1

t = (7000000/30)×ln(8/1)
t = 485,203 seconds = 8,087 minutes = 134.8 hours = 5.6158 days.
"For with much wisdom comes much sorrow." -- Ecclesiastes 1:18 (NIV)
boymimbo
boymimbo
  • Threads: 17
  • Posts: 5994
Joined: Nov 12, 2009
November 4th, 2013 at 10:35:46 AM permalink


p = 7000000/30 ln (1/8) = 485,203 seconds?



I was running through the calculations just before my project manager made me take him out for lunch!!!
----- You want the truth! You can't handle the truth!
beerseason
beerseason
  • Threads: 4
  • Posts: 161
Joined: Aug 14, 2013
November 4th, 2013 at 10:44:37 AM permalink
Quote: Wizard

I agree that the three of them got the correct answer. You, as the class clown, may wear the dunce cap.

Let p = volume of pee in the pool, in cubic inches.
Let t = time since the kid peed in the pool, in seconds.

dp/dt = (-30/7000000)×p
dp = (-30/7000000)×p dt
dp (7000000/30p)= dt

Taking the integral of each side...

(1) -(7000000/30)×ln(p)= t + c, where c is the constant of integration.

We're given that when t=0, v=8. Plug that into the equation to find c.

-(7000000/30)×ln(8)= 0 + c
c = -(7000000/30)×ln(8)

Putting that value of c in equation (1) ...

-(7000000/30)×ln(p)= t -(7000000/30)×ln(8)
t = -(7000000/30)×ln(p) + (7000000/30)×ln(8)
t = (7000000/30)×(ln(8)-ln(p))
t = (7000000/30)×ln(8/p)

The question at hand is what is t when p = 1

t = (7000000/30)×ln(8/1)
t = 485,203 seconds = 8,087 minutes = 134.8 hours = 5.6158 days.



I was no where close to using the right formula lol. I just took 8 cubic inches and reduced it by 37% per 24 hrs. I assume why it took longer is because it was constantly being diluted whereas I calculated it on a per day basis?
boymimbo
boymimbo
  • Threads: 17
  • Posts: 5994
Joined: Nov 12, 2009
November 4th, 2013 at 10:50:10 AM permalink
It's a common calculus problem. I originally thought you would just divide out 7000000/30 x 7/8. When I realized it was a concentration problem, I realized that calculus was involved. I didn't know it first hand but had to cheat (aka, take another solved problem and apply it to this one) to figure it out.

My kid's taking Grade 12 Functions. I wonder if she can figure it out.
----- You want the truth! You can't handle the truth!
beerseason
beerseason
  • Threads: 4
  • Posts: 161
Joined: Aug 14, 2013
November 4th, 2013 at 11:01:13 AM permalink
I took calculus 3 years ago, to graduate. Didn't understand it one bit, and don't ever care to i suppose. It was one of those thing I just didn't "get."
tringlomane
tringlomane
  • Threads: 8
  • Posts: 6284
Joined: Aug 25, 2012
November 4th, 2013 at 12:02:32 PM permalink
A common undergrad chemical engineering problem because reactors need to often be "continuously stirred", which this problem assumes. I'm excited!!! Let's see if I can do it without google's help and not screw it up! It's been 12 years since the relevant class...
:-\

Mass balance on pee!!

accumulation = input - output + generation

m = mass of pee
V_pool = 7,000,000
V_exit = 30

dm/dt = 0 - m_exit + 0

Out of convenience, I am turning the generation term into the initial concentration condition.

Since continuously "stirred" and pool volume is constant, turn mass into concentrations.

C = pee concentration

dC/dt*V_pool = 0 - C*V_exit

C_initial = 8/7,000,000

C_final = 1/7,000,000

dC/C = - V_exit/V_pool*dt

Integrate both sides:

ln(C_final/C_initial) = -V_exit/V_pool*(t-0)

solve for t:

t = V_pool/V_exit*ln(C_initial/C_final)
Note: C_initial/C_final = 8

Plug-in:
t = 7,000,000/30*ln(8) = 485203 seconds = 5.62 days.

In reality, I dunno how good of an assumption "continuously stirred" is here considering how pools filter, but I digress.
98Clubs
98Clubs
  • Threads: 52
  • Posts: 1728
Joined: Jun 3, 2010
November 4th, 2013 at 1:12:18 PM permalink

is ln(8)* refresh rate = 485,203 seconds or about 5 days 14 hours 46 minutes 43 seconds after pee

refresh rate =7E6/30
ln(8) derived from conc. initial/conc. OK

lol I thought this was a crossed claissden rxn :P
Some people need to reimagine their thinking.
beachbumbabs
beachbumbabs
  • Threads: 101
  • Posts: 14268
Joined: May 21, 2013
November 4th, 2013 at 1:38:45 PM permalink
Quote: Wizard

I agree that the three of them got the correct answer. You, as the class clown, may wear the dunce cap.

Let p = volume of pee in the pool, in cubic inches.
Let t = time since the kid peed in the pool, in seconds.

dp/dt = (-30/7000000)×p
dp = (-30/7000000)×p dt
dp (7000000/30p)= dt

Taking the integral of each side...

(1) -(7000000/30)×ln(p)= t + c, where c is the constant of integration.

We're given that when t=0, v=8. Plug that into the equation to find c.

-(7000000/30)×ln(8)= 0 + c
c = -(7000000/30)×ln(8)

Putting that value of c in equation (1) ...

-(7000000/30)×ln(p)= t -(7000000/30)×ln(8)
t = -(7000000/30)×ln(p) + (7000000/30)×ln(8)
t = (7000000/30)×(ln(8)-ln(p))
t = (7000000/30)×ln(8/p)

The question at hand is what is t when p = 1

t = (7000000/30)×ln(8/1)
t = 485,203 seconds = 8,087 minutes = 134.8 hours = 5.6158 days.



(In corner, on thinking chair, wearing dunce cap, muttering to myself softly...."we don't swim in your toilet, please don't pee in our pool..." over and over)
If the House lost every hand, they wouldn't deal the game.
Wizard
Administrator
Wizard
  • Threads: 1520
  • Posts: 27126
Joined: Oct 14, 2009
November 4th, 2013 at 1:49:27 PM permalink
Quote: beachbumbabs

(In corner, on thinking chair, wearing dunce cap, muttering to myself softly...."we don't swim in your toilet, please don't pee in our pool..." over and over)



Very funny! For the rest of you not in on the inside joke, the "thinking chair" is in my house, where one must sit after being punished to reflect on his or her antisocial (but its always a "her") behavior.
"For with much wisdom comes much sorrow." -- Ecclesiastes 1:18 (NIV)
Paigowdan
Paigowdan
  • Threads: 115
  • Posts: 5692
Joined: Apr 28, 2010
November 4th, 2013 at 1:56:31 PM permalink
All this is why I swim in the ocean.
Beware of all enterprises that require new clothes - Henry David Thoreau. Like Dealers' uniforms - Dan.
beachbumbabs
beachbumbabs
  • Threads: 101
  • Posts: 14268
Joined: May 21, 2013
November 4th, 2013 at 1:56:49 PM permalink
Quote: Wizard

Very funny! For the rest of you not in on the inside joke, the "thinking chair" is in my house, where one must sit after being punished to reflect on his or her antisocial (but its always a "her") behavior.



Proud to be associated with your daughters in any capacity. I am Woman, hear me roar...or mutter...or whisper. WhatEVER, dad.
If the House lost every hand, they wouldn't deal the game.
MangoJ
MangoJ
  • Threads: 10
  • Posts: 905
Joined: Mar 12, 2011
November 4th, 2013 at 4:11:05 PM permalink

Volume of pool V = 7M.
Rate R = 30/sec.

Say, p(t) is the volume of pee at time t in the ppol (in cubic inches).
concentration is c(t) = p(t) / V.

At time t+dt, The volume of R*dt (at the concentration c(t)) has been replaced by fresh water, i.e. the amount of pee is reduced by c(t)*R*dt.
Hence p(t+dt) = p(t) - c(t)* R*dt
or dp/dt = - c(t)*R = - p(t) * R / V.

Integration gives
p(t) = p(0) * exp(-R/V*t), with p(0) = 8.

Solving p(t)<=1: t >= ln(8) * V / R = 135 hours.
boymimbo
boymimbo
  • Threads: 17
  • Posts: 5994
Joined: Nov 12, 2009
November 4th, 2013 at 5:15:21 PM permalink
I have a feeling that the wizard's punishment for his antisocial behaviour involve purchases of expensive goods and/or services. ;)
----- You want the truth! You can't handle the truth!
AZDuffman
AZDuffman
  • Threads: 243
  • Posts: 14484
Joined: Nov 2, 2009
November 4th, 2013 at 5:28:52 PM permalink
Quote: Paigowdan

All this is why I swim in the ocean.



But where do you think all those fish take care of business?
All animals are equal, but some are more equal than others
Ibeatyouraces
Ibeatyouraces
  • Threads: 68
  • Posts: 11933
Joined: Jan 12, 2010
November 4th, 2013 at 5:33:34 PM permalink
deleted
DUHHIIIIIIIII HEARD THAT!
MathExtremist
MathExtremist
  • Threads: 88
  • Posts: 6526
Joined: Aug 31, 2010
November 5th, 2013 at 9:22:48 AM permalink
Quote: Wizard

You are given:

  1. A swimming pool has a capacity of 7 million cubic inches.
  2. Clean water flows into the pool at a rate of 30 cubic inches per second.
  3. Pool water exits the pool at the same rate.
  4. A kid pees in the pool. The volume of pee is 8 cubic inches, which displaces the same volume of clean water.
  5. As fresh water pours in the pool, it is immediately diluted. In other words, the concentration of pee is the same throughout the pool.
  6. You deem the pool safe to swim in if the total volume of pee is less than or equal to one cubic inch.
  7. From the time the kid pees, how long do you have to wait to swim?


About 5 minutes: stand up, walk past the family pool toward the adults-only area, and go for a nice swim in a pool that is only diluted with tequila and rum.

Also, the science nerd in me wants to know how a liquid that instantaneously dilutes over a volume of 7m cubic inches (see #5) would interact with the human body. Something tells me the "water" would dissolve you as soon as you got in, but I never studied p-chem.
"In my own case, when it seemed to me after a long illness that death was close at hand, I found no little solace in playing constantly at dice." -- Girolamo Cardano, 1563
Wizard
Administrator
Wizard
  • Threads: 1520
  • Posts: 27126
Joined: Oct 14, 2009
November 5th, 2013 at 9:37:12 AM permalink
Quote: MathExtremist

Also, the science nerd in me wants to know how a liquid that instantaneously dilutes over a volume of 7m cubic inches (see #5) would interact with the human body. Something tells me the "water" would dissolve you as soon as you got in, but I never studied p-chem.



Maybe there are lots of other kids playing in the pool, who aren't aware of the pee, or don't care, splashing about and evenly distributing the pee that way.
"For with much wisdom comes much sorrow." -- Ecclesiastes 1:18 (NIV)
Doc
Doc
  • Threads: 46
  • Posts: 7287
Joined: Feb 27, 2010
November 5th, 2013 at 3:01:37 PM permalink
I suspect that for a pool with people in it, and perhaps with circulating pumps operating, a fully-mixed-water assumption is better than trying to solve the problem with Fick's law (or some really complex combination of approaches). Besides, who has good reference data for the diffusion coefficient of pee in chlorinated water?
  • Jump to: