|
6 | 6 | % Retrieves the value of a specific link parameter.
|
7 | 7 | %
|
8 | 8 | % Arguments:
|
9 |
| -% index: node index |
| 9 | +% index: node index |
10 | 10 | % paramcode: parameter code (see below)
|
11 | 11 | % value: parameter value
|
12 | 12 | %
|
|
31 | 31 | % EN_PRESSURE 11 Pressure
|
32 | 32 | % EN_QUALITY 12 Actual quality
|
33 | 33 | % 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 | +% |
34 | 47 | % Parameters 9 - 13 (EN_DEMAND through EN_SOURCEMASS) are computed values. The others are input design parameters.
|
35 | 48 | %
|
36 | 49 | % Source types are identified with the following constants:
|
|
41 | 54 | % EN_FLOWPACED 3
|
42 | 55 | % See [SOURCES] for a description of these source types.
|
43 | 56 | %
|
| 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 | +% |
44 | 64 | % Values are returned in units which depend on the units used for flow rate in the EPANET input file (see Units of Measurement).
|
45 | 65 | %
|
46 |
| -% Version 2.00.07 (January 2001) |
| 66 | +% Version 2.00.12 (March 2008) |
47 | 67 |
|
48 | 68 | global ENDLLNAME;
|
49 | 69 | value=single(0);
|
|
0 commit comments