mathematical modelling of a waste water filtration process ... · as a reminder, three porosity...

25
Mathematical modelling of a waste water filtration process based on membrane filters Matt Hennessy, Bolor Jargalsaikhan, Diego Passarella, Juan Jos´ e Silva Torres, Clara Villar Marco with Iacopo Borsi IV UCM Modelling Week Madrid – June 14-22, 2010 Group 1 Modelling of Filtration Membranes

Upload: others

Post on 05-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Mathematical modelling of a waste water filtrationprocess based on membrane filters

Matt Hennessy, Bolor Jargalsaikhan, Diego Passarella, Juan JoseSilva Torres, Clara Villar Marco

withIacopo Borsi

IV UCM Modelling WeekMadrid – June 14-22, 2010

Group 1 Modelling of Filtration Membranes

Page 2: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Outline

1 Introduction to the problem

2 Averaging process

3 Scaling of the 1D system

4 Numerical Simulation

5 Conclusions

Group 1 Modelling of Filtration Membranes

Page 3: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

As a reminder, three porosity approach

Subscripts notation:( · )c is referred to the capillary region.( · )m is referred to the membrane region.( · ) is referred to the shell region.

Main tasks of our project:

Modelling and simulation of filtration process

Optimization of the parameters of the filters

Group 1 Modelling of Filtration Membranes

Page 4: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

The complete system

∇ · qc = −αc(cm)kmµl

(Pc − Pm)

∇ · qm = αc(cm)kmµl

(Pc − Pm)− αkml

(Pm − P )

∇ · q = αkmµl

(Pm − P )

εc∂c

∂t+∇ · (cqc) = εc∇ · (D∇c)− γ

[αc(cm)

kmµl

(Pc − Pm)]

(εcc)

∂cm∂t

= γ

[αc(cm)

kmµl

(Pc − Pm)]

(εcc)

αc(cm) = Av1

1 + cm/cref.

Group 1 Modelling of Filtration Membranes

Page 5: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Boundary conditions

On the inlet boundary:

qc · n = −Jin.qm · n = 0.q · n = 0.c = cin.

On the outlet boundary:

qc · n = 0.qm · n = 0.q · n = Jout.No flux condition for c.

Elsewhere: no flux condition for both the hydrodynamic and thetransport problem.

Group 1 Modelling of Filtration Membranes

Page 6: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Averaging

How could we reduce our 3D problem?

We define the mean value:

〈F 〉 (z, t) ≡ 1πR2

R∫0

2π∫0

F (x, y, z, t)r drdθ

We use, ∫V

∇ · F dV =∮s

F · n dS

We suppose,

〈αc(cm) · (Pc − Pm)〉 ≈ 〈αc(cm)〉 · 〈(Pc − Pm)〉

Group 1 Modelling of Filtration Membranes

Page 7: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Getting the 1D problem

−kc∂2Pc∂z2

= −αc(cm)kml

(Pc − Pm)

−km∂2Pm∂z2

= αc(cm)kml

(Pc − Pm)− αkml

(Pm − P )

−kz∂2P

∂z2= α

kml

(Pm − P )− µ

πR2

QinAout

χ(z)(2Rout)

εc∂c

∂t+

∂z(cqc) = εcD

∂c2

∂z2− γ

[αc(cm)

kmµl

(Pc − Pm)]

(εcc)

∂cm∂t

= γ

[αc(cm)

kmµl

(Pc − Pm)]

(εsc)

αc(cm) = Av1

1 + cm/cref,

Group 1 Modelling of Filtration Membranes

Page 8: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Getting the 1D problem (cont.)

+ B.C. and I.C.On the inlet boundary (z = 0):

qc = −Jinqm = 0 = q

c = cin.

On the outlet boundary (z = L):

No flux condition for all the eq.s

Group 1 Modelling of Filtration Membranes

Page 9: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

The dimensionless form:

1Tc

∂c

∂t+(kcP

εcµL2

)∂(cqc)∂z

=

=(D

L2

)∂2c

∂z2−(γAv

kmP∗

µl

)(Pc − Pm)

[1

1 + cm/cref

]c

Define:

tadv =εcµL

2

kcP ∗ , tdiff =L2

D, tfilt =

µl

AvkmP ∗ , tattach =1γtfilt.

Remark:

Tc = Tfilt ∼ O(103) s; tdiff ∼ O(105) s =⇒ Tctdiff

� 1

Therefore, the diffusion is negligible.

Group 1 Modelling of Filtration Membranes

Page 10: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Our request:

tadv � tfilt =⇒ εcµL2

kcP ∗ �µl

AvkmP ∗ ,

Φ := εcL2 kmkc

Avl� 1.

Substituting the definition of kc, Av and εc, we have the followingcondition:

Φ =16kmL2

lr3i� 1.

Notice that:

Φ depends only on the filter and the membrane parameters (nodependence upon the process).

Φ depends on ri but not on ro; that’s a good point, since thepollutant flows only through the capillary region.

Group 1 Modelling of Filtration Membranes

Page 11: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Different Approaches:

1 Simplified model using Matlab

2 Comsol Multiphysics software built-in models

Group 1 Modelling of Filtration Membranes

Page 12: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

A simplified approach

Additional scaling leads to the following non-dimensional equations forthe pressures

∂2pc∂z2

= θcαc(cm)(pc − pm),

∂2pm∂z2

= θm [β(pm − ps)− αc(cm)(pc − pm)] ,

∂2ps∂z2

= θs(ps − pm) + ζχ(z),

and for the concentrations

∂c

∂t+τfilt

τadv

∂z(cqc) =

τfilt

τdiff

∂2c

∂z2− γαc(cm)(pc − pm)c,

∂cm∂t

= γαc(cm)(pc − pm)c.

Group 1 Modelling of Filtration Membranes

Page 13: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Leading order equations

Pressure equations become much simpler

∂2pc∂z2

= θcαc(cm)(pc − pm),

0 = β(pm − ps)− αc(cm)(pc − pm),

d2psdz2

= 0.

Concentration equation now hyperbolic

∂c

∂t+τfilt

τadv

∂z(cqc) = −γαc(cm)(pc − pm)c,

∂cm∂t

= γαc(cm)(pc − pm)c,

where the capillary flux is given by

qc = −∂pc∂z− ph

Group 1 Modelling of Filtration Membranes

Page 14: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

First implementation

Even the simplified system cannot be solved completely by hand

Implement a simple numerical scheme in Matlab

Idea is to decompose the problem into two smaller problems; one forthe pressure and one for the concentration

Outline of algorithm:

1 Assume concentration at time-step i is known (initial condition, forexample)

2 Solve an elliptic equation for the capillary pressure at time-step i

3 Use new pressures to advance concentrations in time

4 Repeat

Group 1 Modelling of Filtration Membranes

Page 15: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Further numerical details

Spatial discretizations using finite differencing

First order upwinding used for concentration equation

Elliptic equation for capillary pressure linear, solved using \Time-stepping handled using ode15s

Group 1 Modelling of Filtration Membranes

Page 16: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Results: attached matter

z

t

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

0.005

0.01

0.015

0.02

0.025

0.03

0.035

0.04

0.045

0.05

0

0.002

0.004

0.006

0.008

0.01

0.012

Group 1 Modelling of Filtration Membranes

Page 17: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Results: trans-membrane pressure

0 0.05 0.1 0.15 0.2 0.250

5

10

15

20

25

30

35

40

t [min]

Tra

ns-m

embr

ane

pres

sure

[kPa]

ExperimentalNumerical

Group 1 Modelling of Filtration Membranes

Page 18: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Comsol Approach (I)

Earth Science Module was used

Application Modes:

Darcy’s law for pressures (3 pde’s)Solute Transport for transport of pollutant (2 pde’s)

Transient analysis for the whole system (t ∈ [0, 1])Process made of several cycles

Each cycle has two stages, filtration (F) and backwash (BW)

Matlab scripting to reproduce filtration-backwash cycles

Physical parameters calibrated for one F-BW cycle

Group 1 Modelling of Filtration Membranes

Page 19: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Comsol Approach (II)

Darcy’s law application mode for pc, pm and p:

δSS∂p

∂t+∇ ·

[−δκ

κ

η∇ (p+ ρfgD)

]= δQQS

S : Storage coefficient (S = 10−4 ⇒ pseudo-stationary problem)

p : Pressure in the porous media

κ : Permeability

η : Dynamic viscosity

ρf : Fluid density

D : Vertical elevation

QS : Flow source/sink

δS,κ,Q : Scaling coefficients (δS = 1/τfilt or 1/τback forfiltration/backwash)

Group 1 Modelling of Filtration Membranes

Page 20: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Comsol Approach (III)

Solute Transport application mode for c and cm:

δts1θs∂c

∂t+∇ · (−θsDL∇c) = −u · ∇c+ Sc

δts1 : Time scaling coefficient ( = 1/τfilt or 1/τback forfiltration/backwash)

θs : Porosity

c : Solute concentration

DL : Diffusion coefficient (10−5 for numerical stability)

u : Darcy’s velocity (u = 0 for cm)

Sc : Solute source/sink

o.d.e. for cm is solved as a diffusion equation with very low diffusivity

Group 1 Modelling of Filtration Membranes

Page 21: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Comsol Approach (IV)

Matlab scripting for process simulation:

One main file defines all parameters, cycles and function calling

Two functions are called to solve F and BW stages

Each function solves the 5 pde’s according to I.C. and B.C. of eachstage of the cycles

cf=i(x,t=Tf) = cbw=i

(x,t=0), cbw=i(x,t=Tbw) = cf=i+1

(x,t=0), ...

Concentrations are averaged along the filter after each stage(assumed constant, see Φ parameter)

Group 1 Modelling of Filtration Membranes

Page 22: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Comsol Approach (V)

Matlab scripting for process simulation (cont.):

Filter parameters (κm, γ) calibrated to fit experimental data(TMP ' (Pin + Pout)/2)

Once parameters are calibrated, the process is optimized dependingon τfilt, τback and number of cycles

Goal: maximize the ratio purified/used water of the process forgiven operation conditions

Group 1 Modelling of Filtration Membranes

Page 23: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Comsol Approach (VI)

Parameter fitting depending on κm, γ and operation condition:

0 0.05 0.1 0.15 0.2 0.25−100

−80

−60

−40

−20

0

20

40

Time (min)

TM

P (

KP

a)

SimulationData

Group 1 Modelling of Filtration Membranes

Page 24: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Final Remarks

Averaging leads to a set of simplified equations

Not simple enough to solve by hand

Two different numerical approaches were implemented1 Using MATLAB: Simplest case, but unable to match experimental

data2 Using COMSOL: Filtration data could be reproduced. Not enough

data to compare backwash stage

Future work:

Explore higher order behaviour in the simple model

Model pore adsorption in the membrane, reduction in permeability

Spatially dependent filter properties (permeability, etc.)

Simulate filtration/backwash process over several cycles

Group 1 Modelling of Filtration Membranes

Page 25: Mathematical modelling of a waste water filtration process ... · As a reminder, three porosity approach Subscripts notation: ( ) cis referred to the capillary region. mis referred

Thank you for your attention

Group 1 Modelling of Filtration Membranes