Skip to content

Commit 5cdb331

Browse files
authored
Merge pull request #282 from LRossman/lrossman-dev
Fixes zero flow (#164) and D-W eqn. (#199) issues
2 parents 902dac9 + d164293 commit 5cdb331

File tree

8 files changed

+304
-233
lines changed

8 files changed

+304
-233
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ A step-by-step tutorial on how to contribute to EPANET using GitHub is also [ava
1818
__Note:__ This repository is not affiliated with, or endorsed by, the USEPA. For the last "official" release of EPANET (2.00.12 UI and Toolkit) please go to the [EPA's GitHub repo](https://github.com/USEPA/Water-Distribution-Network-Model) or [the USEPA website](http://www2.epa.gov/water-research/epanet). It is also not the graphical user interface version. This is the hydraulic and water quality solver engine.
1919

2020
However, if you are interested in extending EPANET for academic, personal, or commercial use, then you've come to the right place. For community discussion, FAQ, and roadmapping of the project, go to the [Community Forum](http://community.wateranalytics.org/category/epanet).
21-

src/funcs.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,12 @@ int hydsolve(EN_Project *pr, int *,double *); /* Solves network equations
178178
void resistcoeff(EN_Project *pr, int k); /* Finds pipe flow resistance */
179179
void headlosscoeffs(EN_Project *pr); // Finds link head loss coeffs.
180180
void matrixcoeffs(EN_Project *pr); /* Finds hyd. matrix coeffs. */
181-
double emitflowchange(EN_Project *pr, int i); /* Change in emitter outflow */
182-
double demandflowchange(EN_Project *pr, int i, // Change in demand outflow
183-
double dp, double n);
184-
void demandparams(EN_Project *pr, double *dp, // PDA function parameters
185-
double *n);
181+
void emitheadloss(EN_Project *pr, int, // Finds emitter head loss
182+
double *, double *);
183+
double demandflowchange(EN_Project *pr, int, // Change in demand outflow
184+
double, double);
185+
void demandparams(EN_Project *pr, double *, // PDA function parameters
186+
double *);
186187

187188
/* ----------- SMATRIX.C ---------------*/
188189
int createsparse(EN_Project *pr); /* Creates sparse matrix */

0 commit comments

Comments
 (0)