Solving Mixing Problem with DE: Initial Values & Flow Rates

  • Thread starter EvLer
  • Start date
  • Tags
    Mixing
In summary, the problem involves a tank with 100 gallons of salt water, initially containing 10 lbs of salt. A solution of 2 lbs of salt per gallon enters the tank at a rate of 3 gallons per minute, while fresh water enters at a rate of 5 gallons per minute. The well-stirred solution leaves the tank at a rate of 7 gallons per minute. The amount of salt in the tank can be described by the differential equation dA/dt = 6 - 7A/(100+t), with an initial condition of A(0) = 10. The concentration of salt in the tank will increase towards a limit of 1/4 pound per gallon.
  • #1
EvLer
458
0
I am not really sure how to get right values for variables/constants:

A tank contains 100 gallons of salt water which contains 10 lbs of salt. A salt solution of 2 lbs salt per gallon enters the tank at a rate of 3 gallons perminute while a flow of fresh water runs into the tank at rate 5 gallons per minute.
The well-stirred solution runs out of the tank at rate of 7 gall/min. Let A(t) be the amount of salt in lbs at time t in mins. The initial value problem for A(t) is ...
(to be found as a DE with IC).

V(0) = 100
r2(flow rate) = 7 gall/min

A(0) = 10 gal.
The underlined section is where I need some help, at least then I can start on the problem and see how I end up.

Thanks in advance.
 
Last edited:
Physics news on Phys.org
  • #2
EvLer, I'll take a chance on this one because I'm not sure. See what you think and maybe others can help too:

Isn't the time rate of change of the amount of salt s(t) in the tank:

[tex]s^{'}(t)=\quad\text{salt in rate}\quad-\quad\text{salt out rate}[/tex]

I tell you what, that fresh water just makes it more complicated. Isn't it the same as if they were just one pipe putting in 8 gal/min with a total of 6 pounds salt/minute?

So the rate of salt in is just 6.

Now for the rate out: Well, it's the number of gallons out times the concentration of salt in the tank at time t. The concentration is the amount of salt which is s(t) divided by the total volume. Note that 8 goes in but only 7 goes out. So isn't the volume a function of t? It's 100+t in fact. Can you put it all together? Note the initial conditions: s(0)=10. Use your best judgement; I'm not sure. :smile:
 
  • #3
Thanks for your reply, saltydog :smile:

We have 2 equations that are used in these problems:

dV/dt = rate_in - rate_out;
so: V = (rin - rout)t + C;
C is not hard to find given V(0) = 100.

Then second equation is: (A is amount of stuff in the liquid, r - rate, c - concentration)

dA/dt = rincin - routcout;
where cout = A(t)/V(t);

So, basically I need to figure out rates and cin.
I wasn't sure if I could just add rate of fresh water and salty water but i think it makes sense, like you said. But don't you think that increasing the rate of flow with salty water being diluted in this case, it's concentration is going to decrease rather than increase per unit of volume at a point in time? Although I think it's supposed to be constant, concentration that is, given rates are constant.

Or maybe I am turned around :confused:
 
  • #4
Well Evler, haven't worked mixing problems in a while but interesting nevertheless. This is what I come up with:

Using the analysis I gave above, I get for the "amount" of salt in the tank as a function of time s(t):

[tex]s^{'}=6-7\left(\frac{s}{100+t}\right);\quad s(0)=10[/tex]

little of this, little of that, we obtain:

[tex]s(t)=\frac{3}{4}(100+t)+\frac{c}{(100+t)^7};\quad c=-65(100)^7[/tex]

The first plot is the amount of salt in the tank as a function of time. Now, the concentration as a function of time is:

[tex]\frac{s(t)}{100+t}[/tex]

The second plot is the concentration of salt as a function of time.

Edit: Oh yea, if I'm right, don't just copy my work ok. Make sure you understand the concepts, why I set up the equations like I did, how to integrate it, and does the resulting equations make "intutitive" sense. :smile:
 

Attachments

  • amount of salt.JPG
    amount of salt.JPG
    4.4 KB · Views: 389
  • conc of salt.JPG
    conc of salt.JPG
    4.3 KB · Views: 348
Last edited:
  • #5
EvLer said:
Thanks for your reply, saltydog :smile:

We have 2 equations that are used in these problems:

dV/dt = rate_in - rate_out;
so: V = (rin - rout)t + C;
C is not hard to find given V(0) = 100.

Then second equation is: (A is amount of stuff in the liquid, r - rate, c - concentration)

dA/dt = rincin - routcout;
where cout = A(t)/V(t);

Yes, that's correct. As saltydog told you, salt is coming in at 6 pounds per minute and going out at 7A(t)/(100+t)

So, basically I need to figure out rates and cin
I wasn't sure if I could just add rate of fresh water and salty water but i think it makes sense, like you said. But don't you think that increasing the rate of flow with salty water being diluted in this case, it's concentration is going to decrease rather than increase per unit of volume at a point in time? Although I think it's supposed to be constant, concentration that is, given rates are constant.

Or maybe I am turned around :confused:

The differential equation for the amount of salt A(t) is

dA/dt= 6- 7A/(100+t).

No, the concentration will not be a constant- whether it is increasing or decreasing depends on the original concentration and I haven't calculated the solution to see what happens. In this problem, the initial concentration of salt is 1/10 pound of salt per gallon of water. The concentration of salt coming in is 2 pounds in 8 gallons of water (yes, you can treat this as a single pipe): 1/4 pound per gallon. The concentration of salt in the tank will increase toward a limit of 1/4 pound per gallon. If the concentration of salt in the tank initially had been greater than 1/4 pound per gallon, it would decrease toward that limit.
 
  • #6
saltydog said:
Well Evler, haven't worked mixing problems in a while but interesting nevertheless. This is what I come up with:

Using the analysis I gave above, I get for the "amount" of salt in the tank as a function of time s(t):

[tex]s^{'}=6-7\left(\frac{s}{100+t}\right);\quad s(0)=10[/tex]

little of this, little of that, we obtain:

[tex]s(t)=\frac{3}{4}(100+t)+\frac{c}{(100+t)^7};\quad c=-65(100)^7[/tex]

The first plot is the amount of salt in the tank as a function of time. Now, the concentration as a function of time is:

[tex]\frac{s(t)}{100+t}[/tex]

The second plot is the concentration of salt as a function of time.

Edit: Oh yea, if I'm right, don't just copy my work ok. Make sure you understand the concepts, why I set up the equations like I did, how to integrate it, and does the resulting equations make "intutitive" sense. :smile:

You know what EvLer, I think I did your homework for you and I very much don't want to go against forum rules. Really, you know what, I say you do a different one now:

Initially, a 200 gal tank contains 40 lbs salt. A pipe going into the tank is flowing at 5 gal/min with a conc of salt at 2 lbs/gal. Another pipe is flowing out at the same rate. Find the amount of salt s(t) in the tank at time t. Yep, full report by morning. :smile:
 
  • #7
saltydog said:
You know what EvLer, I think I did your homework for you and I very much don't want to go against forum rules
:biggrin:
although this isn't really homework, it's a practice exam.
Thanks much for help!

Really, you know what, I say you do a different one now
:grumpy: :biggrin: :biggrin:
Deal!
Here's what I have:

dV/dt = rin - rout;

V(t) = C, V(0) = 200 => V(t) = 200;

dA/dt = rincin - routA(t)/V(t);

A(t) = e(-5/200)t[400*e(5/200)t + C];

given A(0) = 40 => C = -360

A(t) = e(-5/200)t[400*e(5/200)t - 360];

Are you taking points off for abscense of plots?
 
Last edited:
  • #8
EvLer said:
:biggrin:
although this isn't really homework, it's a practice exam.
Thanks much for help!


:grumpy: :biggrin: :biggrin:
Deal!
Here's what I have:

dV/dt = rin - rout;

V(t) = C, V(0) = 200 => V(t) = 200;

dA/dt = rincin - routA(t)/V(t);

A(t) = e(-5/200)t[400*e(5/200)t + C];

given A(0) = 40 => C = -360

A(t) = e(-5/200)t[400*e(5/200)t - 360];

Are you taking points off for abscense of plots?

Very good EvLer. Actually I do reqest a plot, that is if you have Mathematica handy. You know LaTex code makes everything look nicer and easier to read. Like this:

[tex]A(t)=400-360e^{-0.025t}[/tex]
 
  • #9
Erm, I think I just got me a "B" :sad:

We have MATLAB on school machines, but I need to get there first. Perhaps if you give me some time...

Yeah, I can do simple things with LaTex, can you direct me to a short tutorial on how to use it for various kinds of expressions, like fractions, matrices, etc. If you hold your cursor w/t clicking on the thread that uses LaTex you can see the code used, but tutorial would be nice.
Thanks again!
 
Last edited:
  • #10
EvLer said:
Erm, I think I just got me a "B" :sad:

We have MATLAB on school machines, but I need to get there first. Perhaps if you give me some time...

Yeah, I can do simple things with LaTex, can you direct me to a short tutorial on how to use it for various kinds of expressions, like fractions, matrices, etc. If you hold your cursor w/t clicking on the thread that uses LaTex you can see the code used, but tutorial would be nice.
Thanks again!

EvLer, don't go out of your way for the plot. It's just a suggestion. There is a thread in the General Physics forum called "Introducting LaTex". It has lots of examples and some web references.
 

What is the purpose of solving mixing problems with differential equations?

The purpose of solving mixing problems with differential equations is to model the behavior of substances as they mix together. This can be useful in chemical and biological processes, as well as in environmental and industrial applications.

What initial values are needed to solve a mixing problem with differential equations?

The initial values needed to solve a mixing problem with differential equations include the initial concentrations of the substances being mixed, the initial volume of the mixture, and the initial flow rates of each substance.

What is the role of flow rates in solving mixing problems with differential equations?

The flow rates of the substances being mixed play a crucial role in solving mixing problems with differential equations. They determine the rate at which the substances are being added or removed from the mixture, and therefore affect the overall concentration and volume of the mixture at any given time.

What are some common methods for solving mixing problems with differential equations?

Some common methods for solving mixing problems with differential equations include separation of variables, Euler's method, and Runge-Kutta methods. Each method has its own advantages and disadvantages and may be more suitable for certain types of mixing problems.

How can the accuracy of solutions to mixing problems with differential equations be improved?

The accuracy of solutions to mixing problems with differential equations can be improved by using more precise initial values, smaller time intervals, and more advanced numerical methods. Additionally, verifying the solution with real-world experiments can help to validate its accuracy.

Similar threads

  • Introductory Physics Homework Help
Replies
16
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
  • Differential Equations
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
3K
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
2K
  • Differential Equations
Replies
23
Views
3K
  • Introductory Physics Homework Help
Replies
2
Views
877
  • Engineering and Comp Sci Homework Help
Replies
8
Views
2K
Back
Top