WinDETPOND Program Modifications Log v 8.5.0 (under development) 1. Misc. a. Change Stoneweeper.txt detailed output file name to Stoneweeper.csv to import directly into excel. (8/20/06) b. Changed Voorhees label to 'PV and Associates, LLC" c. Added rainfall depth to detailed output line 1 for each event. d. Added extra blank variables to .pnd file (25Dec06) e. Removed proPrintInputFile gosubs (25Dec06) 2. Add lamella plate/tube settler calculation option. 3. Restructured file management by creating PNDFileManagement.bas module and putting all .pnd related activities in it. (16Dec06) 4. Modified pump discharge code to reset pump on/off switch if the event is restarted due to a change in mTimeInc. (16Dec06) 5. Add .ini file variables to .ini file. (3/27/07) v 8.4.2 8/21/06 1. Added maximum flow to pond option. 2. Added peak to average flow ratio to input file print subroutine. 3. Added option to change the runoff to rainfall duration ratio. 4. Corrected detailed output critical size particle distribution error that occurs with larger particle sizes. Error had no impact on pond efficiency calculations. 5. Changed mNumTimeInc variable to type Long to allow larger numbers of time increments. 6. Increased size of dual pond option .pnd file name text boxes and set them to wrap text. (20May06) 7. Add .ini file to control output files. (8/19/06) v 8.4.1 8/20/2005 1. Added modification to critical particle size function that sets critical particle size to 27190 micrometers if the upflow velocity is greater than 8650 ft/hr, which typically applies to catchbasin analysis with large flows through the system. Changed mPCPartControlAr(0)=0 to mPCPartControlAr(0)=100 to set the percent control for particle sizes less than 1 micron to 100 rather than 0; this will prevent inappropriately low performance values for unusual conditions such as large catchbasins and very small flows. 2. Added code to prevent subscript out of range error if rock fill level in a pond is at the top of the pond. v 8.4.0 11/11/2004 1. Added rock-filled void option on Stage-Area form. 2. Corrected error that saved broad-crested weir height as weir invert elevation. 3. Set Fraction of Pond Volume Available For Sediment Storage (mFracPondVolAvailForStorage) = 0 if the Total Scour Sediment Storage Volume (gTtlScourSedStorVol) =0, to correct divide by zero error if there was zero sediment storage available. 4. Added Stage-Outflow check file, StageOutflow.csv, to provide a table listing outflow from each device at each stage. Modified hydrograph output file to include header labels and change file extension to .HYD.csv. 5. Created subroutine proInitializeVariables and placed all global variables in it. 6. Changed gosub to procedure - RedimArrays, 7. Modify stage area calculation if the pond is filling up with sediment by zeroing out the pond area if the level of sediment is greater than a given stage. 8. Added evapotranspiration outlet option. 9. Changed selected goto statements to .net compatible code. 10. Corrected file open error when .orp file is not compatible with .pnd rain dates. 11. Changed rectangular weir end contraction default value from 0 to 2. 12. Added error check to proQOutCalcs outflow calculation procedure to check for files that are already open as well as other error check in that module. Corrected stone weeper error that incorrectly used a global level stone weeper invert elevation rather than a module level stone weeper invert elevation. 13. Added access to pond design spreadsheet in c:\program files\windetpond\Pond Size and Shape Calculator.xls. 14. Added the random number generation capacity for log normal natural seepage rate calculations to the natural seepage outlet device. 15. Prohibited an outflow from a seepage basin device (outlet option 4) if the net stage of the pond water surface was exactly equal to the invert elevation of the device. This change prevents an interpolated outflow from the seepage basin that would occur at an elevation lower than the invert elevation of the device, which physically cannot happen. 16. Added default temperature (50 F)and specific gravity (SG=2.5) variables to funCritPartSize to prevent divide by zero errors if data file is converted from an earlier version. 17. Remove insert and delete buttons for stage area form and replace with popup menus. 18. Added sediment accumulation level value to determine when infiltration should be shut off in a pond due to sediment accumulation. v 8.3.1 1/4/2004 1. Added Stone Weeper outlet option. v 8.3.0 12/28/2003 1. Added Stone Weeper outlet option - not complete, will be in v 8.3.1. 2. Add soil seepage rate option buttons and random number generation capability to Natural Seepage outlet. 3. Changed output viewer file options to include text files (*.txt) and all files (*.*). 4. Corrected problem of missing peak to average flow graph when loading rainfall info form. 5. Added MRU list. 6. Added Pumpback to Sewage Treatment Plant to pumped outlet option. 7. Added cumulative volume column to detention pond stage area form. 8. Removed outdated WinSLAMM v 8.2 data input option for runoff calculation. The user is still able to use the WinSLAMM outfall data option for runoff and sediment load calculations. 9. Corrected problem in median event calculator so that values, when sorted to determine the median value, retain their original order rather than the median order. This affected the flow volume order and so affected flow-weighted average calculations. v 8.2.2 6/26/2003 1. Corrected invert elevation calculation error for other outflow outlet option, relevant only if the other outflow rate value was zero for at least one stage elevation value above a zero datum. 2. Calculate the sediment volume and mass stored for the event that fills up the sediment storage capacity of the pond, relevant only for very small storage areas. 3. Increased the decimal number from two to four for the stage area data entry box. v 8.2.1 4/28/2003 1. Added total box to sum up areas for combined surface method in Drainage Basin Runoff Procedure form. 2. Modified dpMainMenu form and PondInSeries form to show output summary from model run. Deleted change from v 8.2.0-3 and modified code to automatically search for .ORP file. 3. Calculate gPondVolBelowScourDepth to determine scour depth volume (the volume of dead storage 3 feet below the lowest invert elevation) in which sediment can be stored based upon scour depth, as described in 'Scour' help. 4. Added end program algorithm to control box close program option. 5. Added file name label to frmFileViewer caption at top of form. 6. In One Line per Event Water Quality Output Summary, changed average statistical summary output for Flow-Weighted particle size (Ideal) and all % Particulate Solids Removed columns from a calculated average value to "n/a" to prevent the inappropriate use of average values for these statistics, which should be flow-weighted. 7. Changed warning messages for outlet devices that indicated that 'No Pollutant Trapping Occurs if the water depth is less than three feet due to scour" to "Reduced Pollutant Trapping Occurs if the water depth is less than three feet due to scour" to reflect code changes made to reflect scour impacts (8.2.1-3) 8. Changed mNumTimeInc variable type from integer to long to account for very long time between rains. 9. Created global variable gEndComps to stop the computation process if there is a problem. 10. Created missing file error check in proLoadSLAMMOutfallData. 11. Modified the spacing on Output Options 4 and 5 to more easily import the .DPO file into Excel. v 8.2.0 3/16/2003 1. Added water withdraw rate outlet option. 2. Added gCalcSedLoad = False in proClearFileVariable to reset variable when a new file is added. With this missing, the program would attempt to calculate a sediment load regardless of whether the file had the data. 3. Changed the second WinSLAMM file option on the 'Two Ponds in Series' form to read: 'Use sediment load output calculated from upstream pond as sediment load input entering the downstream pond (only available when using a WinSLAMM file option to predict pond sediment loading as the Drainage Basin Runoff Procedure for the upstream pond).' v 8.1.2 11/26/2002 1. Add rain file editor. 2. Modify text output to make header and footer formats more easily imported into Excel. v 8.1.1 10/31/02 1. Replaced all data grids with the MSFlexGrid grid control to prevent problem of reversing columns that occured in some versions of the Win 98 OS. 2. Removed loop that resulted when user selected 'View Output With Notepad' and then selected 'Cancel'. Selecting 'Cancel' will now cause the program to exit the Open common dialog box. 3. If sediment volume option is not enabled, summary output value of '0' is replaced by 'n/a'. 4. Added dual pond analysis error checks to require consistent files between the two ponds. 5. Changed output option 4 sediment label to read "% of Total Sediment Mass ..." v 8.1.0 1. Added dual pond analysis option. 2. Fixed problem in critical size editor that prevented the user from saving the file if there were identical particle size percentages or if there was more than one zero value. 3. Allow the user to determine how quickly a pond dead storage volume will fill with sediment using WinSLAMM particulate solids concentration output. 4. Replaced file select form for selecting .ran files, WinSLAMM .dat files, and .cpz files with a common dialog box. 5. Added critical particle size file name to output heading in proOutputHeading. 6. Added flow-weighted average calculations to event-by-event water quality summary. 7. Added percent of sediment stored calculation to event-by-event water quality summary. v 8.0.1 1. Added warning message to keep invert elevation of seepage basin from being equal to zero. If this happens, pond stages of less than zero could occur. v 8.0.0 3/29/2002 1. Added Critical Particle Size Editor. 2. Changed Approx. Part Res Control (%) column label in one-line water quality output to Ideal Part Res Control (%) to indicate that the value is the ideal settling rate and does not reflet short-circuiting. 3. Added "Ideal" to Flow-weighted Particle Size label on same output. 4. Added average annual or average monthly water temperature options, and particle specific gravity variable, to more accurately calculate the settling velocity of the sediment. 5. Removed the look-up table procedure for predicting the upflow velocity of the particles. The critical particle size is now a function of settling (or upflow) velocity, particle specific gravity, temperature, and Reynolds number. 6. Added descriptive labels to the right side of the single-event summary statistic outputs. 7. Changed the default peak flow to average flow ratio from 2 to 4. 8. Changed the utilities menu name to Tools. 9. Added access to the critical particle size editor and the temperature and specific gravity form to the Tools menu. 10. Added cancel button to modify pond areas form and set default value to 1. 11. Set border style to fixed single for file name and text labels. 12. Added Percent Particulate Solids Removed columns in Water Quality Summary - One Line per Event output option for n=1, 3, 8, and user defined values. 13. Placed divide by zero error checks into procedure proPartSizeCalcs to allow complete calculation of particles sizes. 14. Placed error check in proPartSizeCalcs to set all n exponent particle size summary calculations to zero if the ideal settling results are greater than 99.99% to prevent problems with very small rain results if the rains are at a beginning of a model run. 15. Made the groundwater mound output option invisible. v 7.2.3 10/15/2001 Set the default path for the CombRunoff.TXT file used to calculate flow rates for the model using the combined runoff method as the application path rather than the .pnd file location. Added to the peak-to-average hydrograph calculator the ability to sum hydrographs from adjacent rainfalls if the runoff from the adjacent rainfalls overlaps. Added check in peak-to-average hydrograph calculator to prevent flow drop below curve segment 5 level at transition point between segments 4 and 5. Changed title and contact information to reflect Bob Pitt's new position at the University of Alabama at Tuscaloosa. Removed references to the DOS version of DETPOND in the File and Utilities menus. Removed the Options menu item because there are currently no options available. Added the note, in the Drainage Basin Runoff Procedure form, that the WinSLAMM file must be a 8.2 version or earlier file. v 7.2.2 7/18/2001 Added ability to change peak to average hydrograph ratio from 2 (triangular hydrograph) to a user supplied value. NOTE: This version will not sum the hydrographs from two sequential rains if the hydrographs overlap. This component will be added to version 7.2.3. Changed pond area value to allow four decimal places. Added version number to introductory form banner. v 7.2.1 3/13/2001 Corrected problem with mTimeInc() that caused program to not reset initial time value to zero at the start of each run, but instead set the initial run time value to the last value of the previous model run. For water balance summary and water quality summary, added total count of number of times water surface level exceeded the sharp crested wier elevation, the V-notch wier invert, the broad crested weir elevation, and the vertical stand pipe invert. Updated help file to provide context sensitive help. v 7.2.0 2/26/2001 Revised natural seepage calc to set total seepage to sum of incremental seepage rates times incremental seepage areas. Redefined gTimeInc in calculation module as mTimeInc to retain time increment value set by user-defined hydrograph input if calc module reduced time increment during calcs because it was to large to be stable. Added broad-crested weir outlet, standpipe outlet, and modified sharp-crested weir outlet. Corrected subscript out of range error that occured during calcs when user either viewed or entered a user-defined hydrograph. Added vertical standpipe and broad crested weir outlets. Modified sharp crested weir outlet to allow user specified number of end contractions. Changed orifice calculation to linearly interpolate outflow from orifice between 0 depth and a depth of 1/2 the diameter of the orifice. Added error trapping to prevent crash if an outlet was deleted before the continue button for the outlet was pressed. Added WinSLAMM v 8.2 file structure for runoff generation. Fixed problem with visual basic where, even if the sum of the outlet height and distance from datum to bottom of invert equalled the top pond elevation, vb would incorrectly add the values by comparing strings rather than numbers. Fixed end of model run date error that prevented last rain event from being run. Changed time increment calculation reduction limit from 1 minute to 0.1 minutes when mSMQOut(i) < 0. Changed time increment multiplier from 2 * mTimeStepMult to 2 ^ mTimeStepMult to exactly match the inflow hydrograph times. Deleted equation that set the initial percent particulate solids control value equal to the initial percent critical particle size value (usually 100) if the initial stage equalled zero because we now allow no particulate removal by a pond at any depth less than 3.0 feet. v 7.1.11 10/22/2000 Added WinSLAMM version 8.1 input file data structure. Added other, porous pavement, and infiltration control devices to SLAMM source area runoff calculations. Corrected error that occurs when previous progress bar.max property is less than new progress bar.min property. Edited licensing agreement to match WinSLAMM agreement. Added statistical summary of results for Event Water Quality Output Option and Event Water Balance Output Option. Corrected detention pond input errors that did not properly delete selected outlets or did not properly count changes to outlet numbers (changes identical to those made in WinSLAMM). v7.1.10 11/5/99 Minor input form modifications. v7.1.9 8/29/99 Modified DPSlammCalc module to accept all SLAMM version files. Note that certain SLAMM files may cause problems because of inconsistent file formats. If problems arise in a version 8.0 file, load the .dat file in a text editor and add ,0 to the second line after the text description of the file. This will normally be the eleventh line in the file if the text description takes up only one line. Changed "Other outlet" form label to "User Specified" v7.1.8 8/25/99 Modified DPSlammCalc module to accept version 8 SLAMM files only. v7.1.6 6/7/99 Added quantity information to event single line water quality output option. v7.1.5 6/3/99 Added parameter file name error trapping. Modified output options 4 and 5 to prevent a space between each line of output. v7.1.4 5/30/99 Added three foot scour depth limit. Correct error in outlet listing box that occured when File/New was selected with current file loaded. Outlets from previous file no long appear in file list box for new pond file. Added error trapping to check for correct file path for rain and critical particle size files. v7.1.3 4/23/99 Corrected data entry error that caused error message to occur when first value for weir and orifice data was entered. Prevented error from occuring if cancel button of open file dialog box was selected without selecting a data file. v7.1.2 2/7/99 Modified pull down menus to automatically select the appropriate version based on the .pnd file being loaded. Saves file in current version format. v7.1.1 10/18/98 Added multiple orifice option. Modified load and save pull down menus to allow user to save in version 6 format or most current format and to load current format or version 7.0.2 or earlier format. Default save format is current format. v7.0.2 9/13/98 Corrected minor data entry bugs. v7.0.1 8/19/98 Added discharge pump outlet option. Test version for one pump only. Checked evaporation and seepage outlets for compatibility with DOS version. All worked properly, except DOS version on rare ocassions did not quite reach required peak inflow rate. Windows version did. Added CSng to inlet hydrograph step gosub to more accurately calculate inflow rates. v6.1.1 8/4/98 Checked components of file with same file using DOS code. Tests included: User-defined hydrograph Combined runoff method SLAMM runoff method CN runoff method Orifice V-Notch weir Seepage basin Other discharge User selected n value v 6.1.0 7/16/98 Integrated Calc Module from DOS program into Windows version, with all output formats as described in the program. Not all components of integrated calc module or output formats tested. Added progress bar to track calculation progress. v 6.0 Recompiled using Visual Basic 5.0 Program now overwrites existing .PND files if they have a lower case extension .pnd Cleared all forms from memory when selecting File - New from menu after loading a previous file. v 5.6.5 3/29/98 - Revised proClearPondVariable to clear all variables (I hope), and also relocate on to a more logical location in the procedure. Changed gStageAr variable to allow 3 significant figures, not 2. Fixed rmBasinRunoffProc to disable all text boxes that weren't associated with the the selected option button. v5.6.4 3/18/98 - Changed output file name to .DPO from .POT. Set pond efficiency default value = 5. Added warning message that user defined hydrograph value # 1 should have a value. Included revised DPCALC55.EXE file in distribution disk. DPCALC55.EXE now correctly calculates user defined hydrographs when the time increment is automatically adjusted. v 5.6.3 2/14/98 - Added line to change any gTypeRainfallData values of 3 to values of 2. Corrects old DOS files that would still have a 3 value in them. V 5.6.2 2/10/98 - Changed drainage basin runoff proceedure default option from 1 (CN) to 2 (combined surface characteristics), and changed default printing option for single events to option 2 rather than option 4. V 5.6.1 1/18/98 - Added form to modify all pond areas at once by one fraction value.