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.

About

Robert E Dickinson Robert E Dickinson created this social network on Ning.

Create your own social network!

Latest Activity

A group by Robert E Dickinson was featured
QA/QC SWMM 5 Version for SWMM 5.0.013 and SMWM 5.0.014
8 hours ago
Extra Variable Version for v16 of SWMM 5 Epaswmm5.exeswmm5.dll
8 hours ago
Robert E Dickinson added a blog post
Comment: You need two files to run this simulation, the SWMM 5 input file and the Temperature Time Series File. calculated_evaporation_test.inp MinMax.dat
9 hours ago
Robert E Dickinson added a note
Comment:  You need to files to run this simulation, the SWMM 5 input file and the Temperature Time Series File
9 hours ago
yesterday
Tran Hoang is now a member of SWMM5 - Stormwater Management Model
yesterday
A note by Robert E Dickinson was featured
SWMM 5.0 Update History ======================= ----------------------- Build 5.0.016 (6/22/09) ----------------------- Engine Updates 1. A new option was added to compute daily evaporation from the daily temperature values contained in a ...
on Friday
Robert E Dickinson added 2 notes
on Friday
Robert E Dickinson added a blog post
This is a interesting Science Daily post on how many of our problematic brain problems are related to "survival" brain functions in insects. Human-like Brain Disturbances In Insects: Locusts Shed Light On Migraines, Stroke And Epilepsy ScienceDai...
July 5
Robert E Dickinson added a note
 The current InfoSWMM Report manager report is ALMOST good enough to be used as a calibration file except for: 1. the word Days 2. the semi colon and 3. the name of the object is not on the top line It is easy to convert the files by text editor b...
July 2
July 1
Joan Oppenheimer is now a member of SWMM5 - Stormwater Management Model
July 1
Robert E Dickinson added a note
Why are There 60 Minutes in an Hour? Published by Gary Wallace February 10, 2009, Category: Applied Mathematics We are all familiar with dividing our days into 24 hours and our hours into 60 minutes. But why do we use these particular units for...
June 26
Robert E Dickinson added 2 notes
June 25
Robert E Dickinson added 3 notes
June 23
Mark Drury is now a member of SWMM5 - Stormwater Management Model
June 18
suba is now a member of SWMM5 - Stormwater Management Model
June 15
Robert E Dickinson added a note
Life May Extend Planet's 'Life': Billion-year Life Extension For Earth Also Doubles Odds Of Finding Life On Other Planets ScienceDaily (June 13, 2009) — Roughly a billion years from now, the ever-increasing radiation from the sun will have heated ...
June 13
Robert E Dickinson added a note
Maybe It's Raining Less Than We Thought: Physicists Make A Splash With Raindrops Discovery ScienceDaily (June 11, 2009) — It's conventional wisdom in atmospheric science circles: large raindrops fall faster than smaller drops, because they're bigg...
June 12
Edward added a discussion
I am the supporter and user of SWMM5. Recently I built a small model using SWMM5 and found some weird outputs. The model build is attached herewith for your reference. The model is built for run with time series of inflows and downstream water le...
June 8

Word Cloud

SiteStats

78 Members
5 Groups
2 Events
33 Discussions
105 Blog posts
159 Photos
44 Videos
2 Music Tracks

Translate Tools

© 2009   Created by Robert E Dickinson on Ning.   Create Your Own Social Network

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