Docsity

Modeling Problems in Hydrology-Modeling and Simulation-Lecture Slides, Slides of Mathematical Modeling and Simulation

Toggle sidebar
bg1
5/11/2011
1
&
MODELING
http://www.pieas.edu.pk/umarfaiz/cis308http://www.pieas.edu.pk/umarfaiz/cis308
&
SIMULATION
http://www.pieas.edu.pk/umarfaiz/cis308
http://www.pieas.edu.pk/umarfaiz/cis308
Modeling๎˜ƒProblems๎˜ƒin๎˜ƒHydrology
Applications๎˜ƒof๎˜ƒFirstโ€order๎˜ƒ
Differential๎˜ƒEquations๎˜ƒ
Mixing๎˜ƒProblems
๎šƒProblem
โ€“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๎˜ƒ
Mixing๎˜ƒProblems
๎šƒSolution
โ€“Let๎˜ƒx(t)๎˜ƒbe๎˜ƒamount๎˜ƒof๎˜ƒpollutant๎˜ƒin๎˜ƒgrams๎˜ƒin๎˜ƒthe๎˜ƒpond๎˜ƒafter๎˜ƒt๎˜ƒ
days.
โ€“We๎˜ƒuse๎˜ƒa๎˜ƒfundament๎˜ƒproperty๎˜ƒof๎˜ƒrates:
โ€ขTot al ๎˜ƒRate = Rate๎˜ƒIn โ€Rate๎˜ƒOut
โ€“
To find the rate in we use
โ€“
To
๎˜ƒ
find
๎˜ƒ
the
๎˜ƒ
rate
๎˜ƒ
in
๎˜ƒ
we
๎˜ƒ
use
24000
1
12000
1
2=== x
day
gallon
x
gallon
grams
day
grams
Mixing๎˜ƒProblems
๎šƒSolution๎˜ƒ(contd.)
โ€“There๎˜ƒwas๎˜ƒinitially๎˜ƒ500,000๎˜ƒgallons๎˜ƒof๎˜ƒwater๎˜ƒin๎˜ƒthe๎˜ƒlake๎˜ƒand๎˜ƒ
the๎˜ƒwater๎˜ƒlevel๎˜ƒis๎˜ƒincreasing๎˜ƒat๎˜ƒa๎˜ƒrate๎˜ƒof๎˜ƒ2,000๎˜ƒgallons๎˜ƒper๎˜ƒ
day,๎˜ƒthe๎˜ƒtotal๎˜ƒnumber๎˜ƒof๎˜ƒgallons๎˜ƒof๎˜ƒwater๎˜ƒin๎˜ƒthe๎˜ƒlake๎˜ƒafter๎˜ƒt๎˜ƒ
days๎˜ƒis
gallons = 500,000๎˜ƒ+๎˜ƒ2,000๎˜ƒt
24000
1
10000
000,2000,500 =
+
== x
t
x
day
gallon
x
gallon
grams
day
grams
t
x
2500
10
+
=grams per day
Mixing๎˜ƒProblems
๎šƒSolution๎˜ƒ(contd.)
โ€“Putting๎˜ƒthis๎˜ƒall๎˜ƒtogether,๎˜ƒwe๎˜ƒget
โ€“This๎˜ƒis๎˜ƒa๎˜ƒfirst๎˜ƒorder๎˜ƒlinear๎˜ƒdifferential๎˜ƒequation๎˜ƒwith
t
x
d
t
dx
2500
10
24000 +
โˆ’=
t
x
tp 2500
10
)( +
=24000)( =tg
)2500ln(5exp
2500
10
exp tdt
t
+=
+
=โˆซ
ฮผ
5
)2500( t+=
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Modeling Problems in Hydrology-Modeling and Simulation-Lecture Slides and more Slides Mathematical Modeling and Simulation in PDF only on Docsity!

MODELING

http://www.pieas.edu.pk/umarfaiz/cis308http://www.pieas.edu.pk/umarfaiz/cis

SIMULATION

http://www.pieas.edu.pk/umarfaiz/cis http://www.pieas.edu.pk/umarfaiz/cis

Modeling Problems in Hydrology Applications of Firstโ€order Differential Equations

Mixing Problems

ยƒ Problem

  • Rawal Dam initially contains 500,000 gallons of unpolluted water. It has a spillway (an outlet) that releases 10,

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

Mixing Problems

ยƒ Solution

  • 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 useTo find the rate in we use

24000 1

12000

1

2 = = x = day

gallon x gallon

grams

day

grams

Mixing Problems

ยƒ Solution (contd.)

  • There was initially 500,000 gallons of water in the lake and the water level is increasing at a rate of 2,000 gallons per day, the total number of gallons of water in the lake after t days is

gallons = 500,000 + 2,000 t

24000 1

10000

500 , 000 2 , 000

=

= = x t

x

day

gallon x gallon

grams

day

grams

t

x

500 2

10

= grams per day

Mixing Problems

ยƒ Solution (contd.)

  • Putting this all together, we get
  • This is a first order linear differential equation with

t

x

dt

dx

500 2

10 24000

= โˆ’

t

x p t 500 2

10 ( )

= g (^ t )=^24000

exp 5 ln( 500 2 ) 500 2

10 exp dt t t

= +

= โˆซ ฮผ

5 =( 500 + 2 t )

docsity.com

Mixing Problems

ยƒ Solution (contd.)

  • Multiplying by the integrating factor and using the reverse

product rule gives

  • Now integrate both sides to get

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

C 5 6 = (( 500 + 2 t ) x )= 2000 ( 500 + 2 t )+ C 5 6 (( 500 2 ) ) 2000 ( 500 2 )

5 ( 500 2 )

2000 ( 500 2 ) t

C x t

= + =

Mixing Problems

ยƒ Solution (contd.)

  • Now we use initial conditions (t=0)

19

5

-3.125x 10

( 500 )

2000 ( 500 )

=

= =

C

C x

  • For the conditions t=

218,07 grams

( 500 2 ( 10 )

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

19

=

= + =

x

x

Mixing Problems

ยƒ Solution (contd.)

  • A graph is given below

A Mixing Problem

ยƒ Example

  • A tank contains 50 gallons of a solution composed of 90% water and 10% alcohol. A second solution containing 50%

water and 50% alcohol is added to the tank at the rate of 4 gallons per minute. As the second solution is being added, the tank is being drained at the rate of 5 gallons per

http://www.pieas.edu.pk/umarfaiz/cis308http://www.pieas.edu.pk/umarfaiz/cis

minute, as shown in figure. Assuming the solution in the

tank is stirred constantly, how much alcohol is in the tank after 10 minutes?

A Mixing Problem

ยƒ General Solution

  • Let y be the number of gallons of alcohol in the tank at any time t. We know that y=5 when t=0. Thee number of gallons of solution in the tank at any time is 50 โ€t and the tank loses 5 gallons of solution per minute
  • The amount of alcohol (in gallons) the tank must lose is

http://www.pieas.edu.pk/umarfaiz/cis308http://www.pieas.edu.pk/umarfaiz/cis

The amount of alcohol (in gallons) the tank must lose is

  • The tank is gaining 2 gallons of alcohol per minute, the rate of change of alcohol in the tanks is given by

y y

y dx y

dy ) 50

  • y dx y

dy

A Mixing Problem

ยƒ General Solution

  • Let
  • We obtain

y y

P t ) 50

5 ln| 50 | 50

( ) dt t t

P tdt == โˆ’ โˆ’

โˆซ +โˆซ

5

5 5 4

C t

t y

C

t

dt y t

y

โˆซ

docsity.com

Mixing Problems

ยƒ Solution (contd.)

  • The initial condition states that y = 4 when t = 0.

Substituting these values into (I) and solving for C yields C = โˆ’ 196 (verify), so

  • The graph is shown at the bottom right At time t = 10 the

------- (II)

  • The graph is shown at the bottom right. At time t = 10 the amount of salt in the tank is

Leaking Tank (Torricelliโ€™s Law)

ยƒ Problem

  • 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?

Leaking Tank (Torricelliโ€™s Law)

ยƒ Solution

  • 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

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

time t, and g=980 cm/sec =32.17 ft/sec is the acceleration of gravity at the surface of the earth.

Leaking Tank (Torricelliโ€™s Law)

ยƒ Solution (contd.)

  • 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 theV 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

Leaking Tank (Torricelliโ€™s Law)

ยƒ Solution (contd.)

  • 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
      1. 6002 gh ( t ) B

A v B

A

t

h =โˆ’ =โˆ’ ฮ”

ฮ”

ฮ” t B B

h B

A

dt

dh =โˆ’ 26. 5600

Leaking Tank (Torricelliโ€™s Law)

ยƒ General Solution

  • Our ODE is separable. A/B is constant. Separation and integration gives

dt B

A

h

dh =โˆ’ 26. 5600

A t B

A 2 h = c 'โˆ’ 26. 5600

docsity.com

Leaking Tank (Torricelliโ€™s Law)

ยƒ 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?When the tank will be empty?

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

Leaking Tank (Torricelliโ€™s Law)

ยƒ Particular Solution

Water level at time t

2.00m

2.25m h(t)

Outflowing water

docsity.com