Skip to content

Commit b1c5f30

Browse files
authored
Merge branch 'OpenWaterAnalytics:dev' into dev
2 parents 375a772 + c7a928e commit b1c5f30

4 files changed

Lines changed: 30 additions & 29 deletions

File tree

doc/main.dox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ intervals of time
5151
- data curves that describe relationships between two quantities, such as head versus flow for pumps and
5252
volume versus water level for tanks
5353
- simple controls that adjust a link's setting (such as a pump's status) based on node pressure, tank
54-
level, elapsed time, ot time of day
54+
level, elapsed time, or time of day
5555
- rule-based controls that consist of one or more premises that if true result in one set of actions
5656
being taken and if false result in a different set of actions being taken
5757
- water quality sources that introduce a chemical constituent into the network at specified nodes.

doc/toolkit-input.dox

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ __Definitions:__
344344

345345
For <b>CFS, GPM, MGD, IMGD</b>, and <b>AFD</b> other input quantities are expressed in US Customary Units. If flow units are in liters or cubic meters then Metric Units must be used for all other input quantities as well. (See the @ref Units topic). The default flow units are \b GPM.
346346

347-
\b PRESSURE sets the units in which pressure is expressed, for networks using metric units, as determined by the \b UNITS option, the choices are: (\b KPA), or (\b METERS). For networks using US Customary Units, you can only use (\b PSI).
347+
\b PRESSURE sets the units in which pressure is expressed, for networks using metric units, as determined by the \b UNITS option, the choices are: \b KPA, or \b METERS. For networks using US Customary Units, you can only use \b PSI.
348348

349349
\b HEADLOSS selects a formula to use for computing head loss for flow through a pipe. The choices are the Hazen-Williams (\b H-W ), Darcy-Weisbach (\b D-W ), or Chezy-Manning (\b C-M ) formulas. The default is \b H-W.
350350

@@ -526,7 +526,7 @@ One line per node containing:
526526

527527
__Remarks:__
528528
1. Quality is assumed to be zero for nodes not listed.
529-
2. Quality represents concentration for chemicals, hours for water age, or percent for source tracing.
529+
2. Quality represents concentration for chemicals or hours for water age. Values for source tracing are not required and will be ignored.
530530
3. The <b>[QUALITY]</b> section is optional.
531531
*/
532532

@@ -617,6 +617,8 @@ __Definitions:__
617617

618618
\b SUMMARY determines whether a summary table of number of network components and key analysis options is generated. The default is \b YES.
619619

620+
\b MESSAGES determines whether error and warning messages are reported. The default is \b YES.
621+
620622
\b ENERGY determines if a table reporting average energy usage and cost for each pump is provided. The default is \b NO.
621623

622624
\b NODES identifies which nodes will be reported on. You can either list individual node ID labels or use the keywords \b NONE or \b ALL. Additional \b NODES lines can be used to continue the list. The default is \b NONE.
@@ -1067,7 +1069,7 @@ Attaches a descriptive title to the network being analyzed.
10671069

10681070
__Format:__
10691071

1070-
Any number of lines of text.
1072+
Up to three lines of text containing no more than 79 characters each can be used as a title.
10711073

10721074
__Remarks:__
10731075

@@ -1094,16 +1096,17 @@ One line for each valve containing:
10941096
- ID of valve characteristic curve (PCVs only)
10951097

10961098
__Remarks:__
1097-
1. Valve types and settings include:
1099+
1. Valve types and settings include: \n
10981100
|Valve Type | Setting |
10991101
|-----------|---------|
1100-
|<B>PRV</B> (pressure reducing valve) | Pressure, psi (m) |
1101-
|<B>PSV</B> (pressure sustaining valve) | Pressure, psi (m) |
1102-
|<B>PBV</B> (pressure breaker valve) | Pressure, psi (m) |
1102+
|<B>PRV</B> (pressure reducing valve) | Pressure (pressure units) |
1103+
|<B>PSV</B> (pressure sustaining valve) | Pressure (pressure units) |
1104+
|<B>PBV</B> (pressure breaker valve) | Pressure (pressure units) |
11031105
|<B>FCV</B> (flow control valve) | Flow (flow units) |
11041106
|<B>TCV</B> (throttle control valve) | Partially open loss coefficient |
11051107
|<B>PCV</B> (positional control valve) | Percent open |
11061108
|<B>GPV</B> (general purpose valve) | ID of head loss curve |
1109+
\n
11071110
2. Shutoff valves and check valves are considered to be part of a pipe, not a separate control valve component (see @ref PipesPage).
11081111
3. The loss coefficient setting for a TCV should not be less than its fully open loss coefficient.
11091112
4. The characteristic curve for a PCV relates the valve's percent of fully open flow to the percent open. If not supplied then a linear curve is assumed.
@@ -1141,8 +1144,6 @@ upper-left corner of the network's bounding rectangle. Default is zero offset.
11411144
__Remarks:__
11421145

11431146
1. The [BACKDROP] section is optional and only provides support for an external GUI program that uses the EPANET engine.
1144-
1145-
2. Only Windows Enhanced Metafiles and bitmap files can be used as backdrops.
11461147
*/
11471148

11481149
/**
@@ -1163,9 +1164,9 @@ __Remarks:__
11631164

11641165
1. Include one line for each node that has coordinates.
11651166

1166-
2. The coordinates represent the distance from the node to an arbitrary origin at the lower left of the network. Any convenient units of measure for this distance can be used.
1167+
2. Any convenient geographic, projected or arbitrary Cartesian coordinate system can be used.
11671168

1168-
3. The locations of the nodes need not be to actual scale.
1169+
3. The locations of nodes need not be to actual scale.
11691170

11701171
4. A [COORDINATES] section is optional and only provides support for an external GUI program that uses the EPANET engine.
11711172
*/
@@ -1212,7 +1213,7 @@ __Remarks:__
12121213

12131214
1. Include one line for each label.
12141215

1215-
2. The coordinates refer to the upper left corner of the label and are with respect to an arbitrary origin at the lower left of the network.
1216+
2. The coordinates refer to the upper left corner of the label.
12161217

12171218
3. The optional anchor node anchors the label to the node when the network layout is re-scaled during zoom-in operations.
12181219

include/epanet2_2.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ typedef struct Project *EN_Project;
440440

441441
/**
442442
@brief Opens a project's water quality solver.
443-
@param ph n EPANET project handle.
443+
@param ph an EPANET project handle.
444444
@return an error code.
445445
446446
Call ::EN_openQ prior to running the first water quality analysis using an
@@ -502,7 +502,7 @@ typedef struct Project *EN_Project;
502502
time step determined by when the next hydraulic event occurs. Use ::EN_stepQ instead
503503
if you wish to generate results over each water quality time step.
504504
505-
The value of `tStep` is determined from information produced by the hydraulic analysis
505+
The value of `out_tStep` is determined from information produced by the hydraulic analysis
506506
that preceded the water quality analysis. Treat it as a read-only variable.
507507
508508
<b>Example:</b>
@@ -533,8 +533,8 @@ typedef struct Project *EN_Project;
533533
quality time step of the simulation, rather than over each hydraulic event period
534534
as with ::EN_nextQ.
535535
536-
Use the argument `timeLeft` to determine when no more calls to ::EN_runQ are needed
537-
because the end of the simulation period has been reached (i.e., when `timeLeft` = 0).
536+
Use the argument `out_timeLeft` to determine when no more calls to ::EN_runQ are needed
537+
because the end of the simulation period has been reached (i.e., when `out_timeLeft` = 0).
538538
*/
539539
int DLLEXPORT EN_stepQ(EN_Project ph, long *out_timeLeft);
540540

@@ -1020,7 +1020,7 @@ typedef struct Project *EN_Project;
10201020
@param[out] out_pexp Pressure exponent in demand function.
10211021
@return an error code.
10221022
1023-
Parameters `pmin`, `preq`, and `pexp` are only used when the demand model is `EN_PDA`.
1023+
Parameters `out_pmin`, `out_preq`, and `out_pexp` are only used when the demand model is `EN_PDA`.
10241024
*/
10251025
int DLLEXPORT EN_getdemandmodel(EN_Project ph, int *out_type, double *out_pmin,
10261026
double *out_preq, double *out_pexp);
@@ -1036,7 +1036,7 @@ typedef struct Project *EN_Project;
10361036
10371037
Set `type` to `EN_DDA` for a traditional demand driven analysis (in which case the
10381038
remaining three parameter values are ignored) or to `EN_PDA` for a pressure driven
1039-
analysis. In the latter case a node's demand is computed as:\n
1039+
analysis. In the latter case a node's demand is 0 when pressure is below `pmin`, is at full demand when pressure is above `preq`, or is otherwise computed as:\n
10401040
`Dfull * [ (P - pmin) / (preq - pmin) ] ^ pexp`\n
10411041
where `Dfull` is the full demand and `P` is the current pressure.
10421042
@@ -1147,7 +1147,7 @@ typedef struct Project *EN_Project;
11471147
@param[out] out_demandName The name of the selected category.
11481148
@return an error code.
11491149
1150-
`demandName` must be sized to contain at least @ref EN_SizeLimits "EN_MAXID+1" characters.
1150+
`out_demandName` must be sized to contain at least @ref EN_SizeLimits "EN_MAXID+1" characters.
11511151
*/
11521152
int DLLEXPORT EN_getdemandname(EN_Project ph, int nodeIndex, int demandIndex, char *out_demandName);
11531153

@@ -1738,7 +1738,7 @@ typedef struct Project *EN_Project;
17381738
@brief Gets the enabled status of a simple control.
17391739
@param ph an EPANET project handle.
17401740
@param index the control's index (starting from 1).
1741-
@param out_enabled the control will be either EN_TRUE=enabled or EN_FALSE=disabled.
1741+
@param out_enabled `EN_TRUE` (= 1) if the control is enabled or `EN_FALSE` (= 0) if it is disabled.
17421742
@return an error code.
17431743
*/
17441744
int DLLEXPORT EN_getcontrolenabled(EN_Project ph, int index, int *out_enabled);
@@ -1747,7 +1747,7 @@ typedef struct Project *EN_Project;
17471747
@brief Sets the enabled status of a simple control.
17481748
@param ph an EPANET project handle.
17491749
@param index the control's index (starting from 1).
1750-
@param enabled set the control to either EN_TRUE=enabled or EN_FALSE=disabled.
1750+
@param enabled `EN_TRUE` (= 1) sets the control to enabled, `EN_FALSE` (= 0) sets it to disabled.
17511751
@return an error code.
17521752
*/
17531753
int DLLEXPORT EN_setcontrolenabled(EN_Project ph, int index, int enabled);

include/epanet2_enums.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ typedef enum {
6060
EN_TANK_KBULK = 23, //!< Tank bulk decay coefficient
6161
EN_TANKVOLUME = 24, //!< Current computed tank volume (read only)
6262
EN_MAXVOLUME = 25, //!< Tank maximum volume (read only)
63-
EN_CANOVERFLOW = 26, //!< Tank can overflow (= 1) or not (= 0)
63+
EN_CANOVERFLOW = 26, //!< `EN_TRUE` (= 1) if the Tank can overflow, `EN_FALSE` (= 0) if it cannot
6464
EN_DEMANDDEFICIT = 27,//!< Amount that full demand is reduced under PDA (read only)
65-
EN_NODE_INCONTROL = 28, //!< Is present in any simple or rule-based control (= 1) or not (= 0)
65+
EN_NODE_INCONTROL = 28, //!< `EN_TRUE` (= 1) if the node appears in any control, `EN_FALSE` (= 0) if not
6666
EN_EMITTERFLOW = 29, //!< Current emitter flow (read only)
6767
EN_LEAKAGEFLOW = 30, //!< Current leakage flow (read only)
6868
EN_DEMANDFLOW = 31, //!< Current consumer demand delivered (read only)
@@ -81,7 +81,7 @@ typedef enum {
8181
EN_MINORLOSS = 3, //!< Pipe/valve minor loss coefficient
8282
EN_INITSTATUS = 4, //!< Initial status (see @ref EN_LinkStatusType)
8383
EN_INITSETTING = 5, //!< Initial pump speed or valve setting
84-
EN_KBULK = 6, //!< Bulk chemical reaction coefficient
84+
EN_KBULK = 6, //!< Bulk flow chemical reaction coefficient
8585
EN_KWALL = 7, //!< Pipe wall chemical reaction coefficient
8686
EN_FLOW = 8, //!< Current computed flow rate (read only)
8787
EN_VELOCITY = 9, //!< Current computed flow velocity (read only)
@@ -100,7 +100,7 @@ typedef enum {
100100
EN_PUMP_EPAT = 22, //!< Pump energy price time pattern index
101101
EN_LINK_INCONTROL = 23, //!< Is present in any simple or rule-based control (= 1) or not (= 0)
102102
EN_GPV_CURVE = 24, //!< GPV head loss v. flow curve index
103-
EN_PCV_CURVE = 25, //!< PCV loss coeff. curve index
103+
EN_PCV_CURVE = 25, //!< PCV characteristic curve index
104104
EN_LEAK_AREA = 26, //!< Pipe leak area (sq mm per 100 length units)
105105
EN_LEAK_EXPAN = 27, //!< Leak expansion rate (sq mm per unit of pressure head)
106106
EN_LINK_LEAKAGE = 28, //!< Current leakage rate (read only)
@@ -222,8 +222,8 @@ initial status (`EN_INITSTATUS`) or its current status (`EN_STATUS`). These opti
222222
also used with @ref EN_setlinkvalue to set values for these same properties.
223223
*/
224224
typedef enum {
225-
EN_CLOSED = 0,
226-
EN_OPEN = 1
225+
EN_CLOSED = 0, //!< Link is closed and cannot convey any flow
226+
EN_OPEN = 1 //!< Link is open and is able to convey flow
227227
} EN_LinkStatusType;
228228

229229
/// Pump states
@@ -357,7 +357,7 @@ typedef enum {
357357
EN_TANKORDER = 21, //!< Bulk water reaction order for tanks
358358
EN_CONCENLIMIT = 22, //!< Limiting concentration for growth reactions
359359
EN_DEMANDPATTERN = 23, //!< Name of default demand pattern
360-
EN_EMITBACKFLOW = 24, //!< 1 if emitters can backflow, 0 if not
360+
EN_EMITBACKFLOW = 24, //!< `EN_TRUE` (= 1) if emitters can backflow, `EN_FALSE` (= 0) if not
361361
EN_PRESS_UNITS = 25, //!< Pressure units (see @ref EN_PressUnits)
362362
EN_STATUS_REPORT = 26 //!< Type of status report to produce (see @ref EN_StatusReport)
363363
} EN_Option;

0 commit comments

Comments
 (0)