EPANET
2.1
|
Functions | |
int DLLEXPORT | ENsolveH () |
Solves the network hydraulics for all time periods. More... | |
int DLLEXPORT | ENsaveH () |
Saves hydraulic results to binary file. More... | |
int DLLEXPORT | ENopenH () |
Sets up data structures for hydraulic analysis. More... | |
int DLLEXPORT | ENinitH (int initFlag) |
Initializes hydraulic analysis. More... | |
int DLLEXPORT | ENrunH (long *currentTime) |
Run a hydraulic solution period. More... | |
int DLLEXPORT | ENnextH (long *tStep) |
Determine time (in seconds) until next hydraulic event. | |
int DLLEXPORT ENinitH | ( | int | initFlag | ) |
Initializes hydraulic analysis.
flag | 2-digit flag where 1st (left) digit indicates if link flows should be re-initialized (1) or not (0), and 2nd digit indicates if hydraulic results should be saved to file (1) or not (0). |
int DLLEXPORT ENopenH | ( | ) |
Sets up data structures for hydraulic analysis.
int DLLEXPORT ENrunH | ( | long * | currentTime | ) |
Run a hydraulic solution period.
[out] | currentTime | The current simulation time in seconds |
This function is used in a loop with ENnextH() to run an extended period hydraulic simulation. See ENsolveH() for an example.
int DLLEXPORT ENsaveH | ( | ) |
Saves hydraulic results to binary file.
Must be called before ENreport() if no WQ simulation has been made. Should not be called if ENsolveQ() will be used.
int DLLEXPORT ENsolveH | ( | ) |
Solves the network hydraulics for all time periods.