Skip to content

Commit c998b8c

Browse files
committed
Merge pull request #1 from eldemet/patch-1
Update EPANET/ENgetnodevalue.m
2 parents ffaf4d0 + adbcf76 commit c998b8c

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

EPANET/ENgetnodevalue.m

+22-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
% Retrieves the value of a specific link parameter.
77
%
88
% Arguments:
9-
% index: node index
9+
% index: node index
1010
% paramcode: parameter code (see below)
1111
% value: parameter value
1212
%
@@ -31,6 +31,19 @@
3131
% EN_PRESSURE 11 Pressure
3232
% EN_QUALITY 12 Actual quality
3333
% EN_SOURCEMASS 13 Mass flow rate per minute of a chemical source
34+
%
35+
% The following parameter codes apply only to storage tank nodes:
36+
% EN_INITVOLUME 14 Initial water volume
37+
% EN_MIXMODEL 15 Mixing model code (see below)
38+
% EN_MIXZONEVOL 16 Inlet/Outlet zone volume in a 2-compartment tank
39+
% EN_TANKDIAM 17 Tank diameter
40+
% EN_MINVOLUME 18 Minimum water volume
41+
% EN_VOLCURVE 19 Index of volume versus depth curve (0 if none assigned)
42+
% EN_MINLEVEL 20 Minimum water level
43+
% EN_MAXLEVEL 21 Maximum water level
44+
% EN_MIXFRACTION 22 Fraction of total volume occupied by the inlet/outlet zone in a 2-compartment tank
45+
% EN_TANK_KBULK 23 Bulk reaction rate coefficient
46+
%
3447
% Parameters 9 - 13 (EN_DEMAND through EN_SOURCEMASS) are computed values. The others are input design parameters.
3548
%
3649
% Source types are identified with the following constants:
@@ -41,9 +54,16 @@
4154
% EN_FLOWPACED 3
4255
% See [SOURCES] for a description of these source types.
4356
%
57+
% The codes for the various tank mixing model choices are as follows:
58+
%
59+
% EN_MIX1 0 Single compartment, complete mix model
60+
% EN_MIX2 1 Two-compartment, complete mix model
61+
% EN_FIFO 2 Plug flow, first in, first out model
62+
% EN_LIFO 3 Stacked plug flow, last in, first out model
63+
%
4464
% Values are returned in units which depend on the units used for flow rate in the EPANET input file (see Units of Measurement).
4565
%
46-
% Version 2.00.07 (January 2001)
66+
% Version 2.00.12 (March 2008)
4767

4868
global ENDLLNAME;
4969
value=single(0);

0 commit comments

Comments
 (0)