A Python package for SWMM5
Project description
A Python Wrapper for the Stormwater Management Model (SWMM5)
import swmm
# Create a SWMM model object
error_code = swmm.swmm_open("path/to/swmm5.inp", "path/to/swmm5.rpt", "path/to/swmm5.out")
error_code = swmm.swmm_start(True)
# Run the SWMM model
current_time = swmm.getValue(swmm.swmm_CURRENTDATE, 0)
end_time = swmm.getValue(swmm.swmm_ENDDATE, 0)
# Run the model until the end time
while current_time < end_time:
elapsed_time = swmm.swmm_step()
current_time = swmm.getValue(swmm.swmm_CURRENTDATE, 0)
# Close the SWMM model
error_code = swmm.swmm_end()
error_code = swmm.swmm_report()
error_code = swmm.swmm_close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
epaswmm-5.3.0.dev0.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file epaswmm-5.3.0.dev0.tar.gz.
File metadata
- Download URL: epaswmm-5.3.0.dev0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e13b0187af0653f469adcd68a5c52f07f832779d0c369007ff153b7814b0d16a
|
|
| MD5 |
5abf68e8d6cb6691d922bbf52b9d4c15
|
|
| BLAKE2b-256 |
7f2b762fae2c56d93940265c2bf267ab8183eae7bb52a18205db86e1a2f98b64
|
File details
Details for the file epaswmm-5.3.0.dev0-py3-none-any.whl.
File metadata
- Download URL: epaswmm-5.3.0.dev0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a9136943e1b21b001624c02f9b75aeb10593504cb0d71dfaa63ff367895be62
|
|
| MD5 |
e85fef094c23c0b55216321cec2985e9
|
|
| BLAKE2b-256 |
218ce1470487b9f15f3f14214d294e4943fe62a05fda8cf81b9f1d58538d570e
|