Docsity

Mathematical Modelling, Summaries of Mathematical Methods

Toggle sidebar
bg1
1
Mathematical Modeling I Notes – Set 3
Mixing problems
In mixing problems, we typically consider a substance that is dissolved in a fluid, and
that the fluid is entering and leaving some enclosed volume V which may or may not
be constant. Here, fluid can mean a liquid or a gas, so we could be dealing with salt
(substance) dissolved in water (fluid) in a container or tank (enclosed volume), or a
pollutant (substance) mixed in air (fluid) of a room (enclosed volume). Furthermore,
the rates of entering and leaving may be different.
We are interested in how the amount x(t), or the concentration C(t), of the
substance in the volume of fluid changes over time. By definition, concentration is
the amount of substance per unit volume:
𝐶(𝑡)=𝑋(𝑡)
𝑉(𝑡) (i)
It follows that the amount x(t) (or mass) of substance at time t equals the
concentration C(t) multiplied by the volume V (t): x(t) = C(t)V (t).
Our goal is to find an ODE for x(t) (or C(t)). To do so, we use conservation of mass
and make some simplifying modelling assumptions. The conservation of mass, in this
context, means that the rate of change of x(t) is equal to the rate of inflow of x(t)
minus the rate of outflow of x(t):
(𝑅𝑎𝑡𝑒 𝑜𝑓 𝑐ℎ𝑎𝑛𝑔𝑒 𝑜𝑓
𝑋(𝑡))=(𝑅𝑎𝑡𝑒 𝑜𝑓 𝑖𝑛𝑓𝑙𝑜𝑤 𝑜𝑓
𝑋(𝑡))−(𝑅𝑎𝑡𝑒 𝑜𝑓 𝑜𝑢𝑡𝑓𝑙𝑜𝑤 𝑜𝑓
𝑋(𝑡))
This is a similar idea to the population models: rate of input minus rate of output
gives that net rate of change of a quantity. The key modelling assumption is that
mixing is infinitely fast so that the concentration is uniform in the fluid.
This is seldom the case in real life, but making this assumption allows us to make
some progress. If we allowed concentration to vary with location, the problem
becomes much more difficult and requires partial differential equations.
Suppose we have a container full of a salt solution of a certain concentration C(t)
and x(t) is the amount (in kg) of salt dissolved in the liquid in the container at any
time t. Let’s say we pump in a solution with a different concentration Cin at a certain
rate rin, mix well and extract the mixture at a different rate rout .
pf3
pf4
pf5

Partial preview of the text

Download Mathematical Modelling and more Summaries Mathematical Methods in PDF only on Docsity!

Mathematical Modeling I Notes – Set 3

Mixing problems

In mixing problems, we typically consider a substance that is dissolved in a fluid, and

that the fluid is entering and leaving some enclosed volume V which may or may not

be constant. Here, fluid can mean a liquid or a gas, so we could be dealing with salt

(substance) dissolved in water (fluid) in a container or tank (enclosed volume), or a

pollutant (substance) mixed in air (fluid) of a room (enclosed volume). Furthermore,

the rates of entering and leaving may be different.

We are interested in how the amount x(t), or the concentration C(t), of the

substance in the volume of fluid changes over time. By definition, concentration is

the amount of substance per unit volume:

𝑋(𝑡)

𝑉(𝑡)

(i)

It follows that the amount x(t) (or mass) of substance at time t equals the

concentration C(t) multiplied by the volume V (t): x(t) = C(t)V (t).

Our goal is to find an ODE for x(t) (or C(t)). To do so, we use conservation of mass

and make some simplifying modelling assumptions. The conservation of mass, in this

context, means that the rate of change of x(t) is equal to the rate of inflow of x(t)

minus the rate of outflow of x(t):

This is a similar idea to the population models: rate of input minus rate of output

gives that net rate of change of a quantity. The key modelling assumption is that

mixing is infinitely fast so that the concentration is uniform in the fluid.

This is seldom the case in real life, but making this assumption allows us to make

some progress. If we allowed concentration to vary with location, the problem

becomes much more difficult and requires partial differential equations.

Suppose we have a container full of a salt solution of a certain concentration C(t)

and x(t) is the amount (in kg) of salt dissolved in the liquid in the container at any

time t. Let’s say we pump in a solution with a different concentration C in

at a certain

rate r in

, mix well and extract the mixture at a different rate r out

The flow rate r in

and r

out

are, respectively, the volume of liquid entering and leaving

the container per unit time. We want to know the amount x(t), or concentration C(t),

in the container at any time t.

To solve this, we consider the law of conservation of mass:

where

 rate of change of 𝑋

( 𝑡

) is

𝑑𝑋

𝑑𝑡

 rate at which 𝑋

( 𝑡

) enters the container is equal to (flow rate of liquid entering,

r

in

) × (concentration of substance in liquid entering, C

in

 rate at which 𝑋

( 𝑡

) leaves the container is equal to (flow rate of liquid leaving,

r out

) × (concentration of substance in liquid leaving, C out

This gives the basic ODE of the mixing problem:

𝑑𝑋

𝑑𝑡

𝑖𝑛

𝑖𝑛

𝑜𝑢𝑡

𝑜𝑢𝑡

(ii)

Three of the four quantities on the right hand side of the above equation, namely r in,

C

in

and r out

are given while C out

is unknown. But C out

is just the concentration in the

container, so we set C out

𝑡

and use 𝑋

( 𝑡

) = 𝐶

( 𝑡

) 𝑉 from (i) (assuming volume is fixed)

to obtain:

Rewriting (ii), using the relations C out

𝑡

and 𝑋

( 𝑡

) = 𝐶

( 𝑡

) 𝑉 or 𝐶

( 𝑡

)

𝑋(𝑡)

𝑉

all from(i)

by replacing C out

with 𝐶

( 𝑡

)

𝑋(𝑡)

𝑉

, we obtain,

𝑑𝑋

𝑑𝑡

= 𝐶

𝑖𝑛

𝑟

𝑖𝑛

− 𝑟

𝑜𝑢𝑡

𝑋(𝑡)

𝑉

or

𝑑𝑋

𝑑𝑡

= 𝐶

𝑖𝑛

𝑟

𝑖𝑛

− (

𝑟 𝑜𝑢𝑡

𝑉

) 𝑋

( 𝑡

)

If we want to solve for concentration 𝐶

( 𝑡

) , we know 𝑋

( 𝑡

) = 𝐶

( 𝑡

) 𝑉, which on

differentiating (functions of t) both sides we have

𝑑𝑋

𝑑𝑡

= 𝑉

𝑑𝐶

𝑑𝑡

. Replacing

𝑑𝑋

𝑑𝑡

with 𝑉

𝑑𝐶

𝑑𝑡

above, we have,

𝑉

𝑑𝐶

𝑑𝑡

= 𝐶

𝑖𝑛

𝑟

𝑖𝑛

− (

𝑟 𝑜𝑢𝑡

𝑉

) 𝑋

( 𝑡

)

Dividing the equation all through by V to get:

or

𝑑𝐶

𝑑𝑡

𝑟

𝑖𝑛

𝑉

𝐶

𝑖𝑛

𝑟

𝑖𝑛

𝑉

or

𝑑𝐶

𝑑𝑡

𝑟

𝑖𝑛

𝑉

𝐶

𝑖𝑛

𝑟

𝑖𝑛

𝑉

which is a first-order linear ODE whose integrating factor is (𝑒

𝑟

𝑖𝑛

𝑉

𝑡

) and the

solution in this case is

(

𝑑𝐶

𝑑𝑡

  • (

𝑟

𝑖𝑛

𝑉

) 𝐶) 𝑒

𝑟

𝑖𝑛

𝑉

𝑡

=

𝐶

𝑖𝑛

𝑟

𝑖𝑛

𝑉

𝑒

𝑟

𝑖𝑛

𝑉

𝑡

with the LHS being the derivative of

𝑑

𝑑𝑡

𝑟

𝑖𝑛

𝑉

𝑡

thus,

𝑑

𝑑𝑡

𝑟

𝑖𝑛

𝑉

𝑡

𝐶

𝑖𝑛

𝑟

𝑖𝑛

𝑉

𝑟

𝑖𝑛

𝑉

𝑡

multiplying both sides by 𝑑𝑡, we obtain,

𝑟

𝑖𝑛

𝑉

𝑡

𝐶

𝑖𝑛

𝑟

𝑖𝑛

𝑉

𝑟

𝑖𝑛

𝑉

𝑡

Integrating w.r.t ‘t’ , we have

𝑟

𝑖𝑛

𝑉

𝑡

𝐶

𝑖𝑛

𝑟

𝑖𝑛

𝑉

𝑟

𝑖𝑛

𝑉

𝑡

Simplifying,

𝑟

𝑖𝑛

𝑉

𝑡

= [

𝐶

𝑖𝑛

𝑟

𝑖𝑛

𝑉

𝑉

𝑟

𝑖𝑛

] (𝑒

𝑟

𝑖𝑛

𝑉

𝑡

𝑟

𝑖𝑛

𝑉

𝑡

= [

𝐶

𝑖𝑛

𝑟

𝑖𝑛

𝑉

𝑉

𝑟

𝑖𝑛

] (𝑒

𝑟

𝑖𝑛

𝑉

𝑡

or 𝐶𝑒

𝑟

𝑖𝑛

𝑉

𝑡

𝑖𝑛

𝑟

𝑖𝑛

𝑉

𝑡

dividing all through by 𝑒

𝑟

𝑖𝑛

𝑉

𝑡

, yields,

𝑖𝑛

−𝑟

𝑖𝑛

𝑉

𝑡

or 𝐶

( 𝑡

) = 𝐶

𝑖𝑛

  • 𝑘𝑒

−𝑟

𝑖𝑛

𝑉

𝑡

, a general solution.

where K is a constant. Putting in the initial condition and the numbers results

in the general solution 𝐶(𝑡) = 𝐶

𝑖𝑛

  • 𝑘𝑒

−𝑟

𝑖𝑛

𝑉

𝑡

, we have

𝐶(𝑡) = 𝐶

𝑖𝑛

  • 𝑘𝑒

−𝑟

𝑖𝑛

𝑉

( 0 )

𝐶

( 𝑡

) = 𝐶

𝑖𝑛

  • 𝑘𝑒

( 0 )

or 𝑘 = 𝐶(𝑡) − 𝐶

𝑖𝑛

i.e. k is obtained on substituting the initial condition given in the question

t = 0, C(t) = C(0)

i.e. 𝑘 = (𝐶( 0 ) − 𝐶

𝑖𝑛

)

Replacing k with

( 𝐶

( 0

) − 𝐶

𝑖𝑛

) in the solution above, we obtain

𝑖𝑛

𝑖𝑛

−𝑟

𝑖𝑛

𝑉

𝑡

Substituting for the values of 𝐶

𝑖𝑛

( 0

) , 𝑟

𝑖𝑛

and V as provided in the question,

we obtain,

− 2

1000

𝑡

− 0. 002 𝑡

(iv)

where C is in kg/l and ‘t’ is in seconds.

b) We want the time T such that

𝐶

( 𝑡

)

( 1 − 0. 25

) 𝐶

( 0

)

= 0. 75 𝐶( 0 ), but 𝐶( 0 ) = 0. 01

and use the solution from (a) or (iv) or 𝐶

( 𝑡

) = 0. 005 + 0. 005 𝑒

− 0. 002 𝑡

thus,

  1. 0075 = 0. 005 + 0. 005 𝑒

− 0. 002 𝑇

  1. 5 = 𝑒

− 0. 002 𝑇

Exercise (variable volume):

A water tank of volume 1000litres is initially half-full of fresh water. A pipe brings

a salt solution of concentration 0. 005 𝑘𝑔 𝑙

⁄ into the tank at a rate of 5 𝑙 𝑠

⁄ , and a second

pipe carries away the overflow at the same rate. Calculate C(t), the concentration of

salt in the tank, assuming that the liquid is well mixed.

Answer: 𝐶

( 𝑡

)

{

  1. 025 𝑡

500 + 5 𝑡

0 ≤ 𝑡 < 100

  1. 005 − 0. 0025 𝑒

[− 0. 005 (𝑡− 100 )]

, 𝑡 ≥ 100