Post on 23-Apr-2018
Standards
Certification
Education & Training
Publishing
Conferences & Exhibits
Simulate Your Way out of a Difficult Real Time Control Problem Automatically Controlling Gates to Reduce Combined Sewer Overflows (CSOs)
2013 ISA Water / Wastewater and Automatic Controls SymposiumAugust 6-8, 2013 – Orlando, Florida, USA
Speaker: Maxym Lachance, Eng. (Tetra Tech)
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 2
Presenter
• Maxym Lachance, Eng., is a project engineer with Tetra Tech, holding a college degree in electronics and a bachelor's degree in automated production engineering (Montreal)
• 12 years of experience• 5 years with Tetra Tech (Wastewater Collection)
– Design, start-up, commissioning, calibration, etc.
• Involved in many RTC projects– Ottawa, ON; Edmonton, AB; Bordeaux, France;
Wilmington, DE; etc.
• Winner of the Tetra Tech 2012 Technical Achievement Award
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 3
Presentation Outline
• Background• RTC#4 Site Description• Control issues at the RTC#4 site• Methodology• Simulating the Existing Behavior• Development of New Command Rules• On-site performance• Benefits of the project
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 4
Background
• Edmonton, Alberta, Canada
• Early Action Control Plan for CSO Strategy
– New RTC Sites– W12 Syphon
(Diverting flows to the south side)
• RTC#4 site start-up in 2003
• Control issues despite efforts to improve site performance
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 5
RTC#4 Site Description
• Control objective:– Inline storage
• Type of Control:– Local reactive RTC based
on level measurements
• Control rules:– Rule 1 – maintain d/s level
at half pipe– Rule 2 – do not exceed
maximum u/s level
• Sensor locations:– u/s: 0.5m from gate – d/s: 40 m from gate
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 6
RTC#4 Site Description
• Dry weather flow (DWF)• Gate open at 100%
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 7
RTC#4 Site Description
• Wet weather flow (WWF)– Downstream level control initiate inline storage– Upstream level control override downstream control rule
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 8
Control Issues
• D/S set point overshoot during the beginning of event
2013
ISA
WW
AC
Sym
posi
um
Aug
6-8
, 201
3 –
Orla
ndo,
Flo
rida,
US
A9
Co
ntr
ol I
ssu
es
RT
C4
Pro
ce
ss
His
tory
3000
3500
4000
4500
5000
5500
6000
6500
7000
7500
8000
8500
9000
9500
10000
10500
11000
00:00:00-juil-12
04:48:00-juil-12
09:36:00-juil-12
14:24:00-juil-12
19:12:00-juil-12
00:00:00-juil-13
04:48:00-juil-13
09:36:00-juil-13
14:24:00-juil-13
19:12:00-juil-13
00:00:00-juil-14
04:48:00-juil-14
09:36:00-juil-14
14:24:00-juil-14
19:12:00-juil-14
00:00:00-juil-15
04:48:00-juil-15
09:36:00-juil-15
14:24:00-juil-15
19:12:00-juil-15
00:00:00-juil-16
04:48:00-juil-16
09:36:00-juil-16
14:24:00-juil-16
19:12:00-juil-16
00:00:00-juil-17
04:48:00-juil-17
09:36:00-juil-17
14:24:00-juil-17
19:12:00-juil-17
00:00:00-juil-18
Tim
e
Depth (mm)
CO
NTR
OL
GA
TE P
OS
ITIO
ND
OW
NS
TR
EA
M C
ON
TR
OL
SE
TP
OIN
TT
RU
NK
SE
WE
R D
EP
TH
UP
ST
RE
AM
DO
WN
ST
RE
AM
TR
UN
K S
EW
ER
DEP
TH
UP
ST
RE
AM
CO
NTR
OL
SE
TP
OIN
T
•E
xces
sive
gat
e m
ovem
ents
(C
ontr
olle
r in
stab
ility
)•
Inst
abili
ty o
f mai
ntai
ning
u/s
and
d/s
leve
l set
poi
nt
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 10
Methodology
• Objective: evaluate possible solution without any field instrumentation and civil change
• Development of off-site simulator– Not based on theoretical model simulation– Representative of field conditions and specific hydraulic
behaviors, validated with real data
• Validation of the simulator by reproducing exixting conditions
• Development of new control strategies• Implementation of new control strategy on site• Performance evaluation
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 11
Simulator - Data Collection
• Review of the current control strategy– Type of controller used– Data processing?
– Averaging– Sampling
– Requires a thorough review of the PLC code– Undocumented data manipulation
– Need to better understand the issues– Avoid repeating the same control mistakes
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 12
Simulator - Data Collection
• Equipment specifications– Water level sensor
– Type– Location (invert)– Calibration range
– Actuator– Type– Speed– Positioning dead band– Modulating limitations
– Duty cycle– Maximum number of starts per hour
– Automation technology– PLC type
– Gate– Type– Size and shape– Location – Invert of the gate
– Sewer (u/s and d/s)– Size and shape– Slope
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 13
Simulator - Data Collection
• Monitoring data collection– Accurate data– Validated data– Available at a good sampling rate
– One minute interval with fixed time stamp
• Identity type of events where control issues are prevalent• Retrieve data from specific rainfall events
– Measured levels– Gate position
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 14
Simulating the Existing Behavior
• Simulator input– Inflows (based on a real rainfall event)
• Simulator functional blocks to reproduce on-site hydraulics– Flow under the gate– Gate controller (actuator and gate)
– PID– Actuator
– Upstream level– Storage– Transient effect (i.e. surface waves caused by gate movement)
– Downstream level– Travel delay– Flow contraction
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 15
Simulating the Existing Behavior
• Calculating simulator inflows– Measured flows are not available at RTC#4– Based on an actual measured rainfall event
• Flow under the gate (FUG) can be calculated– Upstream level– Downstream level– Gate position
• Stored volume (∆V)– Available upstream level
versus volume relationship
Site Inflow FUG V= − ∆
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 16
Simulating the Existing Behavior
• Upstream level simulation– Sum of the steady state and
transient level– Steady state: Depth versus
storage relationship
– Transient effect: Function of the gate movement (exponential filter)
dVSite inflow FUG
dt= −
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 17
Simulating the Existing Behavior
• Downstream level simulation– Based on the flow under the gate
– Upstream level– Downstream level– Gate position
– Account for d/s level sensor location
– Flow traveling time (40 m d/s)– Peak attenuation (exponential
filter)
– Convert flow to level with manning equation
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 18
Simulating the Existing Behavior
• Controller – Gate position (actuator)– Programmable logic controller
– PID equation:
– Actuator– Speed– Dead band– Position error
1 ( )* ( ) * ( ) *c D
I
D PVOutput K E E dt T
T dt
= + +
∫
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 20
Development of New Command Rules
• Address control issues– Actuator not rated for modulation (60 starts/ hours)– Gate too large (opening between 0-10% to maintain desired level)– Upstream level meters too close to the gate (transient effect)– Downstream level meters far from the gate (travel delay)– Set point overshoot at beginning of the event
• Testing different controllers and parameters– PID and AI (Adaptive Integrative)– Gains, control loop update, dead band
• Testing the addition of data processing function– Using moving average to filter level data
• Testing of gate position during DWF
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 22
Major Findings from Off-site Test
• Confidence in Matlab® Simulator to reproduce field conditions for existing and new control rules
• Possibility to stabilize the site with new control rules without civil or instrumentation modifications– PID selected over AI (no predictive aspect)– Filtering of level data is important to provide stable input for the PID
controller– Control loop update longer than transient effect and travel time to
downstream sensor– U/S controller (100 seconds)– D/S controller (60 seconds)
– Dry weather gate opening at 25%
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 23
On-site Performance
• Performance follow-up for 5 rainfall events• Eliminated the set point overshoot
– Before: Overshoot of ≈40 cm– After: No overshoot
– One case where overshoot was 7 cm (reduction of 82%)
• Upstream level oscillation reduced by 80%– Before : ±50 cm (100 cm span)– After: ±10 cm (20 cm span)
• Downstream level oscillation reduced by 80%– Before : ±25 cm (50 cm span)– After: ±5 cm (10 cm span)
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 25
Benefits of the Project
– Provides alternatives testing methodology where standard methods have failed
– Eliminates the risks related to on-site testing/calibration– Potential overflows– Potential flooding– Potential surcharge
– Off-site fine tuning of controller under various conditions– Eliminates the need to chase storm events– May take place in dry periods and be ready for the control season
– Eliminate costly site upgrades
2013 ISA WWAC Symposium Aug 6-8, 2013 – Orlando, Florida, USA 26
Summary
– Simulation is a powerful tool to resolve RTC issues – It is only possible when onsite data is available
– Simulation requires good data collection– Current control strategy– Validated historical data (level and gate position)– Equipment specifications/limitations
– Simulations are reliable if validated by the reproduction of existing conditions
– Good identification of the control issues– Good characterization of the hydraulic behavior
– The simulation allowed for a wide range of controller testing– Gains, loop update, filtering, etc.– Quickly and safely
– Simulation results can be reproduced onsite