epanet.de / DC Water Design Extension / Manual

Chapter 3. DC Water Design Extension Tutorials

Tutorial related to hydraulic analysis with th DC Water Design Extension.

Demand Calculation using Thiessen Polygons

This tutorial shows how to calculate node demands using Thiessen polygons.

Thiessen polygons are also called Voronoi diagrams.

[Note]Note

The following requires the "Create Thiessen Polygons" extension which is available from http://arcscripts.esri.com.

You will need a sufficiently developed network model ot apply the steps below. Especially the contents of the field dc_id in the Junction theme have to be unique. The example below will also require a supply zone marked in a polygon theme. If your data does not fulfil these requirements (yet), you can use the DC Water Design Extension sample data. See the section called “How to Obtain the DC Water Design Extension” for details where to obtain the sample data.

Assumptions and design parameters:

The map unit is meter.
The population density is 200 p/ha.
The average demand is 100 lcd.
The flow (demand) unit is l/s.
[Tip]Tip

It is also possible to use a buffer around the points instead of a polygon theme of the supply zone. However this is not covered in the example below.

Example 3.1. Demand Calculation

Load the "Create Thiessen Polygons" extension.

Add the Junction and supply zone themes to the current view (Unless they have been added to it already).

Activate the Junction theme.

Click on the Thiessen Polygons button.

Select point field for polygon ID link: In the Build Thiessen Polygons dialog, select dc_id in the list. Click OK.

Select polygon theme for boundary: In the Build Thiessen Polygons dialog, select your supply zone theme. Click OK.

In the Output Theme File dialog, select location and filename of the Thiessen polygon shapefile. Click OK.

The new Thiessen polygon theme will be added to the current view.

Move the Thiessen polygon theme below the junction theme, but above other polygon themes such as the supply zone. Note that the Thiessen polygon theme covers the same area as the supply zone theme. There is one Thiessen polygon for every Junction.

Activate the Thiessen polygon theme.

Open the Thiessen polygon theme table: Select ThemeTable... in the menu.

Select the dc_id field.

Select FieldSummarize... from the menu.

In the Summary Table Definition dialog, select Area in the field list.

In the "Summarize by" list, select Sum.

Click on the Add button.

Click on the OK button.

A new summary table is created (sumX.dbf where X is a number).

Select the dc_id field in the summary table.

Go back to the view, e.g. by selecting WindowView1 from the menu.

Activate the Junction theme.

Open the Junction theme table: Select ThemeTable... from the menu.

Select the dc_id field.

Join the summary table: Select TableJoin from the menu.

Start editing the table: Select TableStart Editing from the menu.

Select the demand field.

Open the field calculator: Select FieldCalculate... from the menu.

In the [demand] field enter the formula to calculate the demand:

[Sum_Area]*100*200/10000/24/60/60

Click OK.

The nodal demand is now calculated.

Remove all joins: Select TableRemove All Joins from the menu.

Stop editing: Select TableStop editing.

Save the edits: Click Yes.


[Tip]Tip

If you have a very large number of Thiessen polygons to create, the shpvoronoi commandline tool will provide better performance than the "Create Thiessen Polygons" extension.

epanet.de / Compiling / Manual

Imprint