Docsity

Mixing Problems-Modeling and Simulation-Lecture Handouts, Lecture notes of Mathematical Modeling and Simulation

Toggle sidebar
bg1
1CIS308‐ModelingandSimulation
Handout#10
MixingProblems
Thephysicalmixingoftwoormorematerialspeciesrepresentsacommonsituationthatoccursinmany
fieldsofinterest(chemicalandbiologicalsystems,environmentalengineering,etc.).Thespecifics
associatedwitheachfieldmaybequitedifferent,butthereissomegeneralterminologythatiscommon
tomanyapplications.Intheseproblemswewillstartwithasubstancethatisdissolvedinaliquid.
Liquidwillbeenteringandleavingaholdingtank.Theliquidenteringthetankmayormaynotcontain
moreofthesubstancedissolvedinit. Liquidleavingthetankwillofcoursecontainthesubstance
dissolvedinit.IfQ(t)givestheamountofthesubstancedissolvedintheliquidinthetankatanytimet
wewanttodevelopadifferentialequationthat,whensolved,willgiveusanexpressionforQ(t).
MathematicalModel
Themainassumptionthatwe’llbeusinghereisthattheconcentrationofthesubstanceintheliquidis
uniformthroughoutthetank.Inactualthismaynotbetrue,butifweallowtheconcentrationtovary
dependingonthelocationinthetanktheproblembecomesverydifficultandwillinvolvepartial
differentialequations.
Themain“equation”thatwe’llbeusingtomodelthissituationis:
RateofchangeofQ(t)=RateatwhichQ(t)
entersthetank
___ RateatwhichQ(t)
exitsthetank
where,
RateofchangeofQ(t)=dQ/dt=Q’(t)
RateatwhichQ(t)entersthetank=(flowrateofliquidentering)xconcentrationofsubstanceinliquidentering)
RateatwhichQ(t)exitsthetank=(flowrateofliquidexiting)x(concentrationofsubstanceinliquidexiting)
Example:RawalDaminitiallycontains500,000gallonsofunpollutedwater.Ithasaspillway(anoutlet)
thatreleases10,000gallonsofwaterperday.Manystreamscontributetothedamleveleveryday.One
certainstreamflowsintothedamat12,000gallonsperdaycontainingwaterwithaconcentrationof2
gramspergallonofapollutant.Findadifferentialequationthatmodelsthisprocessanddetermine
whattheconcentrationofpollutantwillbeafter10days.
Letx(t)beamountofpollutantingramsinthepondaftertdays.
Weuseafundamentpropertyofrates:
TotalRate=RateIn‐RateOut
Tofindtherateinweuse

Therewasinitially500,000gallonsofwaterinthelakeandthewaterlevelisincreasingatarateof2,000
gallonsperday,thetotalnumberofgallonsofwaterinthelakeaftertdaysis
gallons=500,000+2,000t
Wewrite
24000
1
12000
1
2=== x
day
gallon
x
gallon
grams
day
grams
24000
1
10000
000,2000,500 =
+
== x
t
x
day
gallon
x
gallon
grams
day
grams
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Mixing Problems-Modeling and Simulation-Lecture Handouts and more Lecture notes Mathematical Modeling and Simulation in PDF only on Docsity!

Handout#

Mixing Problems

The physical mixing of two or more material species represents a common situation that occurs in many

fields of interest (chemical and biological systems, environmental engineering, etc.). The specifics

associated with each field may be quite different, but there is some general terminology that is common

to many applications. In these problems we will start with a substance that is dissolved in a liquid.

Liquid will be entering and leaving a holding tank. The liquid entering the tank may or may not contain

more of the substance dissolved in it. Liquid leaving the tank will of course contain the substance

dissolved in it. If Q(t) gives the amount of the substance dissolved in the liquid in the tank at any time t

we want to develop a differential equation that, when solved, will give us an expression for Q(t).

Mathematical Model

The main assumption that we’ll be using here is that the concentration of the substance in the liquid is

uniform throughout the tank. In actual this may not be true, but if we allow the concentration to vary

depending on the location in the tank the problem becomes very difficult and will involve partial

differential equations.

The main “equation” that we’ll be using to model this situation is :

Rate of change of Q(t) =

Rate at which Q(t)

enters the tank

___ (^) Rate at which Q(t)

exits the tank

where,

Rate of change of Q(t) = dQ/dt =Q’(t)

Rate at which Q(t) enters the tank = (flow rate of liquid entering) x concentration of substance in liquid entering)

Rate at which Q(t) exits the tank = (flow rate of liquid exiting) x (concentration of substance in liquid exiting)

Example: Rawal Dam initially contains 500,000 gallons of unpolluted water. It has a spillway (an outlet)

that releases 10,000 gallons of water per day. Many streams contribute to the dam level every day. One

certain stream flows into the dam at 12,000 gallons per day containing water with a concentration of 2

grams per gallon of a pollutant. Find a differential equation that models this process and determine

what the concentration of pollutant will be after 10 days.

Let x(t) be amount of pollutant in grams in the pond after t days.

We use a fundament property of rates:

Total Rate = Rate In ‐ Rate Out

To find the rate in we use

There was initially 500,000 gallons of water in the lake and the water level is increasing at a rate of 2,

gallons per day, the total number of gallons of water in the lake after t days is

gallons = 500,000 + 2,000 t

We write

24000 1

12000

1

2 = = x = day

gallon x gallon

grams

day

grams

= = x t

x

day

gallon x gallon

grams

day

grams

grams per day

Putting this all together, we get

This is a first order linear differential equation with

The general solution is given by

Multiplying by the integrating factor and using the reverse product rule gives

Now integrate both sides

Now we use initial conditions (t=0)

For the conditions t=

t

x

500 2

10

=

t

x

dt

dx

t

x p t 500 2

= g ( t )= 24000

exp 5 ln( 500 2 )

exp dt t

t

5

=( 500 + 2 t )

5 5

=(( 500 + 2 t ) x )'= 24000 ( 500 + 2 t )

= + t x = + t + C

5 6

5

t

C

x t

19

5

-3.125x 10

C

C

x

218,07 grams

  • 3.125x 10 2000 ( 500 2 ( 10 ) 5

19

x

x

Example: At time t = 0, a tank contains 4 lb of salt dissolved in 100 gal of water. Suppose that brine

containing 2 lb of salt per gallon of brine is allowed to enter the tank at a rate of 5 gal/min and that

the mixed solution is drained from the tank at the same rate (Figure). Find the amount of salt in the

tank after 10 minutes.

Let y(t) be the amount of salt (in pounds) after t minutes. We will begin by finding a differential equation

that is satisfied by y(t). To do this, observe that dy/dt , which is the rate at which the amount of salt in

the tank changes with time, can be expressed as

where rate in is the rate at which salt enters the tank and rate out is the rate at which salt leaves the

tank. But the rate at which salt enters the tank is

rate in = (2 lb/gal) ∙ (5 gal/min) = 10 lb/min

The brine enters and drains from the tank at the same rate, the volume of brine in the tank stays

constant at 100 gal. Thus, after t minutes have elapsed, the tank contains y(t) lb of salt per 100 gal of

brine, and hence the rate at which salt leaves the tank at that instant is

Therefore, we can write

which is a first‐order linear differential equation satisfied by y(t). Since we are given that y(0) = 4, the

function y(t) can be obtained by solving the initial‐value problem

The integrating factor for the differential equation is

If we multiply the equation through by μ, we get

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐(I)

The initial condition states that y = 4 when t = 0. Substituting these values into (I) and solving for C yields

C = − 196 (verify), so

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐(II)

At time t = 10 the amount of salt in the tank is

ratein rateout

dt

dy

/ min

/ ( 5. /min)

lb

yt

lb gal gal

yt

rateout ⎟ =

y

dx

y dy

dx

dy

y

dx

dy

exp

exp

t

= dt =

20

() 200 exp

20

200 exp 20

) 10 exp 20

(exp

20

) 10 exp 20

(exp

t yt c

c

t t y

t

t y

t

dt

d

− = +

= = +

=

y ( 0 )= 4

Example (Torricelli’s Law): A cylindrical tank has a hole at the bottom. Find the height of the water in

the tank at any time if the tank has diameter 2m, the hole has diameter 1cm, and the initial height of

the water when the hole is opened is 2.25 m. When will the tank be empty?

Under the influence of gravity, the outflowing water has velocity ( Torricelli’s Law )

where h(t) is the height of the water above the hole at time t, and g=980 cm/sec

2 =32.17 ft/sec

2 is the

acceleration of gravity at the surface of the earth. To get an equation, we relate the decrease in water

level h(t) to the outflow. The volume ΔV of the outflow during a short time Δt is

ΔV = Av Δ t

ΔV must be equal to the change of volume of water in the tank.

ΔV = ‐B Δ h

where Δ h(>0) is the decrease of the height h(t) of the water. The minus sign appears because of the

volume of the water in the tank decreases. Equating above two

‐B Δ h = Av Δ t

We express v according to Torcelli’s law and then let Δ t (the length of the time interval considered)

approach zero – this a standard way of obtaining an ODE as a model. We have

and by letting Δ tÆ 0, we obtain the ODE

General Solution:

Separation and integration gives

Dividing by 2 and squaring gives h=(c‐13.28At/B)

2 0.000332. The general solution is

h(t) = (c‐0.000332t)

2

Particular Solution:

The initial height (the initial condition) is h(0) = 225 cm. Substitution of t=0 and h=225 gives from the

general solution c=15.00. The particular solution is

h (^) p(t) = (15.00‐0.000332t)

2

When the tank will be empty?

h (^) p(t) = 0 if t=15.00/0.000332 =45181sec = 12.6 hours

v ( t )= 0. 600 2 gh ( t )

  1. 600 2 gh ( t ) B

A

v B

A

t

h =− =− Δ

h B

A

dt

dh =− 26. 5600

dt B

A

h

dh =− 26. 5600

t

B

A

2 h = c '− 26. 5600