Commit Graph

328 Commits

Author SHA1 Message Date
Lew Rossman
1f24209516 Fixes bug in EN_setpipedata
See issue #876 .
2025-09-03 15:11:49 -04:00
Lew Rossman
ebafb87e6a Fix link InitSetting/InitStatus properties 2025-07-25 11:02:40 -04:00
Lew Rossman
c8d92cdd48 Fix EN_setlinkvalue for EN_INITSETTING 2025-07-21 13:22:26 -04:00
lbutler
a9aa752d3a Fix Incorrect Conversion of Feet of Pressure to Meters
#864
2025-07-09 23:36:56 -04:00
lbutler
375a772d2e Fix emitter calculation 2025-07-05 21:24:39 -04:00
lbutler
3d1d6496c9 Add support for bar and feet as pressure units, fix psi or m for emitters 2025-07-04 16:10:01 -04:00
lbutler
f8f2d74bea Decoupled pressure units from the flow unit system
Decoupled pressure units from the flow unit system, allowing them to be set independently to support mixed-unit conventions (e.g., using LPS for flow and PSI for pressure).
2025-07-03 08:30:43 -04:00
Lew Rossman
b30a857319 Fix Trace Node bug
See issue #859
2025-06-18 10:43:36 -04:00
0tkl
13d075edb7 remove redundant paratheses from comments 2025-05-14 17:09:49 +08:00
0tkl
56c44c04f6 fix typos in code comments
remove duplicate words from a comment
2025-05-14 17:09:42 +08:00
Lew Rossman
e206baaaab Add EN_VALVE_TYPE to link getter & setter 2025-04-23 12:59:48 -04:00
Lew Rossman
e71b7b45ef Save changed GPV curve to link's InitSetting 2025-04-21 10:26:56 -04:00
Lew Rossman
30c20770b3 InitSetting added to Link struct
Addresses issue #823.
2025-04-19 12:54:45 -04:00
Marios S. Kyriakou
690ddadfae Fix typo - use errcode instead of status 2025-04-18 21:07:49 +03:00
Lew Rossman
d4c41a2d52 Updates to toolkit documentation 2025-03-30 10:06:29 -04:00
Lew Rossman
bd97f66097 Update docs for version 2.3 2025-03-28 09:16:38 -04:00
Lew Rossman
fff984d6be Limit demand deficit to be >= 0 2025-03-19 18:37:34 -04:00
Lew Rossman
7a1673994c Set/Get node & link tags added 2025-02-19 09:49:09 -05:00
Lew Rossman
054ebf36b5 Adjust Trace Node index when node deleted 2025-02-17 09:23:35 -05:00
Lew Rossman
a5bce31b13 Fix Trace Node bug when new junction added 2025-02-17 08:44:28 -05:00
Marios S. Kyriakou
3604f3f693 fix
Co-Authored-By: Lew Rossman <LRossman@outlook.com>
2024-08-01 22:45:42 +03:00
Marios S. Kyriakou
b16dacb87e Add a new pattern or use an existing pattern - EN_loadpatternfile
Co-Authored-By: Lew Rossman <LRossman@outlook.com>
2024-08-01 17:06:32 +03:00
Marios S. Kyriakou
17b14e2178 fix missing ')' 2024-08-01 09:06:04 +03:00
Marios S. Kyriakou
03e889d675 Update epanet.c
Co-Authored-By: Lew Rossman <LRossman@outlook.com>
2024-08-01 08:58:13 +03:00
Marios S. Kyriakou
53350880c9 Add EN_loadpatternfile, ENloadpatternfile 2024-07-31 19:48:19 +03:00
Lew Rossman
b0796f346a Adding leakage model 2024-06-26 11:15:01 -04:00
Sam Hatchett
31cfd60943 fixes compilation with old compilers and keeps our programming conventions of declaring variables 2024-06-24 15:10:06 -04:00
Abel Heinsbroek
93a0b3671b Merge branch 'dev' into dev 2024-05-31 21:36:57 +02:00
Lew Rossman
7b334875f8 Merge pull request #797 from lbutler/big-fix-emitter-coefficient
Fix emitter-related NaN errors from EN_setnodevalue API
2024-05-29 08:23:56 -04:00
lbutler
a74171fa26 Fix emitter-related NaN errors by initializing zero EmitterFlow to 1.0.
Co-Authored-By: Lew Rossman <LRossman@outlook.com>
2024-05-28 22:18:29 -04:00
Dennis
d50c673321 Fix Issue #790 - incorrect number of pipes
The pipe counter was not decreased if the element was a pipe.
2024-05-23 10:33:30 +03:00
Abel Heinsbroek
9637f5c092 change names of new functions to ENgetnodevalues and ENgetlinkvalues 2024-04-24 15:20:59 +02:00
Abel Heinsbroek
4dff3bd054 add ENgetnodesvalues and ENgetlinksvalues methods 2024-04-23 11:31:17 +02:00
Lew Rossman
c0700c83ee Refactored validate.c 2023-10-05 11:37:13 -04:00
Lew Rossman
10d5079d75 Add EN_openX function
EN_openX allows an EPANET input file to be opened even if it has errors. This required re-arranging code, mainly in input3.c, so that default values are assigned to an object before its input line is parsed.
2023-10-04 09:53:05 -04:00
Sam Hatchett
d0ab568a5d using int/bool convention instead of new enum type 2023-09-13 09:14:57 -04:00
Sam Hatchett
06a43cdb4e adds api support for enabling/disabling controls and rules 2023-09-12 14:51:44 -04:00
Lew Rossman
353ba4eb34 Allow API to get/set type of status report
The existing EN_setstatusreport function only allows one to set the level of status reporting and not retrieve this value. A new EN_STATUS_REPORT constant was added, to be used with EN_setoption and EN_getoption, to provide read/write access to the level of status reporting.
2023-07-19 09:15:25 -04:00
Lew Rossman
3acfb6dae3 Added retrieval of emitter flow to the API 2023-07-06 15:35:30 -04:00
Lew Rossman
789d42f248 Merge pull request #732 from OpenWaterAnalytics/dev-controls
Allow simple controls to set valves OPEN/CLOSED
2023-06-08 10:37:45 -04:00
Lew Rossman
a9079b023b Allow simple controls to set valves OPEN/CLOSED 2023-05-13 12:29:35 -04:00
james uber
7ae9c28e1a setlinkvalue missing a break statement 2023-04-15 12:57:01 -04:00
Luke Butler
9cde32080a added function updateruleunits 2023-03-30 16:22:58 -04:00
Luke Butler
6bc1efaf1c Check pressure units in metric are not set to PSI 2023-03-16 16:21:55 -04:00
Luke Butler
4beebbd470 Add EN_PRESS_UNITS to EN_getoption & EN_setoption 2023-03-16 16:13:49 -04:00
Luke Butler
843f1f4e37 Added support for cubic meters per second (CMS) 2023-02-20 09:43:42 -05:00
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