Skip to content

Commit

Permalink
update OWA SWMM to v5.2.3
Browse files Browse the repository at this point in the history
- add inlet api functions
- set release version
  • Loading branch information
karosc committed Mar 28, 2023
1 parent 1199894 commit 384ed3f
Show file tree
Hide file tree
Showing 10 changed files with 652 additions and 5 deletions.
2 changes: 1 addition & 1 deletion swmm-toolkit/CMakeLists.txt
Expand Up @@ -15,7 +15,7 @@ cmake_minimum_required (VERSION 3.17)

project(swmm-toolkit
VERSION
0.13.0
0.14.0
)


Expand Down
2 changes: 1 addition & 1 deletion swmm-toolkit/setup.py
Expand Up @@ -88,7 +88,7 @@ def exclude_files(cmake_manifest):

setup(
name = "swmm-toolkit",
version = "0.13.0",
version = "0.14.0",

packages = ["swmm_toolkit", "swmm.toolkit"],
package_dir = package_dir,
Expand Down
2 changes: 1 addition & 1 deletion swmm-toolkit/src/swmm/toolkit/__init__.py
Expand Up @@ -19,7 +19,7 @@
__credits__ = "Colleen Barr, Sam Hatchett"
__license__ = "CC0 1.0 Universal"

__version__ = "0.13.0"
__version__ = "0.14.0"
__date__ = "June 7, 2021"

__maintainer__ = "Michael Tryby"
Expand Down
14 changes: 14 additions & 0 deletions swmm-toolkit/src/swmm/toolkit/shared_enum.py
Expand Up @@ -739,3 +739,17 @@ class RainResult(Enum):
TOTAL = 0
RAINFALL = 1
SNOWFALL = 2

class InletProperty(Enum):
NUM_INLETS = 0
CLOG_FACTOR = 1
FLOW_LIMIT = 2
DEPRESSION_HEIGHT = 3
DEPRESSION_WIDTH = 4


class InletResult(Enum):
FLOW_FACTOR = 0
FLOW_CAPTURE = 1
BACK_FLOW = 2
BLACK_FLOW_RATIO = 3
4 changes: 3 additions & 1 deletion swmm-toolkit/src/swmm/toolkit/solver.i
Expand Up @@ -158,7 +158,9 @@
SM_LidLayerProperty,
SM_LidUProperty,
SM_LidUOptions,
SM_LidResult
SM_LidResult,
SM_InletProperty,
SM_InletResult
}


Expand Down
54 changes: 54 additions & 0 deletions swmm-toolkit/src/swmm/toolkit/solver_docs.i
Expand Up @@ -1293,3 +1293,57 @@ total_precip: double
The new total precipitation intensity.
"
) swmm_setGagePrecip;


%feature("autodoc",
"Get a property value for the inlet of a specified link.
Parameters
----------
index: int
The index of a link with desired inlets
param: SM_InletProperty
The property type code (See :ref: SM_InletProperty)
Returns
-------
value: double *
The value of the inlet's property
"
) swmm_getInletParam;


%feature("autodoc",
"Get a property value for the inlet of a specified link.
Parameters
----------
index: int
The index of a link with desired inlets
param: SM_InletProperty
The property type code (See :ref: SM_InletProperty)
Returns
-------
value: double *
The new value of the inlet's property
"
) swmm_setInletParam;


%feature("autodoc",
"Get a result value for specified link.
Parameters
----------
index: int
The index of a link with desired inlets
type: SM_InletResult
The result type code (See :ref: SM_InletResult)
Returns
-------
result: double *
The value of the inlet's result at the current simulation timestep
"
) swmm_getInletResult;
3 changes: 3 additions & 0 deletions swmm-toolkit/src/swmm/toolkit/solver_rename.i
Expand Up @@ -68,6 +68,9 @@
%rename(link_set_target_setting) swmm_setLinkSetting;
%rename(link_get_stats) swmm_getLinkStats;

%rename(inlet_get_parameter) swmm_getInletParam;
%rename(inlet_set_parameter) swmm_setInletParam;
%rename(inlet_get_result) swmm_getInletResult;

%rename(pump_get_stats) swmm_getPumpStats;

Expand Down
2 changes: 1 addition & 1 deletion swmm-toolkit/swmm-solver

0 comments on commit 384ed3f

Please sign in to comment.