ghydraulic 0.2.1 homepage



01-Jun-2001 With the EPANET sources available, the ghydraulic project is kind of superfluous. EPANET is a full-flegded hydraulic analysis suite.

13-May-2000 ghydraulic 0.2.1 released. The release contains important bugfixes. Binaries for Linux and Windows are available.

15-May-2000 Added documentation to the website.


Welcome to the ghydraulic homepage.
ghydraulic is a project to create Open Source Hydraulic Network Analysis software.


The files ghydraulic-0.2.1-i386-linux-static.tar.gz and contain compiled binaries for Linux and Windows. Just Uncompress the archives, and try running "ghydraulic networkfile.xml".

Sample Data

The files ghydraulic_data.xml and small_network.xml contain very simple networks that should be calculated correctly by ghydraulic. Use them as a start to create your own networks.

Compilation Requirements

  • libxml
  • a C++ compiler is needed to compile ghydraulic
  • autoconf, make etc. to use the configure script


ghydraulic is inspired by the FORTRAN program NETZY written by Bernhard Kunst.
Thanks to Ralf for some hints on the array allocation code.


1. Introduction

1.1 What is ghydraulic?

ghydraulic is a free hydraulic network analysis program. It still needs a lot of development.

ghydraulic is inspired by the BASIC/FORTRAN program NETZY by Prof. Bernhard Kunst. The sourcecode of both versions can be found in the Handbook "Wasserversorgungs- und Abwasser-Technik", Vulkan-Verlag Essen, ISBN 3-8027-2807-6, p.133-150. The article was a big help in the development of this software.

Right now ghydraulic is a command-line tool that reads a given XML input file and prints the calculated results. The goal of the development is to have GIS software as a front-end to the analysis program ghydraulic. The results will be returned in another xml file.

DON'T TRUST the results of ghydraulic right now, use other software packages to verify them.

2. Installation

2.1 How to obtain ghydraulic

You can download ghydraulic from the ghydraulic homepage, Precompiled Binary packages for Linux and Windows are available.

2.2 Requirements

The GNOME XML library, Version 1.8.7 is required in order to compile ghydraulic. Note that the compiled binaries don't require libxml, as they're statically linked. libxml 1.8.7 can be found on the internet under

2.3 Compilation and installation

In order to compile and install ghydraulic on your system, type the following in the base directory of the ghydraulic distribution:

make install 

Since ghydraulic uses autoconf you should have not trouble compiling it.

3. Usage

3.1 General Usage

ghydraulic can be run from the commandline like this:

ghydraulic xmlfile 

5. Copyright

ghydraulic Copyright 2000 Steffen Macke,

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Source code