Professional Documents
Culture Documents
Activated Sludge Process Simulator Asp-Sim, Part-1: Bod and Temperature Model
Activated Sludge Process Simulator Asp-Sim, Part-1: Bod and Temperature Model
Activated Sludge Process Simulator Asp-Sim, Part-1: Bod and Temperature Model
ABSTRACT
The most commonly used biological treatment of municipal and industrial wastewater is the Activated
Sludge Process. The design of activated process is usually done manually; this is often difficult and
susceptible to errors due to the large number of equations involved (which call for approximations and
round off errors). Also, the determination of the effects of changes in design parameters are very difficult
and time-consuming for manual computations. This paper therefore employs the Visual Basic 6.0
programming for design and simulation of completely mixed activated sludge (CMAS) process.
Algorithm and flow chart based on kinetic model were used for developing the Visual Basic code, ASP-
SIM. The code was tested using a design problem from standard text book. Results obtained proves
that the Visual BASIC 6.0 program ASP-SIM is a useful tool for predicting the effect of temperature on
design and operation of completely mixed activated plant design and operation.
KEY WORDS: Simulation, BOD, temperature, activated sludge process, and Visual Basic.
A. A. Adamu, Department of Petroleum Processing, Petroleum Training Institute, P.T.I, Effurun Delta
State, Nigeria.
Ify. L. Nwaogazie, Department of Civil & Environmental Engineering, University of Port Harcourt,
Choba, Port Harcourt, Rivers State, Nigeria.
2 A. A. ADAMU AND IFY L. NWAOGAZIE
ability to predict performance under steady-state The first step in the design of CMAS
and dynamic conditions. process is the characterization of the wastewater.
Various software programs are available The kinetic model requires more detailed
that apply model for different wastewater characterization than the semi-empirical model.
treatment processes. The most commonly used For biological nutrient-removal processes,
ones are SSSP, ASIM, EFOR, ENVIROPRO and wastewater characterization is essential for
GSP-X (Cimarosti and others, 2003). Computer predicting performance. Wastewater
simulation programs for wastewater discharge characterization is also an important element in
into rivers and streams also exist, a river mass the evaluation of existing facilities for optimizing
transport model (RIMTRA) was developed and performance and available treatment capacity.
the computer code was written in FORTRAN IV Wastewater characteristics of importance in the
(Nwaogazie, 1992). This model was revised in design of the activated-sludge process can be
1999 and 2002, respectively (Nwaogazie, 2004). grouped into the following categories:
carbonaceous substrates, nitrogenous
2. MODEL DEVELOPMENT FOR compounds, phosphorous compounds, total and
COMPLETELY MIXED ACTIVATED SLUDGE volatile suspended solids (TSS and VSS), and
(CMAS) PROCESS alkalinity. Table 1 shows some of the major
Wastewater Characterization for CMAS parameters required for use in the kinetic model
Process Design for CMAS.
Activated Sludge Process Design Return sludge ratio, Sludge volume index (SVI) ,
Considerations oxygen/Air required for aeration and Nutrients
A number of process variables affect requirements.
activated sludge process. Ignoring these The kinetic model development on which
variables may lead to poor design and the computer code is constructed is anchored on
operational problems in wastewater treatment the principles of Monod’s equation for microbial
plant. These process variables include: Hydraulic growth rate, biomass and substrate mass
retention time, Solid retention time (SRT), Food balances. The detail of this model is contained in
to microorganism ratio (F/M ratio), Volumetric the algorithm presented in Section 4 and they are
BOD loading, Mixed liquor suspended solids found in literature (Tchobanoglous and Others,
(MLSS), Sludge production rate, Sludge wasting, 2003).
k d (T ) = k d 20 θ kd (T − 20)
µ (T) = µ θ (T−20)
m m 20 m
8. Calculate substrate reactor effluent concentration S.
K s [1 + ( k d ) SRT ]
S =
SRT ( µ m − k d ) − 1
9. Calculate rate of production of volatile suspended solid PX,VSS and total suspended solids,
PX,TSS in the reactor.
QY(So − S) (f )(k )(S − S)SRT
d d o
PXVSS = + + Q * nbVSS
1+ (k d )SRT 1+ (k )SRT d
R o = Q *(So − S) −1.4PXbio
QY(So − S) (f )(k )(S − S)SRT
d d o
PXbio = +
1+ (k d )SRT 1+ (k )SRT
d
R o = SOTR
16. Determine air required
β C STHav − C L
( AOTR ) = (SOTR )(α)(F)(1.024 T − 20 )
C S, 20
saturation concentration in wastewater
β=
saturation concentration in clean water
1 Pd Ot Patm ,H + Pw ,mid depth
CSTHav = (CSTH ) + , CSTHav = (CSTH )
2 Patm ,H 21 Patm,H
sat
475 − 2.65*S P−P
(CST ) 760 = CST ,H = (CST ) 760
33.5 + T 760 − P sat
17. Increase temperature by 3.
18. Go to step 5.
19. Print temperature, aerator volume, hydraulic retention time, F/M ratio, sludge production rate,
and air required.
20. Stop
In this algorithm, steps 5, 6, and 18 Simulator, ASP-SIM (Adamu, 2007). Visual Basic
seem to control the temperature effect is an interpreted programming language. It is
evaluation in the design process. This currently among the most popular computer
arrangement offers some advantage of languages in the world because of the ease with
designing at various temperatures instead of which it can be learned and applied particularly
a fixed temperature which is achievable by for development of short- to medium-sized
ignoring the 3 steps stated. programs. Visual Basic shares many
The graphical representation of the computational advantages of FORTRAN such as
algorithm on the effect of temperature on long variable names, double precision and
Activated sludge process for BOD removal adequate libraries of mathematical functions
only is presented in Figure 2 (Jonnes, 2001; Holzner,2004). The computer
code was developed for Activated sludge process
Development of Computer Code, ASP-SIM for BOD removal only, with option to determine
The algorithm was developed into the effect of temperature on the process. The
computer code written in Microsoft Visual Basic computer program listing is presented in the
6.0 and named: Activated Sludge Process Appendix.
ACTIVATED SLUDGE PROCESS SIMULATOR ASP-SIM PART 2: 5
No
Increase temperature by 3
Determine kd and µ m at the
operating temperature.
Table 2: Comparison of literature and computer simulated results for CMAS process for BOD removal
only.
SOLUTION
Design
Parameter Units Literature Computer % diff.
simulated
BOD removal only BOD removal only
(part A) (part A)
3
Aeration tank m 4020 4021.29
volume (1340 x 3 tanks) (1340.3 x 3 tanks) -0.03
Hydraulic hr 4.3 4.3 0.00
detention time
F/M ratio kg/kg.d 0.33 0.33 0.00
3
BOD loading kg BOD/m .d 0.78 0.78 0.00
Sludge kg/d 2413 2412.77 0.009
production
3
Air required m /min 55.5 55.63 0.23
The percentage difference between computer parameters and 0.23 for the last parameter). The
simulated results and that of literature are very reason for the margin of error of 0.23 is due to
negligible (from 0.00 to -003 for the first five the slight variation of method used for
ACTIVATED SLUDGE PROCESS SIMULATOR ASP-SIM PART 2: 7
determination of concentration of dissolved production rate and air requirement. The results
oxygen at saturation. In effect the computer code are as presented in Table 3. Also the graphical
is error free and can be used for design representations of the results are as presented in
purposes. Figures 3 and 4. The effect of temperature on
On the effect of temperature on CMAS both volume and sludge production rate is that of
process, the temperature on the existing test an inverse relationship. It shows a decrease in
o
problem was varied from 12 to 39 C. The volume/sludge production rate as temperature
computer code (ASP-SIM) was employed to increases. On the other hand, direct proportional
simulate the design parameters such as aerator relation exists between temperature and air
volume, F/M ratio, BOD loading, sludge requirement (see Figure 4).
Table 3: Effect of temperature on CMAS process design variables for BOD removal only.
Air
BOD loading Sludge required
3 3 3
Temp(deg. C) V (m ) F/M (g/g.d) (kgBOD/m .d) production (kg/d) (m /min)
12 4021.29 0.33 0.78 2412.77 55.63
15 3941.48 0.33 0.80 2364.89 57.73
18 3856.94 0.34 0.82 2314.16 59.68
21 3768.39 0.35 0.83 2261.03 61.49
24 3676.55 0.36 0.86 2205.93 63.17
27 3582.15 0.37 0.88 2149.40 64.71
30 3485.94 0.38 0.90 2091.57 66.10
33 3388.69 0.39 0.93 2033.22 67.36
36 3291.15 0.40 0.96 1974.69 68.47
39 3194.06 0.42 0.98 1916.43 69.43
4500.00
Aerator volume
Sludge production rate
Aerator volume (m /s)/Sludge production rate(kg/d)
4000.00
3500.00
3000.00
2500.00
3
2000.00
1500.00
1000.00
10 15 20 25 30 35 40 45
Temperature, deg. C
Figure 3: Effect of temperature on reactor volume and sludge production rate for CMAS
Process design.
8 A. A. ADAMU AND IFY L. NWAOGAZIE
75.00
70.00
65.00
Air required, m3/s
60.00
55.00
50.00
45.00
40.00
10 15 20 25 30 35 40 45
Temperature deg. C