EPANET  3.0
EPANET Development Project
hydbalance.h
Go to the documentation of this file.
1 /* EPANET 3
2  *
3  * Copyright (c) 2016 Open Water Analytics
4  * Licensed under the terms of the MIT License (see the LICENSE file for details).
5  *
6  */
7 
10 
11 #ifndef HYDBALANCE_H_
12 #define HYDBALANCE_H_
13 
14 class Network;
15 
22 
23 struct HydBalance
24 {
25  double maxFlowErr;
26  double maxHeadErr;
27  double maxFlowChange;
28  double totalFlowChange;
29 
33 
34  double evaluate(
35  double lamda, double dH[], double dQ[], double xQ[], Network* nw);
36  double findHeadErrorNorm(
37  double lamda, double dH[], double dQ[], double xQ[], Network* nw);
38  double findFlowErrorNorm(double xQ[], Network* nw);
39 };
40 
41 #endif
double totalFlowChange
(summed flow changes) / (summed flows)
Definition: hydbalance.h:28
int maxFlowChangeLink
link with max. flow change
Definition: hydbalance.h:32
double maxFlowErr
max. flow error (cfs)
Definition: hydbalance.h:25
int maxFlowErrNode
node with max. flow error
Definition: hydbalance.h:31
double maxFlowChange
max. flow change (cfs)
Definition: hydbalance.h:27
int maxHeadErrLink
link with max. head loss error
Definition: hydbalance.h:30
Computes the degree to which a network solution is unbalanced.
Definition: hydbalance.h:23
double maxHeadErr
max. head loss error (ft)
Definition: hydbalance.h:26
Contains the data elements that describe a pipe network.
Definition: network.h:41