SWMM5 - Stormwater Management Model

SWMM 5, Watersheds, Water Quality,Hydrology, Hydraulics - Watersheds

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 E Dickinson Apr. 22, 2008.

Latest Activity

Robert E Dickinson added a blog post
Image via Wikipedia http://sciencenow.sciencemag.org/icons/blueplus.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; margin-right: 0px; margin-bottom: 1em; margin-left: 0px;…
1 hour ago
2 hours ago
Snowlapse Monday, February 8th, 2010 Noel St. John, quasi-official photographer of TheAgitator.com, made this very cool time-lapse animation of the D.C.-area’s blizzard this past weekend.
2 hours ago
Robert E Dickinson added 2 blog posts
yesterday
A blog post by Robert E Dickinson was featured
The solution is iterative but each iteration is dependent on the CFL or explicit time step. The time step we select is based on the CFL condition but instead of just using the explicit solution we iterate until the node depths are converged or a max…
on Friday
Marisa Oliveira is now a member of SWMM5 - Stormwater Management Model
on Thursday
Robert E Dickinson added a note
A BETTER TEXT EDITOR, ON FORUM AND BLOG POSTS For Ning Creators and members alike, adding content is an essential part of any Ning Network. When it comes to adding text, the text editor members rely on should be as easy to use as possible. Sta…
on Thursday
February 1
Chris Olson is now a member of SWMM5 - Stormwater Management Model
February 1
End of January version of QA/QC GUI and Engine Epaswmm5.exe swmm5.dll
January 31
Robert E Dickinson added 2 notes
January 30
Robert E Dickinson added a blog post
A Short History of Hydrogen Sulfide From the sewers of Paris to physiological messenger Roger P. Smith from http://www.americanscientist.org/issues/pub/2010/1/a-short-history-of-hydrogen-sulfide/2 Early last year, reports began to emerge in the Sout…
January 30
Robert E Dickinson Ich bin ein Watershed Engineer, die weniger Überschwemmungen und eine bessere Wasserqualität für die Erde will.
January 30
Robert E Dickinson added a page
January 30
Robert E Dickinson added a page
January 30
Robert E Dickinson added a page
January 30
Robert E Dickinson added a note
As rivers go, the Mississippi is one of the world’s biggies. It’s 3.734 km (2.320 mi) long and has a watershed of more than 3,2 million sq. km (1.245.000 sq. mi), the third-largest in the world (preceded only by the Amazon and Congo rivers), drai…
January 26
Robert E Dickinson added 2 photos
January 26
Robert E Dickinson added a blog post
Comment: A really nice water analogy for the field properties Divergence, Curl and Gradient from the Blog Starts With a Bang ....it's pretty mathematically intensive, but what's missing from most textbooks and E&M courses are physical explanations…
January 24
Robert E Dickinson added 2 notes
January 24

© 2010   Created by Robert E Dickinson

Badges  |  Report An Issue | SWMM 5 Blog  |  Privacy  |  Terms of Service

.xg_widget_main .module_blog {height: 900px;overflow : auto;position:relative;} /* Scroll Bar for Latest Activity */ .xg_widget_main .xg_module_activity .xg_module_body {height: 900px;overflow : auto;position:relative;}