mathematical modelling of wastewater treatment plants part...

29
Mathematical Modelling of Wastewater Treatment Plants Part III: Dynamic Modelling of the Activated Sludge Process Gilles G. Patry University of Ottawa

Upload: others

Post on 29-Oct-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Mathematical Modelling of Wastewater Treatment Plants

Part III: Dynamic Modelling of theActivated Sludge Process

Gilles G. PatryUniversity of Ottawa

Page 2: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Outline

• Introduction• Notation used by the Task Group (applies to all ASM models)

• ASM1 Model Development– ASM1 Model Structure– Processes

• Aerobic growth of heterotrophs• Anoxic growth of heterotrophs• Aerobic growth of autotrophs• Decay of heterotrophs• Decay of autotrophs• Ammonification of soluble organic nitrogen• Hydrolysis of entrapped organics• Hydrolysis of entrapped organic nitrogen

– Petersen matrix formulation of ASM1• Formulating the differential equations

8/17/2009 2

Page 3: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Activated Sludge Modelling Timeline(adapted from Bruce Johnson, CH2M Hill)

Empirical Design, Piloting & Guesswork

Kinetics-Based Design

Whole Plant Simulators

1910 1920 1930 1940 1950 1960 1970 1980 1990 2000 2010

Arden & Lockett (1914) ActivatedSludge« invented »

Monod (1942) Pure Culture Kinetics

McKinney(1962) Complete Mix ActivatedSludgeKinetics

Dold et al. (1980) General Model

Henze et al. (1995) ASM2

Penfold and Norris (1912) BacteriaGenerationTime

Garrett and Sawyer (1952) Mixed Culture Kinetics

Busby and Andrews (1975). First Computer Model (CSMP)

Henze et al. (1986)ASM1

Henze et al. (1999) ASM2d

Gujer et al. (1999) ASM3

Presenter
Presentation Notes
Penfold, W; Norris, D. The relation of concentration of food supply to generation time of bacteria. J Hyg. 1912;12:527–531. Observed the relationship between generation time and substrate concentration. Arden E. and W.T. Lockett (1914) « Experiment on the Oxidation of Sewage without the Aids of Filters ». J. Soc. Chem. Ind., 33:523. Arden and Lockett (1914) were the first to recognize the possibility of using activated sludge. In 1914 they noticed that bacterial binding material forms naturally during prolonged aeration of urban wastewaters MONOD, J. 1942. Recherches sur la croissance des cultures bactériennes. Hermann. Garrett, M. T.; Sawyer, C. N. (1952) Kinetics of Removal of Soluble BOD by Activated Sludge. Proceedings of the 7th Annual Industrial Wastes Conference, Purdue University, Lafayette, Indiana, May 7-9, 51-77. McKinney, R. E. (1962) Mathematics of Complete-Mixing Activated Sludge. J. Am. Soc. Civil Eng., 88, 87–113. Busby, J.B. and J.F. Andrews, "Dynamic Modeling and Control Strategies for the Activated Sludge Process," Journal of the Water Pollution Control Federation, Vol.47, pp.1055-1080, 1975. Dold, P.L., G.A. Ekama, and G.v.R. Marais, "A General Model for the Activated Sludge Process," Progress Water Technology, Vol.12, pp.47-77, 1980. Grady, C.P.L., Jr., W. Gujer, M . Henze, G .v.R. Marais, and T. Matsuo,"A Model for Single-Sludge Wastewater Treatment Systems," Water Science and Technology, Vol.18, pp.47-61, 1986. Jenkins, D.T. (2008). “From Total Suspended Solids to Molecular Biology Tools—A Personal View of Biological Wastewater Treatment Process Population Dynamics” Water Environ. Res., 80, 677 (2008).
Page 4: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Activated Sludge Model No. 1 (ASM1)

• Introduced in 1987 as IAWQ Model no. 1 (ASM1) -IAWQ Task Group on Activated Sludge Modeling

• ASM1 is a simple model consisting of:– 8 processes– 13 state variables or components– 19 parameters

• Model enhanced several times to address specific shortcomings of ASM1– ASM No. 2– ASM No. 2d– ASM No. 3– others

Henze, M., Grady Jr., C.P.L., Gujer, W., Marais, G.v.R., Matsuo, T. (1987). “Activated Sludge Model No.1” IAWQ Scientific and Technical Report No.1,IAWQ, London, Great Britain.

8/17/2009 4

Page 5: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Carbonaceous Components

Total COD

BiodegrableCOD

Soluble

SS

Particulate

XS

Nonbiodeg. COD

Soluble

SI

Particulate

XI & XP

Biomass

Heterotrophs

XB,H

Autotrophs

XB,A

8/17/2009 5

Page 6: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Nitrogenous Components

Total Kjeldahl N

TKN

Free and saline ammonia

SNH

Organically bound N

Soluble organic N

Nonbiodeg N

SNI

Biodegrable N

SND

Particulate organic N

Biodegrable N

XND

Nonbiodeg. N

XNI & XNP

Active mass N

XNB

Nitrate and nitrite N, SNO

8/17/2009 6

Presenter
Presentation Notes
SNI, XNI and XNP are not included in the matrix model. XNB is included only in so far as the decay process results in the formation ofparticulate biodegradable organic nitrogen
Page 7: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Processes in ASM1

• Aerobic growth of heterotrophs• Anoxic growth of heterotrophs• Aerobic growth of autotrophs• Decay of heterotrophs• Decay of autotrophs• Ammonification of soluble organic nitrogen• Hydrolysis of entrapped organics• Hydrolysis of entrapped organic nitrogen

8/17/2009 7

Page 8: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Decay

Aerobic G

Hydrolysis

Anoxic G

HydrolysisAmmonification

Decay

Growth

Heterotrophs (aerobic and anoxic)

Autotrophs (nitrifiers)

State variable

Process

XBHHeterotrophicbiomass

SODissolvedoxygen

SSReadilybiodegrablesubstrate

SNO

Nitrate -nitritenitrogen

SNHAmmonianitrogen

Soluble inertorganicsSI

XIParticulateinert organics

XPInert particulateProducts frombiomass decay

XS

Slowlybiodegrablesubstrate

XND

Particulatebiodegrableorganicnitrogen

SND

Solublebiodegrableorganicnitrogen

SNH

Ammonianitrogen

SODissolvedoxygen

XBAAutotrophicbiomass SNO

Nitrate -nitritenitrogen

ASM1 Model Structure

Page 9: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Aerobic Growth of Heterotrophs

• A fraction of the readily biodegradable substrate is used for growth of heterotrophic biomass and the balance is oxidized for energy.

• Growth model used Monod kinetics• Ammonia is used as nitrogen source and is

incorporated in cell mass• Both the substrate (SS) and oxygen (SO) may be rate

limiting for the growth process and removal of COD• Dissolved oxygen switching function is introduced• Alkalinity change

8/17/2009 9

ASM1

Aerobic G

XBHHeterotrophicbiomass

SODissolvedoxygen

SSReadilybiodegrablesubstrate

SNHAmmonianitrogen

Page 10: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Aerobic Growth – Heterotrophs

• Process Rate:

ˆ µ HSS

KS + SS

SO

KO, H + SO

XB, H

8/17/2009 10

where ˆ µ H = heterotrophic maximum specific growth rate, d-1

KS = half saturation coefficient for heterotrophs, g COD m-3

KO,H = oxygen half saturation coefficient for heterotrophs, g O2 m-3

SwitchingFunction

ASM1

Aerobic G

XBHHeterotrophicbiomass

SODissolvedoxygen

SSReadilybiodegrablesubstrate

SNHAmmonianitrogen

Page 11: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Anoxic Growth of Heterotrophs• In the absence of oxygen,

the heterotrophic organismsare capable of using nitrateas the terminal electronacceptor with SS as thesubstrate

• Leads to production of heterotrophic biomass andnitrogen gas (as a result of thereduction of nitrate with associated alkalinity change)

• Growth modeled using same Monod kinetics as aerobic growth except that kinetic rate is multiplied by ηg ( < 1 )– Why ηg < 1 ?

• Lower maximum growth rate under anoxic conditions OR• Only a fraction of the heterotrophic biomass is able to function with

nitrate as electron acceptor• Ammonia serves as nitrogen source for cell

synthesis, which affects alkalinity

8/17/2009 11ASM1

Anoxic G

XBHHeterotrophicbiomass

SODissolvedoxygen

SSReadilybiodegrablesubstrate

SNO

Nitrate -nitritenitrogen

SNHAmmonianitrogen

Page 12: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Anoxic Growth of Heterotrophs

• Process rate:

ˆ µ HSS

KS + SS

KO,H

KO,H + SO

SNO

KNO + SNO

ηgXB,H

8/17/2009 12

where ηg = correction factor for anoxic growth of heterotrophs

KNO = nitrate half saturation coefficient for denitrifying heterotrophs, g NO3 - N m-3

ASM1

Anoxic G

XBHHeterotrophicbiomass

SODissolvedoxygen

SSReadilybiodegrablesubstrate

SNO

Nitrate -nitritenitrogen

SNHAmmonianitrogen

Page 13: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Decay of Heterotrophs

• Organisms die at a certainrate and – a portion of the material is

considered to be non-biodegradableand adds to the particulate fraction XP

– the remainder adds to the pool ofslowly biodegradable substrate

• Organic nitrogen in particulate substrate (XS) becomes available as particulate organic nitrogen

• Process is assumed to take place at same rate under aerobic, anoxic or anaerobic conditions

8/17/2009 13ASM1

Decay

XBHHeterotrophicbiomass

XPInert particulateProducts frombiomass decay

XS

Slowlybiodegrablesubstrate

Page 14: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Decay of Heterotrophs

• Process rate:

bHXB,H

8/17/2009 14

where bH = heterotrophic decay rate, d-1

ASM1

Decay

XBHHeterotrophicbiomass

XPInert particulateProducts frombiomass decay

XS

Slowlybiodegrablesubstrate

Page 15: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Aerobic Growth of Autotrophs

• Ammonia is oxidized to nitrate (single step process) resulting in production of autotrophic biomass and associated oxygendemand

• Ammonia is also used as nitrogensource for synthesis and incorporated in cell mass

• Process has an effect on alkalinity and total oxygen demand

• Amount of biomass formed is generally small because of the low yield autotrophic nitrifiers

• Growth rate modeledusing Monod kinetics

8/17/2009 15ASM1

Growth

SNH

Ammonianitrogen

SODissolvedoxygen

XBAAutotrophicbiomass SNO

Nitrate -nitritenitrogen

Page 16: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Aerobic Growth of Autotrophs

• Process rate:

ˆ µ ASNH

KNH + SNH

SO

KO,A + SO

XB,A

8/17/2009 16

3-2OA

3-NH

-1A

m O g ,autotrophsfor t coefficien saturation halfoxygen

m COD g ,autotrophsfor t coefficien saturation half ammonia

d rate,growth specific maximum cautotrophi ˆ where

=

=

=

KK

µ

ASM1

Growth

SNH

Ammonianitrogen

SODissolvedoxygen

XBAAutotrophicbiomass SNO

Nitrate -nitritenitrogen

Page 17: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Decay of Autotrophs

• Modeled in same way as decay of heterotrophs

• Process rate:

bAXB,A

8/17/2009 17

where bA = autotrophic decay rate, d-1

ASM1

Decay

XPInert particulateProducts frombiomass decay

XSSlowlybiodegrablesubstrate

XBAAutotrophicbiomass

Page 18: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Hydrolysis of Entrapped Organics

• Slowly biodegradable substrateenmeshed in sludge mass is broken down extracellularly, producing readily biodegradable substrate available to organisms for growth

• Process modeled on basis of surfacereaction kinetics

• Process occurs under aerobic and anoxic conditions• Rate of hydrolysis is reduced under anoxic conditions

by a factor ηh ( < 1 )• Rate is first-order wrt heterotrophic biomass and

saturates as the amount of entrapped organics becomes large

8/17/2009 18ASM1

Hydrolysis

SSReadilybiodegrablesubstrate

XS

Slowlybiodegrablesubstrate

Page 19: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Hydrolysis of Entrapped Organics

• Process rate:

kh

XS

XB,H

KX +XS

XB,H

SO

KO,H + SO

+ ηh

KO,H

KO,H + SO

SNO

KNO + SNO

XB,H

8/17/2009 19

where kh = maximum specific hydrolysis rate, g slowly biodeg. COD (g cell COD day)-1

KX = half saturation coefficient for hydrolysis of slowly biodeg. substrate, g slowly biodeg. COD (g cell COD day)-1

ηh = correction factor for anoxic hydrolysis

ASM1

Hydrolysis

SSReadilybiodegrablesubstrate

XS

Slowlybiodegrablesubstrate

Page 20: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Hydrolysis of Entrapped Organic Nitrogen

• Biodegradable particulate organic nitrogen is broken down into soluble organic nitrogen at a rate defined by the hydrolysis reaction for entrapped organics

8/17/2009 20ASM1

Hydrolysis XND

Particulatebiodegrableorganicnitrogen

SND

Solublebiodegrableorganicnitrogen

Page 21: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Hydrolysis of Entrapped Organic Nitrogen

• Process rate:

where ρ7 is given by:

ρ7

XND

XS

kh

XS

XB,H

KX +XS

XB,H

SO

KO,H + SO

+ ηh

KO,H

KO,H + SO

SNO

KNO + SNO

XB,H

8/17/2009 21ASM1

Hydrolysis XND

Particulatebiodegrableorganicnitrogen

SND

Solublebiodegrableorganicnitrogen

Page 22: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Ammonification of Soluble Organic Nitrogen

• Biodegradable soluble organic nitrogen is converted to free and saline ammonia using first-order process mediated by active heterotrophs

• Hydrogen ions consumed in the process resulting in an alkalinity change

8/17/2009 22ASM1

Ammonification SND

Solublebiodegrableorganicnitrogen

SNH

Ammonianitrogen

Page 23: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Ammonification of Soluble Organic Nitrogen

• Process rate:

kaSNDXB,H

8/17/2009 23

where ka = ammonification rate, m3 (g COD day)-1

ASM1

Ammonification SND

Solublebiodegrableorganicnitrogen

SNH

Ammonianitrogen

Page 24: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

ASM1 State VariablesSi Soluble inert organics g COD/m3Ss Readily biodegradable (soluble) substrate g COD/m3Xi Particulate inert organics g COD/m3Xs Slowly biodegradable (particulate) substrate g COD/m3Xbh Active heterotrophic biomass g COD/m3Xba Active autotrophic biomass g COD/m3Xp Unbiodegrad. particulates from cell decay g COD/m3So Dissolved oxygen g O2/m3Sno Nitrate and nitrite g N/m3Snh Free and ionized ammonia g N/m3Snd Soluble biodegradable organic nitrogen (in ss) g N/m3Xnd Particulate biodegradable organic N (in xs) gN/m3Xii Inert inorganic suspended solids g/m3

S - Soluble Components X - Particulate Components

Adapted from Hydromantis, Inc.

Page 25: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Mapping of State Variables toComposite Variables

sBODu

xBODu

BODu

fbod

BOD5

sCOD

xCOD

COD

VSS

icv

TSSExample: ASM1

Si

Ss

Xs

XBH

XBA

XP

Xi

Xii

Adapted from Hydromantis, Inc.

Page 26: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

8/17/2009 27

Page 27: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Model

• For a completely mixed reactor ASM1 results in 13 nonlinear ordinary differential equations (NODE)

• Given a set of initial conditions, solve these using numerical methods techniques, i.e.,– General solvers such as Matlab, Simulink, ACSL, etc.– Specialized simulators such as GPS-X, BioWin, etc. as we

will see later.

• A plug flow reactor consisting for example of 10 CSTR would result in 130 NODEs – if you have 8 such reactors in parallel, this translates to more than 1000 NODEs.

8/17/2009 28

Page 28: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

ASM1, ASM2, ASM2d, ASM3, etc.

Page 29: Mathematical Modelling of Wastewater Treatment Plants Part ...gillespatry.net/wp-content/uploads/2018/07/Intro...SNI, XNI and XNP are not included in the matrix model.\爀堀一䈀

Decay

Aerobic G

Hydrolysis

Anoxic G

HydrolysisAmmonification

Decay

Growth

Heterotrophs (aerobic and anoxic)

Autotrophs (nitrifiers)

State variable

Process

XBHHeterotrophicbiomass

SODissolvedoxygen

SSReadilybiodegrablesubstrate

SNO

Nitrate -nitritenitrogen

SNHAmmonianitrogen

XPInert particulateProducts frombiomass decay

XS

Slowlybiodegrablesubstrate

XND

Particulatebiodegrableorganicnitrogen

SND

Solublebiodegrableorganicnitrogen

SNH

Ammonianitrogen

SODissolvedoxygen

XBAAutotrophicbiomass SNO

Nitrate -nitritenitrogen

ASM1 Model Structure

Return

Soluble inertorganicsSI

XIParticulateinert organics