Lew Rossman
847fa82139
Add emitter backflow option
...
Adds a global hydraulic option to allow backflow or not through emitter elements. To maintain backward compatibility the default is YES.
2023-02-05 15:16:20 -05:00
Lew Rossman
2f8561632f
Allows string literals as arguments in C++ clients
...
See issue #651 . Also addresses issue #602 .
2023-01-29 12:34:58 -05:00
Elad Salomons
e2df3e87ac
Adding support for VB
...
Also supporting C89 compiler.
2023-01-19 20:45:30 +02:00
Sam Hatchett
2705f8adc1
Merge branch 'dev' into 681-request-additional-api-function-for-getting-finer-grained-time-step-information
2023-01-19 11:52:18 -05:00
Sam Hatchett
736f5ebdd4
updates function signatures to use int-casted enum
2023-01-19 09:50:50 -05:00
Sam Hatchett
30c511ca78
Merge branch 'dev' into 683-request-better-logging-functionality
2023-01-19 09:01:43 -05:00
Lew Rossman
6db17193f5
New positional control valve added
2022-08-16 11:47:44 -04:00
Sam Hatchett
9b3007ff55
adds projectless function declarations
...
and fixes non-camelcase convention
2022-08-08 12:02:22 -04:00
Sam Hatchett
b139684164
fixes non-camelcase convention
...
and adds rich corinthian vintage-style (projectless) function declarations
2022-08-08 11:58:09 -04:00
Sam Hatchett
41887e9016
adds client callback API function
2022-07-27 16:37:49 -04:00
Sam Hatchett
5f8ee49fd6
adds an API function to get information about upcoming events
2022-07-27 14:18:50 -04:00
Lew Rossman
f9189d04b4
Updates to default demand pattern fix
2022-01-15 11:21:24 -05:00
Lew Rossman
14de37d0cb
Adjust default pattern index after a pattern is deleted
2022-01-14 09:09:32 -05:00
Lew Rossman
afda609223
Adds get/set for default demand pattern to toolkit
2022-01-14 08:50:33 -05:00
james uber
3be813facb
Return MISSING as initial valve setting
...
If the initial setting is indeed MISSING, that means the status of the valve has been set to OPEN or CLOSED, and the valve is non-functional (until the setting is changed by a control). This change is required to be able to accurately see the initial setting, because the status does not distinguish between open and active valves.
2021-09-23 11:04:19 -04:00
james uber
886a5cf266
Bugfix for En_getaveragepatternvalue()
...
Fixes a bug where 0 was not considered to be a valid pattern index.
2021-09-08 10:49:57 -04:00
mariosmsk
79b2c4c8ee
add new errcode 263 "node is not a tank"
2021-06-26 17:11:33 +03:00
mariosmsk
6728a59e63
node is not a tank
2021-06-26 12:01:19 +03:00
Lew Rossman
0d31da816a
Remove redundant check on EN_STARTTIME
2020-11-08 10:23:03 -05:00
Lew Rossman
b6eddc07fa
Add EN_STARTTIME to EN_settimeparam function
2020-11-08 10:10:16 -05:00
Lew Rossman
a76cc51ac8
Allow negative EN_SETTING value in EN_setlinkvalue
...
Makes EN_setlinkvalue consistent with how an input file is read. This addresses issue #616 .
2020-11-05 21:54:10 -05:00
chrisgs
35aa9f8e08
Fix vmin calculation
...
Multiply area by `Hmin - elevation` instead of just `Hmin`.
2020-08-18 16:58:08 +01:00
Lew Rossman
951c7ce727
Refactor tank mixing zone volume
...
Addresses issue #597 .
2020-07-11 17:12:49 -04:00
Lew Rossman
71a733ed85
Add missing break statement after update from dev
2020-07-10 15:42:34 -04:00
Lew Rossman
67f7d8f76b
Merge branch 'dev' into dev_2.3
2020-07-10 14:36:46 -04:00
mariosmsk
e0745e9dc5
Update epanet.c
2020-06-25 20:22:12 +03:00
mariosmsk
532f89d14b
Net1.inp have 0 MinorLoss / GUI accepts values zero for MINORLOSS. Similar to the parameter Power of pumps
2020-06-25 20:11:27 +03:00
james uber
949022ed49
API access to incontrols() for information about node/link controls participation
...
allowing access to incontrols() for getting information about whether a node or link participates in a simple or rule-based control.
2020-05-22 11:45:52 -04:00
Elad Salomons
37342c70b1
Another option for EN_settankdata fix
2020-04-19 18:05:08 +03:00
Lew Rossman
37a58a467c
Update epanet.c
2020-04-19 09:25:36 -04:00
Lew Rossman
99f09f1edb
A simpler fix to EN_settankdata
...
Changes 1 line instead of 4.
2020-04-19 09:16:08 -04:00
Elad Salomons
3f515e7ad4
Fix EN_settankdata for elevation with SI units
...
Fix #593
2020-04-19 09:42:43 +03:00
Corey McNeish
ee5e910454
Alloc, free persistent parts of Hydraul in allocdata, rather than in allocmatrix
2020-04-11 11:33:37 -07:00
chrisgs
364ad08bcc
Limit EN_STARTTIME parameter value to SECperDAY
...
Limit `EN_STARTTIME` parameter value to a maximum of `SECperDAY`, and
return an error code if this is exceeded.
2020-03-23 22:14:02 +00:00
chrisgs
21e1e4c019
Allow start time to be set with EN_settimeparam
...
Add additional case for `EN_STARTTIME` to the `EN_settimeparam`
function.
2020-03-21 17:13:40 +00:00
mariosmsk
25f9a6f6d1
fix EN_INITSETTING
...
Co-Authored-By: Lew Rossman <lrossman@outlook.com >
Co-Authored-By: Elad Salomons <selad@optiwater.com >
#583
2020-02-09 22:05:40 +02:00
Lew Rossman
80f9acfe4d
Network building enhancements
2020-02-04 10:01:23 -05:00
Lew Rossman
ce2a27f38e
Bug fix for valvecheck function
...
See issue #561
2019-11-15 11:53:09 -05:00
Lew Rossman
6c54bb3a59
Adds error check to EN_setheadcurveindex
...
See issue #556 .
2019-11-09 09:36:10 -05:00
Lew Rossman
9998466d20
Bug fix for EN_getrule
...
Fixes possible seg fault condition in EN_getrule. Also defines EN_MISSING as an API constant since it can be assigned internally to several variables that are retrievable by the API.
2019-11-05 10:09:21 -05:00
Lew Rossman
3bd4039d95
Bug fix for EN_setcurve
...
Adjusts params of any pump that uses the curve whose data is modified by EN_setcurve or EN_setcurvevalue (issue #550 ).
2019-11-02 11:17:25 -04:00
Lew Rossman
1709b12f6a
Fixes to EN_addlink and EN_deletelink
2019-10-29 20:09:56 -04:00
Lew Rossman
7aadc83ddf
Adds link vertex get/set functions to the API
2019-10-29 16:33:40 -04:00
Lew Rossman
b640a8685c
Adds EN_getresultindex function to the API
...
See issue #546 . Also fixes a small bug in project.c.
2019-10-26 11:25:09 -04:00
Lew Rossman
344700a136
Fixes problems with EN_addnode() ( #543 )
...
See issue #542 . Also modifies unit test test_node to check that fixup works.
2019-10-16 15:07:14 -04:00
mariosmsk
eb04559a11
rm set to null in functions EN_deletenode, EN_deletelink
2019-08-10 11:51:21 +03:00
mariosmsk
1ce6901103
fix in EN_deleteLink
...
when pipes are deleted via deletelink it also deletes comment of last link
Co-Authored-By: Pavlos Pavlou <pavlou.v.pavlos@ucy.ac.cy >
2019-08-08 15:50:19 +03:00
Lew Rossman
803bad0bf0
Fixes EN_setlinkvalue bug
2019-08-05 14:08:18 -04:00
mariosmsk
4e2e6c952a
Fix EN_getElseaction and EN_setelseaction
...
Co-Authored-By: Andreas Ashikkis <andreasashikkis@users.noreply.github.com >
2019-07-24 16:13:37 +03:00
Lew Rossman
a89f339525
PDA fixes
2019-07-22 09:50:41 -04:00