Professional Documents
Culture Documents
STOAT Tutorials
Report No.:
UC8616.04
Date:
March 2013
Authors:
J. Dudley, L. Poinel
Project Manager:
L. Poinel
Project No.:
15504-0
Client:
Client Manager:
J Dudley
Contents
1.
INTRODUCTION ......................................................................................................... 1
2.
GETTING STARTED................................................................................................... 2
2.1
2.2
2.3
2.4
2.5
3.
3.1
3.2
3.3
3.4
4.
4.1
4.2
4.3
4.4
5.
5.1
5.2
5.3
5.4
6.
6.1
6.2
6.3
6.4
7.
7.1
7.2
8.
8.1
8.2
9.
9.1
9.2
9.3
9.4
9.5
10.
10.1
10.2
10.3
List of Tables
No table of figures entries found.
List of Figures
No table of figures entries found.
WRc plc
Frankland Road
Blagrove
Swindon
Wiltshire
SN5 8YF
United Kingdom
Tel: +44 (0)1793 865185
Fax: + 44 (0)1793 865001
E-Mail: STOAT@wrcplc.co.uk
WRc plc
1.
Tutorials Guide
INTRODUCTION
This guide is intended to take you through using STOAT, by building and running a
series of example sewage works. If you have a specific requirement for STOAT, and
would like to see this covered by the tutorials for other users, please contact us and
we will prepare one.
The structure of this guide is:
Section 2 covers common material on using STOAT.
The subsequent sections present a range of worked examples:
Section 3 covers the modelling of a simple activated sludge works.
Section 4 extends this works to model nutrient removal.
Section 5 removes the nutrient removal option and extends the works to use a
tertiary biological filter for nitrification.
Section 6 extends the simple sewage works of Section 4 to multiple parallel trains
and describes the effect of losing 2 aeration lanes for maintenance purposes.
Section 7 uses a PID controller to continuously adjust the flowrate to a filter to
achieve a constant wetting rate on the filter.
Section 8 describes the use of the Sensitivity Analysis algorithm within STOAT to
assess the effect of varying the settling velocity in a primary tank.
Section 9 covers the use of the BOD semi-dynamic model for trickling filters and
compares these results with the new biofilm growth model (COD) within STOAT.
Section 10 gives a tutorial showing how to set up and run an SBR model.
WRc plc
2.
Tutorials Guide
GETTING STARTED
Start STOAT by double-clicking the STOAT icon from the Windows Program
Manager.
When STOAT has loaded you are presented with a blank screen with five menu
options, 'File', Edit, Options, Tools and Help. Select 'File.' If you are starting a
tutorial for the first time select 'New Works'; if you are continuing a tutorial from
where you left, select 'Open Works.'
The 'New Works' option asks you to give a name for the works. We suggest that you
use the names 'Tutorial 1', 'Tutorial 2' and so on. When you wish to use a tutorial
again it will then be easier to select the right tutorial.
2.1
WRc plc
Tutorials Guide
Every process has some stub lines marking influent and effluent connections,
generally with influents on the left of the icon and effluents on the right.
You connect the processes by placing the mouse pointer over the OUTPUT stub,
when the pointer will change to a cross-hair symbol. Depending on the resolution of
your screen, and the choice of mouse pointer colour, the cross-hair may appear as
a cross-hair or as a fat cross; the fat cross may be coloured black or white. Pressing
the left mouse button down, move the mouse to the INPUT stub on the process that
you want to connect. When you are over the connection the pointer will change from
a cross-hair to a 'chain-link'. Release the mouse button. The connection ('stream')
between the two processes has now been established. To ensure that a connection
has been made to each required stub, RIGHT click on the process and choose
Input data/Connectivity from the menu which appears.
WRc plc
Tutorials Guide
Each stream must have a stream number assigned as in the screen shot above.
If any stream name is blank at this point you must reconnect the stream to the
process. This is shown in the above screen shot.
If you have made a mistake you can select and then delete the stream by rightclicking on the stream; you can also delete processes in the same way. You do not
have to complete putting all the processes in place before connecting processes;
you can add processes and streams at any time.
Having created your sewage works you will need to save the configuration before
you can proceed any further. Select 'Save Works' from the 'File' menu.
2.2
WRc plc
Tutorials Guide
menu either to start a new run, or to complete an existing run. If you select 'Open
run' you are presented with a list of all the runs that you have saved for that works. If
a run has been completed you are not able to run it again, but you can view any of
the data that was saved as part of the run.
You can use this works as the base for a new works, deleting processes that you do
not wish to study, and adding new processes. You must then save the results as
a new works. There will now be no runs associated with the works all the runs
having been associated with a works of different geometry. If you limit your changes
to dimensions, keeping geometry the same, this is still treated as a new works. You
will be asked to save the works before you can create any new runs, and you will
have lost the initial conditions associated with the previous works.
To keep the initial conditions of a previous run when you have only changed the
dimensions of a works and had to save it as a New Works complete the following
series of commands:
Open Works -
New Run Make the changes to the dimensions (not the geometry)
Save Works As - Assign new name to the modified works
Save Run As -
You will now have the new works with the modified dimensions but with the initial
conditions from the previous Works.
2.3
Assuming the works has been correctly built, you will then be prompted for a name
for the run, and what you want to use for initial conditions.
WRc plc
Tutorials Guide
There are four types of initial conditions that can be used in any run:
1.
2.
Taken as the same initial conditions as used in a previous run (allowing you to carry out
sensitivity or comparability studies).
3.
Use the end conditions from a previous run (allowing you to continue the simulation with
calculated, rather than estimated, initial conditions).
4.
WRc plc
Tutorials Guide
When specifying the simulation time the start time is fixed if you have chosen to use
the initial conditions from a previous run. You can change the simulation length,
specifying your required end time in DD/MM/YY HH:MM format. You will be warned
if you have typed in an illegal date or time.
The other piece of information you must supply is how frequently you want output.
STOAT has no restrictions on the maximum output frequency but the default is 1
hour.
You can also set other simulation parameters, such as the average sewage
temperature (used by the activated sludge and biological filter models); the BOD
equivalent of 1 g of biomass solids and volatile (but non-biomass) solids; and then
numerical controls, such as the choice of integration method and accuracy. We
recommend that you leave these as the default values, changing only the
temperature.
You can now set up the sewage works conditions for the run. You can do this for
each process by right-clicking with the mouse on the process, where you will be
offered a menu of the conditions that you can change. Changing any of the process
data under 'Name and dimensions' defines a new sewage works. You can change
any of the other data at the start of the run, and you can change any of the
'Operational' data during the course of the run, or program STOAT to have the
changes made automatically for you.
2.4
WRc plc
Tutorials Guide
You can decide if you want data for the stream stored (Save Results) for future
use, and if you want to look at the results as they are calculated ('In-simulation
reporting'). If you want in-simulation reporting you can then select what components
you would like to have displayed from the two options 'Simple determinands' and
'Advanced determinands'.
Simple determinands are the common sewage components, while advanced gives
you access to all the stream components in STOAT. You can select determinands
from both the simple and advanced options, and they will all be displayed on the
same graph. We recommend you do not choose to look at every determinand for
every stream, as the result is more information than you can use during the
simulation. Select a subset that represents where you expect to be interested.
Because you can save the data for all the streams you can carry out a full postmortem at the end of the run.
You can also select how you want the results displayed from 'Report View. The
default is as a graph, but you also have the option to have the results as a table, or
as summary statistics (mean, maximum, minimum over the course of the simulation)
or various combinations of these. Generally the most useful is the simple graphical
display. You can change the report type during the simulation by selecting the report
you want to change, then from the 'Window' menu selecting 'Display results as',
which presents you with the same set of reporting types. Changing the display type
during the simulation may corrupt the display. (Whether you get a corrupted display
will depend primarily on the number of profiles that you have chosen to display.)
You can easily fix this by minimising then restoring the display select the required
window, double-click on the 'minimise' symbol (the down-arrow in the top right-hand
corner); then double-click on the minimised icon that will appear at the base of the
STOAT window to restore the window, and clear any corruption of the display.
WRc plc
2.5
Tutorials Guide
COMPLETING A RUN
When you have entered all your data save the run. Then run the simulation. This
ensures that should you have any problems during the run that you can start again.
You start the run by selecting the 'Run' button symbol. You can pause the simulation
with the 'Pause' button to make changes to the operational parameters, and then
continue the simulation with 'Run. Selecting 'Stop' will stop the simulation you will
not be able to continue afterwards with 'Run.
When the run is finished, and assuming you are happy with the outcome, then again
save the run. This preserves the results for you to examine later. If you are not
happy with the outcome, or if STOAT encountered errors during the simulation,
close the run from the 'File' menu and then open the run. Because you
remembered to save the run before beginning the numerical calculations you
can retrieve your starting point. Having done this you make whatever changes
you feel are required, save the result, and then again begin to run the simulation.
You can repeat this cycle until you are satisfied with the results, when you can then
save the run. Once a completed run has been saved you can no longer make any
changes to it. You can create a new run that will take either its initial conditions from
either the initial or final conditions of previously completed runs.
WRc plc
3.
Tutorials Guide
3.1
You will be asked for a name for the works. Enter 'Tutorial 1.
The drawing board and process toolbox will now appear on the screen. For this
tutorial, select the influent, primary tank, activated sludge aeration basin and
activated sludge settling tanks, one effluent, two sludge and one no-entry icon.
Select each and drag the icon from the toolbox to the drawing board.
Close the process toolbox, to remove the clutter on the screen.
When you have all the processes on the drawing board connect them together to
create the flowsheet shown below.
10
WRc plc
Tutorials Guide
Having completed the works geometry we now define the physical dimensions. For
each process primary sedimentation, aeration basin and settling tank right-click
on the process, select 'Input data' and then select 'Name and dimensions. Set the
processes dimensions as:
Primary sedimentation:
Name: Primary Tank 1
Process Model: BOD
Number of stages: 3
Volume: 1,200 m2
Surface area: 400 m2
Aeration basin:
Name: Activated Sludge Tank 1
Process Model: ASAL1
Volume: 800 m3
Number of stages: 1
Number of MLSS Recycles: 0
Wastage Method:
None (Note: This setting is only used if you wish to waste
sludge from the aeration tank - set to None if you are wasting from
the settlement tank.)
11
WRc plc
Tutorials Guide
Settling tank:
Name: Secondary Tank 1
Process Model: SSED1
Number of vertical layers: 8 [this is the default]
Surface area: 400 m2
Depth of Tank: 3 m
Depth of Feed: 2 m
RAS flow: Rate
Wastage Method:
Constant rate [you will find this by selecting the 'More' button
at the bottom of the form].
Control Aeration Tank : Activated Sludge Tank 1
Control aeration stage: 1
Having entered these you have now defined the works geometry and physical sizes.
Save the result, using 'File/Save works.
3.2
You will be asked first for a name to identify the run accept the default of Run 1.
12
WRc plc
Tutorials Guide
Take the default values, which set that the simulation will last for two days at 15C.
Simulating only two days with the activated sludge model means that the results
from the model will be heavily dependent on the initial conditions that we use. We
will specify a suitable set of values, but we suggest that when you are using STOAT
your first simulation should be set for 20-40 days and should be treated as primarily
a sighting run to evaluate a reasonable set of values for the initial conditions. (The
required simulation time is set by the largest retention time in the sewage works. For
activated sludge systems this is normally the sludge age, and you should simulate
three sludge ages to be confident that you are looking at a dynamic steady state,
13
WRc plc
Tutorials Guide
rather than the effect of the initial conditions. There will be other occasions when
you have a good starting point and are interested not in the dynamic steady state
but the effect of short-term changes from your defined initial conditions.)
Having specified the base simulation parameters you can now set the process
conditions for this run.
Begin by defining the sewage stream.
STOAT allows you to use any influent process icon to create a new influent data set
(e.g. a repeating diurnal profile) but does not automatically associate this influent
data set with the selected influent process icon. You therefore normally have a twostep process first define the influent data set, then associate it with the influent
process icon. You can subsequently edit the influent data set to modify the sewage
profile to include storms or other periods of high or low flow or variations in sewage
strength from the 'normal.
Right-click on the influent and select Generate profile/Advanced.
14
WRc plc
Tutorials Guide
Accept the default values this is an average flow of 100 m3/h, so that the settling
tanks have average upflow velocities of 0.25 m/h and the aeration basin a sewage
retention time of 8 h. If you do wish to change the values you can do so by saving
the resulting pattern as a new name. Now click Close and select 'reate data file'
and accept the defaults.
Note that since the data file ends after 48 hours then attempting to use this file later
for a simulation to model more than 48 hours will produce an error after the 48th
hour has been modelled. Enter as the file name 'tut1.inf.
15
WRc plc
Tutorials Guide
You have now created a data file. You will be asked if you want to use this file with
the influent.
Select Yes.
You will then be asked if you wish to view or edit the file.
16
WRc plc
Tutorials Guide
Select No.
Finally Close the Generate profile menu.
If you now wish to alter the data you can do so by again right-clicking on the influent
and selecting 'Input data/Edit profile. Next to the 'Edit profile' part of the sub-menu
will be the filename of the associated file.
We will leave most of the other processes at their default values. You can see the
default values by right-clicking on each process and looking through the menus
under each processes' 'Input data. For this tutorial we will only change the default
values for the settling tank and the initial conditions for all the processes.
Right-click on the activated sludge settling tank and select 'Input data/Operation'
Change the return RAS flow from 0 m3/h to 150 m3/h, the sludge wastage flow from
0 m3/h to 5 m3/h, and the wastage pumping time and interval from 0 and 0 h to 24
and 24 h respectively.
Now we change the initial conditions. The default values are 0 for all determinands
we start with all the tanks filled with water. Right-click on the primary tank, select
'Input data/Initial conditions. Change the initial conditions to the following values:
Soluble BOD: 150 mg/l
Ammonia: 40 mg/l
Settleable particulate BOD: 70 mg/l
Nonsettleable particulate BOD: 30 mg/l
Settleable volatile solids: 140 mg/l
Nonsettleable volatile solids: 40 mg/l
Settleable nonvolatile solids: 40 mg/l
Nonsettleable nonvolatile solids: 20 mg/l
Temperature: 15C
17
WRc plc
Tutorials Guide
Enter these for the first stage only. Then go to the top of the first stage input column
and select the first cell; keeping the left mouse button held down move the mouse
pointer down to the base of the column. You should see the cells being highlighted.
Keeping the mouse pointer within the highlighted region right-click on the mouse
button and select 'Copy' from the menu that will appear. Now use the mouse to
highlight the data cells for the stage 2 column. Right-click on the highlighted cells,
and select 'Paste. You should now see the contents of stage 1 also appear in stage
2. Highlight the data cells in stage 3 and again right-click and select 'Paste. Now
select 'OK', so that you have defined the initial conditions for the primary tank.
Repeat this process for the activated sludge aeration basin. Use as the initial
condition the following values:
Soluble BOD: 5 mg/l
Ammonia: 40 mg/l
Dissolved oxygen: 2 mg/l
MLSS: 3000 mg/l
Viable autotrophs: 100 mg/l
Nonviable autotrophs: 0 mg/l
Viable heterotrophs: 1000 mg/l
Nonviable heterotrophs: 0 mg/l
18
WRc plc
Tutorials Guide
The activated sludge settling tank cannot be treated using this copy and paste
approach. The primary settling tank is concerned with the longitudinal (rectangular
tanks) and radial (circular tanks) variation in sewage concentration, not the vertical
distribution. The activated sludge settling tank reverses this, being concerned with
the vertical distribution and ignoring the radial/longitudinal variations. This difference
in emphasis requires that solids profiles in the final settling tank differ from stage to
stage, increasing with increasing depth. Therefore, first enter the concentrations of
the soluble components for stage 1 and copy these into stages 2 - 8, using the
column copy method described above. Use as the initial condition the following
values:
Soluble BOD: 5 mg/l
Ammonia: 40 mg/l
Dissolved oxygen: 2 mg/l
For the solids settling we can idealise the solids profile as clarification above the
feed point, a 'solids waterfall' from the feed point to the base of the tank, and then a
sludge blanket at the base of the tank.
Clarification
zone
Feedpipe
Sludge 'waterfall'
Sludge blanket
Because we specified 8 stages and the feed to the settling tank at mid-depth we
have the following relationship:
Clarifier stages: 1 - 3
Waterfall stages: 4 - 7 (the feed stage is stage 4)
Sludge blanket stage: 8
Use the following initial conditions for each part of the final tank:
19
WRc plc
Tutorials Guide
Component
Clarifier
MLSS:
0
Viable heterotrophs: 0
Viable autotrophs
Waterfall
Sludge
300
100
6000
2000
10
200
20
WRc plc
Tutorials Guide
21
WRc plc
Tutorials Guide
The final results from this simulation are shown below. You can see that ammonia
started at 40 mg/l and was gradually removed, so that the works is nitrifying. Total
BOD started at 5 mg/l and dropped slightly while effluent solids rose to about 5 mg/l.
22
WRc plc
3.3
Tutorials Guide
23
WRc plc
Tutorials Guide
The order of the graphs may differ on your computer here the first graph is settled
sewage, the second crude sewage and the final graph final effluent. You can see
the removal of BOD, solids and ammonia as the sewage progresses through the
primary tank and the activated sludge unit. You can also choose to look at the data
as a timeseries or summary statistics select the graph, then from 'Window/View'
select your preferred output. Graphs may be copied onto the Windows clipboard
and inserted into word processor documents, while tables can be copied into tables
in word processors or into spreadsheets.
3.4
24
WRc plc
Tutorials Guide
the effluent appears to have the same shape from day to day. You can then stop the
simulation. We also suggest that:
1.
2.
you do not attempt to get a close match between data and predictions when what you are
comparing is a predicted dynamic equilibrium and a set of measurements that are not a dynamic
equilibrium.
Aside from looking at how the solution progresses over periods longer than two
days, you could also look at:
a)
the effect of different initial conditions these should not affect the dynamic equilibrium, but
will have a marked effect on the short-term behaviour of the effluent quality,
b)
changing the sewage characteristics or the sludge settleability for either the primary tank or the
final settling tank,
c)
d)
changing the wastage control methods and rates, and comparing the effect of wasting from the
aeration basin with wasting from the return sludge line,
e)
examining the effect of plug flow on treatment performance vary the number of stages in the
aeration basin using values of 1, 2, 4, 8 and 12.
25
WRc plc
4.
Tutorials Guide
4.1
4.1.1
4.1.2
Now define the physical sizes of the processes. For the aeration tank enter the
following:
26
WRc plc
Tutorials Guide
Volume: 800 m3
Number of stages: 2
Number of MLSS recycles: 1
Wastage method: None
For the settling tank enter the following:
Surface area: 400 m2
Depth of tank: 3 m
Depth of feed: 2 m
Number of vertical layers: 8 [this is the default]
Wastage method: Constant rate
RAS flow: Rate
Save the works, using 'File/Save works'.
4.2
27
WRc plc
Tutorials Guide
Number of stages = 2
No mixed liquor recycles
Use Model #1A
Sewage
Settling
tank
Anoxic
tank
Aerobic (Oxic)
tank
The AO Process
Number of stages = 3
One mixed liquor recycle, from stage 3 to stage 2
Use Model #5A
Sewage
Settling
tank
Anaerobic
tank
Anoxic
tank
Aerobic (Oxic)
tank
28
WRc plc
Tutorials Guide
Number of stages = 5
One mixed liquor recycle, from stage 3 to stage 1
Use Model #5A
Mixed liquor recycle
Sewage
Anoxic
Aerobic
Anoxic
Aerobic
Anaerobic
Sewage
Anoxic
Anaerobic
Aerobic
29
WRc plc
Tutorials Guide
Number of stages = 4
Two mixed liquor recycles
MLSS recycle 1 from stage 4 to stage 3
MLSS recycle 2 from stage 2 to stage 1
Use Model #5A
Anoxic
Anoxic
Aerobic
Notice that you must define the model type and the number of mixed liquor recycles
under 'Name and dimensions' and that this therefore defines the sewage works.
Changing these parameters will require that you save the works under a new name.
The actual values for the mixed liquor flowrates, and the stages that they connect,
are specified under 'MLSS recycles' and is a run parameter you cannot set these
until you first define a run.
For this simulation we will restrict the model to a modified AO-type process. The
activated sludge model should be model ASAL 1A and the settling tank model
should also be model SSED1. There are two stages in series with one mixed liquor
recycle, taking sludge from the second stage to the first. The first stage is anoxic
and denitrifies, converting nitrate to nitrogen. The second stage is aerobic,
converting ammonia to nitrate. This nitrate is then taken back to the first stage for
removal.
4.3
30
WRc plc
Tutorials Guide
Under Stage Data set the minimum and maximum KLa values for stage 1 to zero,
and the dissolved oxygen setpoint also to zero this ensures that this stage is
anoxic. Leave the volume fractions as a 50:50 split.
Set the 'Operation' conditions for the settling tank to a return sludge flow of 150
m3/h, a wastage rate of 5 m3/h and the operating times for wastage pumps and
wastage intervals to 24 hours.
31
WRc plc
Tutorials Guide
For the influent select the same flowstream as you used in tutorial 1, 'tut1.inf. Rightclick on the influent icon, to bring up the following menu. Choose Select profile and
from the resulting menu choose tut1.inf.
32
WRc plc
Tutorials Guide
Because you have defined a new works your first run must be a 'cold start' and you
should enter the same initial conditions as used in Tutorial 1.
For the activated sludge aeration basin you must specify that the dissolved
oxygen concentration in the first stage is zero this is because this stage is
anoxic. All anoxic stages must be defined with the KLa values, dissolved
oxygen values and dissolved oxygen setpoints as zero.
33
WRc plc
Tutorials Guide
Now define the initial conditions for the settling tank. The activated sludge settling
tank is concerned with the vertical distribution of solids and ignores the
radial/longitudinal variations. This requires that the solids profile in the final settling
tank differs from stage to stage, increasing with increasing depth. Therefore, first
enter the concentrations of the soluble components for stage 1 and copy these into
stages 2 - 8, using the column copy method described in Tutorial 1. Use as the
initial condition the following values:
Soluble BOD: 5 mg/l
Ammonia: 40 mg/l
Dissolved oxygen: 2 mg/l
For the solids settling we can idealise the solids profile as clarification above the
feed point, a 'solids waterfall' from the feed point to the base of the tank, and then a
sludge blanket at the base of the tank.
34
WRc plc
Tutorials Guide
Clarification
zone
Feedpipe
Sludge 'waterfall'
Sludge blanket
Because we specified 8 stages and the feed to the settling tank at mid-depth we
have the following relationship:
Clarifier stages: 1 - 3
Waterfall stages: 4 - 7 (the feed stage is stage 4)
Sludge blanket stage: 8
Use the following initial conditions for each part of the final tank:
Component
Clarifier
Waterfall
Sludge
MLSS:
300
6000
Viable heterotrophs: 0
Viable autotrophs
0
100
10
2000
200
Finally, select the final effluent stream to monitor during the simulation. The results
should look like the following figure:
35
WRc plc
Tutorials Guide
There is a high BOD peak at the start of the simulation, caused by the high influent
BOD. The biomass responds to this by growing, so that the BOD is taken up and the
concentration eventually comes down. The effect of the mixed liquor recycle can be
seen in that the nitrate is less than the comparable plot for Tutorial 1. If the
simulation had been left to run for longer which would require specifying an
influent profile that lasted longer than 48 hours then full nitrification would be seen,
followed by denitrification.
You can see this by selecting 'File/New Run. If the 'New Run' option is greyed out
then you must first select the drawing board because you currently have one of the
graphs active. You can tell the active graph by looking to see which one has its top
title bar highlighted. Having selected 'File/New Run' you will be asked if you want to
save the results of the previous run. Answer 'Yes. When the run menu appears on
the screen select to continue from a previous simulation:
36
WRc plc
Tutorials Guide
You will be asked which run you want to start from. Assuming that you called your
first run 'Run 1', then select 'Run 1. If you saved Run 1 with reporting graphs open
then these graphs should also be opened as the new run is set up. If Run 1 was not
saved with these graphs open then you will need to open up a reporting graph to
look at the final effluent quality. At the end of the simulation you should see an
effluent quality that looks like:
37
WRc plc
Tutorials Guide
The effluent profile is now beginning to repeat itself, showing that we are reaching
the dynamic equilibrium conditions. The effluent quality is worse than in Tutorial 1
because the aerated volume of the tank is only 400 m3, compared to 800 m3 in
Tutorial 1.
4.4
38
WRc plc
Tutorials Guide
handled in such a way to prevent the release of phosphorus from the biomass back
into the soluble form.
39
WRc plc
5.
Tutorials Guide
TUTORIAL
3:
STORM
TANKS,
PRIMARY
TANKS,
ACTIVATED
SLUDGE AND TRICKLING FILTER
One of the strengths of STOAT over many other wastewater modelling programs is
that it allows you to include a variety of processes in series or parallel. This example
presents a sewage works with a high-rate activated sludge plant followed by a
tertiary nitrifying filter.
5.1
Name the sewage flowstream connecting the overflow divider to the primary tank
'After overflow. This will help identify this stream later.
40
WRc plc
Tutorials Guide
41
WRc plc
Tutorials Guide
5.2
CONSTRUCTING A STORM
Create a new run. We want to model the effect of a storm on the sewage works.
Storm sewage data is difficult to obtain so for this simulation we will continue to use
the file 'tut1.inf. We simulate the storm by setting tank sizes and overflow settings
so that flows above 100 m3/h imitate the effect of high storm flows.
For each process change the following parameters:
Influent (Select Profile)
Select the profile as the file tut1.inf.
Overflow (Operation)
Overflow: 100 m3/h
Storm tank (Operation)
Return pump rate: 30 m3/h
Control stream flow: 70 m3/h
When the flow past the overflow point drops below 70 m3/h then the tank contents
will be pumped back at 30 m3/h, so that the total flow to the works will not exceed
100 m3/h.
Primary tank
Nothing here to change.
Aeration tank
Nothing here to change.
Settling tank (Operation)
Sludge wastage flow: 30 m3/h
Wastage pump run time: 24 hours
Wastage cycle time: 24 hours
RAS ratio: 1
Trickling filter (Input data/Process caliration)
42
WRc plc
Tutorials Guide
Viable autotrophs
Viable heterotrophs
Stages 1-3
Stages 4-7
Stage 8
300
6000
10
200
100
2000
Trickling filter
Heterotrophs: 100 mg/l on each stage
Autotrophs: 2 mg/l on each stage
5.3
43
WRc plc
Tutorials Guide
You can see that the activated sludge plant is operating to remove BOD only and
that it is overloaded during the storm. The filter removes ammonia, but during the
storm it also removes additional BOD, protecting the receiving water.
You can also follow the progress of the sewage during treatment. The following
graphs show the influent and effluent from the storm and primary tanks. Stream 20
is the influent to the storm tank 1, Stream 19 the pumped sewage returned from the
storm tank, Stream 4 the primary tank effluent and Stream 17 the storm tank
overflow. The nature of the storm tank operation can easily be seen here.
The numbering of streams depends on the order in which you choose to connect them.
Do not worry if your streams have different numbers, as long as they are connecting the
processes described.
44
WRc plc
Tutorials Guide
45
WRc plc
5.4
Tutorials Guide
1.
Experiment with the overflow setting and its impact on effluent quality.
2.
3.
Increase the number of stages in the aeration tank this shows the difference in behaviour
between completely-mixed and plug-flow aeration basins.
46
WRc plc
6.
Tutorials Guide
TUTORIAL
WORKS
4: A MORE
COMPLEX
This tutorial takes you through building up a sewage works with several parallel
processes, including sludge treatment, and programming changes in operational
conditions.
6.1
47
WRc plc
Tutorials Guide
Aeration basins:
Process model: ASAL1A
Volume: 400 m3
Number of stages: 1
Wastage method: None
Activated sludge settling tanks:
Number of vertical layers: 8 [this is the default value]
Surface area: 200 m2
Depth of tank h: 3 m
Depth of feed: 1.5 m
RAS flow: Ratio
Wastage method: Constant rate
Aeration basin: Connect the aeration basin name to the corresponding settling tank.
If you have connected aeration tank 1 to settling tank 1, 2 to 2, then in settling tank 1
specify that the aeration basin should be 'Aeration tank 1', for settling tank 2
'Aeration tank 2' and so on.
Control aeration stage: 1 [there is only one stage specified for each tank]
Sludge digester
Sludge volume: 6000 m3
Save the works.
6.2
PROGRAMMING A CHANGE
Now create a new run. For this simulation we will investigate the effect if two of the
aeration lanes are taken out of service for maintenance.
Start by defining the following operating conditions:
Activated sludge
Initial conditions: In each aeration basin set the viable heterotrophs to 1,000 mg/l,
the viable autotrophs to 100 mg/l, and MLSS 3,000 mg/l.
Activated sludge settling tanks:
Operation: Set the RAS flow to 50 m3/h, the sludge wastage flow to 2.5 m3/h, the
wastage pump run time to 24 hours, wastage cycle time to 24 hours.
48
WRc plc
Tutorials Guide
Viable autotrophs
Viable heterotrophs
10
100
200
2000
Before you can run the simulation you must set the influent sewage data. Select the
influent and right-click with the mouse. Then select 'Generate profile/Advanced.
Now select 'Sinusoidal' and 'Create data file. Specify that the simulation length
should be 96 hours, and that the file name should be 'tut4.inf.
49
WRc plc
Tutorials Guide
At this stage run the simulation and save the results. All we want this first simulation
to do is to give us a reasonable starting point. Having saved the run select 'File/New
run' and select 'End of old run. At the next menu increase the simulation time from
the default of two days to four days.
50
WRc plc
Tutorials Guide
Now we are set up the changes in the flow split. We assume that the lower aeration
lane on the flowsheet is to be taken out of service, and therefore after 48 hours set
the flow split for 'AS Splitter' from 50:50 to 100:0. We then allow the tank to be back
in service after a further 24 hours, and set the flow split for 'AS Splitter' from 100:0
back to 50:50. The simulation will then reflect the effects of the tanks being taken
out of service and the subsequent re-establishment of performance when the tanks
are returned to service.
51
WRc plc
6.3
Tutorials Guide
You can see that the effluent quality deteriorated greatly during the period that all
the flow had to go through only half the activated sludge capacity. Nitrification was
temporarily lost but recovered quickly, while effluent BOD rose to high levels.
Looking at the suspended solids reveals that the settling tanks were not
hydraulically overloaded, so that the constraint on performance was most likely to
be oxygen limitation. A possible conclusion from this simulation is that increasing
the oxygen capacity in the operational lane during maintenance, possibly by a
VITOX boost unit, would improve plant performance.
6.4
52
WRc plc
Tutorials Guide
1.
What would happen to the effluent quality if all aeration in one lane failed? Because you cannot
program a change in the aeration conditions at the start of a simulation you will have to decide
when you would like to pause the simulation and set the maximum and minimum KLa values to
zero in your chosen aeration lane.
2.
3.
Re-design the works so that the two aeration lanes mix their effluent and the result is then split
between the four settling tanks, with the RAS from the two tanks being combined before being
split between the two aeration tanks. Then look at the effects of taking out a single aeration lane,
or a single settling tank.
53
WRc plc
7.
Tutorials Guide
7.1
Select File/New Works. Place the following processes on the drawing board:
1 x Influent
1 x Overflow
1 x two-way mixer
1 x filter
1 x humus tank
1 x sludge
1 x effluent
1 x PID controller - Note that this is not physically connected to any of the other processes
because no
flow actually passes through it. It is placed near the recycle stream upon
which it
acts.
The overflow symbol must be rotated four times to be drawn in the manner shown
above. This is done by right-clicking on the symbol and choosing Rotate.
54
WRc plc
Tutorials Guide
Rename the stream entering the trickling filter to be CONTROLLED STREAM. This
is done by right-clicking on the stream and choosing Input Data/Name.
Notice that the effluent leaves through the overflow. The recycle is connected
through the normal main flow.
Now enter the names and dimensions for the processes as follows:
Trickling Filter:
Name: Default
Model: BOD semi-dynamic
Number of Stages: 5
Number of layers: N/A
Depth: 1.83
Surface Area: 4000
Humus Tank
Name: default
Surface Area: 200
Overflow
Name: Default
PID Controller
Name: Default
Model: Continuous 1
Save the works.
7.2
55
WRc plc
Tutorials Guide
Nothing to change.
Humus Tank
Nothing to change.
Overflow (Operation)
Overflow: 0
PID Controller
(Connectivity)
We are programming the PID controller to measure the flowrate in the controlled
stream and vary the overflow rate of Overflow 1 to keep a constant flow of 100
m3/hr going onto the filter.
Input Stream or Process: Stream
Name: Controlled Stream (This is the stream entering the trickling Filter)
Stage: N/A
Determinand: Flow
Output Stream or Process: Process
Name: Overflow 1
Stage: N/A
Parameter: Overflow rate
(Operation)
Set Point: 100
(Initial Conditions)
Nothing to change.
(Input data/Process calibration)
Mode: Disable - This turns the PID controller off for the first simulation
Action: Positive
Sampling Interval: Default
Proportional Gain: 0.3
Integral Time: 0.25
Derivative Time: 0.1
56
WRc plc
Tutorials Guide
Maximum Output: 300 - This allows flow to be returned at a maximum rate of 300
m3/hr
Minimum Output: 0
Before you can run the simulation you must set the influent sewage data. Select the
influent and right-click with the mouse. Then select Generate profile/Advanced.
Now select 'Sinusoidal' and 'Create data file. Specify that the simulation length
should be 48 hours, and that the file name should be 'tut5.inf.
57
WRc plc
Tutorials Guide
Accept the default values this is an average flow of 100 m3/h,. Now click Close
and select 'Create profile' and accept the defaults.
At this stage run the simulation and save the results. When you click Start the
following warning message will appear:
58
WRc plc
Tutorials Guide
This is telling you that the overflow has been set to 0 m3/hr and all the flow is
therefore spilling. Normally this is a mistake - you do not want everything to flow into
the overflow channel. However, because our effluent leaves via the overflow for this
simulation you should choose No and continue with the simulation.
At the end of the simulation you should save the results and look at the stream
entering the filter (Controlled Stream), the effluent and the recycle streams. The
following results graphs will appear.
From the above results you can see that there is no recycle and the flow onto the
filter is a sine curve with a large variation of flow and load. We will now attempt to
use the PID controller to smooth the flow curve onto the filter.
Choose File/New Run and select to use a warm start as follows:
59
WRc plc
Tutorials Guide
This will allow you to keep all the previous settings use for Run 1.
Right-click on the PI controller and select Input Data / Process Calibration. Select
the mode to be PI control. This will activate the controller to act as a ProportionalIntegral controller.
Save the New Run and then Start the simulation.
When the run has been completed, look at the results profiles for the controlled
stream, the effluent and the recycle streams. The results screens below show the
effect of the PI controller.
60
WRc plc
Tutorials Guide
These results show that the flow onto the filter has been added to where necessary
to attempt to keep it at approximately 100 m3/hr.
Experiment with different values for the proportional gain and the integral time to
assess what effect they have on the stability and speed of response of the control
action. Below is a set of results with the Proportional gain set to 0.8.
61
WRc plc
Tutorials Guide
62
WRc plc
8.
Tutorials Guide
8.1
Now enter the names and dimensions for the process as follows:
Primary Tanks:
Name: Primary Tank 1
Model: BOD
Number of stages: 2
Volume: 300 m3
Surface Area: 100 m2
Save the Works and Create a New Run.
Accept the default values for the Run so that we are carrying out the run for 48
hours at a sewage temperature of 15oC.
Generate an influent file by using a sinusoidal pattern and accept the default values
given by STOAT. Call this file Tut6.inf.
To begin with we will run the simulation using the default settling co-efficient values
of:
k = 7.2
63
WRc plc
Tutorials Guide
These are located under Sewage calibration data as shown in the screen shot
below.
When the run is completed, Save the run and view the results profile for suspended
solids in the settled sewage. It should look like the following results screen.
64
WRc plc
Tutorials Guide
As you can see the average suspended solids in the effluent is 173 mg/l with a
sinusoidal variation about this mean. We will now look at the effect of varying the
settling parameter k on the effluent suspended solids.
8.2
You will now see the sensitivity analysis screen shown below.
65
WRc plc
Tutorials Guide
This allows you to select the required inputs and select what output you wish to see
the effect on. You can select two parameters to vary and these are called 1 and 2.
These parameters can either be from a stream or a process as required.
Select Parameter 1 and Process.
In the Element box Primary Tank 1 will appear since this is the only process in the
works. Now select parameter and a list of parameters that can be varied will appear.
Select Settling coeff K.
We must now specify the values of K that we want to select to assess the effect on
the effluent suspended solids. The default value is 7.2. For this exercise we will vary
K between 3 and 11 in steps of 2. This will allow us to assess the effect on the
effluent of values of K of 3, 5, 7, 9 and 11.
Enter Start = 3
Step = 2
Stop = 11
We must now set the output to be the element upon which we wish to see the effect
of varying K.
Select the variable to be a stream.
Select the display to be time-series - this will show the effect as the run progresses.
Select the name of the stream to be the effluent stream.
66
WRc plc
Tutorials Guide
For each variation of the parameter you will have a run with P=the number of the
chosen parameter for that run i.e. P=3 is the run where the settling coefficient K was
set to a value of 3.
You can see that increasing K from 3 to 11 has the effect of reducing the peak
effluent suspended solids from approximately 290 mg/l at a K value of 3 to
67
WRc plc
Tutorials Guide
approximately 220 mg/l at a K value of 11. This demonstrates how sensitive the
effluent suspended solids is to variation in the settling parameter k.
The next time you wish to open a run you will see a screen something like the one
shown below:
The extra runs are those carried out at the various values of K from 3 to 11. It is
recommended that users who wish to regularly carry out sensitivity analysis on
various parameters make notes on run details otherwise it can be difficult to
differentiate one run from the other.
68
WRc plc
9.
Tutorials Guide
TUTORIAL
7
SEDIMENTATION AND
TRICKLING FILTER
PRIMARY
NITRIFYING
This tutorial covers the use of models to simulate conventional biological filters. It
includes an example of using the BOD semi-dynamic model (BOD) which requires
calibration of heterotroph and autotroph concentrations and also the IAWQ model
(COD) which includes biofilm growth kinetics. The new WRc model (BOD) which
also includes biofilm kinetics is not covered in this tutorial.
9.1
The next step is to enter the names and sizes of plant in each process as follows:
Primary sedimentation tank:
Name: Primary Tank 1
Model: BOD
69
WRc plc
Tutorials Guide
Number of stages: 2
Volume: 500 m3
Surface area: 200 m2
Trickling filter:
Name: Biofilter 1
Model: BOD semi-dynamic
Number of stages: 5 (This model does not divide the biofilm into layers, so use the
default value.)
Depth: 2 m
Surface (plan) area: 2000 m2
Humus Tank:
Name: Humus Tank 1
Surface area: 200 m2
At this stage select Save Works to retain an up-to-date version of the model.
TUTORIAL 7B - IAWQ FILTER MODEL
To generate this model select Save Works As and choose a new name, e.g. Tutorial
7B or IAWQ model. Then input new values where required to give the following:
Primary sedimentation tank:
Name: Primary Tank 1
Model: COD
Number of stages: 2
Volume: 500 m3
Surface area: 200 m2
Trickling filter:
Name: Biofilter 1
Model: IAWQ #1
Number of stages: 2
Number of layers: 3
Depth: 2 m
Surface (plan) area: 2000 m2
Note: Selection of two stages is sufficient to model the growth of heterotrophs in the
upper part of the filter bed to remove BOD (carbonaceous oxidation) and growth of
autotrophs in the lower part of the bed to oxidise ammonia (nitrification).
70
WRc plc
Tutorials Guide
Humus Tank:
Name: Humus Tank 1
Surface area: 200 m2
At this stage select Save Works and then select Close Works.
9.2
9.3
WRc plc
Tutorials Guide
9.4
9.5
72
WRc plc
Tutorials Guide
The next step is to check the details given for humus solids settlement. Right-click
on the humus tank icon. Select Input data/Sewage calibration data. This tutorial
uses the default settings for settlement of humus solids. Namely at an upflow
velocity of 0.72 m/h, the proportion of humus solids which settle out of the effluent is
95%.
With the initial values set for the filter and humus tank, initiate Run 1. On completion
Save run. Then right-click over effluent icon, select Results and choose OK to
present effluent output given below.
73
WRc plc
Tutorials Guide
The output chart indicates that current default settings cause model to predict high
values for effluent SS, BOD and ammonia. Calibration entails increasing the
autotrophs (from 2 to 10 mg/l) to reduce effluent ammonia and increasing the
absorption coefficient (from 0.0001 to 0.0003) to reduce effluent SS.
74
WRc plc
Tutorials Guide
Undertake Run 2 as a Repeat run of Run 1 with the autotroph concentrations set at
10 mg/l to calibrate effluent ammonia and the absorption coefficient set at 0.0003 for
SS calibration (note that the heterotroph concentration is not adjusted until SS are
calibrated). The output from Run 2 given below indicates that the effluent BOD, SS
and ammonia have all improved. Remember to save run.
75
WRc plc
Tutorials Guide
With effluent SS calibrated, further runs are required to adjust the initial
concentration of heterotrophs and hence calibrate effluent BOD. This usually
involves further adjustments to the concentration of autotrophs. The output given
below for run 3 uses a heterotroph concentration of 200 mg/l and an autotroph
concentration of 20 mg/l.
9.6
76
WRc plc
Tutorials Guide
Initiate Run 1 (2 days duration at hourly time steps), using the default values. The
Output Chart below from Run 1 presents flow and quality data for humus tank
effluent. Again it indicates high effluent SS.
77
WRc plc
Tutorials Guide
For calibration (Run 2), select Biofilter/Input data/Process calibration and increase
the value of the attachment coefficient from 0.0001 to 0.0003 m/h.
For calibration (Run 2), select Biofilter/Input data/Sewage calibration data and
increase the value of the hydrolysis rate from 0.07 to 0.3 1/h.
78
WRc plc
Tutorials Guide
Predicted final effluent qualities for Run 2 (shown below) indicate that increasing the
attachment coefficient has significantly improved effluent SS and hence effluent
biodegradable COD. Effluent ammonia is unchanged.
Since this model includes biofilm growth kinetics, the concentrations of heterotrophs
and autotrophs grow in response to the influent conditions. There is no need for
79
WRc plc
Tutorials Guide
manual adjustment of biomass concentrations. The default values are set for typical
nitrifying conditions.
The effect of biofilm growth on performance is best demonstrated by reducing the
autotroph concentration at start up. Create Run 3 (7 days at 1 hour time steps) as a
repeat of Run 2. Select Biofilter/Input data /Initial conditions/Biofilm stage 1 and
reduce the autotrophs from 0.1 to 0.01 mg/l. Repeat concentration reduction for
Biofilm stage 2.
The output from Run 3 shown below indicates that after a period of 1 week the initial
high effluent ammonias (10 to 30 mg N/l) have reduced to significantly lower values
(0 to 20 mg N/l). The cause is growth of autotrophs within the biofilm model.
80
WRc plc
Tutorials Guide
Right-click over filter and select Results/Time series data. The output presented
below for the first and last hours shows that for the upper/lower halves of the filter
(stages 1 and 2), the autotroph concentration has increased from 0,12/0,21 to
0,73/1,49 mg/l and the film thickness has grown from 69/53 microns to 84/63
microns. These results demonstrate the commonly-held view that nitrification occurs
in the bottom of the filter and film growth is highest in the top of the filter.
81
WRc plc
9.7
1.
Tutorials Guide
82
WRc plc
Tutorials Guide
10.1
The next step is to choose the models and enter the names and sizes of each item
of plant as follows:
Balancing tank:
Name: Balancing Tank 1
Model : Version 2
Sequencing batch reactor:
Name: SBR tank 1
Model: WRcBOD
83
WRc plc
Tutorials Guide
Number of layers: 8
Maximum volume (m3): 2000
Minimum volume (m3): 1400
Area (m2): 450
Wastage layer: 8
At this stage select Save works to save the works setup.
10.2
click
on
the
influent
icon
and
choose
Generate
profile/
WRc plc
Tutorials Guide
10.3
85
WRc plc
Tutorials Guide
2.
3.
4.
Decant for 1 hour (N.B. The wastage of activated sludge will also occur at this part of the
cycle).
Select the more button and choose At all times for the growth equations as
indicated below:
86
WRc plc
Tutorials Guide
Right-click on the SBR tank and select Input data/Operation. Change decant flow 1
and wastage flow 1 to the values indicated overleaf.
87
WRc plc
Tutorials Guide
Right-click on the SBR tank and select Input data/Initial conditions. Change the
MLSS to 4400 mg/l in all eight stages. All other parameters should be left at their
default values as indicated below:
88
WRc plc
Tutorials Guide
Select File/Save Run. Initial Run 1 - Cold Start. Start the run using the play button.
Once Run 1 is completed, select File/Save Run. Now carry out a second run as a
warm start from the end of Run 1. Select File/New Run and choose end of old run
(warm start), then choose Run 1 - Cold Start, select okay. Choose start and finish
dates to give a 408 run. Select File/Save Run and start to initiate the new run. On
completion of the run, select File/Save run.
Right-click over the effluent icon, select Results and Flow only then choose okay.
The resulting window should look like the one given below.
89
WRc plc
Tutorials Guide
The graph shows the nature of the flow from the SBR unit. The total cycle time for
the SBR is 6 hours. Treated effluent will be pumped from the SBR during the decant
cycle. Pumping of effluent is at a constant rate, in this case 600 m3/h, and will
continue for one hour or until the minimum volume has been reached. It should be
noted that the statistics shown below the graph are for the entire run and not just for
the decant part of the cycle. The flow from the SBR is either 0 or 600 m3/hr.
To obtain data regarding sanitary parameters, right-click over the effluent icon,
select Results and choose BOD and SS only, then choose okay. The resulting
window should look the one given below.
90
WRc plc
Tutorials Guide
Again, the statistics are given for the whole of the run and not just for the period
when effluent is leaving the SBR. To obtain the mean BOD and SS results for the
run, it is necessary to carry out a simple mass balance calculation. This is done
using the flow data and the total mass figures given in the results window above.
For longer STOAT runs on SBR systems using less regular input profiles, the
calculation of mean BOD and SS results using mass balances is more complex and
time consuming. An alternative approach is to connect the effluent line from the
SBR unit to a balance tank which has been set up with an infinite volume and a zero
discharge flowrate. At the end of the each run, the balance tank will contain all the
effluent discharged during the run and the results output will provide the mean
sanitary parameters. The profiles from the SBR unit can still be monitored by looking
at the results output for the line leading to the balance tank. The same technique
can be used to examine the surplus activated sludge results.
It is possible to string more than one SBR unit together and have them operating in
a sequence. For example, to operate two units together would need a system laid
out as follows:
91
WRc plc
Tutorials Guide
In this example, the effluent from the two SBR units is being pumped to a balance
tank to make interpretation of the effluent results easier.
It is important that when a works containing more two SBRs being used that the
phase times are set correctly. The phase time is set on the Process calibration
window. If it is set at zero the cycle for that SBR unit will begin at the start of the run
but if it is set at, for example, 3 then the start of the SBR cycle will be delayed by 3
hours. Care must be exercised when setting up several SBR units. The phase times
must be set to avoid different SBR units trying to fill at the same time.
Running SBR models over long periods at output step of 0.25 hour will generate
large quantities of output data. This can use up considerable amounts of disc space.
Users should examine the importance of the results from each line and process and
consider turning off the generation of results for those which are less important. This
will cut down on the disc storage space required for each run. This is achieved by
right-clicking on the line or process in question and then selecting Reporting options.
The user should then click on Save results and final choose okay. During the run no
results files will then be generated for this line or process.
92