Dimensionless Huff 10-50 2ndQ 50% and 50-400 3rdQ 50% distributions throw an index was outside the b


 Applies To 
 Product(s):PondPack
 Version(s):08.11.01.56
 Area: Layout and Data Input
 Original Author:Mark Pachlhofer, Bentley Technical Support Group

Problem

When I try to use a dimensionless Huff 10-50 2ndQ 50% or 50-400 3rdQ 50% distribution the following error appears:

"System.IndexOutOfRangeException: Index was outside the bounds of the array."

Solution

This is caused by these particular distributions in your engineering libraries not containing any data. This is a known issue (reference # TFS67055).

To resolve this, use the information below and copy then paste the information in to the collection

  1. Go to Components > Engineering Libraries
  2. Expand the 'Dimensionless Rainfall Curves' library by clicking the plus sign (+) to the left of it
  3. Expand the Bul70-71.xml library by clicking on the plus (+) sign
  4. Locate the appropriate distribution and click on it. You will notice there is information populated on the right side of the dialog box.
  5. On the right side of the dialog box click on where you see <Collection: 0 items> . You should now see an ellipsis. Click on it.
  6. In the dialog that appears, click the yellow edit button at the top, enter an increment of 0.01 and click OK.
  7. Check to make sure the dialog looks like the screenshot below. If you do not see "(%)" after the "Depth" column, it means your units are set to dimensionless (which expects values from 0 to 1.0 instead of 1-100 for percent). If you do not see the percentage unit, right click on the "Depth" column header, choose "Units and Formatting" and change the unit to be "%".



  8. Download the spreadsheet file from the link below and save to your hard drive.
    1. Huff Distribution 50 400 3Q 50%
    2. Huff Distribution 10 50 2Q 50%

      Note: you will need to be signed in to download these files.

  9. Open the spreadsheet in an external application such as Excel, highlight all of the depth values (cells B2 through B102) and press CTRL+C to copy to memory
  10. Back in PondPack (see dialog above) click in the first cell under the "Depth (%)" column (row 1) and press CTRL+V to paste in the values from Excel.
  11. Verify that all the values pasted in - the last row should show a value of 100% next to the "synthetic time" of 1.0. (see screenshot below)
  12. Click OK and note that the right side of the Engineering Library should say "collection: 101 items" next to the distribution you just fixed. Repeat this process for the other distribution if needed.

See Also

Modifying and adding items to an engineering library

How to create a custom rainfall distribution