Latest Activity

Profile Icon
Robert Dickinson commented on Robert Dickinson's group 'ExtraVariables'
QA/QC version based on v22 of EPA SWMM 5 with the ability to read older SWMM 5 OUT files. swmm5.dll Epaswmm5.exe
2 hours ago
Profile Icon
Robert Dickinson commented on Robert Dickinson's group 'Stream of Information'
Video: How Snowflakes Are Formed February 4th, 2012 | Posted by Jaime Menchén in Science Videos This time-lapse video lasts 11 seconds, with no music or voice-over. And still you’ll want to see it over and over again. The…
3 hours ago
Profile Icon
4 blog posts by Robert Dickinson were featured 10 hours ago
Profile Icon
Blog posts by Robert Dickinson 10 hours ago
Profile Icon

[gickr.com]_cf9284f4-d453-2834-0dff-67895a933b33

Photo posted by Robert Dickinson 12 hours ago
Profile Icon

This is a galaxy

This is a galaxy. Or is it? A remix of material originally produced for BBC Stargazing Live 2012 If you liked this video, follow me on twitter to hear about ...
Video posted by Robert Dickinson 18 hours ago
Profile Icon
2 blog posts by Robert Dickinson were featured yesterday
Profile Icon
Blog posts by Robert Dickinson yesterday
Profile Icon
Fateme Fallah replied to Fateme Fallah's discussion 'Uncertainty Analysis'
Dear Lionel, This matter is explained in Appendix D of SWMM manual under the title of “Command line SWMM”. So in MATLAB you can use below format under DOS window: "The address of place that SWMM is there"   input…
Saturday
Profile Icon
Robert Dickinson commented on Robert Dickinson's group 'Stream of Information'
Now the new images, courtesy of the Suomi NPP satellite (2012): The above two photos are pretty much what you would see with your naked eyes if you were at the altitude of this satellite.  It's humbling to realize that all you…
Saturday
Profile Icon
ThumbnailThumbnailThumbnail
glenn gradin, Bryant McDonnell and Lionel joined SWMM5 - Stormwater Management Model Thursday
Profile Icon
Lionel replied to Lionel's discussion 'Linking Matlab with SWMM5'
Thanks Robert for your prompt help!
Thursday
Profile Icon
Lionel replied to Fateme Fallah's discussion 'Uncertainty Analysis'
Hi Fateme Fallah,   I am doing something similar but in my case I am varying the infiltration factor. I am not very good with Matlab so require a bit of help on the coding. I would like to check if you have been successful in your attempt to…
Thursday
Profile Icon
Profile Icon

Linking Matlab with SWMM5

Hi, I am currently trying to use Matlab to create a set of random values and inputting these random values into SWMM 5 to vary the different parameters (e.g. decay constant) so I will get a range of results. Has anyone done it before? Thanks!See More
Discussion posted by Lionel Thursday
Profile Icon

North Carolina City Chooses InfoSewer

North Carolina City Chooses InfoSewerArcGIS Based Sewer Modeling Package Helps Hendersonville, NC Model and Manage Its Collection SystemBroomfield, Colorado, USA, January 31, 2012Innovyze, a leading global innovator of business analytics software and technologies for wet infrastructure, today announced the City of Hendersonville, North Carolina, has selected InfoSewer for ArcGIS (Esri, Redlands, CA) as its sewer modeling platform.InfoSewer has helped define the standard in the industry for…See More
A blog post by Robert Dickinson was featured Tuesday
Profile Icon

North Carolina City Chooses InfoSewer

North Carolina City Chooses InfoSewerArcGIS Based Sewer Modeling Package Helps Hendersonville, NC Model and Manage Its Collection SystemBroomfield, Colorado, USA, January 31, 2012Innovyze, a leading global innovator of business analytics software and technologies for wet infrastructure, today announced the City of Hendersonville, North Carolina, has selected InfoSewer for ArcGIS (Esri, Redlands, CA) as its sewer modeling platform.InfoSewer has helped define the standard in the industry for…See More
Blog post by Robert Dickinson Tuesday
Profile Icon
Robert Dickinson left a comment for oliver kemp
Welcome Oliver!
Tuesday
Profile Icon
oliver kemp is now a member of SWMM5 - Stormwater Management Model Jan 31
Profile Icon
Design Storms

Video posted by Robert Dickinson Jan 31

How to Use SWMM 4 Rainfall Files in SWMM 5

If you are using the option

#SWMM4_RAINFALL   

 Which reads a SWMM 4 Binary Rainfall Interface File and is entered in the dialog Data=>Title/Notes 

the SWMM 5 program will read a SWMM 4 Unformattted Rainfall File but it will not know how many GAGES it needs to allocate for the SWMM 4 .RIN file.  We cannot put this value in the SWMM 5 input data file because the actual values of the SWMM 5 input data file are not read until AFTER the memory is allocated in the SWMM 5 C code.  

We now get around this limitation by entering the maximum number of expected raingages in the SWMM 5 GUI using the command Data=>Options=>Advanced=>SWMM 4 Gages in the Rin File.

The number of entered gages is sent to the SWMM 5 DLL engine by using the swmm_open command:    

swmm_open(f1, f2, f3, GlobalRain); 

 where,   f1 = name of input file
              f2 = name of report file
              f3 = name of binary output file
 GlobalRain = number of SWMM 4 Rin Gages

 If the number of SWMM 4 Rin Gages (GlobalRain) is 0 then the SWMM 5 engine will allocate and process the raingages as it normally does.  This methodology will eliminate the need for multiple SWMM 5 engines and also eliminate the problem of simulating only one out of many raingages if you use the wrong SWMM 5 engine.

if you use the #SWMM4_RAINFALL then only one raingage is defined in the SWMM 5 input file.   The File Name should be the name of teh SWMM 4 .rin file. The SWMM 5 engine will read the number of raingage locattions from the SWMM 4 .rin file and allocate enough memory for each gage.  The output text file of SWMM 5 will list each of the gages that it found along with the precipitation per gage as shown below.

  ********************                          
 * Raingage Summary *                          
 ********************                          
                                         Data  
 Name                Data Source         Type  
 -------------------------------------
 GAGE1               C:\Documents and Settings\D
 GAGE2               C:\Documents and Settings\D
 GAGE3               C:\Documents and Settings\D
 GAGE4               C:\Documents and Settings\D
 GAGE5               C:\Documents and Settings\D
 GAGE6               C:\Documents and Settings\D
 GAGE7               C:\Documents and Settings\D
 GAGE8               C:\Documents and Settings\D
 GAGE9               C:\Documents and Settings\D
 GAGE10              C:\Documents and Settings\D
 GAGE11              C:\Documents and Settings\D
 GAGE12              C:\Documents and Settings\D
 GAGE13              C:\Documents and Settings\D
 GAGE14              C:\Documents and Settings\D
 GAGE15              C:\Documents and Settings\D
 GAGE16              C:\Documents and Settings\D
 GAGE17              C:\Documents and Settings\D
 GAGE18              C:\Documents and Settings\D
 GAGE19              C:\Documents and Settings\D
 GAGE20              C:\Documents and Settings\D
 GAGE21              C:\Documents and Settings\D
 GAGE22              C:\Documents and Settings\D
 

How it works in the SWMM 5 C Code

     // --- count number of objects in input file and create them
    input_countObjects();
    // Nobjects for GAGES should be defined beforehand
    // for reading SWMM 4 .rin files
    // This is now set by the user in the SWMM 5 GUI
    if( GlobalRinStations>0) Nobjects[GAGE] = GlobalRinStations;
    createObjects();
    // Reset Nobjects GAGE to 1 - this will change as the program
    // reads the SWMM 4 .rin file
    if( GlobalRinStations>0) Nobjects[GAGE] = 1;

    // --- read project data from input file
    input_readData();




Last updated by Robert Dickinson Apr 22, 2008.

© 2012   Created by Robert Dickinson.   Powered by .

Badges  |  Report an Issue  |  Terms of Service