{
 "tool": "model-review",
 "toolVersion": "1.0.0",
 "methods": [
  "review 1.0.0"
 ],
 "commit": "19a9cfe8",
 "date": "2026-11-23",
 "summary": "53 of 53 cases (204 values) within tolerance against HEC-HMS 4.13 sample project Castro, NRCS NEH 630 Chapter 16, HEC-RAS Applications Guide, HEC-RAS 2D Modeling User's Manual, Hand calculation.",
 "note": "Generated by _workspace/tools/hh_verification.mjs from the fixtures; commit = code verified.",
 "cases": [
  {
   "id": "HMS-CASTRO-1",
   "what": "Subbasin-1, 0.86 sq mi: precipitation 1.9200 in, loss 0.8072 in, excess 1.1128 in, outflow 51.98 ac-ft. Precipitation, loss and excess volumes and the outflow depth as HEC-HMS printed them",
   "reference": "HEC-HMS 4.13 sample project Castro (samples.zip as shipped by HEC), run Current, file results/RUN_Current.results, element Subbasin-1",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "HMS-CASTRO-2",
   "what": "Subbasin-2, 1.52 sq mi: precipitation 1.4560 in, loss 0.7251 in, excess 0.7309 in, outflow 58.70 ac-ft. Precipitation, loss and excess volumes and the outflow depth as HEC-HMS printed them",
   "reference": "HEC-HMS 4.13 sample project Castro (samples.zip as shipped by HEC), run Current, file results/RUN_Current.results, element Subbasin-2",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "HMS-CASTRO-3",
   "what": "Subbasin-3, 2.17 sq mi: precipitation 1.5433 in, loss 0.7217 in, excess 0.8217 in, outflow 97.14 ac-ft. Precipitation, loss and excess volumes and the outflow depth as HEC-HMS printed them",
   "reference": "HEC-HMS 4.13 sample project Castro (samples.zip as shipped by HEC), run Current, file results/RUN_Current.results, element Subbasin-3",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "HMS-CASTRO-4",
   "what": "Subbasin-4, 0.96 sq mi: precipitation 1.3460 in, loss 0.6553 in, excess 0.6907 in, outflow 36.68 ac-ft. Precipitation, loss and excess volumes and the outflow depth as HEC-HMS printed them",
   "reference": "HEC-HMS 4.13 sample project Castro (samples.zip as shipped by HEC), run Current, file results/RUN_Current.results, element Subbasin-4",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "HMS-CASTRO-J-WEST",
   "what": "Junction West Branch: outflow volumes of Reach-2 and Subbasin-4 added, against the junction outflow volume HEC-HMS printed (132.7468124 ac-ft)",
   "reference": "HEC-HMS 4.13 sample project Castro (samples.zip as shipped by HEC), run Current, file results/RUN_Current.results, junction West Branch",
   "compared": 2,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "HMS-CASTRO-J-EAST",
   "what": "Junction East Branch: outflow volumes of Reach-1 and Subbasin-2 added, against the junction outflow volume HEC-HMS printed (109.9055063 ac-ft)",
   "reference": "HEC-HMS 4.13 sample project Castro (samples.zip as shipped by HEC), run Current, file results/RUN_Current.results, junction East Branch",
   "compared": 2,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "HMS-CASTRO-J-OUTLET",
   "what": "Junction Outlet: outflow volumes of West Branch and East Branch added, against the junction outflow volume HEC-HMS printed (242.6523187 ac-ft)",
   "reference": "HEC-HMS 4.13 sample project Castro (samples.zip as shipped by HEC), run Current, file results/RUN_Current.results, junction Outlet",
   "compared": 2,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "NEH16-EX16-1",
   "what": "4.6 sq mi, time of concentration 2.3 h, unit of excess 0.3 h: Tp = 0.30 / 2 + 0.6 x 2.3 = 1.53 h and qp = 484 x 4.6 x 1 / 1.53 = 1,455 cfs as printed",
   "reference": "NRCS NEH 630 Chapter 16 (March 2007), Example 16-1, p. 16-8",
   "compared": 2,
   "maxDiff": "0.01 %",
   "pass": true
  },
  {
   "id": "NEH16-FIG16-2B",
   "what": "4.6 sq mi, time of concentration 6.0 h, unit of excess 0.8 h: Tp = 4.0 h and qp = 557 cfs as printed on the figure",
   "reference": "NRCS NEH 630 Chapter 16 (March 2007), Figure 16-2, area B, p. 16-5",
   "compared": 2,
   "maxDiff": "0.07 %",
   "pass": true
  },
  {
   "id": "RAS-AG-F1.6-HV",
   "what": "River station 12: alpha 3.67 and total velocity 3.52 ft/s give the velocity head 0.71 ft printed in the same table",
   "reference": "HEC-RAS Applications Guide 5.0.4 (April 2018), Example 1 Critical Creek, Figure 1-6, p. 1-7",
   "compared": 1,
   "maxDiff": "0.47 %",
   "pass": true
  },
  {
   "id": "RAS-2D-F4.3-ALL",
   "what": "Whole model: starting 294.2, inflow 36,674, outflow 33,368, final 1,640 + 1,958 ac-ft, error -2.898993 ac-ft as the log prints it: percent error 0.007842 as printed",
   "reference": "HEC-RAS 2D Modeling User's Manual 5.0 (February 2016), Figure 4-3, p. 4-10, whole model",
   "compared": 1,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "RAS-2D-F4.3-AREA",
   "what": "2D flow area: cumulative inflow 3,579, cumulative outflow 1,622, ending volume 1,958 ac-ft, error 0.2780 ac-ft: percent error 0.007767 as printed",
   "reference": "HEC-RAS 2D Modeling User's Manual 5.0 (February 2016), Figure 4-3, p. 4-10, 2D flow area",
   "compared": 1,
   "maxDiff": "0.01 %",
   "pass": true
  },
  {
   "id": "ARITH-VOL-RATIOS",
   "what": "Castro Subbasin-3: 53.33 ac-ft per inch per square mile, excess over rainfall, outflow over rainfall, residual of the depths, and peak per square mile",
   "reference": "Volume = depth x area (1 sq mi = 640 ac), hand calculation",
   "compared": 7,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-VOL-RESIDUAL",
   "what": "10 sq mi, 6.00 in of rain, 2.10 in lost, 3.80 in excess: 0.10 in (1.667 %) is in neither",
   "reference": "Volume = depth x area (1 sq mi = 640 ac), hand calculation",
   "compared": 9,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-VOL-P-ONLY",
   "what": "Depth and area only: 1 in over 1 sq mi is 53.33 ac-ft; nothing else is reported",
   "reference": "Volume = depth x area (1 sq mi = 640 ac), hand calculation",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-VOL-NOAREA",
   "what": "A drainage area of zero is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-DT-RATIOS",
   "what": "NEH Example 16-1 numbers: step over lag, the step at 29 % of the lag, step over Tp, the step at 0.25 Tp, lag over Tc, step over Tc and the step at 0.133 Tc",
   "reference": "HEC-HMS Technical Reference Manual Eqs. 36-38 and p. 55; NEH 630 Chapter 16 Eq. 16A-13, hand calculation",
   "compared": 9,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-DT-CASTRO",
   "what": "5-minute step with a 12-minute lag and no time of concentration or area: 41.7 % of the lag; the step at 29 % is 3.48 min; Tp = 14.5 min",
   "reference": "HEC-HMS Technical Reference Manual Eqs. 36-38 and p. 55; NEH 630 Chapter 16 Eq. 16A-13, hand calculation",
   "compared": 7,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-DT-PRF",
   "what": "Peak rate factor 300 entered in place of 484: 2 sq mi, lag 60 min, step 6 min: Tp = 63 min, peak 300 x 2 / 1.05 = 571.4 cfs per inch",
   "reference": "HEC-HMS Technical Reference Manual Eqs. 36-38 and p. 55; NEH 630 Chapter 16 Eq. 16A-13, hand calculation",
   "compared": 3,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-DT-ZERO-LAG",
   "what": "A lag of zero is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-MUSK-CASTRO",
   "what": "Parameters of Reach-1 of the HEC-HMS sample project Castro (K 0.6 h, X 0.2, 7 subreaches) at its 5-minute interval: step travel time, dt / K, the Figure 27 limits, the three coefficients and K / dt",
   "reference": "HEC-HMS Technical Reference Manual Eq. 80 and Figure 27 (pp. 81-82), hand calculation",
   "compared": 12,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-MUSK-ONE",
   "what": "K 2 h, X 0.25, 1-hour step, one subreach: dt / K = 0.5 sits on the lower limit 2X, so C1 is zero",
   "reference": "HEC-HMS Technical Reference Manual Eq. 80 and Figure 27 (pp. 81-82), hand calculation",
   "compared": 12,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-MUSK-NEG",
   "what": "K 3 h, X 0.4, 15-minute step, one subreach: dt / K = 0.083 is below 2X = 0.8 and C1 comes out negative; the numbers are reported as they are",
   "reference": "HEC-HMS Technical Reference Manual Eq. 80 and Figure 27 (pp. 81-82), hand calculation",
   "compared": 12,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-MUSK-X",
   "what": "X of 0.6 is refused",
   "reference": "HEC-HMS Technical Reference Manual p. 81: X between 0 and 0.5",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-MUSK-STEPS",
   "what": "A number of subreaches that is not a whole number is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-JUNC",
   "what": "Three inflows of 120.4, 36.2 and 8.9 ac-ft against an outflow of 164.0 ac-ft: 1.5 ac-ft (0.906 %) more comes in than goes out",
   "reference": "Sum of the inflow volumes less the outflow volume, hand calculation",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-JUNC-REACH",
   "what": "The same subtraction on Reach-2 of the Castro sample (inflow 97.1396583, outflow 96.0666918 ac-ft): 1.073 ac-ft, 1.105 %, is still in the reach when the run ends",
   "reference": "Sum of the inflow volumes less the outflow volume, hand calculation",
   "compared": 2,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-JUNC-EMPTY",
   "what": "No inflow is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-XS-12",
   "what": "River stations 12 and 11.8*: velocity heads 0.33 and 0.87 ft, change 0.54 ft, energy loss 0.50 ft, velocity head rising downstream (contraction)",
   "reference": "HEC-RAS Hydraulic Reference Manual Eqs. 2-1 and 2-17, hand calculation; elevations printed in HEC-RAS Applications Guide Figure 1-12 (p. 1-16)",
   "compared": 7,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-XS-10",
   "what": "River stations 10.2* and 10, with an expansion coefficient of 0.3: velocity heads 1.72 and 0.45 ft, change 1.27 ft, energy loss 2.08 ft, transition loss 0.381 ft and the remainder 1.699 ft",
   "reference": "HEC-RAS Hydraulic Reference Manual Eqs. 2-1 and 2-17, hand calculation; elevations printed in HEC-RAS Applications Guide Figure 1-12 (p. 1-16)",
   "compared": 8,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-XS-K",
   "what": "Conveyance 108,702.6 upstream and 71,500 downstream: ratio 1.520; flow 9,000 cfs upstream and 9,500 cfs downstream: +500 cfs, +5.556 %",
   "reference": "Conveyance ratio = upstream over downstream (HEC-RAS Applications Guide p. 1-10); flow change, hand calculation",
   "compared": 7,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-XS-RISE",
   "what": "Energy grade higher at the section entered as downstream: computed as entered (loss -0.40 ft), with a note to check the order",
   "reference": "HEC-RAS Hydraulic Reference Manual Eqs. 2-1 and 2-17, hand calculation",
   "compared": 2,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-XS-BELOW",
   "what": "An energy grade elevation below the water surface is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-XS-ONE-K",
   "what": "One conveyance without the other is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-FR",
   "what": "River station 12 channel: 10.51 ft/s at a hydraulic depth of 7.13 ft: Froude number 0.694 (the figure does not print it)",
   "reference": "Froude number = V / (g D)^0.5 with g = 32.174 ft/s2, hand calculation; channel values printed in HEC-RAS Applications Guide Figure 1-6 (p. 1-7)",
   "compared": 2,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-FR-BOTH",
   "what": "Both parts at once: velocity head 3.67 x 3.52^2 / (2 x 32.174) and the channel Froude number",
   "reference": "Froude number = V / (g D)^0.5 with g = 32.174 ft/s2, hand calculation; channel values printed in HEC-RAS Applications Guide Figure 1-6 (p. 1-7)",
   "compared": 2,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-FR-NONE",
   "what": "No input is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-C2D-DW",
   "what": "Diffusion wave: 6 ft/s, 30 s step, 50 ft cells: C = 3.6; the steps for C = 2.0 and 5.0 are 16.67 s and 41.67 s",
   "reference": "C = V dT / dX (HEC-RAS 2D Modeling User's Manual p. 4-5), hand calculation",
   "compared": 6,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-C2D-ELM",
   "what": "Saint Venant (full momentum, SWE-ELM): 6 ft/s, 5 s step, 50 ft cells: C = 0.6; the steps for C = 1.0 and 3.0 are 8.333 s and 25 s",
   "reference": "C = V dT / dX (HEC-RAS 2D Modeling User's Manual p. 4-5), hand calculation",
   "compared": 5,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-C2D-EM",
   "what": "SWE-EM: 12 ft/s, 2 s step, 20 ft cells: C = 1.2; both printed values are 1.0, at a 1.667 s step",
   "reference": "C = V dT / dX; SWE-EM values of the HEC-RAS 2D User's Manual 6.6 (online), hand calculation",
   "compared": 5,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-C2D-EQ",
   "what": "An unknown equation set is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-C1D-NAT",
   "what": "Natural channel (1.5): 6 ft/s average, sections 500 ft apart, 30 s step, 6-hour rise: wave speed 9 ft/s, Cr = 0.54, step for Cr = 1 is 55.56 s, Tr / 20 = 1,080 s",
   "reference": "Cr = Vw dt / dx with Vw from Table 8-2, and dt = Tr / 20 (HEC-RAS User's Manual pp. 8-73, 8-74), hand calculation",
   "compared": 5,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-C1D-RECT",
   "what": "Table 8-2 factor 1.67: 4 ft/s, 1,000 ft, 60 s",
   "reference": "Cr = Vw dt / dx with Vw from Table 8-2, and dt = Tr / 20 (HEC-RAS User's Manual pp. 8-73, 8-74), hand calculation",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-C1D-PARAB",
   "what": "Table 8-2 factor 1.44: 4 ft/s, 1,000 ft, 60 s",
   "reference": "Cr = Vw dt / dx with Vw from Table 8-2, and dt = Tr / 20 (HEC-RAS User's Manual pp. 8-73, 8-74), hand calculation",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-C1D-TRI",
   "what": "Table 8-2 factor 1.33: 4 ft/s, 1,000 ft, 60 s",
   "reference": "Cr = Vw dt / dx with Vw from Table 8-2, and dt = Tr / 20 (HEC-RAS User's Manual pp. 8-73, 8-74), hand calculation",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-C1D-VW",
   "what": "Wave speed entered directly (11 ft/s): 800 ft, 120 s: Cr = 1.65",
   "reference": "Cr = Vw dt / dx with Vw from Table 8-2, and dt = Tr / 20 (HEC-RAS User's Manual pp. 8-73, 8-74), hand calculation",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-C1D-SHAPE",
   "what": "An unknown channel shape is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-SP",
   "what": "Wave speed 9 ft/s with a 6-hour rise: 9,720 ft; bank-full depth 8 ft on a slope of 0.002: 600 ft; a model spacing of 450 ft is 0.0463 and 0.75 of them",
   "reference": "Fread dX = c Tr / 20 and Samuels dX = 0.15 D / S0 (HEC-RAS User's Manual p. 8-72), hand calculation",
   "compared": 4,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-SP-SAMUELS",
   "what": "Samuels alone: depth 4 ft, slope 0.01: 60 ft",
   "reference": "Fread dX = c Tr / 20 and Samuels dX = 0.15 D / S0 (HEC-RAS User's Manual p. 8-72), hand calculation",
   "compared": 3,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-SP-NONE",
   "what": "No input is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  },
  {
   "id": "ARITH-VA-DIFF",
   "what": "Whole model of Figure 4-3 from the printed volumes alone, no error entered: -2.2 ac-ft (0.00595 %), against the -2.898993 ac-ft the log reports from unrounded volumes",
   "reference": "difference = (outflow + ending) - (starting + inflow); percent = 100 |error| / (starting + inflow), hand calculation; volumes printed in HEC-RAS 2D Modeling User's Manual Figure 4-3 (p. 4-10)",
   "compared": 5,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-VA-BOTH",
   "what": "With the reported error entered, both numbers are returned: the reported error is used for the percentage and the difference of the printed volumes is kept beside it",
   "reference": "difference = (outflow + ending) - (starting + inflow); percent = 100 |error| / (starting + inflow), hand calculation; volumes printed in HEC-RAS 2D Modeling User's Manual Figure 4-3 (p. 4-10)",
   "compared": 5,
   "maxDiff": "0.00 %",
   "pass": true
  },
  {
   "id": "ARITH-VA-ZERO",
   "what": "No starting volume and no inflow is refused",
   "reference": "Input limits of review.js",
   "compared": 1,
   "maxDiff": "both refuse",
   "pass": true
  }
 ]
}
