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

tian tian and Hussam joined SWMM5 - Stormwater Management Model
1 hour ago
5 hours ago
Robert E Dickinson added a blog post
MWH Soft Releases InfoWorks and FloodWorks Version 11 New Version Available for Industry-Leading Workgroup Management Modeling Software for Wastewater, Stormwater, Drinking Water, and River Systems Broomfield, Colorado USA, September 8, 2010 MWH Sof…
16 hours ago
mohammed A Alim is now a member of SWMM5 - Stormwater Management Model
yesterday
Robert E Dickinson added a blog post
Creating Clearer Climate Computer Codes by Eli Kintisch on 3 September 2010, 12:01 PM | Permanent Link | 2 Comments EmailPrint|More PREVIOUS ARTICLE NEXT ARTICLE British software engineers Nick Barnes and David Jones have spent the past 3 years t…
on Sunday
Robert E Dickinson just checked out the RSS pages...
(via RSS Pages)
on Friday
August 31
Antony Manoharan is now a member of SWMM5 - Stormwater Management Model
August 31
Robert E Dickinson added a blog post
MWH Soft Releases InfoSewer Version 6.0 for ArcGIS 10 New Version of the Leading Wastewater Modeling and Management Package Leverages Newest Esri Software Broomfield, Colorado USA, August 31, 2010 — MWH Soft, a leading global innovator of wet in…
August 31
------------------------ Build 5.0.020 (08/23/10) ------------------------ Engine Updates 1. A refactoring bug that prevented SWMM from reading rainfall data from external rainfall files was fixed. See gage.c.
August 23
lia almila and Dr. MVRL Murthy joined SWMM5 - Stormwater Management Model
August 22
There are 152 members on SWMM5 - Stormwater Management Model
August 19
SWMM5 - Stormwater Management Model now has leaderboards
August 19
August 17
David Jones is now a member of SWMM5 - Stormwater Management Model
August 17
Robert E Dickinson added a blog post
From the NYT In Weather Chaos, a Case for Global Warming The collective answer of the scientific community can be boiled down to a single word: probably. “The climate is changing,” said Jay Lawrimore, chief of climate analysis at the National Clima…
August 17
You should still adjust the width individually for each subcatchment but compare the peak flows for the combined flows to your monitored data. Unless you want to model S1, S2 and S3 together then you are best off estimating the width for each subcat…
August 15
Thank you for your help. However, the flow measurement was only taken at the outlet of the whole catchment (Out 1). if i want to calibrate the runoff quantity, how can i obtain the width of the whole catchment? Am i combine the total width of subcat…
August 15
Originally, when SWMM was developed the width parameter was the collection length of the subcatchment. For example, it would be the gutter length on a street going to an inlet. In your case one easy way to estimate the Width for the subcatchment goi…
August 14
Chow Ming Fai added a blog post
Hello,I am not familiar on using SWMM for quantity and quality modeling. i need some helps here.I have a problem on calibrating the total width of catchment in SWMM quantity modeling. Figure shown below is my studied catchment. the surface runoff is…
August 14

© 2010   Created by Robert E Dickinson.   Powered by .

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