Replies: 3 comments 1 reply
-
@csofios18 if you only need the maximum depths after running a simulation, you can use swmmio: import swmmio
# create a model object
model = swmmio.Model('path-to-model.inp')
# if you have your rpt file stored in the same place as your model, you can get the Node Depth Summary like this
model.rpt.node_depth_summary
If you want the each node's max depth, invert elevation etc. joined in one dataframe with the simulated results, you can do this: from swmmio import Nodes
nodes = Nodes(
model=model,
inp_sections=['junctions'],
rpt_sections=['Node Depth Summary'],
columns=['Name', 'InvertElev', 'MaxDepth', 'MaxNodeDepth', 'MaxHGL']
)
nodes.dataframe
|
Beta Was this translation helpful? Give feedback.
-
Thanks! But this requires the simulation to be done in SWMM so we have the reported results! What if we want to generate the simulation in python as well! |
Beta Was this translation helpful? Give feedback.
-
@csofios18, if you want to do this with pyswmm, directly, use Here is an example bundle with the Max Depth: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently trying to get exactly the maximum depths of the node summary results of SWMM in my pyswmm code. Some of my nodes have surcharge and their maximum depth is higher than their full depth. How i can capture that in my pyswmm. I am currently expressing this for my nodes as "node.head-node.invert_elevation" instead of node.depth but i get no different results!
Beta Was this translation helpful? Give feedback.
All reactions