Most swmm projects have a set of mappable objects. Nodes, Conduits, Raingages are all types of swmm objects that can be represented on a map. As usual, swmm-js utilizes the same coordinate format as an epa-swmm .inp file, and swmm-js can also provide mapping data utilizing the geoJSON format. geoJSON is a geographic data standard that is recognized by many mapping systems.
An example of swmm data in geoJSON format follows:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
7600,
9663.16
], ...
]
]
},
"properties": {
"name": "2"
}
}, ...
]
}
Use the 'Load Model' button to open a swmm model and display a map here...
swmm projects can easily create large output files. In order to reduce the amount of memory used by .out files, utilize the 'Reporting' section of the 'OPTIONS' interface, or directly modify the model.REPORTING section of a swmm-js data object.
Even after reducing the size of the binary output file, it may be necessary to pare down chartable data. swmm projects can span years while utilizing very small reporting steps. Charting more than 1000 data points for a linear set on a cartesian system is overkill for most purposes. If you find that some data visualizations are running slowly, you should consider utilizing systems such as d3fc to trim your chartable data down to something that is easier for your display system to handle.
After you have run a model, a dropdown will appear below, and you can select a link by name in order to chart the flow in the graphic following.
Use the 'Run Model' button to run a swmm model and display results here.
Reports are usually contained within a swmm .rpt file. After running a model, you can check the contents of the .rpt file for information about exceptional data, errors, or general statistics about the model and swmm's attempt to run the model.
If you have chosen a model and attempted to run it utilizing the previous two sections, you can view the contents of the .rpt file by clicking on the 'Show model results' button.