How to calculate pollutants concentration from swmm model #316
Replies: 6 comments 21 replies
-
@jennwuu or @abhiramm7, routing this your way |
Beta Was this translation helpful? Give feedback.
-
@MohammadTahirGhori Can you please share the PySWMM version number, Python version, and platform? |
Beta Was this translation helpful? Give feedback.
-
@MohammadTahirGhori Is it possible to share the SWMM model input as well? Or a small subset of the model you are using. |
Beta Was this translation helpful? Give feedback.
-
@MohammadTahirGhori, I think this might be a version issue. I can run your code with no issues. You can use the attached script to check your pyswmm version. import pyswmm
print(f"pyswmm version: {pyswmm.__version__}") You should be able to run your code in pyswmm >= 1.0.1. If you are using pyswmm < 1.0.1, you should consider upgrading. Hope this helps, do let me know if you have any questions :) |
Beta Was this translation helpful? Give feedback.
-
@MohammadTahirGhori Can you confirm your swmm-toolkit version as well? pyswmm dependents on swmm-toolkit |
Beta Was this translation helpful? Give feedback.
-
when I run this to get concentration of TSS, TN, and TP as I assigned in swmm file the code says an error. I tried both for nodes and catchments.
errors:
I am doing an optimization that I need pollutants concentration reduction after LID implementation then I will multiply the reduction of concentration by cost of treatment of TSS, TN, and TP to make it monetary value and use for optimization process with cost of NBS measures.
Here are two of codes for nodes and catchments.
I do not know if this is the right way or not?
Beta Was this translation helpful? Give feedback.
All reactions