Latest Activity

Robert Dickinson commented on Robert Dickinson's group Stream of Information
"At the Summit of Olympus Mons Credit: G. Neukum (FU Berlin) et al., DLR, ESA From martian orbit, the Mars Express cameras looked down on the largest volcano in the solar system. The result was this stunningly detailed overhead view of the…"
6 hours ago
Robert Dickinson replied to Robert Dickinson's discussion How is the St Venant Equation Solved for in the Dynamic Wave Solution of SWMM 5?
"Subject:   Link Iterations in the SWMM 5 Dynamic Wave Solution   Each of the links in the SWMM 5 network can use up to 8 iterations to reach convergence during a time step in the dynamic wave solution of SWMM 5.  The rules…"
20 hours ago
Robert Dickinson left a comment for wu ze jian
23 hours ago
Robert Dickinson posted a discussion

How is the St Venant Equation Solved for in the Dynamic Wave Solution of SWMM 5?

Subject:   How is the St Venant Equation Solved for in the Dynamic Wave Solution of SWMM 5? An explanation of the four St. Venant Terms in SWMM 5 and how they change for Gravity Mains and Force Mains. The HGL is the water surface elevation in the upstream and downstream nodes of the link. The HGL for a full link goes from the pipe crown elevation up to the rim elevation of the node + the surcharge depth of the node.  The four terms are: dq2 = Time Step * Awtd * (Head Downstream – Head Upstream)…See More
23 hours ago
Robert Dickinson added a page to the group Hydraulics
Thumbnail

Force Main Friction Loss in InfoSWMM and the Transition from Partial to Full Flow

Subject:  Force Main Friction Loss in InfoSWMM and the Transition from Partial to Full Flow You can model Force Main friction loss in InfoSWMM using either Darcy Weisbach or Hazen Williams as the full pipe friction loss method (see Figure 1 for the…
yesterday
Robert Dickinson commented on Robert Dickinson's group Hydraulics
yesterday
Robert Dickinson's blog post was featured

SWMM 5 Precipitation Options

Subject:  SWMM 5 Precipitation Options You can have design storms, monitored storms of any length of the time from minutes to centuries, use intensity, volume or cumulative precipitation, use both rainfall and snowfall in the same rain gage depending on temperature, use both time series or external files for the rain gage and have unlimited rain gages with the limitation of one rain gage per subcatchment.  …See More
yesterday
Robert Dickinson posted a blog post

SWMM 5 Precipitation Options

Subject:  SWMM 5 Precipitation Options You can have design storms, monitored storms of any length of the time from minutes to centuries, use intensity, volume or cumulative precipitation, use both rainfall and snowfall in the same rain gage depending on temperature, use both time series or external files for the rain gage and have unlimited rain gages with the limitation of one rain gage per subcatchment.  …See More
yesterday
Robert Dickinson commented on Robert Dickinson's group Stream of Information
"Pacheena Indian Reserve, British Columbia, Canada May. 25, 2012 "
yesterday
Robert Dickinson commented on Robert Dickinson's group Stream of Information
"All the Water on Europa Illustration Credit & Copyright: Kevin Hand (JPL/Caltech), Jack Cook (Woods Hole Oceanographic Institution), Howard Perlman (USGS) Explanation: How much of Jupiter's moon…"
Friday
Robert Dickinson's 2 blog posts were featured
Thursday
Robert Dickinson posted blog posts
Thursday
Robert Dickinson commented on Robert Dickinson's group Water Quality
"URBAN STORMWATER QUANTITY/QUALITY MODELING USING THE SCS METHOD AND EMPIRICAL EQUATIONS† http://onlinelibrary.wiley.com/doi/10.1111/j.1752-1688.1997.tb04093.x/abstract May 24, 2012 Wiley Online Library will be disrupted on 26 May from…"
Thursday
Robert Dickinson commented on Robert Dickinson's group Water Quality
"Hi MeHa,  Here is one good source of data, I also have the SWMM 5 models for the USGS areas. http://www.1000friendsofflorida.org/pubs/stmarksgreen/apend4.asp http://sofia.usgs.gov/publications/ofr/78-324/ofr-78-324.pdf "
Thursday
MeHa commented on Robert Dickinson's group Water Quality
"I want to model WQ of sewers. Can any body provide me a network with real measured calibration files? "
Thursday
MeHa posted a status
"Hello, When designing a sewer system, we consider the Node Flooding and Conduit surcharge in the status report. Is there any guideline which"
Thursday
Quah Soon Tong left a comment for Esther Bergareche Auricenea
"Hi Esther, I am not sure you are the same Esther that was at the United World College in South Wales with me. I am Quah Soon Tong from Singapore. I noticed you are also an engineer. I did Civil Engineering at Cambridge University, but practised as…"
Thursday
Quah Soon Tong is now a member of SWMM5 - Stormwater Management Model
Thursday
Robert Dickinson commented on Robert Dickinson's group Stream of Information
"River Canyon May. 23, 2012 "
Wednesday
Robert Dickinson commented on Robert Dickinson's group Stream of Information
"Litla Dimun, Faroe Islands May. 23, 2012 "
Wednesday

Hello everybody

I want to examine uncertainty of rainfall duration with the monte carlo method. So I should link SWMM with MATLAB program and run the program many times (here 1000 times). In each iteration I should change the duration of rainfall and so the temporal pattern of rainfall will be changed.  Now I want to know is it possible that I change rainfall timeseries for a gage in each iteration?

 At this stage I have prepared a code that generate different  types of rainfall timeseries. How can I introduce these timeseries to the program that is linked with MATLAB in each iteration?

Best Regards

Views: 122

Reply to This

Replies to This Discussion

I would suggest having your rainfall as an external time series and have that external time series change before each iteration.

 

MatLab

Change External Time Series

Call SWMM5.EXE and have a Raingage use the External Time Series

 

Repeat

 

I have not done this myself but it should be feasible.

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 link Matlab and SWMM 5? Would you be able to share with me on how you did it? Thank you!

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 file name.inp   output file name

so we can play swmm only with input and output files,right? Can we use a function to reset a parameter value during running swmm like epanet toolkit doing?thanks

It is not hard to add the ability to change a variable during the run in SWMM 5.  You need to alter the C and Delphi code but it is only a few lines of code in the engine and Delphi.  I will add a blog with one example so you can see how it is done.  

Another idea would be to use the ADD IN tools - what exactly are your trying to change during the simulation run?

What are Add-In Tools
Return to Introduction  Previous page  Next page
Add-in tools are third party applications that users can add to the Tools menu of the main SWMM menu bar and be launched while SWMM is still running. SWMM can interact with these applications to a limited degree by exchanging data through its pre-defined files or through the Windows clipboard. Add-in tools can provide additional modeling capabilities to what SWMM already offers. Some examples of useful add-ins might include:
· a tool that performs a statistical analysis of long-term rainfall data prior to adding it to a SWMM rain gage,  
· an external spreadsheet program that would facilitate the editing of a SWMM data set,  
· a unit hydrograph estimator program that would derive the R-T-K parameters for a set of RDII unit hydrographs which could then be copied and pasted directly into SWMM's Unit Hydrograph Editor,  
· a post-processor program that uses SWMM's hydraulic results to compute suspended solids removal through a storage unit,  
· a third-party dynamic flow routing program used as a substitute for SWMM's own internal procedure.  

The figure below shows what the Tools menu might look like after several add-in tools have been registered with it. The Configure Tools option is used to add, delete, or modify add-in tools. The options below this are the individual tools that have been made available (by this particular user) and can be launched by selecting them from the menu. 
thanks for your reply. I am planning to call swmm in matlab. Could you please tell me how to change a variable during running swmm in matlab environment?thanks

Reply to Discussion

RSS

© 2012   Created by Robert Dickinson.   Powered by

Badges  |  Report an Issue  |  Terms of Service