Thanks Rui for your time and efforts to go through this project,
By using GIS functions and adding fields in attribute files, the sub catchments are now linked with their appropriate outlets.
Also, rather than, loading all hydrologic and…
Thanks Robert,
It really what I needed - without reading the manual, I was trying each option in the swmm to see if there is way to export the data in excel format.
However, data being too large, excel simply says sorry with this message (This…
Please try inp.PINS and select inpTools --> Subcatchments connection
(https://sites.google.com/site/inppins/)
You can also edit inp text file, or even use GIS functions.
inp.PINS worked just fine! Kashif, Please see the message I send you with my results data.
The data you send me needed to be "SWMM formated". I did some of this:
1 - Assign invert elevation to nodes from links shp - GIS join;
2 - Define…
Note: Maximum Surcharge Height Over Crown Explanation Here is an example of how the Maximum Surcharge Height over the Node Crown is calculated. Consider a manhole with an invert of 10 feet, one incoming pipe (Pipe A), one outgoing pipe (Pipe B), both pipes with a diameter of 2 feet, but the invert of Pipe A is 10 feet and the invert of Pipe B is 11 feet. What is the Maximum Surcharge height if the HGL at the node is 17…See More
Hi experts,I am to assign outlet to some 10,000 sub catchments, manually doing it doesn't seem professional.Luckily, name of subcatchment is same name of junction (outlet)i.e.Subcatcment Junction177119 177119177123 177123177126 177126263803 263803263806 263806These are not in particular sequence but name of subcatchment is always same as of junction.Any clueThanks in advanceSee More
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…
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 ...
I mean when we link the SWMM 5.0 with another software module, we have to call the results from the programming language, what we are using.
I am using c++ to link SWMM 5.0 with NSGA II (an optimization module) to do my research work.
In this case I have to get some results from the SWMM 5.0 to run the optimization module and the SWMM 5.0 interfacing guide has given some details, but bit confusing.
The results calling function should be able to identify the particular item in order to get the exact result of it.
The guide gives the following but I can't understand how to use the "item index" in a situation as described follows.
Think there are 5 weirs and 2 orifices in a network and one wanted to get the flow rates at orifices using the above mentioned "GetSwmmResult" function.
The guide gives;
The function GetSingleResult, which is included in the example code files that accompany this guide, demonstrates the code needed to retrieve the computed result for a particular variable for a given object at a specific point in time. The arguments to the function are:
itemType
the class of item being sought (input)
itemIndex
the index of the item being sought (input)
varIndex
the index of the variable being sought (input)
period
the index of the time period being sought, starting from 1(input)
value
the value of the result being sought (output).
The function returns a value of 1 if it was successful or a value of 0 if was not.
The choices for itemType can be:
· 0 for Subcatchments,
· 1 for Nodes
· 2 for Links
· 3 for System
The itemIndex argument identifies items of a given class that are reported on by consecutive numbers starting from 0, which are assigned in the same order as the item appeared in the SWMM 5 input file. As an example, suppose that a system contains 5 junction nodes with ID names J1, J2, J3, J4, and J5 that are listed in this same order in the project's input file, but output results are only requested for junctions J2 and J4. Then an itemIndex of 0 would retrieve results for J2 while an itemIndex of 1 would do the same for J4. Any other values for itemIndex would be invalid. For System items the itemIndex argument is ignored.
The choices for varIndex depend on the class of object being sought and are listed in the Output File - Reporting Variables topic of Appendix B.
I found the answer for my own question and would like paste it here if anyone needs it in future.
When results for all links are saved, then the ItemIndex is the order
(starting from 0) in which the Link is first defined in the input file.
For example, suppose your input file looked as follows:
[CONDUITS]
A
B
C
[WEIRS]
W1
W2
]PUMPS]
P1
P2
[ORIFICES]
O-A
O-B
Then the ItemIndex for weir W1 would be 3 while that for orifice O-B is
8.
If in the [REPORT] section you specify that results are only saved for
weir W1 and orifices O-A and O-B, then the item index of W1 is 0 and
that of O-B is 2 (even if you listed them as O-B, W1, and O-A in the
[REPORT] section, since the numbering is still relative to their
position where they are first defined in the input file).