Function | /* RMP Reference Tables */
$T = array(
/* Table 1: 10 min, Rural, F stability, 1.5 m/s [(lbs/min)/(mg/L), mile] */
'1' => array(
4.4, 0.1, 37, 0.2, 97, 0.3, 180, 0.4, 340, 0.6, 530, 0.8,
760, 1.0, 1000, 1.2, 1500, 1.4, 1900, 1.6, 2400, 1.8, 2900, 2.0,
3500, 2.2, 4400, 2.4, 5100, 2.6, 5900, 2.8, 6800, 3.0, 7700, 3.2,
9000, 3.4, 10000, 3.6, 11000, 3.8, 12000, 4.0, 14000, 4.2, 15000, 4.4,
16000, 4.6, 18000, 4.8, 19000, 5.0, 21000, 5.2, 23000, 5.4, 24000, 5.6,
26000, 5.8, 28000, 6.0, 29600, 6.2, 35600, 6.8, 42000, 7.5, 48800, 8.1,
56000, 8.7, 63600, 9.3, 71500, 9.9, 88500, 11., 107000, 12., 126000, 14.,
147000, 15., 169000, 16., 191000, 17., 215000, 19., 279000, 22., 347000, 25.
),
/* Table 2: 60 min, Rural, F stability, 1.5 m/s [(lbs/min)/(mg/L), mile] */
'2' => array(
5.5, 0.1, 46, 0.2, 120, 0.3, 220, 0.4, 420, 0.6, 650, 0.8,
910, 1.0, 1200, 1.2, 1600, 1.4, 1900, 1.6, 2300, 1.8, 2600, 2.0,
2900, 2.2, 3400, 2.4, 3700, 2.6, 4100, 2.8, 4400, 3.0, 4800, 3.2,
5200, 3.4, 5600, 3.6, 5900, 3.8, 6200, 4.0, 6700, 4.2, 7000, 4.4,
7400, 4.6, 7700, 4.8, 8100, 5.0, 8500, 5.2, 8900, 5.4, 9200, 5.6,
9600, 5.8, 10000, 6.0, 10400, 6.2, 11700, 6.8, 13100, 7.5, 14500, 8.1,
15900, 8.7, 17500, 9.3, 19100, 9.9, 22600, 11., 26300, 12., 30300, 14.,
34500, 15., 38900, 16., 43600, 17., 48400, 19., 61500, 22., 75600, 25.
),
/* Table 3: 10 min, Urban, F stability, 1.5 m/s [(lbs/min)/(mg/L), mile] */
'3' => array(
21, 0.1, 170, 0.2, 420, 0.3, 760, 0.4, 1400, 0.6, 2100, 0.8,
3100, 1.0, 4200, 1.2, 6100, 1.4, 7800, 1.6, 9700, 1.8, 12000, 2.0,
14000, 2.2, 18000, 2.4, 22000, 2.6, 25000, 2.8, 29000, 3.0, 33000, 3.2,
39000, 3.4, 44000, 3.6, 49000, 3.8, 55000, 4.0, 63000, 4.2, 69000, 4.4,
76000, 4.6, 83000, 4.8, 90000, 5.0, 100000, 5.2, 110000, 5.4, 120000, 5.6,
130000, 5.8, 140000, 6.0, 148000, 6.2, 183000, 6.8, 221000, 7.5, 264000, 8.1,
310000, 8.7, 361000, 9.3, 415000, 9.9, 535000, 11., 671000, 12., 822000, 14.,
990000, 15., 1170000, 16., 1370000, 17., 1590000, 19., 2190000, 22., 2890000, 25.
),
/* Table 4: 60 min, Urban, F stability, 1.5 m/s [(lbs/min)/(mg/L), mile] */
'4' => array(
26, 0.1, 210, 0.2, 530, 0.3, 940, 0.4, 1700, 0.6, 2600, 0.8,
3700, 1.0, 4800, 1.2, 6400, 1.4, 7700, 1.6, 9100, 1.8, 11000, 2.0,
12000, 2.2, 14000, 2.4, 16000, 2.6, 17000, 2.8, 19000, 3.0, 21000, 3.2,
23000, 3.4, 24000, 3.6, 26000, 3.8, 28000, 4.0, 30000, 4.2, 32000, 4.4,
34000, 4.6, 36000, 4.8, 38000, 5.0, 41000, 5.2, 43000, 5.4, 45000, 5.6,
47000, 5.8, 50000, 6.0, 52200, 6.2, 60200, 6.8, 68900, 7.5, 78300, 8.1,
88400, 8.7, 99300, 9.3, 111000, 9.9, 137000, 11., 165000, 12., 197000, 14.,
232000, 15., 271000, 16., 312000, 17., 357000, 19., 483000, 22., 629000, 25.
),
/* Table 14: 10 min, Rural, D stability, 3.0 m/s [(lbs/min)/(mg/L), mile] */
'14' => array(
64, 0.1, 510, 0.2, 1300, 0.3, 2300, 0.4, 4100, 0.6, 6300, 0.8,
8800, 1.0, 12000, 1.2, 16000, 1.4, 19000, 1.6, 22000, 1.8, 26000, 2.0,
30000, 2.2, 36000, 2.4, 42000, 2.6, 47000, 2.8, 54000, 3.0, 60000, 3.2,
70000, 3.4, 78000, 3.6, 87000, 3.8, 97000, 4.0, 110000, 4.2, 120000, 4.4,
130000, 4.6, 140000, 4.8, 160000, 5.0, 180000, 5.2, 190000, 5.4, 210000, 5.6,
220000, 5.8, 240000, 6.0, 261000, 6.2, 325000, 6.8, 397000, 7.5, 477000, 8.1,
566000, 8.7, 663000, 9.3, 769000, 9.9, 1010000, 11., 1280000, 12., 1600000, 14.,
1950000, 15., 2340000, 16., 2770000, 17., 3240000, 19., 4590000, 22., 6190000, 25.
),
/* Table 15: 60 min, Rural, D stability, 3.0 m/s [(lbs/min)/(mg/L), mile] */
'15' => array(
79, 0.1, 630, 0.2, 1600, 0.3, 2800, 0.4, 5200, 0.6, 7900, 0.8,
11000, 1.0, 14000, 1.2, 19000, 1.4, 23000, 1.6, 27000, 1.8, 32000, 2.0,
36000, 2.2, 42000, 2.4, 47000, 2.6, 52000, 2.8, 57000, 3.0, 61000, 3.2,
68000, 3.4, 73000, 3.6, 79000, 3.8, 84000, 4.0, 91000, 4.2, 97000, 4.4,
100000, 4.6, 108000, 4.8, 113000, 5.0, 120000, 5.2, 126000, 5.4, 132000, 5.6,
140000, 5.8, 150000, 6.0, 151000, 6.2, 171000, 6.8, 191000, 7.5, 212000, 8.1,
233000, 8.7, 256000, 9.3, 280000, 9.9, 332000, 11., 390000, 12., 456000, 14.,
529000, 15., 610000, 16., 699000, 17., 796000, 19., 1080000, 22., 1410000, 25.
),
/* Table 16: 10 min, Urban, D stability, 3.0 m/s [(lbs/min)/(mg/L), mile] */
'16' => array(
160, 0.1, 1400, 0.2, 3600, 0.3, 6900, 0.4, 13000, 0.6, 22000, 0.8,
31000, 1.0, 42000, 1.2, 59000, 1.4, 73000, 1.6, 88000, 1.8, 100000, 2.0,
120000, 2.2, 150000, 2.4, 170000, 2.6, 200000, 2.8, 230000, 3.0, 260000, 3.2,
310000, 3.4, 340000, 3.6, 390000, 3.8, 430000, 4.0, 490000, 4.2, 540000, 4.4,
600000, 4.6, 660000, 4.8, 720000, 5.0, 810000, 5.2, 880000, 5.4, 950000, 5.6,
1000000, 5.8, 1100000, 6.0, 1220000, 6.2, 1530000, 6.8, 1880000, 7.5, 2280000, 8.1,
2710000, 8.7, 3200000, 9.3, 3730000, 9.9, 4920000, 11., 6310000, 12., 7890000, 14.,
9660000, 15., 11600000, 16., 13800000, 17., 16200000, 19., 23100000, 22., 31300000, 25.
),
/* Table 17: 60 min, Urban, D stability, 3.0 m/s [(lbs/min)/(mg/L), mile] */
'17' => array(
200, 0.1, 1700, 0.2, 4500, 0.3, 8600, 0.4, 17000, 0.6, 27000, 0.8,
39000, 1.0, 53000, 1.2, 73000, 1.4, 90000, 1.6, 110000, 1.8, 130000, 2.0,
150000, 2.2, 170000, 2.4, 200000, 2.6, 220000, 2.8, 240000, 3.0, 270000, 3.2,
300000, 3.4, 320000, 3.6, 350000, 3.8, 370000, 4.0, 410000, 4.2, 430000, 4.4,
460000, 4.6, 490000, 4.8, 520000, 5.0, 550000, 5.2, 580000, 5.4, 610000, 5.6,
640000, 5.8, 680000, 6.0, 705000, 6.2, 804000, 6.8, 905000, 7.5, 1010000, 8.1,
1120000, 8.7, 1230000, 9.3, 1350000, 9.9, 1620000, 11., 1920000, 12., 2250000, 14.,
2620000, 15., 3030000, 16., 3490000, 17., 3980000, 19., 5410000, 22., 7120000, 25.
),
);
/* Calculate release rate/endpoint ratio */
$r = [qgr:lb/min]/[RMP_TEP:mg/L];
/* Get reference table */
$t = $T[[RMP_RT]];
/* Find endpoint distance */
for ($i = 0, $n = count($t); $i < $n; $i += 2) {
if ($r <= $t[$i]) break;
}
$d = $i >= $n ? '*' : $t[$i+1];
if ($d == '.') return '<0.1';
if ($d == '*') return '>25.0';
return $d;
|
---|