Skip to content

Data Flow Diagram

eldemet edited this page Sep 15, 2015 · 1 revision

The EPANET Toolkit is written in ANSI standard C with separate code modules for input processing, hydraulic analysis, water quality analysis, sparse matrix/linear equation analysis, and report generation. The data flow diagram for analyzing a pipe network is shown below. The processing steps depicted in this diagram can be summarized as follows:

Dataflow

  • The input processor module receives a description of the network being simulated from an external input file (.INP). The file's contents are parsed, interpreted, and stored in a shared memory area.
  • The hydraulics solver module carries out an extended period hydraulic simulation. The results obtained at every time step can be written to an external, unformatted (binary) hydraulics file (.HYD). Some of these time steps might represent intermediate points in time where system conditions change because of tanks becoming full or empty or pumps turning on or off due to level controls or timed operation.
  • If a water quality simulation is requested, the water quality module accesses the flow data from the hydraulics file as it computes substance transport and reaction throughout the network over each hydraulic time step. During this process it can write both the formerly computed hydraulic results as well as its water quality results for each preset reporting interval to an unformatted (binary) output file (.OUT). If no water quality analysis was called for, then the hydraulic results stored in the .HYD file can simply be written out to the binary output file at uniform reporting intervals.
  • If requested, a report writer module reads back the computed simulation results from the binary output file (.OUT) for each reporting period and writes out selected values to a formatted report file (.RPT). Any error or warning messages generated during the run are also written to this file.

Toolkit functions exist to carry out all of these steps under the programmer's control, including the ability to read or modify most of the system's global data.

Clone this wiki locally
You can’t perform that action at this time.