General Instructions

General Instructions

(a) Setting up DRAINS models

On most PC systems the installation process will put a DRAINS icon on the Programs folder in your Start menu, and you can start DRAINS by clicking on this.  If this icon is not present, you can create Shortcut icon on your Desktop linking to the program in the folder C:\Program Files\Drains\Program (64 bit) or C:\Program Files (x86)\Drains\Program (32 bit). Clicking on this icon starts the program.

A window with a large blank space appears. At the top there are seven menus and a toolbar:


Using options from the menus, you can set up and run a DRAINS model in four steps:

  1. applying options in the Project menu to define hydrological models, rainfall patterns and other parameters, to set up storms for design and analysis, and to establish data bases for pipes, pits and overflow routes;
  2. setting out a drainage network using the drawing tools from the toolbar, or inputting drawing, spreadsheet or GIS file data using options in the File and Edit menus,
  3. aving the data using File menu options, and then performing calculations in Design and Analysis runs initiated in the Run menu;
  4. reviewing the results using options from pop-up menus for individual components and the View menu; and printing and exporting results to spreadsheets, drawing and GIS programs using the File and Edit menus.

More detailed descriptions of these are given below.

You can copy various graphs and tables to a spreadsheet or word processor via the Windows clipboard. You can also produce long section drawings of the pipe system for export to CAD programs.

The DRAINS toolbar contains fifteen special drawing tools, grouped into nodes, links and sub-catchments. If you click on one of these, the cursor will change to a pencil, which can be used to place that component in the drawing window. For, example, you can use the pit and node tools:

                                 

To draw two drainage pits and an outlet node, as shown below:


These can be connected by pipes, by selecting the pipe tool and clicking at the beginning and end points of each pipe. Overflow paths can be added as poly-lines, and the names of components (containing question marks to start with) can be dragged to more convenient locations.


Sub-catchments can then be added, making sure that they touch the pits, but do not cover them:


In this way, a connected drainage network can be constructed, with nodes at the outlets. The components and their names can be moved by clicking on them and dragging them around the screen. A pipe, channel or overflow route can be moved as a single unit by dragging near its centre, or its ends can be moved individually.

Data for components is entered and edited using property sheets, which appear when you click your right mouse button on a component and select Edit Data from the pop-up menu that appears, as shown below.

 


You use your PC’s keyboard and a mouse with two or more buttons to run the program. You can obtain help at any time by pressing the 'F1' key to display this Help System or by referring to options in the Help menu. Context-sensitive Help can be obtained by clicking on the Help buttons in windows where these are provided.

Many options are available through the menus and toolbar buttons at the top of the window. These are "greyed-out" when it is inappropriate to use them. Models can be saved as .drn files, that can include the drainage system details, data bases, background image and results.

(b) Opening existing DRAINS models

You can do this by using the Open… option in the File menu and selecting a DRAINS model file with a .drn suffix.

(c) Setting up DRAINS model data bases

To set up a DRAINS model from scratch, it is necessary to establish appropriate data bases and parameters before entering the components and details of a drainage system.

When you open a new DRAINS window, you must first specify a hydrological model using the Hydrological Models option in the Project menu.  A suitable model can then be specified in the Hydrological Models dialog box.

Rainfall inputs can then be entered using the Rainfall Data… option in the Project menu.  In the past, for Horton (ILSAX), extended rational method (ERM) and storage routing models, this will be in the form of rainfall patterns or hyetographs, usually from Australian Rainfall & Runoff, 1987.  Now, with the release of Australian Rainfall and Runoff, 2019, the data is in the form of sets or ensembles of 10 rainfall patterns for a number of storm durations.
For Rational Method calculations it will be in the form of an I-F-D relationship.

For design of pipe systems under the older system, it is necessary to select the rainfall patterns to be used as Major and Minor storms using the Select Storms  ► Options in the Project menu. These can also be used to define the required storms for analyses of established systems, though the major-minor terminology may not be relevant.

You can then open the Options and Description options in the Project menu, specifying any special parameters you require, such as blocking factors, and adding titles and information on the model, if required.

Next, you can select the regional or other data base for pipes, pits and overflow routes using the Default Data Base option in the Project menu.
At this stage, you might save the file as a template file using the by saving it under a suitable name. or using the Export  →  DRAINS Database File option in the File menu. Once the parameters and databases are defined, you are ready to enter details of the drainage system.

(d) Entering drainage system data

Data can be entered by placing objects from the Toolbar in the Main Window and connecting these in a layout of links and nodes. A background and some pit and pipe data can be entered from a CAD drawing with suitable layers, and more extensive data can be inputted from GIS programs.

DRAINS data is presented pictorially. For normal entry of data, you must first draw the stormwater drainage system, component by component, and then enter data such as pipe lengths and slopes in property sheets for each component. The program determines the order of calculations from the way that the component "objects" are connected. For information on how to use the drawing tools, see the notes on the Toolbar.

As you define a system using the drawing tools for pits, pipes, channels and other elements, you will find that each component has a name or ????? attached to it. If you right-click a component, a pop-up menu appears beside it. If you select the choice Enter Data, a property sheet appears for you to enter information in text boxes. The first item will be the name of the component, which can be any combination of letters and numbers up to 10 characters long. As you enter information, DRAINS checks this and warns you if it is unsuitable. When all the required information is entered, you can press the OK button to close this dialog box and return you to the Main Window. Here you should find that the name has changed from ????? to the name you specified. If not, check that the component is properly connected to the other components; the name ????? is also used as a warning that components are not properly connected. To perform calculations, your system must have all ????? names eliminated. You can use the Find ????? option in the Edit menu to locate these.

If names are in inconvenient locations you can move them. Hold the mouse button down on the name so that a pair of arrows appear; then "drag and drop" the name to a more convenient location.

There can be several outlets from a system, represented by nodes. One or more may be pipe outlets, while others are destinations for overflows along surface flow paths. It is possible to draw two or more unconnected systems in the Main Window. DRAINS sorts out the connections and performs appropriate calculations.

Relocating components is easily done. First select a component by clicking it so that 'handles' appear. Then hold your left mouse button down so that the cursor pointer changes to a pair of vertical and horizontal arrows. You can then drag and drop the component with your mouse. You can do this at either end of a link such as a pipe or channel, to reposition it.

You can obtain a summary of the information for the various components using the spreadsheet outputs selected from the Edit menu. This produces tables that you can paste into Excel and scan through to check your data. If you need to make changes you can go back to the property sheets for the particular components.  It is also possible to enter data via the spreadsheets.

(e) Running DRAINS

When all data is entered, DRAINS can be run from the Run menu. If a necessary input is missing or the network is not properly connected, the program will not run and you will need to check that the information required is complete. Options in the Edit menu will be helpful for this.

Once a design and a follow-up analysis run are made, numerical values for flowrates and water levels appear beside components. You can review the results in a number of other ways. An overview can be obtained by choosing the Customise Text option in the View menu. This enables you to display various results on the drawing beside each element, and to highlight characteristics such as overflows.

You can print out a drawing display on a laser or inkjet printer. The printout is sized to take in all of the drawing, including the title blocks. Options in the View menu allow you to move the drawing around.  Other information can be saved to the clipboard for pasting into a word-processing document or manipulation in a spreadsheet program.

For particular pits, pipes or other components, you can print out and export graphs and tables showing the hydrographs and water levels occurring during a simulation. Where calculations are performed for multiple storms, sets of windows are presented. Like all windows, these can be closed by selecting Close from the window’s File menu, and in cases where a menu is nor available, by clicking the X button at the top right hand corner of the window. Pictures can be enlarged, printed and copied to the clipboard for inclusion in a report.

(f) Saving and retrieving data

As you enter data for a system, you should periodically save this using the options in the File menu.  All system information will be saved in a single file with a .drn suffix.  This is in binary format and you will not be able to read it on an ASCII editor.

You can reopen a system previously saved using the Open option in the File menu.

DRAINS provides a number of viewing options prior to performing calculations and for examining results afterwards:

  1. dialog boxes in which data can be entered or viewed, invoked by right-clicking a component and selecting Edit Data from the pop-up menu that appears,
  • windows for viewing properties and pictorial representations of components, displayed using selections from the pop-up menu such as Long Sections for pipes,

  • spreadsheet tables,

  • numbers displayed beside the drawings of components in the Main Window, for factors selected from the Customise Text option in the View menu.

Results of DRAINS runs can be saved along with system data in the .drn file, though this may create very large files. The choice is made in the following dialog box.


    • Related Articles

    • Main Window

      When DRAINS begins operation it displays its Main Window. This is the place where details of drainage systems are entered graphically, on an x-y coordinate base. The background that appears in DRAINS models is a layer that is created from vector ...
    • Rational method Check HGL outputs

      Detailed results from rational method calculations can be obtained in tables suitable for checking using the Copy Check HGL to Spreadsheet option in the Edit menu. Currently a 56-column output is provided, illustrated by the example shown below. ...
    • Installation

      DRAINS has worked on PCs running the Microsoft Windows operating systems from Windows 95 to Windows 11+. It can be installed on any PC by clicking on the icon for the self-extracting file Drains64Setup.exe and following the instructions in the ...
    • Dialog box, property sheet

      These are windows containing text boxes into which data can be entered and selection boxes and buttons of various types enabling options to be selected. When opening up a new dialog box or property sheet, most text boxes are likely to be blank and ...
    • Dialog box, property sheet

      These are windows containing text boxes into which data can be entered and selection boxes and buttons of various types enabling options to be selected. When opening up a new dialog box or property sheet, most text boxes are likely to be blank and ...