Friday, July 26, 2013

What are the Units for the five St. Venant Flow Terms in SWMM 5 and InfoSWMM?

Subject:  What are the Units for the five StVenant Flow Terms in SWMM 5 and InfoSWMM?

The new flow (Q) calculated at during each iteration of time step as

(1)        Q for the new iteration = (Q at the Old Time Step – DQ2 + DQ3 + DQ4 ) /   ( 1.0 + DQ1 + DQ5)

In which DQ2, DQ3 and DQ4 all have units of flow (note internally SWMM 5 has units of CFS and the flows are converted to the user units in the output file, graphs and tables of SWMM 5).  

The equations and units for DQ2, DQ3 and DQ4 are:

(2)        Units of DQ2 = DT * GRAVITY * aWtd * ( H2 – H1) / Length = second * feet/second^2 * feet^2  * feet / feet = feet^3/second = CFS

(3)        Units of DQ3 = 2 * Velocity * ( aMid – aOld) * Sigma = feet/second * feet^2 = feet^3/second = CFS

(4)        Units of DQ4 = DT * Velocity * Velocity * ( aMid – aOld) * Sigma / Length = second * feet/second * feet/second * feet^2 / feet = feet^3/second = CFS


The equations and units for DQ1 and DQ5 are:

(5)        Units of DQ1 = DT * GRAVITY * (n/PHI)^2  * Velocity / Hydraulic Radius^1.333 = second * feet/second^2 * second^2 * feet^1/3 * feet/second / feet^1.33 = Dimensionless

(6)        Units of DQ5 = K * Q / Area / 2 / Length * DT = feet^3/second * 1/feet^2 * 1/feet * second = Dimensionless

The five components calculated at the each time step and at each iteration during a time step and together predict the new Link Flow (Q) in SWMM 5.  The value of the different components can be seen over time in Figure 1 and as a component percentage in Figure 2 and 3.

Figure 1:  The Five StVenant Components over time.

Figure 2:  The relative magnitude of the St Venant terms over time for the same for the same link as in Figure 1.



Figure 3:  The relative magnitude of the St Venant terms over time for the same for the same link as in Figure 1 shown in an area chart normalized to 100 percent.  Normally the DQ1 and DQ2 terms balance each other except for backwater conditions or reverse flow in which the terms DQ3 and DQ4 can dominate.


How to use SWMM 5 DOS to make an Output Table in the RPT file

Subject:   How to use SWMM 5 DOS to make an Output Table in the RPT file

You can make tables of the node,  link  and  Subcatchment output data in SWMM 5 if you use the DOS SWMM 5 program but not the Windows DLL.   Step 1 is to create the DOS batch fileStep 2 is to select the nodes, links and subcatchments, Step 3 is to run the batch file and Step 4 is to view the RPT tables or extract the data to Excel.  You can do this directly in the InfoSWMM and H2OMAP SWMM graphical user interfaces by using Run Manager, Step 5 to select the nodes, links and subcatchments andStep 6 to view the tables in the browser.

Step 1.   Make a Batch File to call the DOS SWMM 5

swmm5.exe Example1.inp  D:\swmm5.0.022\bob.rpt
pause

Step 2.  Add the nodes,  links and  subcatchments tables you want to generate in the RPT file


[REPORT]
CONTROLS         NO
LINKS                 ALL
NODES               ALL
SUBCATCHMENTS ALL

Step 3.  Run the Batch file


Step 4.  Extract the Tables from the RPT File of SWMM 5


  <<< Node 17 >>>
  ---------------------------------------------------------------------------------
                           Inflow  Flooding     Depth      Head       TSS      Lead
  Date        Time            CFS       CFS      feet      feet      MG/L      UG/L
  ---------------------------------------------------------------------------------
  JAN-01-1998 01:00:00      0.000     0.000     0.000   980.000     0.000     0.000
  JAN-01-1998 02:00:00      5.910     0.000     0.608   980.608    26.065     5.213
  JAN-01-1998 03:00:00     11.935     0.000     0.887   980.887    22.826     4.565
  JAN-01-1998 04:00:00     18.291     0.000     1.143   981.143    21.176     4.235
  JAN-01-1998 05:00:00     12.640     0.000     0.916   980.916    22.426     4.485
  JAN-01-1998 06:00:00      3.925     0.000     0.493   980.493    27.578     5.516
  JAN-01-1998 07:00:00      0.388     0.000     0.161   980.161    38.134     7.627
  JAN-01-1998 08:00:00      0.067     0.000     0.071   980.071    26.937     5.387
  JAN-01-1998 09:00:00      0.029     0.000     0.048   980.048     1.878     0.376

Step 5.  InfoSWMM and H2OMAP SWMM dialog for selecting nodes, links and subcatchments for generating a detailed RPT filetable.


Step 6.  Sample InfoSWMM and H2OMAP SWMM RPT Tables if Report Options is used.

How is RHO computed for a Link in SWMM 5?

Subject:  How is RHO computed for a Link in SWMM 5?

SWMM 5 uses a sliding metric to calculate the cross sectional area and hydraulic radius used in the simulation for the link dynamic flow.  The area and hydraulic radius used moves from the Upstream End of the Link to the Midpoint of the Link based on the Froude number and a few other considerations (see Figure 1 for the other considerations).

The area and hydraulic radius used as a function of the Froude Number:

1.   Upstream cross sectional area and upstream hydraulic radius is used when the Froude Number > 1
2.   Midpoint sectional area and hydraulic radius is used then the Froude Number is < 0.5
3.   An area and hydraulic radius between the upstream and midpoint sections is used then the Froude Number is between 0.5 and 1


Figure 1:  How to compute RHO based on the Froude Number.
Figure 2:  The computed value of the Froude Number and the value of RHO over time.

Figure 3: Relationship between the upstream area, midpoint area and the actual area used during the simulation.

Hysteresis Effect in the Link Flow versus Depth Relationship in SWMM 5

Subject:  Hysteresis Effect in the Link Flow versus Depth Relationship in SWMM 5

You can often get a hysteresis effect for the Flow versus Depth relationship in SWMM 5 due to the five component St. Venant equation used to simulate the flows (http://swmm5.blogspot.com/2010/12/what-are-units-for-five-st-venant-flow.html) .  A hysteresis effect is having two or more flow values for the same depth value in the link. For example, this image shows how the link 8100 has a different flow for the same depth in the rising and falling limb's of the hydrograph.  This is due to the different values for the upstream and downstream head, hydraulic radius and cross sectional area during the falling and rising hydrograph, respectively.

Flow Units In InfoSWMM may be different then the Output Link Flow Units

Note:  Flow Units In InfoSWMM may be different then the Output Link Flow Units

The flows units selected in Run Manager determines the flow units of all incoming units including DWF, Inflow Time Series and other features in pump curves and other curves.  The output unit manager determines what you see when you make a graph of the link flow.  For example, you can have dry weather inflow of CFS and output units of GPM or MGD if you so request and set the correct flags in the interface.

 

Export from WeatherUnderground using the CSV File Export Option to InfoSWMM

Note:  Export from WeatherUnderground using the CSV File Export Option to InfoSWMM

 Weather Underground is a site that provides excellent local weather information in the form of graphs, tables and csv files. You can use the data very easily in InfoSWMM by copying from Excel to a time series in InfoSWMM. Here is the rainfall for a storm event in Tampa, Florida in September 11, 2010
Step 1: Export from WeatherUnderground using the CSV File Export Option


Step 2: The data imported from the csv file to Excel and after the text to columns tool is used looks like this in Excel. The data is now ready to be imported into InfoSWMM after the time column is adjusted to fall on even 5 minute intervals. In Excel you can use the formula @ROUND((B2)/"0:05:00",0)*"0:05:00" to round all of the time values to 5 minutes. If you do not do this step then you will have problems in InfoSWMM due to the rainfall interval not being equal to the defined raingage interval.



Step 3: You will need to format the new rounded time as a time format for import into a InfoSWMM time  series.  The time series is created in the operation tab of the attribute browser.



Step 4: Open up and make a new time series in InfoSWMM.



Step 5: Copy and then paste the date, rounded time column and rainfall column into the InfoSWMM time series columns.


 Step 6:  Make a raingage in the DB Table in InfoSWMM that will use the time series you just made.  In the case of the Weather Underground data we will use inches, intensity, a rainfall interval of 5 minutes, time series and the name of the time series.  SCF should be 1 for Snow conversion and do not need to include a Filename or Station name as we are not using an external file.



Time Step Selection in InfoSWMM and SWMM5

1st The time step you use in SWMM 5 is controlled from the top by the rainfall interval (Figure 1):

1.   All of your time steps should be less than the rainfall interval,
2.   The hydrology time step should be less than or equal to the smallest raingage rainfall interval in your network,
3.   The hydraulic time step should be less than or equal to the hydrology time step and should be based on the hydraulic needs of the your network.  Short length links, pump and weirs may require a smaller maximum hydraulic time step.

2nd The report time step controls what you see in the graphics output of SWMM 5. If you see a large difference between that you see in the graphics output and the report text file it is because you have a large difference between the report time step and the average time step used during the simulation.

Solution: If there is a large discrepancy in the graphics and report text file then the best solution is to reduce the maximum time hydraulic time step so it is closer to the average time step and also to make the report time step closer to the Maximum time step (Figure 2).

Figure 1:  Relationship between the rainfall, hydrology and hydraulic time steps.


Figure 2:  Relationship between the minimum, average and maximum simulation time steps and the report time step.


InfoSewer Flow Attenuation Sensitivity

InfoSewer Flow Attenuation Sensitivity 

The three Run manager parameters, Maximum Number of Segments, Minimum Travel Distance and the Minimum Travel Distance in InfoSewer and H2OMAP Sewer affect the shape and flow attenuation of the flow in a link.  The effect of using the flow attenuation is to reduce the peak flow and spread out the flow compared to the No Flag option (Figure 1). 

Figure 1.  Effect of the Flow Attenuation Option in infoSewer and H2OMAP Sewer

InfoSewer Inflow Control for a PUMP

InfoSewer Inflow Control for a PUMP

You can control the pumps in InfoSewer and H2OMap Sewer by using a Pump Control which will control the pump based on:

1.       Volume
2.      Level
3.      Discharge
4.      Inflow
5.      Time

If you use a By Inflow control the pump speed of the pump is increased or decreased to make the Upstream Wet Well Level Constant (Figure 1).
Figure 1.  Inflow Control for  PUMP in InfoSewer and H2OMAP Sewer will change the Pump Speed of the pump to make the Wet Well level constant

InfoSewer Maximum Number of Segments Sensitivity

InfoSewer Maximum Number of Segments Sensitivity

The three Run manager parameters, Maximum Number of Segments, Minimum Travel Distance and the Minimum Travel Distance in InfoSewer and H2OMAP Sewer affect the shape and flow attenuation of the flow in a link.  The effect of decreasing the Minimum Travel Distance is to reduce the peak flow and spread out the flow as the number of segments increases(Figure 1).  The smaller the minimum travel distance, which has the effect of increasing the number of segments in a link up the limit of the parameter Maximum Number of segments, the smaller the peak and the more attenuation of the flow in InfoSewer.

There is three ways to control attenuation in InfoSewer: (1) use the flow attenuation option, (2) increase the Maximum Number of Segments per link and (3) decrease the Minimum travel distance.    You can also use all three parameters to make more segments per link for long links and only a few segments for short links.

Tuesday, July 23, 2013

Smoother Switching Between Pumps in SWMM 5 - A better simulation of a VSP?


Subject - Smoother Switching Between Pumps in SWMM 5 - A better simulation of a VSP?

An oft requested feature in SWMM 5 is the ability to better simulate a variable speed pump.   The basic feature we are trying to model is multiple pumps between two nodes, one pump curve for all of the pumps and the ability to turn on and turn off the pumps based on either the head or depth at a Wet Well (Figure 1).  You can turn on or off the pumps Pump1, Pump2 and Pump3 based on the depth at the Wet Well but this feature is stepwise linear and usually uses three pump curves.  A better way to simulate this feature is to use the SWMM 5 Real Time Rules (RTC) to simulate the Pump setting based on a control curve.  

The Pump flow at any time step is the Pump Flow estimated from the Pump Curve (Figure 2) * The Pump Setting (Figure 3)

Each of the three pumps has a different Control Curve (Figure's 4, 5 and 6, respectively) which turns on or turns off the Pump based on a range of Wet Well Depths.  The overall effect is that the total flow summing all three pumps together is smoother (Figure 7 and Figure 8) and the user can simulate different pump speeds based on the same pump curve depending on which pump is currently on.


Figure 1.   Example RTC Rules and VSP Pumps in a SWMM 5 model.

Figure 2.  The Pump Curve Used for all 3 Pumps
  
Figure 3.  The Pump Setting for all Three Pumps


Figure 4.   Pump Control Curve for Pump 1.  The Pump has a Setting of ¼ between 0.5 and 3 feet at the node Wet Well and zero otherwise.


Figure 5.   Pump Control Curve for Pump 2.  The Pump has a Setting of 1/2 between 3 and 5 feet at the node Wet Well and zero otherwise.

Figure 6.   Pump Control Curve for Pump 3.  The Pump has a Setting of 1 above 5 feet at the node Wet Well and zero otherwise.

Figure 7.  The Flow in all 3 Pumps.
  
Figure 8.  The total flow from all three Pumps to the downstream node.


Friday, July 19, 2013

Leaping Weir Example in SWMM 5 and InfoSWMM, Alternative

Leaping Weir Example in SWMM 5 and InfoSWMM, Alternative

This is an example SWMM 5 model that can be imported into InfoSWMM or H2OMap SWMM using the Exchange/Import Command.   The low flow falls over the berm of the leaping weir into a rectangular open channel but the the "falls" is governed by an OULET Depth/Discharge Type in SWMM 5.  The flow increases in the OUTLET until a depth of 1 feet is reached where the weir starts to operate.  The OUTLET increases in flow from zero to 1 feet but still flows at a reduced rate when the weir starts to operate.  The weir stops flowing when the depth goes below 1 foot on the berm.

SWMM 5 Input File Link
Background Image
Leaping Weir With Low Flow Depth/Discharge OUTLET

Tuesday, July 9, 2013

H2OMAP Sewer and InfoSewer DB Queries to find Loading Manholes

Subject:   H2OMAP Sewer and InfoSewer DB Queries to find Loading Manholes

This Database Query (DB) will find all loading Manholes with a Load1 and a Load2 greater than 0.  InfoSewer has up to ten possible loads in a Manhole.  You can use the DB Query (Figure 1) to create a Query Report to show all of the Manholes with a non zero loading for both Load1 and Load2.  New Queries can be made to show any combination of the ten Manhole Loadings either by altering the DB Query or creating a new DB Query.

Figure 1. DB Query to find Manholes with Load1 and Load2 greater than 0.0



Figure 2.  Query Report for the DB Query


Thursday, July 4, 2013

How to Use Group Delete to Make A Smaller Model in SWMM 5

How to Use Group Delete to Make A Smaller Model in SWMM 5


Use Select All, Group Delete and the Tag Feature
  1.        Label or Tag all of your Subs as Out and make the one you really want to simulate called Domain
  2.       Select the whole model using the Select All command
  3.       Delete all Subs with Out and only the Domain will remain


GitHub code and Markdown (MD) files Leveraging

 To better achieve your goal of leveraging your GitHub code and Markdown (MD) files for your WordPress blog or LinkedIn articles, consider t...